YulianSa commited on
Commit
2336000
·
1 Parent(s): 1800753
Files changed (1) hide show
  1. app.py +4 -8
app.py CHANGED
@@ -13,14 +13,10 @@ os.makedirs("./ckpt", exist_ok=True)
13
  # download ViT-H SAM model into ./ckpt
14
  subprocess.call(["wget", "-q", "https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth", "-O", "./ckpt/sam_vit_h_4b8939.pth"])
15
 
16
- subprocess.call(
17
- [
18
- "pip",
19
- "install",
20
- "package/nvdiffrast-0.3.1.torch-cp310-cp310-linux_x86_64.whl",
21
- "--force-reinstall",
22
- "--no-deps"
23
- ]
24
  )
25
 
26
  from infer_api import InferAPI
 
13
  # download ViT-H SAM model into ./ckpt
14
  subprocess.call(["wget", "-q", "https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth", "-O", "./ckpt/sam_vit_h_4b8939.pth"])
15
 
16
+ subprocess.run(
17
+ shlex.split(
18
+ "pip install package/nvdiffrast-0.3.1.torch-cp310-cp310-linux_x86_64.whl"
19
+ )
 
 
 
 
20
  )
21
 
22
  from infer_api import InferAPI