baowenbo / DAIN

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

Error running demo_MiddleBury_slowmotion.py too many indices for array #106

Closed andkonstan closed 4 years ago

andkonstan commented 4 years ago

Hi! Thanks for reading. When I am trying to rundemo_MiddleBury_slowmotion.py I get the following error:

Traceback (most recent call last): File "demo_MiddleBuryslowmotion.py", line 156, in intPaddingLeft: intPaddingLeft+intWidth], (1, 2, 0)) for item in y] File "demo_MiddleBuryslowmotion.py", line 156, in intPaddingLeft: intPaddingLeft+intWidth], (1, 2, 0)) for item in y] IndexError: too many indices for array: array is 3-dimensional, but 4 were indexed

Thanks for your help!

andkonstan commented 4 years ago

I run the demo with the wrong command the correct one is: CUDA_VISIBLE_DEVICES=0 python demo_MiddleBury_slowmotion.py --netName DAIN_slowmotion --time_step 0.25