hizhangp / yolo_tensorflow

Tensorflow implementation of YOLO, including training and test phase.
MIT License
799 stars 442 forks source link

how to calculate xmin #66

Open gxpzy opened 6 years ago

gxpzy commented 6 years ago

original xmin of bbox was subtracted by one when extracted from the XML file. Could someone please explain this x1 = max(min((float(bbox.find('xmin').text) - 1) * w_ratio, self.image_size - 1), 0)