Skip to content
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

code problem #13

Open
Giveupfree opened this issue Nov 28, 2021 · 1 comment
Open

code problem #13

Giveupfree opened this issue Nov 28, 2021 · 1 comment

Comments

@Giveupfree
Copy link

Giveupfree commented Nov 28, 2021

https://github.com/tongtybj/TrTr/blob/master/datasets/augmentation.py
Is line 174 wrong? what is returned on the code is bbox. Shouldn't it be mask?

def _flip_aug(self, image, bbox, mask):
image = cv2.flip(image, 1)
width = image.shape[1]
bbox = Corner(width - 1 - bbox.x2, bbox.y1,width - 1 - bbox.x1, bbox.y2)
bbox = Corner(width - 1 - mask[2], mask[1],width - 1 - mask[0], mask[3])
return image, bbox, mask

@tongtybj
Copy link
Owner

I think you are right...
This is a fatal bug, but fortunately, filp augmentation was not used in our training.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants