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