saneshashank commited on
Commit
c8b3e9d
·
verified ·
1 Parent(s): 6da2fc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ with open("imagenet_classes.json", "r") as f:
14
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
15
  model = resnet50(num_classes=1000, drop_path_rate=0.0, use_blurpool=True)
16
  # model.load_state_dict(torch.load("best_resnet50_imagenet_1k.pt", map_location=device))
17
- checkpoint = torch.load('best_resnet50_imagenet_1k.pt')
18
  model.load_state_dict(checkpoint['model_state_dict'])
19
  model.to(device)
20
  model.eval()
 
14
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
15
  model = resnet50(num_classes=1000, drop_path_rate=0.0, use_blurpool=True)
16
  # model.load_state_dict(torch.load("best_resnet50_imagenet_1k.pt", map_location=device))
17
+ checkpoint = torch.load('best_resnet50_imagenet_1k.pt', map_location=device)
18
  model.load_state_dict(checkpoint['model_state_dict'])
19
  model.to(device)
20
  model.eval()