Spaces:
Build error
Build error
dependency fixed
Browse files- app.py +9 -0
- pre-requirements.txt +0 -3
- requirements.txt +2 -3
app.py
CHANGED
@@ -14,6 +14,15 @@ import plotly.graph_objs as go
|
|
14 |
from my.utils.seed import seed_everything
|
15 |
import os
|
16 |
import wget
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
SHARED_UI_WARNING = f'''### [NOTE] Training may be very slow in this shared UI.
|
19 |
You can duplicate and use it with a paid private GPU.
|
|
|
14 |
from my.utils.seed import seed_everything
|
15 |
import os
|
16 |
import wget
|
17 |
+
import subprocess
|
18 |
+
|
19 |
+
if os.getenv('SYSTEM') == 'spaces':
|
20 |
+
subprocess.run(
|
21 |
+
'pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html'.split())
|
22 |
+
subprocess.run(
|
23 |
+
'pip install https://download.is.tue.mpg.de/icon/HF/pytorch3d-0.7.0-cp38-cp38-linux_x86_64.whl'.split())
|
24 |
+
|
25 |
+
|
26 |
|
27 |
SHARED_UI_WARNING = f'''### [NOTE] Training may be very slow in this shared UI.
|
28 |
You can duplicate and use it with a paid private GPU.
|
pre-requirements.txt
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
torch
|
2 |
-
torchvision
|
3 |
-
torchaudio
|
|
|
|
|
|
|
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
gradio
|
2 |
albumentations==1.3.0
|
3 |
opencv-contrib-python==4.3.0.36
|
4 |
imageio==2.9.0
|
@@ -31,5 +31,4 @@ git+https://github.com/openai/point-e
|
|
31 |
git+https://github.com/huggingface/diffusers
|
32 |
git+https://github.com/cloneofsimo/lora.git
|
33 |
git+https://github.com/Ir1d/image-background-remove-tool@2b68f5276d0f2e90f607c7845c60d2bddb79d5ba
|
34 |
-
accelerate
|
35 |
-
git+https://github.com/facebookresearch/pytorch3d.git@stable
|
|
|
1 |
+
gradio
|
2 |
albumentations==1.3.0
|
3 |
opencv-contrib-python==4.3.0.36
|
4 |
imageio==2.9.0
|
|
|
31 |
git+https://github.com/huggingface/diffusers
|
32 |
git+https://github.com/cloneofsimo/lora.git
|
33 |
git+https://github.com/Ir1d/image-background-remove-tool@2b68f5276d0f2e90f607c7845c60d2bddb79d5ba
|
34 |
+
accelerate
|
|