Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,4 @@
|
|
1 |
import os
|
2 |
-
import os
|
3 |
-
|
4 |
|
5 |
os.system('pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.9/index.html')
|
6 |
os.system("git clone https://github.com/AK391/Mask2Former.git")
|
@@ -8,13 +6,10 @@ os.system("git clone https://github.com/AK391/Mask2Former.git")
|
|
8 |
os.chdir("Mask2Former")
|
9 |
os.system("pip install git+https://github.com/cocodataset/panopticapi.git")
|
10 |
|
11 |
-
os.system("pwd")
|
12 |
import gradio as gr
|
13 |
# check pytorch installation:
|
14 |
import detectron2
|
15 |
from detectron2.utils.logger import setup_logger
|
16 |
-
setup_logger()
|
17 |
-
setup_logger(name="mask2former")
|
18 |
|
19 |
# import some common libraries
|
20 |
import numpy as np
|
|
|
1 |
import os
|
|
|
|
|
2 |
|
3 |
os.system('pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.9/index.html')
|
4 |
os.system("git clone https://github.com/AK391/Mask2Former.git")
|
|
|
6 |
os.chdir("Mask2Former")
|
7 |
os.system("pip install git+https://github.com/cocodataset/panopticapi.git")
|
8 |
|
|
|
9 |
import gradio as gr
|
10 |
# check pytorch installation:
|
11 |
import detectron2
|
12 |
from detectron2.utils.logger import setup_logger
|
|
|
|
|
13 |
|
14 |
# import some common libraries
|
15 |
import numpy as np
|