Comments (6)
ataya have you got the 70% accuracy with this model?
from speech-emotion-analyzer.
Hello @Ataya95, you have not loaded the saved model before running this code. See cell no 137 where the model is loaded and then used in the live demo.
from speech-emotion-analyzer.
Solved
Thank you for replying! much appreciated.
from speech-emotion-analyzer.
im getting this error as well can you help with this as well? thank you!
ValueError Traceback (most recent call last)
in
----> 1 cnnhistory=model.fit(x_traincnn, y_train, batch_size=16, epochs=700, validation_data=(x_testcnn, y_test))
F:\Installed Softwares\Anaconda\lib\site-packages\keras\engine\training.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, **kwargs)
950 sample_weight=sample_weight,
951 class_weight=class_weight,
--> 952 batch_size=batch_size)
953 # Prepare validation data.
954 do_validation = False
F:\Installed Softwares\Anaconda\lib\site-packages\keras\engine\training.py in _standardize_user_data(self, x, y, sample_weight, class_weight, check_array_lengths, batch_size)
787 feed_output_shapes,
788 check_batch_axis=False, # Don't enforce the batch size.
--> 789 exception_prefix='target')
790
791 # Generate sample-wise weight values given the sample_weight
and
F:\Installed Softwares\Anaconda\lib\site-packages\keras\engine\training_utils.py in standardize_input_data(data, names, shapes, check_batch_axis, exception_prefix)
136 ': expected ' + names[i] + ' to have shape ' +
137 str(shape) + ' but got array with shape ' +
--> 138 str(data_shape))
139 return data
140
ValueError: Error when checking target: expected activation_20 to have shape (10,) but got array with shape (5,)
from speech-emotion-analyzer.
@Ataya95 , No you don't need to download all the audio files. You just need to load the saved model and then just upload your audio file. It will automatically clip it to 4 seconds and those extracted features will be fed to the model to predict the emotions.
The error you are getting is related to the model building step where changed some parameter related to input size in the activation_20 layer.
from speech-emotion-analyzer.
Thank you so much
from speech-emotion-analyzer.
Related Issues (20)
- model accuracy
- Recommendations for Replicability HOT 3
- Error on JupiterLab HOT 2
- getting RawData missing Error HOT 7
- getting an error in this state Getting the features of audio files using librosa
- ValueError: Incomplete wav chunk
- Inference code? HOT 2
- AttributeError:'list' object has no attribute'items'
- ValueError: Shapes (None, 4) and (None, 10) are incompatible HOT 2
- ERRROR : 'feeling_list' is not defined
- Libra Not working?
- Can you share the paper you published with reference to this project
- data
- requirements.txt HOT 2
- Mfcc
- wrong extraction of features HOT 1
- Please Share the Data
- Dataset HOT 3
- list index out of range
- ValueError: Shapes (None, 11) and (None, 10) are incompatible HOT 1
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 speech-emotion-analyzer.