How to Generate Music - Intro to Deep Learning #9

  Рет қаралды 75,318

Siraj Raval

Siraj Raval

Күн бұрын

We're going to build a music generating neural network trained on jazz songs in Keras. I'll go over the history of algorithmic generation, then we'll walk step by step through the process of how LSTM networks help us generate music.
Coding Challenge for this video:
github.com/llSourcell/How-to-...
Vishal's Winning Code:
github.com/erilyth/DeepLearni...
Michael's Runner up code:
github.com/michalpelka/How-to...
More Learning Resources:
medium.com/@shiyan/understand...
mourafiq.com/2016/05/15/predic...
magenta.tensorflow.org/2016/0...
deeplearning.net/tutorial/rnnr...
maraoz.com/2016/02/02/abc-rnn/
www.cs.cmu.edu/~music//cmsip/s...
www.hexahedria.com/2015/08/03/...
/ algorithmicmusic
Please Subscribe! And like. And comment. That's what keeps me going.
Join us in the Wizards Slack channel:
wizards.herokuapp.com/
And please support me on Patreon:
www.patreon.com/user?u=3191693
Thanks Ji-Sung Kim for the example code:
deepjazz.io
Follow me:
Twitter: / sirajraval
Facebook: / sirajology Instagram: / sirajraval Instagram: / sirajraval
Signup for my newsletter for exciting updates in the field of AI:
goo.gl/FZzJ5w
Hit the Join button above to sign up to become a member of my channel for access to exclusive content! Join my AI community: chatgptschool.io/ Sign up for my AI Sports betting Bot, WagerGPT! (500 spots available):
www.wagergpt.co

Пікірлер: 142
@jackglendenning8509
@jackglendenning8509 7 жыл бұрын
Siraj you're videos are getting better and you're starting to explain concepts so that a wider audience can understand! Just started second year of comp-sci degree but been doing ML on the side for 6months, your videos always inspire! I appreciate your work.
@SirajRaval
@SirajRaval 7 жыл бұрын
Thanks Jack! Keep it up!
@KapilYadav-90
@KapilYadav-90 7 жыл бұрын
As i can infer from your videos you are multi talented. you sings, you dance, you learn, you read and write, you make youtube and watch all the movies at the same time. My question to you is: DO YOU EVEN SLEEP, IF YES HOW MUCH?
@SirajRaval
@SirajRaval 7 жыл бұрын
Thanks Kapil! Lol i do sleep. about 6 hours a night. I JUST LOVE MAKING MACHINE LEARNING VIDEOS I WILL KEEP CRANKING THEM OUT :)
@tastelesstouch
@tastelesstouch 7 жыл бұрын
The memes in your episodes are the best!
@kapilsharma1704
@kapilsharma1704 6 жыл бұрын
I don't know ,what all you have learned.but the way you presents is terrific and can beats anyone out there
@infantraj9951
@infantraj9951 7 жыл бұрын
Siraj your intro was well edited. Keep up the good work!
@SirajRaval
@SirajRaval 7 жыл бұрын
Thanks Infant!
@phuccoiinkorea3341
@phuccoiinkorea3341 7 жыл бұрын
love this channel so much
@SirajRaval
@SirajRaval 7 жыл бұрын
Thanks Phuc!
@chrisoffersen
@chrisoffersen 7 жыл бұрын
I don't know how you do it Siraj. You make this stuff very accessible. Many thanks, once again.
@SirajRaval
@SirajRaval 7 жыл бұрын
lots of sacrifice np thx
@WiiiLo100
@WiiiLo100 7 жыл бұрын
This is Great!
@michaelbowie8315
@michaelbowie8315 7 жыл бұрын
Loved the LSTM explanation.. From 4:38 to 6:38, you could totally make this a separate video... "LSTM 100% Explained in 2 Minutes"... I have been reading a bunch of papers, articles, etc on LSTM, and this is by far the most intuitive explanation (for me at least). I wish I had seen this earlier, but it was hidden inside of this video.
@wobanda5986
@wobanda5986 7 жыл бұрын
I never understood his any video till date😇 (I watched his all video), but some day this will make sense to me that I am sure🙂
@SirajRaval
@SirajRaval 7 жыл бұрын
Yes it absoltuely will
@rafaellazo1725
@rafaellazo1725 5 жыл бұрын
love your videos Siraj
@larryteslaspacexboringlawr739
@larryteslaspacexboringlawr739 7 жыл бұрын
thank you for music deep learning video
@renanlopes9144
@renanlopes9144 7 жыл бұрын
Am I the only one who thinks those explanations are way too fast to understand? I know the video is intended to be short, but how about 15-20 min? Good job nevertheless.
@timschafer2536
@timschafer2536 5 жыл бұрын
Renan Lopes agree
@yellowbeard1
@yellowbeard1 5 жыл бұрын
He has other videos where he dives into the topic at more length. I agree that if you only look at this video it is inadequate for learning a topic like this but think of this as an introduction and overview, his in depth how to do this video is about an hour long.
@WilliamDye-willdye
@WilliamDye-willdye 7 жыл бұрын
It doesn't matter much, but I've always heard "MIDI" pronounced as "middy".
@SirajRaval
@SirajRaval 7 жыл бұрын
you're right thanks Will
@ConTejasMusic
@ConTejasMusic 7 жыл бұрын
that LSTM beat was magical!
@SirajRaval
@SirajRaval 7 жыл бұрын
Thanks Tejas!
@BrianFaure1
@BrianFaure1 7 жыл бұрын
dude you're channel is like the Rosetta Stone of machine learning
@SirajRaval
@SirajRaval 7 жыл бұрын
Thanks so much Brian!
@pakigyatuladhar
@pakigyatuladhar 6 жыл бұрын
so true!!
@easter.bunny.6
@easter.bunny.6 7 жыл бұрын
Siraj YOU ROCK!! nice work!!
@SirajRaval
@SirajRaval 7 жыл бұрын
thanks Kevin
@easter.bunny.6
@easter.bunny.6 7 жыл бұрын
but plz maybe do a tut about polyphonic music? or even how to transform your modling in mind to mathmatical modeling?
@Towzeur
@Towzeur 7 жыл бұрын
i have trouble to install preprocess library Traceback (most recent call last): File "setup.py", line 28, in import preprocess File "lib\preprocess.py", line 264 except Exception, ex: ^ SyntaxError: invalid syntax
@HelloThere-xs8ss
@HelloThere-xs8ss 6 жыл бұрын
Hey, I'm from the future. We need more veggie gardens. amazing how you do it
@MatthewHallberg
@MatthewHallberg 7 жыл бұрын
vishal batchu, wins everytime.
@jboss7820
@jboss7820 7 жыл бұрын
MatthewHallberg lol
@ayushkarnawat6817
@ayushkarnawat6817 7 жыл бұрын
its because he is probably already a data scientist at some big company and has a lot of experience
@chandrashekard.7543
@chandrashekard.7543 7 жыл бұрын
MatthewHallberg plot twist: Vishal was Siraj all this time. fight club style.
@Erilyth
@Erilyth 7 жыл бұрын
Haha :'D, I'm just a student learning how to use DL :)
@MatthewHallberg
@MatthewHallberg 7 жыл бұрын
hahaha that was too good.
@aminejadid2702
@aminejadid2702 7 жыл бұрын
awesome !
@SirajRaval
@SirajRaval 7 жыл бұрын
thanks!
@llumino1455
@llumino1455 7 жыл бұрын
SIRAJ CAN YOU PLEASE PUT THE CODE IN THE DESCRIPTION OR ON GITHUB
@FastestPodcastClips
@FastestPodcastClips 6 жыл бұрын
Where do you get data_fn from ??? NameError: name 'data_fn' is not defined
@samuelvarghese6881
@samuelvarghese6881 7 жыл бұрын
+Siraj Ravel Nicely explained about lstm man keep it up. Btw you know when you say batch size is 128 in this instance, how do you do that with your own data from like a excel sheet.
@md.shahidulislam3178
@md.shahidulislam3178 7 жыл бұрын
Hey Man why i love your video so much ;) !! >>> Nice Explanation Every time
@SirajRaval
@SirajRaval 7 жыл бұрын
Thanks!
@dmitrykarpovich7579
@dmitrykarpovich7579 6 жыл бұрын
mid E! Love your videos man!
@NightmareTV666
@NightmareTV666 7 жыл бұрын
Are the results dramatically better than RBM with a GIBBS sampler? And is the CNN parametric approach the best, but potentially intractable in higher dimensions?
@Frankthegravelrider
@Frankthegravelrider 7 жыл бұрын
Siraj, your T-Shirt is pretty good - your videos are alright too ;)
@SirajRaval
@SirajRaval 7 жыл бұрын
Fr Ya! Good to see you. Thanks!
@modelworkzseo
@modelworkzseo 7 жыл бұрын
Lol, it's pronounced "middy". Great video man, keep em coming!
@abhiksingla7274
@abhiksingla7274 7 жыл бұрын
Siraj, you are doing a great work! Can you do a video on Image Captioning using Deep Learning?
@SirajRaval
@SirajRaval 7 жыл бұрын
Thanks Abhik! I have one called build an AI writer, more soon
@bjyr
@bjyr 7 жыл бұрын
it's lit!
@SirajRaval
@SirajRaval 7 жыл бұрын
thanks Bjorn!
@MichaelRicksAherne
@MichaelRicksAherne 7 жыл бұрын
"Middy" not "Mid-eye" Otherwise flawless. :)
@WillKriski
@WillKriski 7 жыл бұрын
also meh-theeny :)
@SirajRaval
@SirajRaval 7 жыл бұрын
lol thanks!
@aidangomez4726
@aidangomez4726 7 жыл бұрын
yo man your channel is blowing up
@SirajRaval
@SirajRaval 7 жыл бұрын
yes needs to grow faster
@ConTejasMusic
@ConTejasMusic 7 жыл бұрын
Anyone notice the background music at the start is Moonlight Sonata 1st movement, but a hip hop version?
@rgrimoldi
@rgrimoldi 6 жыл бұрын
We should have gone for Hendrix instead! I definitely have to build that.
@RonoTron01
@RonoTron01 4 жыл бұрын
If I want to feed like a series of midi files into this neural network, how to do that? I have maybe a few hundred midi files of the style that I like, is this possible to use as a source?
@sukumarhonkote9936
@sukumarhonkote9936 7 жыл бұрын
can you provide the link for the preprocess library code? I am getting an import error
@timehrensberger6479
@timehrensberger6479 7 жыл бұрын
I can't figure out how to generate based on other midi files than the standard metheny piece
@roguenoir
@roguenoir 7 жыл бұрын
I'm curious if it would be legal to use music you generate this way as your own.. especially if you train the deep learning net on a commercial artist's music then use that to generate new music which you use for, say, a movie or game you make.
@HikikomoriDev
@HikikomoriDev 7 жыл бұрын
How long did it take for the computer to finalize the final music piece ?
@lesmizzle
@lesmizzle 5 жыл бұрын
What was the training data used? I missed it.
@prateekthakur4060
@prateekthakur4060 5 жыл бұрын
I don't see the code Siraj explained in the GitHub link. Can somebody help here:;)
@eumieumi8766
@eumieumi8766 7 жыл бұрын
hmm the output kinda sucks when i train it on own midis ..sure would be nice if it would train multiple times
@NoName-iz8td
@NoName-iz8td 4 жыл бұрын
can you explain please the input data, cuz for me it is difficult to transform from midi file to vector numbers :p
@vigneshsuresh3671
@vigneshsuresh3671 7 жыл бұрын
Great series mate! Can you do a video on data points extraction from text with ML .. Regex sucks :(
@owena7434
@owena7434 7 жыл бұрын
Great vid! VERY new to this stuff. so just to clarify, hope this isn't horribly wrong, the reason we need to put in an LSTM is to keep the program learning from the jazz, and not accidentally learning its own randomness?
@SirajRaval
@SirajRaval 7 жыл бұрын
Thanks Owen, LSTM helps it remember ALL the jazz it trained on, not just the most recent jazz (long short term memory)
@owena7434
@owena7434 7 жыл бұрын
Thanks Siraj! Cool stuff! I think it would be cool to explore how a machine might navigate a more complicated classical work with key changes with LSTM so the machine-generated piece has overall structure. Or even reverse engineer different composer's harmonic structures. But I'm still on the basics lol!
@Mosfet510
@Mosfet510 7 жыл бұрын
I didn't do it! It was my algorithmic counterpart, I swear!! lol Great video.
@SirajRaval
@SirajRaval 7 жыл бұрын
lol thanks Scott!
@bomb3r422
@bomb3r422 7 жыл бұрын
i started programming in python 5 months ago . i have a good idea of oop and algorithms . should i start with machine learning now or is it too early?
@y.z.6517
@y.z.6517 6 жыл бұрын
Don't touch ML at the moment, or you will hate it. Find a project that solves your problem, and work on it. Something involves parsing texts and doing maths you can understand. Then make codes reuseable and easy to maintain. At that moment, you will have experience in researching, debugging, and maintaining long and complicated codes along with someone else's libraries.
@klaudialustig3259
@klaudialustig3259 7 жыл бұрын
I used to think that Markov chains are complicated stuff. I learned that it's basically just a state machine.
@SirajRaval
@SirajRaval 7 жыл бұрын
exactly
@aseemKurhekar
@aseemKurhekar 6 жыл бұрын
In one of his videos siraj talked about how neural networks can make music from images. If some one could point me to its source it would be great 😊
@shivanasr8127
@shivanasr8127 4 жыл бұрын
i want extract pichbend from midi file can you help me?
@debarokz
@debarokz 7 жыл бұрын
Nice video.. I am planning to buy a rig for stuffs related to deep learning ..what's your system config that you use for deep learning??? will MacBook pro suffice??
@SirajRaval
@SirajRaval 7 жыл бұрын
Macbook pro works also I prefer the cloud to a dedicated rig (AWS)
@debarokz
@debarokz 7 жыл бұрын
Siraj Raval thanks bud
@tylerangert9121
@tylerangert9121 7 жыл бұрын
do you have scripts for all of your videos or are you just explaining off the top of your head? I think a big thing you can do to help make our learning experiences better is providing us with the transcripts of the videos. for me at least, having text to reference and look back to is much easier than just going back and listening to audio again (this is why i usually watch TV shows with closed captioning).
@SirajRaval
@SirajRaval 7 жыл бұрын
scripts. youtube has automatic captioning
@rhezabudiono2385
@rhezabudiono2385 7 жыл бұрын
Hey Siraj, as an undergrad should I prepare differently to be a machine learning researcher vs ML engineer? I was thinking that to be to be a researcher I should take more stats, math, physics whereas to be an engineer I should take more programming-heavy CS classes
@AkshayAradhya
@AkshayAradhya 7 жыл бұрын
Rheza Budiono yup correct
@yousofebneddin7430
@yousofebneddin7430 7 жыл бұрын
Nice shirt :) can you also provide a video on speech recognition?
@SirajRaval
@SirajRaval 7 жыл бұрын
thanks! i have one 5 videos back
@yousofebneddin7430
@yousofebneddin7430 7 жыл бұрын
Do you mean "How to Do Sentiment Analysis" ? What I meant is that the input of the Algorithm is the sound and the output is the pronounced words.
@calvin5371
@calvin5371 5 жыл бұрын
Honestly, I had to watch the video twice ... cause the first time I was just focussing on the t-shirt
@shaikrasool1316
@shaikrasool1316 6 жыл бұрын
Is it better choice to learn machine learning ai,,, in present day
@KETANRAMTEKE
@KETANRAMTEKE 7 жыл бұрын
Go back to vdo. It's more amazing than comment section :D
@MultiSciGeek
@MultiSciGeek 7 жыл бұрын
This is really confusing. Subscribed
@lxxanderfans267
@lxxanderfans267 6 жыл бұрын
this is so interesting lol
@alexhormann8931
@alexhormann8931 7 жыл бұрын
What are you doing with your hands?
@travisgoodwin6802
@travisgoodwin6802 6 жыл бұрын
Ok, let's hear it already, the music that is. Something inspired, not sounding derivative.
@sir_aken9706
@sir_aken9706 7 жыл бұрын
I have Pycharm and I'm not sure I can replicate what you did in it.
@dominiksabat
@dominiksabat 6 жыл бұрын
Briliantly explained, you should work at the university.
@diegoantoniorosariopalomin4977
@diegoantoniorosariopalomin4977 7 жыл бұрын
sinesthesia as an artificial nn (natural sinestesia is also on neural networks ) , in other works real life theme music
@SirajRaval
@SirajRaval 7 жыл бұрын
good insight! i have sinesthesia
@diegoantoniorosariopalomin4977
@diegoantoniorosariopalomin4977 7 жыл бұрын
Siraj Raval you do ?! .... oh that explains why you break your videos with musical numbers that explain the topic
@raj-cp5nu
@raj-cp5nu 7 жыл бұрын
2:20 I press play, so so true haha
@WilsonMar1
@WilsonMar1 7 жыл бұрын
[2:32] Coding begins
@EduardoRenz
@EduardoRenz 7 жыл бұрын
Cool Can you make a ML that learns to make music from a real music audio? Analysing a whole album of a band?
@RitobanRoyChowdhury
@RitobanRoyChowdhury 7 жыл бұрын
You would need it midi format. Analyzing mp3s is a much harder problem (because they store audio data rather than notes)
@danieltv123
@danieltv123 7 жыл бұрын
there are some people already doing it from real audio, search on youtube
@sumantkanala
@sumantkanala 7 жыл бұрын
Hmm. this challenge is a tad bit harder to understand than previous ones!
@SirajRaval
@SirajRaval 7 жыл бұрын
indeed but give it a try! You just might win
@easter.bunny.6
@easter.bunny.6 7 жыл бұрын
next time maybe polyphonic music?
@RicardoMV95
@RicardoMV95 6 жыл бұрын
Pat Metheny is a guitarist not a pianist. I’m not sure if you chose to make piano pieces based on his music or if you didn’t realize that he is a guitarist. Regardless, cool video!
@mallikarjun480
@mallikarjun480 7 жыл бұрын
What's the best way to start Artificial Intelligence.
@SirajRaval
@SirajRaval 7 жыл бұрын
my videos
@OrthoGunner
@OrthoGunner 7 жыл бұрын
you should go work at OpenAI!
@SirajRaval
@SirajRaval 7 жыл бұрын
they are my homies
@ili626
@ili626 6 жыл бұрын
Pat Metheny (ma - thee - nee)
@sukumarh3646
@sukumarh3646 7 жыл бұрын
I liked your video but why didn't you cite the original code in the videos or at least in the description? The original code is available here github.com/jisungk/deepjazz
@SirajRaval
@SirajRaval 7 жыл бұрын
just added it thanks
@aarondinesh3657
@aarondinesh3657 6 жыл бұрын
When I try to run the code this error pops up: Traceback (most recent call last): File "generator.py", line 21, in from music21 import * ImportError: No module named music21
@sleep4103
@sleep4103 7 жыл бұрын
Who else had a Frank Jev Cee association :'D
@nevokrien95
@nevokrien95 5 жыл бұрын
Lstm usualy have atention gates
@jiexun9679
@jiexun9679 7 жыл бұрын
Hi Siraj, I attempted the challenge but results are not very good for now. Here's my code anyway: github.com/jiexunsee/rudimentary-ai-composer Thank you for the video!
@SirajRaval
@SirajRaval 7 жыл бұрын
great job Jie for going for it
@berrym8901
@berrym8901 7 жыл бұрын
The music generated by RNN is good... Well, anyway, it's better than Kenny G! Poor Kenny G~ :p
@SirajRaval
@SirajRaval 7 жыл бұрын
pwnt
@anthonyparks505
@anthonyparks505 6 жыл бұрын
There's a lot of good info in this video, but you move so incredibly quickly that it is impossible to follow. The pacing is frenetic...
@kracejiciAlchymista
@kracejiciAlchymista 5 жыл бұрын
Noooo, Kenny G`s goood man.
@simthology5770
@simthology5770 3 жыл бұрын
CODE SHMODE WHEN ARE YOU NERDS GONNA MAKE A GUI FOR CRYING OUT LOUD?
@neelpendharkar4793
@neelpendharkar4793 6 жыл бұрын
You need help. Thanks tho
@Acc22-mr1qk
@Acc22-mr1qk Жыл бұрын
I didnt understand anything
@gawni1612
@gawni1612 7 жыл бұрын
Lost me at mid eye
@ukaszOgan01
@ukaszOgan01 6 жыл бұрын
Can you speak more slow please? :)
@cryhav0k2112
@cryhav0k2112 6 жыл бұрын
Love all your videos but you should talk slower, it gets a little overwhelming for people who aren't so advanced
How to Generate Video - Intro to Deep Learning #15
9:41
Siraj Raval
Рет қаралды 47 М.
How to Do Mathematics Easily - Intro to Deep Learning #4
9:51
Siraj Raval
Рет қаралды 204 М.
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 28 МЛН
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 10 МЛН
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 28 МЛН
Generating Songs With Neural Networks (Neural Composer)
12:22
CodeParade
Рет қаралды 516 М.
How to Make a Text Summarizer - Intro to Deep Learning #10
9:06
Siraj Raval
Рет қаралды 247 М.
Andrew Ng's Secret to Mastering Machine Learning - Part 1 #shorts
0:48
How to Learn from Little Data - Intro to Deep Learning #17
8:53
Siraj Raval
Рет қаралды 56 М.
Song Generator
12:02
Siraj Raval
Рет қаралды 49 М.
But what is a neural network? | Chapter 1, Deep learning
18:40
3Blue1Brown
Рет қаралды 16 МЛН
Project Magenta: Music and Art with Machine Learning (Google I/O '17)
25:58
Google for Developers
Рет қаралды 40 М.
Computer evolves to generate baroque music!
18:13
carykh
Рет қаралды 2,4 МЛН
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 28 МЛН