cvxtz / music_genre_classification Goto Github PK
View Code? Open in Web Editor NEWmusic genre classification : LSTM vs Transformer
License: MIT License
music genre classification : LSTM vs Transformer
License: MIT License
In training part, it requires h5_name which is "rnn.h5" and "transformer.h5",
so I created h5 files with models.py using model.save(), but the following error occurs:
_________________________________________________________________
Layer (type) Output Shape Param #
=================================================================
input_1 (InputLayer) [(None, None, 128)] 0
_________________________________________________________________
bidirectional (Bidirectional (None, None, 256) 198144
_________________________________________________________________
bidirectional_1 (Bidirection (None, None, 256) 296448
_________________________________________________________________
dropout (Dropout) (None, None, 256) 0
_________________________________________________________________
global_average_pooling1d (Gl (None, 256) 0
_________________________________________________________________
dense (Dense) (None, 652) 167564
_________________________________________________________________
dense_1 (Dense) (None, 163) 106439
=================================================================
Total params: 768,595
Trainable params: 768,595
Non-trainable params: 0
_________________________________________________________________
model's layer properties are same as original post, but
File "C:\miniconda\lib\site-packages\tensorflow_core\python\framework\tensor_shape.py", line 1115, in assert_is_compatible_with
raise ValueError("Shapes %s and %s are incompatible" % (self, other))
ValueError: Shapes (256, 652) and (256, 64) are incompatible
I think these error started with wrong h5 files but I can't find way to solve these errors.
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.