Spaces:
Running
on
Zero
Running
on
Zero
algohunt
commited on
Commit
·
5c64a7d
1
Parent(s):
b34cd4f
update
Browse files- app.py +5 -1
- requirements.txt +9 -6
app.py
CHANGED
@@ -45,7 +45,10 @@ import pytorch_lightning as pl
|
|
45 |
|
46 |
MAX_SEED = np.iinfo(np.int32).max
|
47 |
TMP_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmp')
|
|
|
48 |
os.makedirs(TMP_DIR, exist_ok=True)
|
|
|
|
|
49 |
|
50 |
|
51 |
|
@@ -56,6 +59,7 @@ def cache_weights(weights_dir: str) -> dict:
|
|
56 |
os.makedirs(weights_dir, exist_ok=True)
|
57 |
model_ids = [
|
58 |
"Stable-X/trellis-normal-v0-1",
|
|
|
59 |
]
|
60 |
cached_paths = {}
|
61 |
for model_id in model_ids:
|
@@ -370,7 +374,7 @@ with gr.Blocks(css="footer {visibility: hidden}") as demo:
|
|
370 |
|
371 |
if __name__ == "__main__":
|
372 |
# Download and cache the weights
|
373 |
-
|
374 |
|
375 |
hi3dgen_pipeline = Hi3DGenPipeline.from_pretrained("weights/trellis-normal-v0-1")
|
376 |
hi3dgen_pipeline.cuda()
|
|
|
45 |
|
46 |
MAX_SEED = np.iinfo(np.int32).max
|
47 |
TMP_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmp')
|
48 |
+
WEIGHTS_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'weights')
|
49 |
os.makedirs(TMP_DIR, exist_ok=True)
|
50 |
+
os.makedirs(WEIGHTS_DIR, exist_ok=True)
|
51 |
+
|
52 |
|
53 |
|
54 |
|
|
|
59 |
os.makedirs(weights_dir, exist_ok=True)
|
60 |
model_ids = [
|
61 |
"Stable-X/trellis-normal-v0-1",
|
62 |
+
"houyuanchen/lino"
|
63 |
]
|
64 |
cached_paths = {}
|
65 |
for model_id in model_ids:
|
|
|
374 |
|
375 |
if __name__ == "__main__":
|
376 |
# Download and cache the weights
|
377 |
+
cache_weights(WEIGHTS_DIR)
|
378 |
|
379 |
hi3dgen_pipeline = Hi3DGenPipeline.from_pretrained("weights/trellis-normal-v0-1")
|
380 |
hi3dgen_pipeline.cuda()
|
requirements.txt
CHANGED
@@ -1,8 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
diffusers==0.33.1
|
2 |
einops==0.8.1
|
3 |
-
flash_attn==2.8.0.post2
|
4 |
gradio==5.34.0
|
5 |
-
|
6 |
hydra-core==1.3.2
|
7 |
lightning==2.5.1.post0
|
8 |
lightning_utilities==0.14.3
|
@@ -11,18 +15,17 @@ numpy==2.3.0
|
|
11 |
omegaconf==2.3.0
|
12 |
opencv_python==4.11.0.86
|
13 |
Pillow==11.2.1
|
14 |
-
|
15 |
rich==14.0.0
|
16 |
safetensors==0.5.3
|
17 |
scikit_learn==1.7.0
|
18 |
scipy==1.15.3
|
19 |
skimage==0.0
|
20 |
spconv_cu124==2.3.8
|
21 |
-
torch==2.4.0+cu124
|
22 |
-
torchmetrics==1.7.3
|
23 |
-
torchvision==0.19.0+cu124
|
24 |
tqdm==4.67.1
|
25 |
transformers==4.46.3
|
26 |
trimesh==4.6.12
|
27 |
wandb==0.20.1
|
28 |
xformers==0.0.27.post2
|
|
|
|
|
|
1 |
+
torch==2.4.0+cu124
|
2 |
+
torchmetrics==1.7.3
|
3 |
+
torchvision==0.19.0+cu124
|
4 |
+
pytorch_lightning==2.5.1.post0
|
5 |
+
|
6 |
diffusers==0.33.1
|
7 |
einops==0.8.1
|
|
|
8 |
gradio==5.34.0
|
9 |
+
|
10 |
hydra-core==1.3.2
|
11 |
lightning==2.5.1.post0
|
12 |
lightning_utilities==0.14.3
|
|
|
15 |
omegaconf==2.3.0
|
16 |
opencv_python==4.11.0.86
|
17 |
Pillow==11.2.1
|
18 |
+
|
19 |
rich==14.0.0
|
20 |
safetensors==0.5.3
|
21 |
scikit_learn==1.7.0
|
22 |
scipy==1.15.3
|
23 |
skimage==0.0
|
24 |
spconv_cu124==2.3.8
|
|
|
|
|
|
|
25 |
tqdm==4.67.1
|
26 |
transformers==4.46.3
|
27 |
trimesh==4.6.12
|
28 |
wandb==0.20.1
|
29 |
xformers==0.0.27.post2
|
30 |
+
flash_attn==2.8.0.post2
|
31 |
+
huggingface_hub==0.33.0
|