You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using torchvision backend I receive the error:
/home/alp/Desktop/slowfast-with-torchvision/SlowFast/slowfast/datasets/decoder.py:273: UserWarning: The given NumPy array is not writable, and PyTorch does not support non-writable tensors. This means writing to this tensor will result in undefined behavior. You may want to copy the array to protect its data or make it writable before converting it to a tensor. This type of warning will be suppressed for the rest of this program. (Triggered internally at /opt/conda/conda-bld/pytorch_1666642991888/work/torch/csrc/utils/tensor_numpy.cpp:199.)
I am using
pytorch=1.13.0
torchvision=0.14.0
ffmpeg=4.2
In order to fix this problem, the line, should be fixed to: video_tensor = torch.from_numpy(np.frombuffer(np.array(video_handle), dtype=np.uint8))
When I made the above change, I no longer receive the warning.
The text was updated successfully, but these errors were encountered:
When using torchvision backend I receive the error:
I am using
In order to fix this problem, the line, should be fixed to:
video_tensor = torch.from_numpy(np.frombuffer(np.array(video_handle), dtype=np.uint8))
When I made the above change, I no longer receive the warning.
The text was updated successfully, but these errors were encountered: