Comments (4)
Hi there.
To be honest I don't know the answer, I can only say what I have done and speculate a little. My hope is that more people like you will try with different datasets and help us all understand better!
I have found that it works best with electronic music and my guess is that it is useful to have entire songs chopped up into samples. I think of these as "augmentations" in the same way as you might use images taken from different angles to train an image model.
I can tell you for sure that trying to compensate for lacking data with more epochs will definitely not work well. The model will just overfit to the little data it has and, at best, just memorize it. For reference, I used about 400 songs - perhaps you could slice the 50 songs into 5 second samples starting from 0 seconds, 1 seconds, .... 4 seconds. That might help.
from audio-diffusion.
Thanks for the clear response! That definitely helps, in that I didn't think about overlapping samples being 'acceptable' from a dataset perspective. I'll definitely try that.
I am curious how the Mel spectrograms are generated in a 'naive' approach (I.E. when I was first playing around with it, I wasn't careful and fed Mel the entire audio file, but with your suggested parameters of 64x64 resolution). Does it split the song up into equivalent # of samples, and my custom scripting/sample creation is duplicative, or is it compressing a 3.5 minute song into a tiny window and compressing away all of the detail?
from audio-diffusion.
The script automatically chops it up into slices. If you want to do the augmentation I suggested, you could create additional input files by using something like ffmpeg
to chop off the first 1 second, 2 second etc. But take into account the length in time your 64x64 spectrogram converts back to (use the test_mel
notebook to play around with the parameters before training any models). I warn you that 64x64 will not get great results. You might want to try training on Colab - there is a starter notebook for this train_model
although I haven't adapted it to push the models to hub (hint: install git lfs on Colab).
from audio-diffusion.
Thank you for the guidance! I'll definitely play around and explore expanded spectrograms.
from audio-diffusion.
Related Issues (20)
- Increasing input size HOT 4
- how does the audio_to_images.py file work? HOT 3
- Whether the longer music sample is the repetition of a shorted sample? HOT 1
- NameError: name 'transformers' is not defined upon running model via Gradio HOT 2
- Dataset constriants HOT 16
- High fidelity training? HOT 3
- Training own music samples? HOT 1
- Can I input audio file then generate image HOT 2
- Numpy Error HOT 1
- AttributeError: 'AutoencoderKL' object has no attribute 'sample_size' HOT 3
- teticio/audio-diffusion-256 is really good HOT 1
- multi-gpu training HOT 1
- [Little Feedback] Thank you! :) HOT 2
- is it possible to use the train_unet.py script as a regular ldm? HOT 2
- whats the difference between 256 and 512 dataset HOT 1
- Duration of generated audio HOT 4
- WARNING: audio_to_images: No valid audio files were found error! HOT 3
- Questions on conditional generations HOT 6
- Music generation conditioned on text and music HOT 2
- Request ... No GUI ??? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audio-diffusion.