Spaces:
Runtime error
Runtime error
Commit
·
12cedfe
1
Parent(s):
feb53ab
Made Changes
Browse files
app.py
CHANGED
@@ -19,16 +19,16 @@ args = DotMap()
|
|
19 |
args.deploy = 'vanilla'
|
20 |
args.arch = 'dino_small_patch16'
|
21 |
args.no_pretrain = True
|
22 |
-
args.resume = 'https://huggingface.co/ArtificialCoder02/Eurosat_Meta_3Epoch/blob/main/
|
23 |
-
args.api_key = '
|
24 |
-
args.cx = '
|
25 |
|
26 |
|
27 |
# model
|
28 |
device = 'cpu' #torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
29 |
model = get_model(args)
|
30 |
model.to(device)
|
31 |
-
checkpoint = torch.hub.load_state_dict_from_url(args.resume, map_location='
|
32 |
model.load_state_dict(checkpoint['model'], strict=True)
|
33 |
|
34 |
|
|
|
19 |
args.deploy = 'vanilla'
|
20 |
args.arch = 'dino_small_patch16'
|
21 |
args.no_pretrain = True
|
22 |
+
args.resume = 'https://huggingface.co/ArtificialCoder02/Eurosat_Meta_3Epoch/blob/main/checkpoint.pth'
|
23 |
+
args.api_key = 'hAIzaSyC5ik1DoDzUNonRnrAi3T4xP8QYtcwvHS8'
|
24 |
+
args.cx = '772f0ccc480364116'
|
25 |
|
26 |
|
27 |
# model
|
28 |
device = 'cpu' #torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
29 |
model = get_model(args)
|
30 |
model.to(device)
|
31 |
+
checkpoint = torch.hub.load_state_dict_from_url(args.resume, map_location='cuda')
|
32 |
model.load_state_dict(checkpoint['model'], strict=True)
|
33 |
|
34 |
|