-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is random flip accomplished only in testing set? #15
Comments
@wave-transmitter It seems like a typo error, it should be on training process. And I think the function def randomflip(self, buffer):
"""Horizontally flip the given image and ground truth randomly with a probability of 0.5."""
if np.random.random() < 0.5:
for i, frame in enumerate(buffer):
frame = cv2.flip(buffer[i], flipCode=1)
buffer[i] = cv2.flip(frame, flipCode=1)
return buffer |
II think so too |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to following lines of code from dataset.py, it seems like random flip is triggered only for testing data.
pytorch-video-recognition/dataloaders/dataset.py
Lines 81 to 83 in a63b85f
Do I get it wrong, or this is a bug where 'test' should be changed by 'train'?
The text was updated successfully, but these errors were encountered: