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

random_crop results in image with zero target. #16

Open
chenyuntc opened this issue Mar 29, 2018 · 2 comments
Open

random_crop results in image with zero target. #16

chenyuntc opened this issue Mar 29, 2018 · 2 comments

Comments

@chenyuntc
Copy link

random_crop op may crop only background part, which will result in the cls_targets to all be zero. This will raise ZeroDivisionError: float division by zero in here when all item in the batch doesn't include background (num_pos is 0)

@vaishnavm217
Copy link

I am facing this same problem. for now, I have given num_pos very less value, but all my losses are coming zero.

@ahkarami
Copy link

ahkarami commented Jul 7, 2018

@vaishnavm217 & @chenyuntc.
Please refer to #35

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

3 participants