Skip to content

Commit

Permalink
Fix scale to (1.0, 1.0) to avoid cropping images at all
Browse files Browse the repository at this point in the history
This fixes the segmentation now. And the results look as expected!
  • Loading branch information
anwai98 authored Jan 20, 2025
1 parent f66c6d0 commit f69eb16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_em/model/vit.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def transform_inputs(self, x):
rescale_transform=K.RandomResizedCrop(
(448, 448),
ratio=(1.0, 1.0),
scale=(0.2, 1.0),
scale=(1.0, 1.0),
resample=Resample.BICUBIC.name,
),
other_transforms=None,
Expand Down

0 comments on commit f69eb16

Please sign in to comment.