gorillabus / urban-audio-classifier Goto Github PK
View Code? Open in Web Editor NEWUrban sounds classification with Covnolutional Neural Networks
License: GNU Lesser General Public License v3.0
Urban sounds classification with Covnolutional Neural Networks
License: GNU Lesser General Public License v3.0
why didnt u use 10cross valitation?
May u show that in a note book
Running 1-data-analysis.ipynb gives an error in line
helpers.play_dataset_sample(row, audio_path)
because include/helpers.py is missing
import IPython as IP
Hi,
Thank you for sharing your code. By the way, I found that in your code for get_mel_spectrogram
, there is something wrong with changing a Mel spectrogram on a decibel scale.
# Generates/extracts Log-MEL Spectrogram coefficients with LibRosa
def get_mel_spectrogram(file_path, mfcc_max_padding=0, n_fft=2048, hop_length=512, n_mels=128):
try:
# Load audio file
y, sr = librosa.load(file_path)
# Normalize audio data between -1 and 1
normalized_y = librosa.util.normalize(y)
# Generate mel scaled filterbanks
mel = librosa.feature.melspectrogram(normalized_y, sr=sr, n_mels=n_mels)
# Convert sound intensity to log amplitude:
mel_db = librosa.amplitude_to_db(abs(mel))
# Normalize between -1 and 1
normalized_mel = librosa.util.normalize(mel_db)
...
return normalized_mel
Here you are using librosa.amplitude_to_db
but you should use librosa.power_to_db
for Mel spectrograms. Because librosa.melspectrogram
returns only a power spectrogram (amplitude squared) unless you set its parameter as power=1
.
You can find details from here: https://librosa.org/doc/main/generated/librosa.feature.melspectrogram.html
Please see its examples.
And its source code here: https://librosa.org/doc/main/_modules/librosa/feature/spectral.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.