Epoch 1 average training loss = 8.500 0%| | 0/40 [00:00 main() File "KITTI_ft.py", line 151, in main test_loss = test(imgL, imgR, disp_L) File "KITTI_ft.py", line 115, in test index = np.argwhere(true_disp > 0) File "<__array_function__ internals>", line 6, in argwhere File "/home/s.starace/.conda/envs/condaEnv/lib/python3.6/site-packages/numpy/core/numeric.py", line 584, in argwhere return transpose(nonzero(a)) File "<__array_function__ internals>", line 6, in transpose File "/home/s.starace/.conda/envs/condaEnv/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 653, in transpose return _wrapfunc(a, 'transpose', axes) File "/home/s.starace/.conda/envs/condaEnv/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 67, in _wrapfunc return _wrapit(obj, method, *args, **kwds) File "/home/s.starace/.conda/envs/condaEnv/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 44, in _wrapit result = getattr(asarray(obj), method)(*args, **kwds) File "/home/s.starace/.conda/envs/condaEnv/lib/python3.6/site-packages/numpy/core/_asarray.py", line 83, in asarray return array(a, dtype, copy=False, order=order) File "/home/s.starace/.conda/envs/condaEnv/lib/python3.6/site-packages/torch/tensor.py", line 630, in __array__ return self.numpy() TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.