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

The code in preprocessing.py line175 176 #38

Closed
jinmallll opened this issue Nov 10, 2017 · 2 comments
Closed

The code in preprocessing.py line175 176 #38

jinmallll opened this issue Nov 10, 2017 · 2 comments

Comments

@jinmallll
Copy link

center_w = (obj['xmax'] - obj['xmin']) / (float(self.config['IMAGE_W']) / self.config['GRID_W']) # unit: grid cell center_h = (obj['ymax'] - obj['ymin']) / (float(self.config['IMAGE_W']) / self.config['GRID_W']) # unit: grid cell

Is there any effect when the image ratio is not 1:1?

@experiencor
Copy link
Owner

experiencor commented Nov 10, 2017

@jinmallll This is a bug. It should be IMAGE_H and GRID_H in the second line. In principle, the code should work with the ratio other than 1:1. However, I have not tested. The code may break here and there if you try to use rations other than 1:1.

@jinmallll
Copy link
Author

OK. Thank you very much.

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