Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
try:
|
2 |
import detectron2
|
3 |
except:
|
|
|
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 |
try:
|
5 |
import detectron2
|
6 |
except:
|