Open Kennard123661 opened 4 years ago
@Kennard123661
I think you are correct. This is a bug in the code. Another way is:
jittered_clip = [] for img in clip: jittered_img = img.copy() for func in img_transforms: jittered_img = func(jittered_img) jittered_clip.append(jittered_img)
I think in this way, the color transformation will be applied for each clip independently.
@Kennard123661 , @xmengli999 ,
I agree with you guys, let me make a PR, check it out here :)
Hi, I have a question. Should I use ColorJitter for non-RGB modalities?
Hi, I have a question. Should I use ColorJitter for non-RGB modalities?
Hey! I think some papers have used it with the optical flow and temporal gradient modalities as well:
https://github.com/hassony2/torch_videovision/blob/ae4b32b4dc76f97387ae74c9c652bffb7ba05697/torchvideotransforms/video_transforms.py#L322
Hi @hassony2 , I think there is a bug here where it should be