Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,9 +9,16 @@ import torchvision.transforms as transforms
|
|
| 9 |
from net.dornet import Net
|
| 10 |
from net.dornet_ddp import Net_ddp
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
# init
|
| 13 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
| 14 |
-
print(device)
|
| 15 |
net = Net(tiny_model=False).to(device)
|
| 16 |
model_ckpt_map = {
|
| 17 |
"RGB-D-D": "./checkpoints/RGBDD.pth",
|
|
|
|
| 9 |
from net.dornet import Net
|
| 10 |
from net.dornet_ddp import Net_ddp
|
| 11 |
|
| 12 |
+
|
| 13 |
+
print("=" * 50)
|
| 14 |
+
print(f"CUDA available: {torch.cuda.is_available()}")
|
| 15 |
+
print(f"torch version: {torch.__version__}")
|
| 16 |
+
print(f"CUDA version: {torch.version.cuda}")
|
| 17 |
+
print(f"mmcv version: {mmcv.__version__}")
|
| 18 |
+
print("=" * 50)
|
| 19 |
+
|
| 20 |
# init
|
| 21 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
|
|
|
| 22 |
net = Net(tiny_model=False).to(device)
|
| 23 |
model_ckpt_map = {
|
| 24 |
"RGB-D-D": "./checkpoints/RGBDD.pth",
|