Open 1359347500cwc opened 3 years ago
Please provide the full stacktrace.
Thanks for your reply!
Here is the full stacktrace
/home/cwc/RMNet/RMNet/utils/data_transforms.py:49: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
optical_flows = torch.from_numpy(np.array(optical_flows)).float().permute(0, 3, 1, 2)
/home/cwc/RMNet/RMNet/utils/data_transforms.py:49: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
optical_flows = torch.from_numpy(np.array(optical_flows)).float().permute(0, 3, 1, 2)
Traceback (most recent call last):
File "runner.py", line 111, in
here is the error point in line 49
So I add a dtype to change the type of numpy.object_ to 'float32' but it report a new error
**i also try to change the numpy to list then use the torch.LongTensor to convert it to tensor it report this error***
I want to know whether it is the problem with my optical flow files?
I have the same question
when I load Davis_dataset it always reports "Caught TypeError in DataLoader worker process 0. " in test.py", line 78, "in test_net for idx, (video_name, n_objects, frames, masks, optical_flows) in enumerate(test_data_loader):"