Spaces:
Running
on
L40S
Running
on
L40S
update
Browse files
app.py
CHANGED
@@ -9,6 +9,10 @@ from PIL import Image
|
|
9 |
import os
|
10 |
import subprocess
|
11 |
|
|
|
|
|
|
|
|
|
12 |
# def install_cuda_toolkit():
|
13 |
# # CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run"
|
14 |
# CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda_12.2.0_535.54.03_linux.run"
|
|
|
9 |
import os
|
10 |
import subprocess
|
11 |
|
12 |
+
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 |
# def install_cuda_toolkit():
|
17 |
# # CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run"
|
18 |
# CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda_12.2.0_535.54.03_linux.run"
|