Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ from detectron2.data import MetadataCatalog, DatasetCatalog
|
|
| 21 |
|
| 22 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
| 23 |
|
| 24 |
-
dist = distutils.core.run_setup("./detectron2/setup.py")
|
| 25 |
def setup_model():
|
| 26 |
cfg = get_cfg()
|
| 27 |
cfg.MODEL.DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 21 |
|
| 22 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
| 23 |
|
| 24 |
+
dist = distutils.core.run_setup("./detectron2-main/setup.py")
|
| 25 |
def setup_model():
|
| 26 |
cfg = get_cfg()
|
| 27 |
cfg.MODEL.DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|