Spaces:
Runtime error
Runtime error
yucornetto
commited on
Commit
•
f7c79e5
1
Parent(s):
f0a46b7
init for demo
Browse filesChange-Id: I6dae178e7087968dd60dafb4a76f22c01daa4cad
app.py
CHANGED
@@ -11,7 +11,6 @@ os.system("pip install git+https://github.com/cocodataset/panopticapi.git")
|
|
11 |
|
12 |
import gradio as gr
|
13 |
# check pytorch installation:
|
14 |
-
import detectron2
|
15 |
from detectron2.utils.logger import setup_logger
|
16 |
from contextlib import ExitStack
|
17 |
# import some common libraries
|
@@ -20,9 +19,8 @@ import cv2
|
|
20 |
import torch
|
21 |
import itertools
|
22 |
# import some common detectron2 utilities
|
23 |
-
from detectron2 import model_zoo
|
24 |
from detectron2.config import get_cfg
|
25 |
-
from detectron2.utils.visualizer import
|
26 |
from detectron2.data import MetadataCatalog
|
27 |
from detectron2.projects.deeplab import add_deeplab_config
|
28 |
|
|
|
11 |
|
12 |
import gradio as gr
|
13 |
# check pytorch installation:
|
|
|
14 |
from detectron2.utils.logger import setup_logger
|
15 |
from contextlib import ExitStack
|
16 |
# import some common libraries
|
|
|
19 |
import torch
|
20 |
import itertools
|
21 |
# import some common detectron2 utilities
|
|
|
22 |
from detectron2.config import get_cfg
|
23 |
+
from detectron2.utils.visualizer import ColorMode, random_color
|
24 |
from detectron2.data import MetadataCatalog
|
25 |
from detectron2.projects.deeplab import add_deeplab_config
|
26 |
|