FLAVR icon indicating copy to clipboard operation
FLAVR copied to clipboard

KeyError: 'video_fps'

Open kubinka0505 opened this issue 2 years ago • 1 comments

After processing a short 25 FPS video with the !python interpolate.py --input_video "$VIDEO" --factor 2 --load_model FLAVR_2x.pth command, I've got an error:

Traceback (most recent call last):
  File "/content/FLAVR/interpolate.py", line 130, in <module>
    videoTensor = video_to_tensor(input_video)
  File "/content/FLAVR/interpolate.py", line 111, in video_to_tensor
    fps = md["video_fps"]
KeyError: 'video_fps'

Any way to fix it?

kubinka0505 avatar Nov 03 '23 21:11 kubinka0505

Looks like it has to do something with the versions of torchvision.io. Can you try to match the versions recommended in the repo and let me know if the problem persists?

tarun005 avatar Nov 09 '23 22:11 tarun005