Spaces:
Running
on
Zero
Running
on
Zero
env
Browse files- .gitattributes +1 -0
- app.py +5 -1
- custom_rasterizer-0.1-cp310-cp310-linux_x86_64.whl +3 -0
- install.sh +0 -6
.gitattributes
CHANGED
@@ -34,3 +34,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
*.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
*.png filter=lfs diff=lfs merge=lfs -text
|
37 |
+
*.whl filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import os
|
|
|
2 |
import spaces
|
3 |
import subprocess
|
4 |
def install_cuda_toolkit():
|
@@ -16,7 +17,10 @@ def install_cuda_toolkit():
|
|
16 |
)
|
17 |
os.environ["TORCH_CUDA_ARCH_LIST"] = "8.0;8.6"
|
18 |
install_cuda_toolkit()
|
19 |
-
|
|
|
|
|
|
|
20 |
import time
|
21 |
import uuid
|
22 |
import torch
|
|
|
1 |
import os
|
2 |
+
import shlex
|
3 |
import spaces
|
4 |
import subprocess
|
5 |
def install_cuda_toolkit():
|
|
|
17 |
)
|
18 |
os.environ["TORCH_CUDA_ARCH_LIST"] = "8.0;8.6"
|
19 |
install_cuda_toolkit()
|
20 |
+
print("cd step1x3d_texture/differentiable_renderer/ && bash compile_mesh_painter.sh")
|
21 |
+
os.system("cd step1x3d_texture/differentiable_renderer/ && bash compile_mesh_painter.sh")
|
22 |
+
print('install custom')
|
23 |
+
subprocess.run(shlex.split("pip install custom_rasterizer-0.1-cp310-cp310-linux_x86_64.whl"), check=True)
|
24 |
import time
|
25 |
import uuid
|
26 |
import torch
|
custom_rasterizer-0.1-cp310-cp310-linux_x86_64.whl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1dc5bea62f7ef924b9f58722b9f7634501b05af2b9507e736c256d6b2b9d90fc
|
3 |
+
size 4674364
|
install.sh
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
nvcc -V
|
2 |
-
cd step1x3d_texture/custom_rasterizer
|
3 |
-
python setup.py install
|
4 |
-
cd ../differentiable_renderer
|
5 |
-
python setup.py install
|
6 |
-
cd ../../
|
|
|
|
|
|
|
|
|
|
|
|
|
|