igashov commited on
Commit
8fd5e3f
1 Parent(s): 7aa6a0f

Check device

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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