Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
fix: remove target_image_size
  • Loading branch information
hanhxiao committed Aug 21, 2019
1 parent 3820db6 commit 5c2b60a4d5d77af5b44309e974e75130d4d97f10
Showing with 2 additions and 2 deletions.
  1. +2 −2 gnes/preprocessor/image/
@@ -83,8 +83,8 @@ def apply(self, doc: 'gnes_pb2.Document'):
self.logger.error('bad document: "raw_bytes" is empty!')

def _crop_resize(self, original_image, coordinates):
return np.array(original_image.crop(coordinates).resize((self.target_img_size,
return np.array(original_image.crop(coordinates).resize((self.target_width,

def _get_seg_offset_nd(self, all_subareas: List[List[int]], index: List[List[int]], chunk: List[int]) -> List[int]:
iou_list = [self._cal_iou(area, chunk) for area in all_subareas]

0 comments on commit 5c2b60a

Please sign in to comment.