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

target_ratio in scene dataset #12

Open
ChaseMonsterAway opened this issue Feb 29, 2020 · 1 comment
Open

target_ratio in scene dataset #12

ChaseMonsterAway opened this issue Feb 29, 2020 · 1 comment

Comments

@ChaseMonsterAway
Copy link

self.target_ratio = img_width / float(img_width)

Hello, I found that the target_ratio you used in dataset is a constant 1.0, why you use the 1.0? or it should be self.target_ratio=self.img_height/self.img_width ?
Also the keepratio_resize ops maybe skip some images when you test, how do you solve it?

@Wang-Tianwei
Copy link
Owner

This line should be corrected as "self.target_ratio = img_width / float(img_height)".

I have verified that the keepratio_resize operation would not skip any images in test datesets.

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