Git Product home page Git Product logo

speechemotionrecognition-paddlepaddle's Issues

运行eval.py程序报错

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的格式之后,就报了错,想知道原因是什么?求解

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.