成功解决 shape = predictor(img, dets[0]) IndexError: Index out of range

简介: 成功解决 shape = predictor(img, dets[0]) IndexError: Index out of range

解决问题

shape = predictor(img, dets[0])

IndexError: Index out of range

 


解决方法

并非路径出错,而是图片本身存在问题,换张图片即可!

相关文章
|
索引 Python
Python报错:IndexError: index 0 is out of bounds for axis 0 with size 0
Python报错:IndexError: index 0 is out of bounds for axis 0 with size 0
318 0
成功解决but is 0 and 2 (computed from start 0 and end 9223372 over shape with rank 2 and stride-1)
成功解决but is 0 and 2 (computed from start 0 and end 9223372 over shape with rank 2 and stride-1)
|
JSON 数据格式
ValueError: With n_samples=0, test_size=0.15 and train_size=None, the resulting train set will be em
ValueError: With n_samples=0, test_size=0.15 and train_size=None, the resulting train set will be em
496 0
ValueError: With n_samples=0, test_size=0.15 and train_size=None, the resulting train set will be em
range
range() 是一个函数,可以用来生成一个自然数的序列。 该函数需要三个参数:起始位置(可以省略,默认是 0);结束位置;步长(可以省略,默认是 1)。 通过 range() 可以创建一个执行指定次数的 for 循环。
103 0
range
|
Python
TypeError: img is not a numpy array, neither a scalar
TypeError: img is not a numpy array, neither a scalar
257 0
np.random.choice 参数replace
np.random.choice 参数replace
122 0
|
存储
range_hashed
range_hashed
82 0
|
索引 Python
成功解决ValueError: column index (256) not an int in range(256)
成功解决ValueError: column index (256) not an int in range(256)
成功解决ValueError: column index (256) not an int in range(256)
|
Linux Python
ValueError: empty range for randrange() (0, 0, 0)
ValueError: empty range for randrange() (0, 0, 0)