Comments (6)
Hello, @HIN0209
It's current under development, I'm still changing some things and didn't update the README file. I will work on this and let you know on how to use.
Cheers,
from gtzan.keras.
Hi @HIN0209,
I've update the project and tried to improve the description in the README. Any trouble feel free to contact me.
Cheers,
from gtzan.keras.
@Hguimaraes,
Thank you for updating. I will check how it works!
from gtzan.keras.
@Hguimaraes,
Yes, it works as shown. I have a question. Is it possible to train/test other than melspectrogram (e.g., spectrogram) by changing the code below (or else)? I could not find description of AudioUtils.
Thanks.
split the train, test and validation data in size 128x128
X_Val, y_val = AudioUtils().splitsongs_melspect(X_Val, y_val, CNN_TYPE)
X_test, y_test = AudioUtils().splitsongs_melspect(X_test, y_test, CNN_TYPE)
X_train, y_train = AudioUtils().splitsongs_melspect(X_train, y_train, CNN_TYPE)
# Construct the model
if CNN_TYPE == '1D':
cnn = ModelZoo.cnn_melspect_1D(input_shape)
elif CNN_TYPE == '2D':
cnn = ModelZoo.cnn_melspect_2D(input_shape)
from gtzan.keras.
The name convention is not good, I already have change a lot of the code... Sorrya bout that. This function splitsongs_melspect receives an array of melspectrograms and split in N pieces (In this case, 10 pieces).
To work fast and occupy few memory as possible I already read the file as melspectrograms in the file src/audiomanip/audiostruct. You can change this file but probably will need to change other parts of the code.
This repo is almost a guide for my undergraduate-thesis, a lot of code is specific for my needs and not general goals, but I would be happy to help you with something, just ask. I don't know if I will instantly answer you because I'm in the middle of my exams at university, but I will try.
I tested other structures such as spectrogram and MFCC... MFCC gave a better accuracy, (But I don't recall the parameters of the CNN) but a higher accuracy is not my only goal in this work.
from gtzan.keras.
Great answers. I do not like to bother you during the exams. Let me understand your code and librosa at this point.
Thanks a lot!
from gtzan.keras.
Related Issues (20)
- Train/Test split creation remark HOT 2
- training error no attribute 'outbound_nodes' HOT 1
- Value error.
- Model is not saving in models folder HOT 2
- model = Model(inputs=vgg16.input, outputs=top(vgg16.output)) NameError: name 'Model' is not defined HOT 4
- Why can't I reproduce the experimental results? HOT 1
- Error gtzan.data HOT 1
- I am getting this error. please help HOT 1
- [1.1-custom_cnn_2d.ipynb] model.fit_generator() generates an error.
- Hello, I have some questions HOT 1
- No backends Issue
- Where is the number 300 comming from? HOT 1
- Genre not found in axis
- module version HOT 10
- always predict "classical" in real world record wav HOT 1
- Where is evaluate_test? HOT 4
- can not evalute the test? HOT 1
- can you please provide cnn model which is saved in models folder because it is taking too much time to train the model HOT 2
- Error, Model not defined HOT 1
- missing evaluate_test ? HOT 3
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 gtzan.keras.