Coder Social home page Coder Social logo

gtzan.py about gtzan.keras HOT 6 CLOSED

hguimaraes avatar hguimaraes commented on July 24, 2024
gtzan.py

from gtzan.keras.

Comments (6)

Hguimaraes avatar Hguimaraes commented on July 24, 2024

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.

Hguimaraes avatar Hguimaraes commented on July 24, 2024

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.

HIN0209 avatar HIN0209 commented on July 24, 2024

@Hguimaraes,
Thank you for updating. I will check how it works!

from gtzan.keras.

HIN0209 avatar HIN0209 commented on July 24, 2024

@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.

Hguimaraes avatar Hguimaraes commented on July 24, 2024

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.

HIN0209 avatar HIN0209 commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.