Spaces:
Runtime error
Runtime error
HongFangzhou
commited on
Commit
β’
6fcfbfd
1
Parent(s):
7c8c180
update app.py
Browse files- app.py +0 -3
- requirements.txt +51 -52
app.py
CHANGED
@@ -58,10 +58,8 @@ if os.path.exists(local_ckpt):
|
|
58 |
ckpt = local_ckpt
|
59 |
else:
|
60 |
ckpt = hf_hub_download(repo_id="hongfz16/3DTopia", filename="model.safetensors")
|
61 |
-
print("download finish")
|
62 |
configs = OmegaConf.load(config)
|
63 |
os.makedirs("tmp", exist_ok=True)
|
64 |
-
print("download finish")
|
65 |
|
66 |
import sys
|
67 |
import traceback
|
@@ -70,7 +68,6 @@ try:
|
|
70 |
if ckpt.endswith(".ckpt"):
|
71 |
model = get_obj_from_str(configs.model["target"]).load_from_checkpoint(ckpt, map_location='cpu', strict=False, **configs.model.params)
|
72 |
elif ckpt.endswith(".safetensors"):
|
73 |
-
print("download finish")
|
74 |
model = get_obj_from_str(configs.model["target"])(**configs.model.params)
|
75 |
print("download finish")
|
76 |
model_ckpt = load_file(ckpt)
|
|
|
58 |
ckpt = local_ckpt
|
59 |
else:
|
60 |
ckpt = hf_hub_download(repo_id="hongfz16/3DTopia", filename="model.safetensors")
|
|
|
61 |
configs = OmegaConf.load(config)
|
62 |
os.makedirs("tmp", exist_ok=True)
|
|
|
63 |
|
64 |
import sys
|
65 |
import traceback
|
|
|
68 |
if ckpt.endswith(".ckpt"):
|
69 |
model = get_obj_from_str(configs.model["target"]).load_from_checkpoint(ckpt, map_location='cpu', strict=False, **configs.model.params)
|
70 |
elif ckpt.endswith(".safetensors"):
|
|
|
71 |
model = get_obj_from_str(configs.model["target"])(**configs.model.params)
|
72 |
print("download finish")
|
73 |
model_ckpt = load_file(ckpt)
|
requirements.txt
CHANGED
@@ -1,58 +1,57 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
torchaudio==0.12.0
|
5 |
pytorch-lightning
|
6 |
numpy
|
7 |
tqdm
|
8 |
PyYAML
|
9 |
git+https://github.com/openai/CLIP.git
|
10 |
-
einops
|
11 |
-
huggingface-hub
|
12 |
-
imageio
|
13 |
-
imageio-ffmpeg
|
14 |
-
importlib-resources
|
15 |
-
ipdb
|
16 |
-
ipython
|
17 |
-
jedi
|
18 |
-
kiwisolver
|
19 |
-
kornia
|
20 |
-
lpips
|
21 |
-
matplotlib
|
22 |
-
matplotlib-inline
|
23 |
-
omegaconf
|
24 |
-
open-clip-torch
|
25 |
-
opencv-python
|
26 |
-
parso
|
27 |
-
pathtools
|
28 |
-
pexpect
|
29 |
-
pickleshare
|
30 |
-
pillow
|
31 |
-
prompt-toolkit
|
32 |
-
protobuf
|
33 |
-
psutil
|
34 |
-
ptyprocess
|
35 |
-
pure-eval
|
36 |
-
pygments
|
37 |
-
pymcubes
|
38 |
-
pyparsing
|
39 |
-
pytorch-fid
|
40 |
-
pytorch-msssim
|
41 |
-
regex
|
42 |
-
safetensors
|
43 |
-
scipy
|
44 |
-
sentencepiece
|
45 |
-
sentry-sdk
|
46 |
-
setproctitle
|
47 |
-
smmap
|
48 |
-
stack-data
|
49 |
-
timm
|
50 |
-
tokenizers
|
51 |
-
tomli
|
52 |
-
traitlets
|
53 |
transformers
|
54 |
-
trimesh
|
55 |
-
vit-pytorch
|
56 |
-
wandb
|
57 |
-
wcwidth
|
58 |
-
zipp
|
|
|
1 |
+
torch
|
2 |
+
torchvision
|
3 |
+
torchaudio
|
|
|
4 |
pytorch-lightning
|
5 |
numpy
|
6 |
tqdm
|
7 |
PyYAML
|
8 |
git+https://github.com/openai/CLIP.git
|
9 |
+
einops
|
10 |
+
huggingface-hub
|
11 |
+
imageio
|
12 |
+
imageio-ffmpeg
|
13 |
+
importlib-resources
|
14 |
+
ipdb
|
15 |
+
ipython
|
16 |
+
jedi
|
17 |
+
kiwisolver
|
18 |
+
kornia
|
19 |
+
lpips
|
20 |
+
matplotlib
|
21 |
+
matplotlib-inline
|
22 |
+
omegaconf
|
23 |
+
open-clip-torch
|
24 |
+
opencv-python
|
25 |
+
parso
|
26 |
+
pathtools
|
27 |
+
pexpect
|
28 |
+
pickleshare
|
29 |
+
pillow
|
30 |
+
prompt-toolkit
|
31 |
+
protobuf
|
32 |
+
psutil
|
33 |
+
ptyprocess
|
34 |
+
pure-eval
|
35 |
+
pygments
|
36 |
+
pymcubes
|
37 |
+
pyparsing
|
38 |
+
pytorch-fid
|
39 |
+
pytorch-msssim
|
40 |
+
regex
|
41 |
+
safetensors
|
42 |
+
scipy
|
43 |
+
sentencepiece
|
44 |
+
sentry-sdk
|
45 |
+
setproctitle
|
46 |
+
smmap
|
47 |
+
stack-data
|
48 |
+
timm
|
49 |
+
tokenizers
|
50 |
+
tomli
|
51 |
+
traitlets
|
52 |
transformers
|
53 |
+
trimesh
|
54 |
+
vit-pytorch
|
55 |
+
wandb
|
56 |
+
wcwidth
|
57 |
+
zipp
|