Drexubery commited on
Commit
c737dc1
1 Parent(s): dcab25a
Files changed (2) hide show
  1. app.py +2 -10
  2. requirements.txt +3 -1
app.py CHANGED
@@ -2,16 +2,8 @@ import os
2
  import torch
3
  import sys
4
 
5
- pyt_version_str=torch.__version__.split("+")[0].replace(".", "")
6
- version_str="".join([
7
- f"py3{sys.version_info.minor}_cu",
8
- torch.version.cuda.replace(".",""),
9
- f"_pyt{pyt_version_str}"
10
- ])
11
- print(version_str)
12
- os.system('pip install iopath')
13
- os.system(f'pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/{version_str}/download.html')
14
- # os.system('wget https://download.europe.naverlabs.com/ComputerVision/DUSt3R/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth -P checkpoints/')
15
 
16
  import gradio as gr
17
  import random
 
2
  import torch
3
  import sys
4
 
5
+ # os.system('pip install iopath')
6
+ # os.system(f'pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py39_cu117_pyt200/download.html')
 
 
 
 
 
 
 
 
7
 
8
  import gradio as gr
9
  import random
requirements.txt CHANGED
@@ -39,4 +39,6 @@ starlette==0.38.2
39
  tifffile==2024.8.24
40
  yarl==1.9.4
41
  spaces
42
- huggingface_hub
 
 
 
39
  tifffile==2024.8.24
40
  yarl==1.9.4
41
  spaces
42
+ huggingface_hub
43
+ iopath
44
+ --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py39_cu117_pyt200/download.html