mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-03-14 23:16:08 +09:00
revised autokem model
This commit is contained in:
@@ -398,7 +398,7 @@ def _shift_image(img, dx, dy):
|
||||
def _augment_one(img, label, rng):
|
||||
"""One augmented copy: random 1px shift + 1% pixel dropout."""
|
||||
dx = rng.integers(-1, 2) # -1, 0, or 1
|
||||
dy = 0
|
||||
dy = rng.integers(-1, 2) # -1, 0, or 1
|
||||
aug = _shift_image(img, dx, dy)
|
||||
# mask = rng.random(aug.shape) > 0.01
|
||||
# aug = aug * mask
|
||||
|
||||
Reference in New Issue
Block a user