YannisK commited on
Commit
ce415a7
1 Parent(s): 3333ebe
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -31,8 +31,7 @@ net_sfm = fire_network.init_network(**state['net_params']).to(device)
31
  net_sfm.load_state_dict(state['state_dict'])
32
 
33
  state2 = torch.load('fire_imagenet.pth', map_location='cpu')
34
- # state2['net_params']['pretrained'] = None # no need for imagenet pretrained model
35
- net_imagenet = fire_network.init_network(**state2['net_params']).to(device)
36
  net_imagenet.load_state_dict(state2['state_dict'])
37
 
38
  # ---------------------------------------
 
31
  net_sfm.load_state_dict(state['state_dict'])
32
 
33
  state2 = torch.load('fire_imagenet.pth', map_location='cpu')
34
+ net_imagenet = fire_network.init_network(**state['net_params']).to(device)
 
35
  net_imagenet.load_state_dict(state2['state_dict'])
36
 
37
  # ---------------------------------------