(self, image_w, image_h, crop_w, crop_h)
| 239 | return crop_pair[0], crop_pair[1], w_offset, h_offset |
| 240 | |
| 241 | def _sample_fix_offset(self, image_w, image_h, crop_w, crop_h): |
| 242 | offsets = self.fill_fix_offset(self.more_fix_crop, image_w, image_h, crop_w, crop_h) |
| 243 | return random.choice(offsets) |
| 244 | |
| 245 | @staticmethod |
| 246 | def fill_fix_offset(more_fix_crop, image_w, image_h, crop_w, crop_h): |
no test coverage detected