TypeError: slice indices must be integers or None or have an __index__ method
来源:互联网 发布:java计算n的阶乘 编辑:程序博客网 时间:2024/06/15 05:37
在训练faster-rcnn自己的网络结构和数据集时,出现了
TypeError: slice indices must be integers or None or have an index method
根据错误提示查看了当前出错的点的数据类型,一般为numpy.int32和numpy.float64。 但是这两种数据类型不能作为index(能作为index的只有int、None、和index容器) 所以将该类型强制修改为int,但是错误越来越多,最后查明是numpy版本问题。 自从numpy1.12.0就对数据类型转换的与之前不同,所以只需将numpy版本降低 运行:
sudo pip intall -U numpy==1.11.0
大功告成
阅读全文
0 0
- TypeError: slice indices must be integers or None or have an __index__ method
- TypeError: slice indices must be integers or None or have an __index__ method
- faster rcnn报错:TypeError: slice indices must be integers or None or have an __index__ method
- TypeError: slice indices must be integers or None or have an index method
- TypeError: slice indices must be integers or None or have an index method
- Python BeautifulSoup [解决方法] TypeError: list indices must be integers or slices, not str
- list indices must be integers or slices, not tuple
- python错误:TypeError: string indices must be integers
- matlab错误:Subscript indices must either be real positive integers or logicals.
- Subscript indices must either be real positive integers or logicals怎么解决
- matlab错误:Subscript indices must either be real positive integers or logicals.
- 处理错误TypeError: initial_value must be unicode or None, not str
- TypeError: super(type, obj): obj must be an instance or subtype of type
- TypeError: argument 1 must be string or buffer, not instance
- Python TypeError: must be string or buffer, not dict
- Tensorflow 提示list indices must be integers, not Tensor ?
- Python2.7 hmac.py TypeError: character mapping must return integer, None or unicode"
- A ref or out argument must be an assignable variable
- C语言register关键字—最快的关键字
- 机器学习笔记(1)
- CSS实战(代码部分)
- 在Ubuntu 14 下安装Java
- 第二周项目3-体验复杂度(2)
- TypeError: slice indices must be integers or None or have an __index__ method
- 第二周 项目三 (2)汉诺塔
- 手风琴效果
- 回顾与展望
- POJ 3348 求凸包面积
- 备考pat
- angular.js 购物车
- C++ 标准库 bitset类型
- Sublime Text 3改变插件包安装位置