Spaces:
Build error
Build error
temp
Browse files
app.py
CHANGED
@@ -7,6 +7,8 @@ import fire_network
|
|
7 |
# Possible Scales for multiscale inference
|
8 |
scales = [2.0, 1.414, 1.0, 0.707, 0.5, 0.353, 0.25]
|
9 |
|
|
|
|
|
10 |
# Load net
|
11 |
state = torch.load('fire.pth', map_location='cpu')
|
12 |
state['net_params']['pretrained'] = None # no need for imagenet pretrained model
|
|
|
7 |
# Possible Scales for multiscale inference
|
8 |
scales = [2.0, 1.414, 1.0, 0.707, 0.5, 0.353, 0.25]
|
9 |
|
10 |
+
device = 'cpu'
|
11 |
+
|
12 |
# Load net
|
13 |
state = torch.load('fire.pth', map_location='cpu')
|
14 |
state['net_params']['pretrained'] = None # no need for imagenet pretrained model
|