Skip to content

Commit

Permalink
Fix for pytorch resize.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebezzam committed Nov 17, 2023
1 parent df8c925 commit 4d7ab74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waveprop/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def prepare_object_plane(
object_dim = tuple((np.round(input_dim * scaling)).astype(int))

if torch.is_tensor(obj):
object_plane = resize_torch(obj, size=object_dim)
object_plane = resize_torch(obj, size=object_dim, antialias=True)
else:
object_plane = resize(obj, shape=object_dim)

Expand Down

0 comments on commit 4d7ab74

Please sign in to comment.