baowenbo / DAIN

Depth-Aware Video Frame Interpolation (CVPR 2019)
https://sites.google.com/view/wenbobao/dain
MIT License
8.19k stars 840 forks source link

'int' object has no attribute 'zfill' #139

Closed kindvy closed 3 years ago

kindvy commented 3 years ago

Here i try to make my old video with 3gp extension from 30 fps become 120 fps and i use ipynb version. i got these error at "ffmpeg extract - Generating individual frame PNGs from the source file" section. I don't know how to fix this error ('int' object has no attribute 'zfill').

AlphaGit commented 3 years ago

Hi! Sorry you had that issue. That seems to be an actual bug in the python notebook code. You can solve it with one of those two ways:

Option 1: turn off the seamless option. This way, the faulty code will not execute.

Option 2: in the notebook, replace this line:

  new_last_frame = f"{FRAME_INPUT_DIR}/{frame_count.zfill(5)}.png"

By this line:

  new_last_frame = f"{FRAME_INPUT_DIR}/{str(frame_count).zfill(5)}.png"

(The two spaces at the beginning of the line are important.)

I hope this helps!