LutaoJiang commited on
Commit
e84917b
·
1 Parent(s): 55c8034
app.py CHANGED
@@ -28,11 +28,11 @@ if not UI_ONLY_MODE:
28
  )
29
  )
30
 
31
- # subprocess.run(
32
- # shlex.split(
33
- # "pip install ./extension/nvdiffrast-0.3.1+torch-py3-none-any.whl --force-reinstall --no-deps"
34
- # )
35
- # )
36
 
37
  subprocess.run(
38
  shlex.split(
 
28
  )
29
  )
30
 
31
+ subprocess.run(
32
+ shlex.split(
33
+ "pip install ./extension/nvdiffrast-0.3.1+torch-py3-none-any.whl --force-reinstall --no-deps"
34
+ )
35
+ )
36
 
37
  subprocess.run(
38
  shlex.split(
models/DiMeR/models/geometry/render/neural_render.py CHANGED
@@ -69,6 +69,7 @@ def compute_vertex_normal(v_pos, t_pos_idx):
69
 
70
 
71
  class NeuralRender(Renderer):
 
72
  def __init__(self, device='cuda', camera_model=None):
73
  super(NeuralRender, self).__init__()
74
  print(2.1)
 
69
 
70
 
71
  class NeuralRender(Renderer):
72
+ @spaces.GPU
73
  def __init__(self, device='cuda', camera_model=None):
74
  super(NeuralRender, self).__init__()
75
  print(2.1)
requirements.txt CHANGED
@@ -14,7 +14,6 @@ jaxtyping==0.2.36
14
  kiui==0.2.10
15
  mathutils==3.3.0
16
  matplotlib==3.9.2
17
- git+https://github.com/NVlabs/nvdiffrast
18
  omegaconf==2.3.0
19
  onnxruntime==1.18.0
20
  open3d==0.18.0
 
14
  kiui==0.2.10
15
  mathutils==3.3.0
16
  matplotlib==3.9.2
 
17
  omegaconf==2.3.0
18
  onnxruntime==1.18.0
19
  open3d==0.18.0