tarun005 / FLAVR

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

"idxs" is missing frames that videoTensor still had when using "--is_folder" #8

Closed n00mkrad closed 3 years ago

n00mkrad commented 3 years ago

I have 49 video frames, and if I check the length of videoTensor, it matches (49).

However, idxs ends up being only 46 long, resulting in the first and last frame not being interpolated.

n00mkrad commented 3 years ago

Update:

This also happens when using a video input, so --is_folder doesn't seem to be relevant here.

tarun005 commented 3 years ago

Yes, that is expected. FLAVR requires at least 4 input frame for reliable interpolation, so the boundary frames cannot be interpolated.

n00mkrad commented 3 years ago

Inserting fake entries into the beginning and end of the input file array works fine as a workaround.