yeyupiaoling / speechemotionrecognition-paddlepaddle Goto Github PK
View Code? Open in Web Editor NEW语音感情识别
License: Apache License 2.0
语音感情识别
License: Apache License 2.0
for x_val, y_val in zip(x.flatten(), y.flatten()):
c = cm[y_val][x_val] / (np.sum(cm[:, x_val]) + 1e-6)
# 忽略值太小的
if c < 1e-4:continue
plt.text(x_val, y_val, "%0.2f" % (c,), color='red', fontsize=15, va='center', ha='center')
报错内容
Traceback (most recent call last):
File "D:\SpeechEmotionRecognition-Pytorch-master\SpeechEmotionRecognition-Pytorch-master\eval.py", line 71, in
evaluate()
File "D:\SpeechEmotionRecognition-Pytorch-master\SpeechEmotionRecognition-Pytorch-master\eval.py", line 66, in evaluate
plot_confusion_matrix(cm=cm, save_path='output/log/混淆矩阵_eval.png', class_labels=class_labels, show=False)
File "D:\SpeechEmotionRecognition-Pytorch-master\SpeechEmotionRecognition-Pytorch-master\utils\utility.py", line 31, in plot_confusion_matrix
c = cm[y_val][x_val] / (np.sum(cm[:, x_val]) + 1e-6)
IndexError: index 5 is out of bounds for axis 0 with size 5
index = magnitudes[:, 1].argmax()
IndexError: index 1 is out of bounds for axis 1 with size 1
我把音频文件名改成了300_12_32.wav的格式之后,就报了错,想知道原因是什么?求解
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.