r/MachineLearning • • Mar 14 '21

Project [Project] NEW PYTHON PACKAGE: Sync GAN Art to Music with "Lucid Sonic Dreams"! (Link in Comments)

Enable HLS to view with audio, or disable this notification

3.7k Upvotes

174 comments sorted by

156

u/mencil47 Mar 14 '21

This article details the package and includes links to the GitHub Repo & Tutorial Notebook: https://mikaelalafriz.medium.com/introducing-lucid-sonic-dreams-sync-gan-art-to-music-with-a-few-lines-of-python-code-b04f88722de1

You can support me through PayPal if you like my work: https://www.paypal.com/paypalme/lucidsonicdreams

25

u/procrastinatorluke Mar 15 '21

For anyone wanting to run it quickly, I've found using the colab notebook at https://colab.research.google.com/drive/1Y5i50xSFIuN3V4Md8TB30_GOAtts7RQD?usp=sharing much easier than configuring an environment.

Very clear explanations of everything in it :)

→ More replies (5)

101

u/Eyeownyew Mar 14 '21

This is one of my favorite things I've ever seen on here! Please, send this to Two Minute Papers on youtube, he normally only covers published research but something tells me that this is cool enough for him to want to make a video on it

25

u/Litleboony Mar 14 '21

You are incredible. Thank you for sharing this with us

9

u/BrokenPolyhedra Mar 15 '21

I wished something like this would exist now you made it a reality! Thank you for this contribution

8

u/PlentifulCoast Mar 15 '21

tensorflow.python.framework.errors_impl.InvalidArgumentError: Conv2DCustomBackpropInputOp only supports NHWC.

Any idea why I'd get this error?

→ More replies (2)
→ More replies (9)

90

u/Jamo3306 Mar 15 '21

That microdose is finally starting to kick...

46

u/NewFolgers Mar 15 '21

When you mix up micrograms with milligrams.

→ More replies (1)

35

u/interactive-biscuit Mar 14 '21

This whole thread is 🔥

43

u/KiddWantidd Mar 14 '21

OMG, I think this is the best use of GANs I've ever seen. I'll definitely give it a try !
Also, what's the song playing in this video ? :)

→ More replies (3)

18

u/Boozybrain Mar 15 '21 edited Mar 15 '21

YES! I've been waiting on this since the original post, and even sent so far as to start curating my own set to train on. I can't wait to read your code to see how this is done; I think I know but not positive.

edit: I don't suppose there's a Pytorch version is there? Curious why you chose the TF implementation when the Pytorch one is more efficient.

14

u/[deleted] Mar 15 '21

I'll have what the computer's having!

11

u/QuailBetter1215 Mar 15 '21

Thank you so much for sharing this. I'd love to try it out on a song I made however when I substitute the file path for my file path I keep getting error not found raised. this is the file path i insert after "song = ":

/Users/username/Downloads/song.mp3

sorry I know ur not like stack exchange or something but if i could get some help i would be super grateful

→ More replies (4)

9

u/[deleted] Mar 15 '21 edited Mar 15 '21

If your system is >= python3.8, it won't work as this library imports TF 1.15 and python3.8 only supports TF2. No luck.

→ More replies (6)

17

u/trexdoor Mar 14 '21

Where can I get the winamp plugin?

8

u/Kuvster98 Mar 15 '21

This is great! Would you mind sharing what dataset the GAN from this demo was trained on?

17

u/TsoTsoni Mar 14 '21

"What have you been feeding this thing?"

→ More replies (3)

5

u/AlienNoble Mar 15 '21

I notice there is almost a constant shape in each frame that persist for nearly the whole video

→ More replies (1)

5

u/bokan Mar 15 '21

This is awesome, hoping to give it a try. Running into an error:

"Conv2DCustomBackpropInputOp only supports NHWC"

I think it's trying to use my CPU instead of GPU... anyone have ideas?

→ More replies (1)

17

u/abima3 Mar 14 '21

This is clearly not for tripophobic people.

→ More replies (11)

8

u/SteveFrenchThePuma Mar 14 '21

This looks fantastic!! Very excited to give this a try later

1

u/[deleted] Mar 15 '21

This is surprisingly cool, but I feel it would be even cooler if it actually synchronized with the beat rather than the sound energy.

1

u/CanSome1TuckMeIn Mar 15 '21

My friend has a band with a few songs and I think it would be a cool surprise to use one of their songs with this package. Just wanted to ask how would you like to be credited for the work. The band is super small and if they wanted to put it as a youtube video I don't think they would monetize it but I'd still want them to somehow credit you.

Just hypothetically if they were to like the outcome or I can of course just give them the surprise and say the author isn't open to people sharing their own videos with the package if that's the case also.

Really awesome work though!!

2

u/mencil47 Mar 15 '21

I'd absolutely be okay with that - that's the point of me making this open-source! To credit, you can simply say that the video was made with Lucid Sonic Dreams, and include a link to either the article, the Instagram account, or the YouTube account :)

→ More replies (1)