Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.


fix: remove target_image_size
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Aug 21, 2019
1 parent 3820db6 commit 5c2b60a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnes/preprocessor/image/
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 5c2b60a

Please sign in to comment.