Open gxpzy opened 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)
x1 = max(min((float(bbox.find('xmin').text) - 1) * w_ratio, self.image_size - 1), 0)
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)