Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Jul 7, 2023
1 parent 28a97a1 commit bb4608c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions references/classification/presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ def get_module(use_v2):
# We need a protected import to avoid the V2 warning in case just V1 is used
if use_v2:
import torchvision.transforms.v2

return torchvision.transforms.v2
else:
import torchvision.transforms

return torchvision.transforms


Expand Down

0 comments on commit bb4608c

Please sign in to comment.