I want to do augmentation "colortransform" but what is the op?? #4156
Unanswered
leesangjoon1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to do the augmentation "color transform" but It need op. what is the op ??
I want to add it at train_net.py
so I add this code.
def build_sem_seg_train_aug(cfg):
augs = []
augs.append(T.RandomBrightness(0.9,1.1))
augs.append(T.ColorTransform(cfg))
return augs
@classmethod
def build_train_loader(cls, cfg):
if "GeneralizedRCNN" in cfg.MODEL.META_ARCHITECTURE:
mapper = DatasetMapper(cfg, is_train=True, augmentations=build_sem_seg_train_aug(cfg))
else:
mapper = None
return build_detection_train_loader(cfg, mapper=mapper)
but the error comes up "value error : op parameter should be callable"
please help me
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions