Closed ManjeeraJagiri closed 6 years ago
check in preprocessing.py
Hi,
I couldn't really understand the BatchGenerator code in preprocessing.py. Any way to get a gist of it?
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_H']) / self.config['GRID_H']) # unit: grid cell
I got it now! Thanks.
Hi,
We provide .xml annotations for each image where xmin.xmax,ymin,ymax are the BB dimensions of each object. I am wondering where in the code are these converted to coordinates relative to the grid cells i.e (13,13,5,6) ? (Assuming I am using 5 anchor boxes and 1 class). Is it at the below line? train_batch = BatchGenerator(train_imgs, generator_config, norm=normalize)