xionghc / Facial-Expression-Recognition

Facial-Expression-Recognition in TensorFlow. Detecting faces in video and recognize the expression(emotion).
GNU General Public License v3.0
628 stars 189 forks source link

错误IndexError: list index out of range #48

Open Ryan1366 opened 4 years ago

Ryan1366 commented 4 years ago

你好,我是使用main,py运行,将amazingkelly.jpeg图像使用vaild模型进行测试,首先将图像重新裁剪为(2304,1484),然而在model.py最后一行print(file,EMOTIONS[result.argmax()])报错IndexError: list index out of range。请问result.argmax()是什么?我应该如何处理输入图像