tarun005 / FLAVR

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

custom video,output video size changed #53

Closed T0L0ve closed 11 months ago

T0L0ve commented 1 year ago

Hi, When I used custom video test interpolate.py I found that the video size had changed.The input size is(960,540) and the output size is (960,536).This is where I find the problem downscale = int(downscale * 8) resizes = 8 *( H // downscale), 8 *( W // downscale) image So I changed the code like this resizes = (8 * H // downscale), (8 * W // downscale). But it has an error. image How can I fix this?

tarun005 commented 11 months ago

The model expects fixed size inputs, and hence renders fixed size outputs. You can add a resize operation after the generation to fix the issue.