训练PVANet时,出现了TypeError: slice indices must be integers or None or have an index method这个错误。
该错误是因为:numpy的版本过高,为1.12.0,项目只需要1.11.0,所以,将版本降下来即可解决:
执行 sudo pip install -U numpy==1.11.0
解决PVANet训练中TypeError
本文介绍了解决在PVANet训练过程中遇到的TypeError: slice indices must be integers or None or have an index method这一错误的方法。该问题由不兼容的numpy版本导致,通过将numpy版本从1.12.0降至1.11.0得以解决。
训练PVANet时,出现了TypeError: slice indices must be integers or None or have an index method这个错误。
该错误是因为:numpy的版本过高,为1.12.0,项目只需要1.11.0,所以,将版本降下来即可解决:
执行 sudo pip install -U numpy==1.11.0
1004
9564

被折叠的 条评论
为什么被折叠?