Skip to content

Commit

Permalink
fix Image.resize return
Browse files Browse the repository at this point in the history
  • Loading branch information
hnyu committed May 9, 2024
1 parent 6598231 commit b4aefcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alf/summary/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def resize(self, height=None, width=None, interploation=cv2.INTER_NEAREST):
"""
if width is not None and height is not None:
self._img = cv2.resize(self._img, dsize=(width, height))
return
return self
if width is not None:
scale = float(width) / self._img.shape[1]
elif height is not None:
Expand Down

0 comments on commit b4aefcf

Please sign in to comment.