Spaces:
Build error
Build error
edits
Browse files
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 |
-
|
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 |
# ---------------------------------------
|