ArtificialCoder02 commited on
Commit
12cedfe
·
1 Parent(s): feb53ab

Made Changes

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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/best.pth'
23
- args.api_key = 'AIzaSyAFkOGnXhy-2ZB0imDvNNqf2rHb98vR_qY'
24
- args.cx = '06d75168141bc47f1'
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='cpu')
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