pytorch / vision

Datasets, Transforms and Models specific to Computer Vision
https://pytorch.org/vision
BSD 3-Clause "New" or "Revised" License
16.16k stars 6.95k forks source link

torchvision is restricted to ffmpeg-4 on conda #8697

Open bschindler opened 2 days ago

bschindler commented 2 days ago

🐛 Describe the bug

torchvision is retricted to ffmpeg-4 on conda currently. This makes it impossible for me to upgrade my environment to newer versions of torch. The reason is that I need additional libraries which depend on newer versions of ffmpeg. ffmpeg-5 was released in 2022 so it's no surprise that some packages depend on it (or newer).

I saw in the commit log that the reason is a build failure, so I have mild hopes that this is something that could be worked around?

Versions

Given the output of the script and the nature of the issue, this is likely meaningless. I am currently using [conda] torchvision 0.16.2 py310_cpu pytorch I can go a bit higher, but not to where I need to (which is 0.19/0.20)

NicolasHug commented 5 hours ago

Hi @bschindler , sorry for the inconvenience. We aim to consolidate pytorch video decoding capabilities within https://github.com/pytorch/torchcodec, and we'll soon be deprecating video decoding in torchvision. So unfortunately, this isn't something we'll fix within torchvision. I encourage you to give torchcodec a try though, it is not pinned against any ffmpeg version, you can run it against ffmpeg 4, 5, 6, or 7.

bschindler commented 1 hour ago

Thank you for your answer. We are actually not in need of the ffmpeg functionality but rather on the other more core functionality of torchvision. Deprecation sounds like its gonna stay for a while until its removed which essentially tells me that I am blocked from updating until this functionality is gone? Do you have a rough timeframe in mind on how much time I am looking at?

NicolasHug commented 1 hour ago

:disappointed: Sorry. Is there a chance you can install from pip instead of installing from conda?