(self, img_path, sup_res=True)
| 391 | return cur_ratio |
| 392 | |
| 393 | def get_img(self, img_path, sup_res=True): |
| 394 | |
| 395 | img = cv2.imread(img_path) |
| 396 | img = img[..., ::-1].copy() # bgr2rgb |
| 397 | |
| 398 | if self.wo_supers: |
| 399 | return img |
| 400 | |
| 401 | return img |
| 402 | |
| 403 | def compute_coords(self, pha, bbox): |
| 404 |