Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,18 +21,18 @@ from pylab import imshow, imsave
|
|
21 |
|
22 |
|
23 |
import detectron2_repo as detectron2
|
24 |
-
from detectron2.utils.logger import setup_logger
|
25 |
setup_logger()
|
26 |
|
27 |
import numpy as np
|
28 |
import cv2
|
29 |
import torch
|
30 |
|
31 |
-
from detectron2 import model_zoo
|
32 |
-
from detectron2.engine import DefaultPredictor
|
33 |
-
from detectron2.config import get_cfg
|
34 |
-
from detectron2.utils.visualizer import Visualizer, ColorMode
|
35 |
-
from detectron2.data import MetadataCatalog
|
36 |
coco_metadata = MetadataCatalog.get("coco_2017_val")
|
37 |
|
38 |
# import PointRend project
|
|
|
21 |
|
22 |
|
23 |
import detectron2_repo as detectron2
|
24 |
+
from detectron2_repo.detectron2.utils.logger import setup_logger
|
25 |
setup_logger()
|
26 |
|
27 |
import numpy as np
|
28 |
import cv2
|
29 |
import torch
|
30 |
|
31 |
+
from detectron2_repo.detectron2 import model_zoo
|
32 |
+
from detectron2_repo.detectron2.engine import DefaultPredictor
|
33 |
+
from detectron2_repo.detectron2.config import get_cfg
|
34 |
+
from detectron2_repo.detectron2.utils.visualizer import Visualizer, ColorMode
|
35 |
+
from detectron2_repo.detectron2.data import MetadataCatalog
|
36 |
coco_metadata = MetadataCatalog.get("coco_2017_val")
|
37 |
|
38 |
# import PointRend project
|