Videos

Build an AI Composer – Machine Learning for Hackers #2



Siraj Raval

This video will get you up and running with your first AI composer in just 10 lines of Python. The app can compose british folk songs after training on an existing folk dataset.

The code for this video is here:
https://github.com/llSourcell/AI_Composer

I created a Slack channel for us, sign up here:
https://wizards.herokuapp.com/

This is ‘a’ way to generate music, it’s not necessarily the absolute best way. Another attempt I really like is this one since it can generate not just monophonic music, but polyphonic music as well:

http://www.hexahedria.com/2015/08/03/composing-music-with-recurrent-neural-networks/

Tensorflow install instructions here:
https://www.tensorflow.org/versions/r0.8/get_started/os_setup.html#pip-installation

In a future video, I’ll discuss how to easily use cloud GPU computing. Likely using www.fomoro.com

I recently created a Patreon page. If you like my videos, feel free to help support my effort here!:
https://www.patreon.com/user?ty=h&u=3191693

Much more to come so please subscribe, like, and comment.
Follow me:
Twitter: https://twitter.com/sirajraval
Facebook: https://www.facebook.com/sirajology Instagram: https://www.instagram.com/sirajraval/ Instagram: https://www.instagram.com/sirajraval/
Signup for my newsletter for exciting updates in the field of AI:
https://goo.gl/FZzJ5w
Hit the Join button above to sign up to become a member of my channel for access to exclusive content!

Source

Similar Posts

37 thoughts on “Build an AI Composer – Machine Learning for Hackers #2
  1. The output of this code is really nice! i have no idea if its over fitting or not …but its enjoyable music ….can i input my own midis? i tried and it didn't work so i wonder.

  2. im very new to ML…can anyone tell me how do i make a dataset…that is….if i want to feed my program the music i made , how do i do that?

  3. I have a mistake , like this:
    Traceback (most recent call last):
    File "C:UsersWINDesktopMachineLearning.py", line 3, in <module>
    import nottingham_util
    ModuleNotFoundError: No module named 'nottingham_util'
    Where can I download this?
    Thank for all!

  4. >>> urllib.urlretrieve(url, "dataset.zip")
    Traceback (most recent call last):
    File "<pyshell#8>", line 1, in <module>
    urllib.urlretrieve(url, "dataset.zip")
    AttributeError: module 'urllib' has no attribute 'urlretrieve'

  5. at first these videos got me so hyped to learn it….but now I'm so disappointed by these videos because it seems to all be taken from someone else's idea/project and not even changed. If you try to customize it at all things fall apart. 🙁
    I'm half convinced there's so many holes in the videos as traps to challenge you to find the answer. I really wish these tutorials weren't put together so……..sloppily. If the code is perfect at the time of release at least mention how you think it could change or whatever. My brain needs to learn.

  6. Love your videos, your energy & your way of teaching. But the music that was made isn´t making the billboards tomorrow I am afraid. Which tells me, there is more to music then just math, all though I agree we can model it etc…

  7. Traceback (most recent call last):
    File "C:/Users/User/Desktop/Pyhton/AIMusic Composer.py", line 3, in <module>
    import nottingham_util
    ModuleNotFoundError: No module named 'nottingham_util'……………………showing me this error…how can i solve it

  8. For the noobs: I have been trying to run the code for 4 days. There are some things that the noobs should know before starting to code this. These are the significant problems I had:
    1. You should install the required tensorflow version. Otherwise the code does not work. (The official site does not have the required version so you have to install from github.)
    2. Know your directories
    3. Use the required python and update your operating system. I have been trying to make this work using python 3. but turns out it is written in python 2. I have wasted a lot of time trying to figure out what was wrong. Also most of the installing did not work because my operating system was not up to date

Comments are closed.

WP2Social Auto Publish Powered By : XYZScripts.com