Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import torch
|
|
|
2 |
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
3 |
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
4 |
os.system('wget https://raw.githubusercontent.com/TimDettmers/bitsandbytes/main/install_cuda.sh')
|
@@ -12,7 +13,7 @@ os.system('bash cuda_install.sh 117 ~/local 1')
|
|
12 |
try:
|
13 |
import detectron2
|
14 |
except:
|
15 |
-
|
16 |
# os.system('pip install git+https://github.com/facebookresearch/detectron2.git')
|
17 |
# os.system("python -m pip install detectron2==0.6 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/index.html")
|
18 |
os.system('git clone https://github.com/facebookresearch/detectron2.git --branch v0.6')
|
|
|
1 |
import torch
|
2 |
+
import os
|
3 |
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
4 |
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
5 |
os.system('wget https://raw.githubusercontent.com/TimDettmers/bitsandbytes/main/install_cuda.sh')
|
|
|
13 |
try:
|
14 |
import detectron2
|
15 |
except:
|
16 |
+
|
17 |
# os.system('pip install git+https://github.com/facebookresearch/detectron2.git')
|
18 |
# os.system("python -m pip install detectron2==0.6 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/index.html")
|
19 |
os.system('git clone https://github.com/facebookresearch/detectron2.git --branch v0.6')
|