fix(framepack): remove broken torchvision.io.video monkey-patch

torchvision 0.26 removed the torchvision.io.video submodule entirely
(only image I/O remains). The monkey-patch in install_requirements
(`torchvision.io.video.av = av`) was attempting to swap PyAV into a
torchvision-internal that no longer exists, raising AttributeError on
every FramePack run. The patch is fully vestigial against modern
torchvision; PyAV is still installed by `install('av')`, and the
sdnext save path uses PyAV directly via av.open().
This commit is contained in:
CalamitousFelicitousness
2026-04-25 21:15:50 +01:00
parent ce92c574c7
commit 47e78cdbab
-3
View File
@@ -18,9 +18,6 @@ def rename(src:str, dst:str):
def install_requirements(attention:str='SDPA'):
install('av')
import av
import torchvision
torchvision.io.video.av = av
if attention == 'Xformers':
log.debug('FramePack install: xformers')
install('xformers')