Spaces:
Runtime error
Runtime error
fix: var name
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ transforms = T.Compose(
|
|
15 |
|
16 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
17 |
|
18 |
-
|
19 |
|
20 |
model = DINO(batch_size_per_device=32, num_classes=1000).to(device)
|
21 |
model.load_state_dict(torch.load("./bin/model.ckpt", map_location=device)["state_dict"])
|
|
|
15 |
|
16 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
17 |
|
18 |
+
dataset = load_dataset("ethz/food101")
|
19 |
|
20 |
model = DINO(batch_size_per_device=32, num_classes=1000).to(device)
|
21 |
model.load_state_dict(torch.load("./bin/model.ckpt", map_location=device)["state_dict"])
|