Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,8 @@ import torch
|
|
| 8 |
from huggingface_hub import hf_hub_download
|
| 9 |
|
| 10 |
DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu'
|
|
|
|
|
|
|
| 11 |
model_choice = {
|
| 12 |
'SAM': None,
|
| 13 |
'HQ-SAM': None,
|
|
|
|
| 8 |
from huggingface_hub import hf_hub_download
|
| 9 |
|
| 10 |
DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu'
|
| 11 |
+
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
| 12 |
+
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
| 13 |
model_choice = {
|
| 14 |
'SAM': None,
|
| 15 |
'HQ-SAM': None,
|