Spaces:
Runtime error
Runtime error
Update backend.py
Browse files- backend.py +1 -1
backend.py
CHANGED
@@ -32,7 +32,7 @@ from detectron2.structures import Instances
|
|
32 |
tree_cfg = get_cfg()
|
33 |
tree_cfg.merge_from_file("tree_model_weights/treev2_cfg.yml")
|
34 |
tree_cfg.MODEL.DEVICE='cpu'
|
35 |
-
tree_cfg.MODEL.WEIGHTS = "tree_model_weights/
|
36 |
tree_cfg.MODEL.ROI_HEADS.NUM_CLASSES = 2
|
37 |
tree_predictor = DefaultPredictor(tree_cfg)
|
38 |
|
|
|
32 |
tree_cfg = get_cfg()
|
33 |
tree_cfg.merge_from_file("tree_model_weights/treev2_cfg.yml")
|
34 |
tree_cfg.MODEL.DEVICE='cpu'
|
35 |
+
tree_cfg.MODEL.WEIGHTS = "tree_model_weights/treev2_9999.pth"
|
36 |
tree_cfg.MODEL.ROI_HEADS.NUM_CLASSES = 2
|
37 |
tree_predictor = DefaultPredictor(tree_cfg)
|
38 |
|