xionghc / Facial-Expression-Recognition

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

错误IndexError: list index out of range #47

Closed Ryan1366 closed 5 years ago

Ryan1366 commented 5 years ago

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