YannisK commited on
Commit
3333ebe
·
1 Parent(s): b3806d2
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +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
 
 
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