Spaces:
Runtime error
Runtime error
nicer
Browse files
maskrcnn_benchmark/engine/predictor_glip.py
CHANGED
|
@@ -152,7 +152,7 @@ class GLIPDemo(object):
|
|
| 152 |
aspect_ratio = width / height
|
| 153 |
new_width = int(new_height * aspect_ratio)
|
| 154 |
resized_image = cv2.resize(image, (new_width, new_height))
|
| 155 |
-
return
|
| 156 |
result = resize_image_by_height(result)
|
| 157 |
if self.show_mask_heatmaps:
|
| 158 |
return self.create_mask_montage(result, top_predictions)
|
|
|
|
| 152 |
aspect_ratio = width / height
|
| 153 |
new_width = int(new_height * aspect_ratio)
|
| 154 |
resized_image = cv2.resize(image, (new_width, new_height))
|
| 155 |
+
return resized_image
|
| 156 |
result = resize_image_by_height(result)
|
| 157 |
if self.show_mask_heatmaps:
|
| 158 |
return self.create_mask_montage(result, top_predictions)
|