Spaces:
Runtime error
Runtime error
update app
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ if __name__ == '__main__':
|
|
111 |
with open('config.yaml') as f:
|
112 |
PARAMS = yaml.load(f, Loader=SafeLoader)
|
113 |
print(PARAMS)
|
114 |
-
model = WeedModel.load_from_checkpoint("model/epoch=08.ckpt", params=PARAMS)
|
115 |
model.eval()
|
116 |
|
117 |
transform = transforms.Compose([
|
|
|
111 |
with open('config.yaml') as f:
|
112 |
PARAMS = yaml.load(f, Loader=SafeLoader)
|
113 |
print(PARAMS)
|
114 |
+
model = WeedModel.load_from_checkpoint("model/epoch=08.ckpt", params=PARAMS, map_location=torch.device('cpu'))
|
115 |
model.eval()
|
116 |
|
117 |
transform = transforms.Compose([
|