umuthopeyildirim
commited on
Commit
•
7b4afc3
1
Parent(s):
3fbdaa2
Fix ValueError in Resize class
Browse files- iebins/util/transfrom.py +3 -2
iebins/util/transfrom.py
CHANGED
@@ -160,8 +160,9 @@ class Resize(object):
|
|
160 |
new_height = self.constrain_to_multiple_of(scale_height * height)
|
161 |
new_width = self.constrain_to_multiple_of(scale_width * width)
|
162 |
else:
|
163 |
-
raise ValueError(
|
164 |
-
|
|
|
165 |
|
166 |
return (new_width, new_height)
|
167 |
|
|
|
160 |
new_height = self.constrain_to_multiple_of(scale_height * height)
|
161 |
new_width = self.constrain_to_multiple_of(scale_width * width)
|
162 |
else:
|
163 |
+
raise ValueError(
|
164 |
+
f"resize_method {self.__resize_method} not implemented"
|
165 |
+
)
|
166 |
|
167 |
return (new_width, new_height)
|
168 |
|