Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ from detectron2.data import MetadataCatalog, DatasetCatalog
|
|
24 |
from detectron2.checkpoint import DetectionCheckpointer
|
25 |
|
26 |
cfg = get_cfg()
|
27 |
-
cfg.merge_from_file(
|
28 |
cfg.MODEL.DEVICE='cpu'
|
29 |
cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.5
|
30 |
cfg.MODEL.WEIGHTS = "model_weights/chatswood_buildings_poc.pth"
|
|
|
24 |
from detectron2.checkpoint import DetectionCheckpointer
|
25 |
|
26 |
cfg = get_cfg()
|
27 |
+
cfg.merge_from_file("model_weights/buildings_poc_cfg.yml")
|
28 |
cfg.MODEL.DEVICE='cpu'
|
29 |
cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.5
|
30 |
cfg.MODEL.WEIGHTS = "model_weights/chatswood_buildings_poc.pth"
|