First training
This commit is contained in:
11
src/augmentations.py
Normal file
11
src/augmentations.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import random
|
||||
|
||||
|
||||
class MirrorKeypoints:
|
||||
def __call__(self, sample):
|
||||
if random.random() > 0.5:
|
||||
return sample
|
||||
# flip the keypoints tensor
|
||||
sample = 1 - sample
|
||||
|
||||
return sample
|
||||
Reference in New Issue
Block a user