dmarx / video-killed-the-radio-star

Notebook and tools for end-to-end automation of music video production with generative AI
https://colab.research.google.com/github/dmarx/video-killed-the-radio-star/blob/main/Video_Killed_The_Radio_Star_Defusion.ipynb#scrollTo=oPbeyWtesAoh
MIT License
191 stars 34 forks source link

“ValueError: A 2-dimensional array must be passed.” during “Generate animation frames” and “Compile your video” #98

Open dhorne312 opened 1 year ago

dhorne312 commented 1 year ago
2B183644-AF10-4050-9903-4AA93CD7E8A8

I keep getting this error message, I’m using a M1 MacBook & I’ve tried with different videos inputs. Any fix for this?

dhorne312 commented 1 year ago

I tried again on a windows PC and I got to the “Compile your video” step and the same error shows

330BEFF1-7E3D-41BA-AAA6-637C97657417
mattpetters commented 1 year ago

If you disable optimal ordering it will succeed but the list of images needs to be transformed into the 2D array numpy expects, not sure exactly how to fix this yet

HarlanBrothers commented 1 year ago

Same error. Disabling optimal ordering did the trick, thanks @mattpetters!!

mattpetters commented 1 year ago

Same error. Disabling optimal ordering did the trick, thanks @mattpetters!!

No problem, I'm working on fixing that soon. I just need to understand the Traveling Salesman implementation they're trying to use and corral the data into the correct format. I made a fork where I'm hoping to fix this so stay tuned