Skip to content

Commit

Permalink
Cleanup chapter 4 and split with commons
Browse files Browse the repository at this point in the history
  • Loading branch information
dubreuia committed Oct 11, 2019
1 parent c3f5d46 commit 0f90d69
Show file tree
Hide file tree
Showing 19 changed files with 162 additions and 1,533 deletions.
53 changes: 50 additions & 3 deletions Chapter04/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,57 @@
# Chapter 04 - Latent space interpolation with Music VAE

TODO
In this chapter we’ll learn about the importance of continuous latent space
brought by Variational Autoencoders (VAE) and its importance in music generation
compared to standard Autoencoders (AE). We’ll use the MusicVAE model, a
hierarchical recurrent VAE, from Magenta, to sample sequences and then
interpolate between them, effectively morphing smoothly from one to another.
We'll then see how to add groove, or humanization, to an existing sequence,
using the GrooVAE model. We’ll finish by looking at the Tensorflow code used
to build the VAE model.

## Run
## Code

TODO
### [Example 1](chapter_04_example_01.py) or [notebook](notebook.ipynb)

This example shows how to sample, interpolate and humanize a drums sequence
using MusicVAE and various configurations. For the Python script,
while in the Magenta environment (`conda activate magenta`):

```bash
# Runs the example, the output files (plot, midi) will be in the "output" folder
python chapter_04_example_01.py
```

For the Jupyter notebook:

```bash
jupyter notebook notebook.ipynb
```

### [Example 2](chapter_04_example_02.py)

This example shows how to sample and interpolate a melody sequence
using MusicVAE and various configurations. For the Python script,
while in the Magenta environment (`conda activate magenta`):

```bash
# Runs the example, the output files (plot, midi) will be in the "output" folder
python chapter_04_example_02.py
```

### [Example 3](chapter_04_example_03.py)

This example shows how to sample a trio (drums, melody, bass) sequence
using MusicVAE and various configurations. For the Python script,
while in the Magenta environment
(`conda activate magenta`):

```bash
# Runs the example, the output files (plot, midi) will be in the "output" folder
python chapter_04_example_03.py
```

## TODO

```bash
# On linux
Expand Down
Empty file added Chapter04/__init__.py
Empty file.
190 changes: 0 additions & 190 deletions Chapter04/all.py

This file was deleted.

Loading

0 comments on commit 0f90d69

Please sign in to comment.