Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
resolve bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tchaton committed Dec 1, 2021
1 parent a2c5034 commit 9c3d408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flash/image/style_transfer/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def default_transforms(self) -> Optional[Dict[str, Callable]]:
),
)
if self.predicting:
return dict(per_sample_transform=nn.Sequential(T.Resize(self.image_size), T.ToTensor()))
return dict(per_sample_transform=T.Compose([T.Resize(self.image_size), T.ToTensor()]))
# Style transfer doesn't support a validation or test phase, so we return nothing here
return None

Expand Down

0 comments on commit 9c3d408

Please sign in to comment.