tarun005 / FLAVR

Code for FLAVR: A fast and efficient frame interpolation technique.
Apache License 2.0
456 stars 69 forks source link

Unreliable FPS readout causes error #6

Closed n00mkrad closed 3 years ago

n00mkrad commented 3 years ago

When I try to interpolate a video, this error pops up:

File "interpolate.py", line 120, in <module>
    videoTensor = video_to_tensor(input_video)
  File "interpolate.py", line 101, in video_to_tensor
    fps = md["video_fps"]
KeyError: 'video_fps'

I suspect it fails to read the frame rate for some reason.

This is one of the reasons I am asking for a manual input: https://github.com/tarun005/FLAVR/issues/4

n00mkrad commented 3 years ago

As it turns out, this only happens because I mistyped the filename.

There is no error handling for invalid filenames.

n00mkrad commented 3 years ago

Fixed in my PR:

https://github.com/tarun005/FLAVR/pull/7

tarun005 commented 3 years ago

Thanks. Will review PR and merge.