JiantaoLin commited on
Commit
c9c26bc
·
1 Parent(s): e9ede6f
Files changed (1) hide show
  1. app.py +17 -16
app.py CHANGED
@@ -9,6 +9,23 @@ subprocess.run(
9
  "pip install -e ./diffusers --force-reinstall"
10
  )
11
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  import base64
14
  import re
@@ -37,23 +54,7 @@ import numpy as np
37
  from video_render import render_video_from_obj
38
 
39
  access_token = os.getenv("HUGGINGFACE_TOKEN")
40
- subprocess.run(
41
- shlex.split(
42
- "pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py310_cu121_pyt240/download.html"
43
- )
44
- )
45
-
46
- subprocess.run(
47
- shlex.split(
48
- "pip install ./extension/nvdiffrast-0.3.1+torch-py3-none-any.whl --force-reinstall --no-deps"
49
- )
50
- )
51
 
52
- subprocess.run(
53
- shlex.split(
54
- "pip install ./extension/renderutils_plugin-0.1.0-cp310-cp310-linux_x86_64.whl --force-reinstall --no-deps"
55
- )
56
- )
57
 
58
  # download cudatoolkit
59
  def install_cuda_toolkit():
 
9
  "pip install -e ./diffusers --force-reinstall"
10
  )
11
  )
12
+ subprocess.run(
13
+ shlex.split(
14
+ "pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py310_cu121_pyt240/download.html"
15
+ )
16
+ )
17
+
18
+ subprocess.run(
19
+ shlex.split(
20
+ "pip install ./extension/nvdiffrast-0.3.1+torch-py3-none-any.whl --force-reinstall --no-deps"
21
+ )
22
+ )
23
+
24
+ subprocess.run(
25
+ shlex.split(
26
+ "pip install ./extension/renderutils_plugin-0.1.0-cp310-cp310-linux_x86_64.whl --force-reinstall --no-deps"
27
+ )
28
+ )
29
 
30
  import base64
31
  import re
 
54
  from video_render import render_video_from_obj
55
 
56
  access_token = os.getenv("HUGGINGFACE_TOKEN")
 
 
 
 
 
 
 
 
 
 
 
57
 
 
 
 
 
 
58
 
59
  # download cudatoolkit
60
  def install_cuda_toolkit():