Closed surisdi closed 3 years ago
Hi, how did you install pytorch and torchvision ? Could you also provide more info on the environment you are running it in?
Hi,
I installed them using the following command:
pip3 install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
As suggested in https://pytorch.org
I'm running it on Ubuntu 18.04.5 LTS. What specific information do you need about the environment?
Thanks!
Hi Could you please try installing using conda in a conda environment? pip wheels are usually delayed in updating. Inside conda, I'm unable to reproduce the said error.
Hi, after reinstalling pytorch and updating CUDA drivers, the error can't be reproduced anymore.
@surisdi @kalyanvasudev Hi, I also encounter the similar problem. Could you help me? By reinstalling pytorch via conda:
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
The problem still exists:
video_pyav = EncodedVideo.from_path(path_video, decoder='pyav') # Okay!
video_torchvision = EncodedVideo.from_path(path_video, decoder='torchvision') # segmentation fault (core dumped)
BTW, is torchvision backend much faster than pyav? Then I may still use pyav backend.
Attach my env:
Thank you for your attention!
@surisdi @kalyanvasudev Hi, I also encounter the similar problem. Could you help me? By reinstalling pytorch via conda:
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
The problem still exists:
video_pyav = EncodedVideo.from_path(path_video, decoder='pyav') # Okay! video_torchvision = EncodedVideo.from_path(path_video, decoder='torchvision') # segmentation fault (core dumped)
BTW, is torchvision backend much faster than pyav? Then I may still use pyav backend.
Attach my env:
Thank you for your attention!
By updating pyav:
conda install av -c conda-forge
My problem is solved. Thank you for your pytorchvideo repo. Excellent work. I love it.
🐛 Bugs / Unexpected behaviors
I get a
RuntimeError: No such operator video_reader::read_video_from_memory
when trying to decode a video using thetorchvision
backend.Instructions To Reproduce the Issue:
Run the following code:
Logs:
The current version of the libraries is:
pytorchvideo
->0.1.2
torch
->1.9.0+cu111
torchvision
->0.10.0+cu111
Thanks!