Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
fix(weighting): add simple normalization to chunk search
  • Loading branch information
jemmyshin committed Jul 22, 2019
1 parent 87cb91c commit d3fbbcacf64ebe1a1e40fa3afaefac09b6eeb943
Showing with 2 additions and 1 deletion.
  1. +2 −1 gnes/preprocessor/image/
@@ -83,5 +83,6 @@ def _crop_image_reshape(self, original_image, coordinates):
return np.array(original_image.crop(coordinates).resize((self.target_img_size,

def _cal_area(self, coordinate):
def _cal_area(cls, coordinate):
return (coordinate[2] - coordinate[0]) * (coordinate[3] - coordinate[1])

0 comments on commit d3fbbca

Please sign in to comment.