Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ from detectron2.data import MetadataCatalog
|
|
25 |
model_path = "https://huggingface.co/dbmdz/detectron2-model/resolve/main/model_final.pth"
|
26 |
|
27 |
cfg = get_cfg()
|
28 |
-
cfg.merge_from_file("./
|
29 |
cfg.MODEL.ROI_HEADS.NUM_CLASSES = 2
|
30 |
cfg.MODEL.WEIGHTS = model_path
|
31 |
|
|
|
25 |
model_path = "https://huggingface.co/dbmdz/detectron2-model/resolve/main/model_final.pth"
|
26 |
|
27 |
cfg = get_cfg()
|
28 |
+
cfg.merge_from_file("./faster_rcnn_R_50_FPN_3x.yaml")
|
29 |
cfg.MODEL.ROI_HEADS.NUM_CLASSES = 2
|
30 |
cfg.MODEL.WEIGHTS = model_path
|
31 |
|