Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Deep Learning for Music and Art

Deep Learning for Music and Art

A talk at DevFest Seattle 2018. Discussed deep learning for music art, and walked through how to generate images with DCGAN.

Margaret Maynard-Reid

November 03, 2018
Tweet

More Decks by Margaret Maynard-Reid

Other Decks in Technology

Transcript

  1. @margaretmz | #MachineLearning #GDE | #DevFest18 | #DevFestStories Topics •

    Intro ◦ AI/ML/Deep Learning/Computer Vision ◦ Examples of deep learning for music & art ◦ Tools for deep learning and TensorFlow • Generating handwritten digits with DCGAN 3
  2. @margaretmz | #MachineLearning #GDE | #DevFest18 | #DevFestStories AI vs.

    ML vs. Deep Learning Artificial Intelligence Machine Learning Deep Learning: 5 5 - Computer Vision - NLP ….
  3. @margaretmz | #MachineLearning #GDE | #DevFest18 | #DevFestStories Examples of

    deep learning NSynth - make music with deep learning 6 Computer Vision • Image classification - is this a cat? • Object detection - self driving car • Generating new images Generating new images using generative adversarial networks (GANs) Is this a cat?
  4. @margaretmz | #MachineLearning #GDE | #DevFest18 | #DevFestStories Deep learning

    for music and art • Project magenta (link) • Arts and machine intelligence (link) • Google’s AI-powered Piano Genie lets anyone improvise perfectly by bashing buttons (link) • AI for music composition, Siraj YouTube (link) • Playing a game of GANstruction (link) • Machine Learning for Musicians & Artists, Kadenze (link) • Generating Classical Music with Neural Networks, Floydhub (link) 7
  5. @margaretmz | #MachineLearning #GDE | #DevFest18 | #DevFestStories TensorFlow model

    building APIs TensorFlow is a deep learning framework for both research & production Write TensorFlow code in C++, Python, Java, R, Go, SWIFT, JavaScript Deploy to CPU, GPU, TPU, Mobile, Android Things, Raspberry Pi tf.* tf.layers tf.keras Custom Estimator Premade Estimator ← Low level ← mid level ← high level ← model in a box ← distributed execution, tf serving 8
  6. @margaretmz | #MachineLearning #GDE | #DevFest18 | #DevFestStories TensorFlow learning

    resources Tensorflow.org Deep learning with Python by Francois Chollet TensorFlow on Youtube TensorFlow on Twitter #AskTensorFlow #TensorFlowMeets Collection of interactive ML examples (blogpost | website) TensorFlow Dev Summit Blog.tensorflow.org 9
  7. @margaretmz | #MachineLearning #GDE | #DevFest18 | #DevFestStories Google Colab

    10 colab.research.google.com/ • Jupyter Notebook running on Google’s VM in the cloud • Free GPU and TPU! • TensorFlow is already installed • Save and share from your Drive • Save directly to GitHub Check out my blogpost on Colab, and TensorFlow team’s blog on Colab
  8. @margaretmz | #MachineLearning #GDE | #DevFest18 | #DevFestStories Generative Adversarial

    Networks (GANs) Introduced by Ian Goodfellow in 2014 • Adversarial: two networks competing in a zero-sum game • Generator – creates fake images ◦ Input: vector z of random noises ◦ Output: a fake image • Discriminator – a regular CNN that classifies whether the images is real or fake DCGAN is one type of GANs 12
  9. @margaretmz | #MachineLearning #GDE | #DevFest18 | #DevFestStories Walk through

    Colab tutorial Steps to take: 1. Download MNIST datasets 2. Define the models: generator and discrimitor 3. Define the loss function and optimizer 4. Set up GANs 5. Train the GANs 6. Generate the images! bit.ly/dcgan-tutorial 13
  10. @margaretmz | #MachineLearning #GDE | #DevFest18 | #DevFestStories Thank you!

    14 Follow me on Twitter, Medium or GitHub to learn more about Deep learning, TensorFlow and Android @margaretmz @margaretmz margaretmz