Skip to content

Commit 714d28e

Browse files
comment new transforms
1 parent 6ab33ea commit 714d28e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning_pose/data/augmentations.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ def imgaug_transform(cfg: DictConfig) -> iaa.Sequential:
7171
iaa.CoarseDropout(p=prct, size_percent=size_prct, per_channel=per_channel)
7272
))
7373
# coarse salt and pepper
74+
# bright reflections can often confuse the model into thinking they are paws
75+
# (which can also just be bright blobs) - so include some additional transforms that put
76+
# bright blobs (and dark blobs) into the image
7477
prct = 0.01 # probability of changing a pixel to salt/pepper noise
7578
size_prct = (0.05, 0.1) # drop pix on a low-res version of img that's `size_prct` of og
7679
data_transform.append(iaa.Sometimes(

0 commit comments

Comments
 (0)