huanngzh commited on
Commit
586143c
·
verified ·
1 Parent(s): e0b15cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -23,7 +23,9 @@ from mvadapter.utils import get_orthogonal_camera, make_image_grid, tensor_to_im
23
 
24
  # install others
25
  subprocess.run("pip install spandrel==0.4.1 --no-deps", shell=True, check=True)
26
-
 
 
27
 
28
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
29
  DTYPE = torch.float16
 
23
 
24
  # install others
25
  subprocess.run("pip install spandrel==0.4.1 --no-deps", shell=True, check=True)
26
+ subprocess.run("mkdir -p /tmp/extensions", shell=True, check=True)
27
+ subprocess.run("git clone https://github.com/NVlabs/nvdiffrast.git /tmp/extensions/nvdiffrast", shell=True, check=True)
28
+ subprocess.run("pip install /tmp/extensions/nvdiffrast", shell=True, check=True)
29
 
30
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
31
  DTYPE = torch.float16