Spaces:
Running
on
A10G
Running
on
A10G
Check device
Browse files
app.py
CHANGED
@@ -21,6 +21,7 @@ parser.add_argument('--ip', type=str, default=None)
|
|
21 |
args = parser.parse_args()
|
22 |
|
23 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
24 |
os.makedirs("results", exist_ok=True)
|
25 |
os.makedirs("models", exist_ok=True)
|
26 |
|
|
|
21 |
args = parser.parse_args()
|
22 |
|
23 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
24 |
+
print(f'Device: {device}')
|
25 |
os.makedirs("results", exist_ok=True)
|
26 |
os.makedirs("models", exist_ok=True)
|
27 |
|