Spaces:
Running
Running
fix the mim install (hopefully)
Browse files- app.py +7 -1
- requirements.txt +0 -3
app.py
CHANGED
@@ -1,5 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
import cv2
|
4 |
from PIL import Image
|
5 |
import numpy as np
|
@@ -7,7 +13,7 @@ import numpy as np
|
|
7 |
from animeinsseg import AnimeInsSeg, AnimeInstances
|
8 |
from animeinsseg.anime_instances import get_color
|
9 |
|
10 |
-
|
11 |
|
12 |
if not os.path.exists("models"):
|
13 |
os.mkdir("models")
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
import os
|
4 |
+
|
5 |
+
os.system("mim install mmengine")
|
6 |
+
os.system('mim install "mmcv>=2.0.0"')
|
7 |
+
os.system("mim install mmdet")
|
8 |
+
|
9 |
import cv2
|
10 |
from PIL import Image
|
11 |
import numpy as np
|
|
|
13 |
from animeinsseg import AnimeInsSeg, AnimeInstances
|
14 |
from animeinsseg.anime_instances import get_color
|
15 |
|
16 |
+
|
17 |
|
18 |
if not os.path.exists("models"):
|
19 |
os.mkdir("models")
|
requirements.txt
CHANGED
@@ -10,6 +10,3 @@ gradio
|
|
10 |
torch
|
11 |
torchvision
|
12 |
openmim
|
13 |
-
mmengine
|
14 |
-
mmcv>=2.0.0
|
15 |
-
mmdet
|
|
|
10 |
torch
|
11 |
torchvision
|
12 |
openmim
|
|
|
|
|
|