You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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.
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?
The text was updated successfully, but these errors were encountered: