tarun005 / FLAVR

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

custom video,output video size changed #53

Closed T0L0ve closed 1 year 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 1 year 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.