Spidartist
commited on
Commit
·
393b535
1
Parent(s):
b44e693
Update app.py
Browse files
app.py
CHANGED
@@ -61,12 +61,11 @@ class_to_idx = {idx: cls for idx, cls in enumerate(classes)}
|
|
61 |
train_transforms = torchvision.transforms.Compose(
|
62 |
[
|
63 |
torchvision.transforms.ToTensor(),
|
64 |
-
torchvision.transforms.Resize((
|
65 |
CMYKToRGB(),
|
66 |
]
|
67 |
)
|
68 |
|
69 |
-
tf = Compose([torchvision.transforms.Resize((64, 64), antialias=True)])
|
70 |
|
71 |
model = ViTIJEPA(64, 4, 3, 64, 8, 8, len(classes))
|
72 |
model.load_state_dict(torch.load("vit_ijepa_ant_1.pt", map_location=torch.device('cpu')))
|
|
|
61 |
train_transforms = torchvision.transforms.Compose(
|
62 |
[
|
63 |
torchvision.transforms.ToTensor(),
|
64 |
+
torchvision.transforms.Resize((64, 64), antialias=True),
|
65 |
CMYKToRGB(),
|
66 |
]
|
67 |
)
|
68 |
|
|
|
69 |
|
70 |
model = ViTIJEPA(64, 4, 3, 64, 8, 8, len(classes))
|
71 |
model.load_state_dict(torch.load("vit_ijepa_ant_1.pt", map_location=torch.device('cpu')))
|