HongFangzhou commited on
Commit
6fcfbfd
1 Parent(s): 7c8c180

update app.py

Browse files
Files changed (2) hide show
  1. app.py +0 -3
  2. 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
- --extra-index-url https://download.pytorch.org/whl/cu113
2
- torch==1.12.0+cu113
3
- torchvision==0.13.0+cu113
4
- torchaudio==0.12.0
5
  pytorch-lightning
6
  numpy
7
  tqdm
8
  PyYAML
9
  git+https://github.com/openai/CLIP.git
10
- einops==0.6.1
11
- huggingface-hub==0.16.4
12
- imageio==2.31.0
13
- imageio-ffmpeg==0.4.8
14
- importlib-resources==6.1.0
15
- ipdb==0.13.13
16
- ipython==8.12.2
17
- jedi==0.19.0
18
- kiwisolver==1.4.5
19
- kornia==0.6.0
20
- lpips==0.1.4
21
- matplotlib==3.7.3
22
- matplotlib-inline==0.1.6
23
- omegaconf==2.3.0
24
- open-clip-torch==2.20.0
25
- opencv-python==4.7.0.72
26
- parso==0.8.3
27
- pathtools==0.1.2
28
- pexpect==4.8.0
29
- pickleshare==0.7.5
30
- pillow==9.5.0
31
- prompt-toolkit==3.0.39
32
- protobuf==3.20.3
33
- psutil==5.9.5
34
- ptyprocess==0.7.0
35
- pure-eval==0.2.2
36
- pygments==2.16.1
37
- pymcubes==0.1.4
38
- pyparsing==3.1.1
39
- pytorch-fid==0.3.0
40
- pytorch-msssim==1.0.0
41
- regex==2023.6.3
42
- safetensors==0.3.3
43
- scipy==1.10.1
44
- sentencepiece==0.1.99
45
- sentry-sdk==1.25.0
46
- setproctitle==1.3.2
47
- smmap==5.0.0
48
- stack-data==0.6.2
49
- timm==0.9.7
50
- tokenizers==0.12.1
51
- tomli==2.0.1
52
- traitlets==5.9.0
53
  transformers
54
- trimesh==4.0.2
55
- vit-pytorch==1.2.2
56
- wandb==0.15.3
57
- wcwidth==0.2.6
58
- zipp==3.17.0
 
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