【发布时间】:2016-02-23 06:05:25
【问题描述】:
我已经搜索了以下错误,但找不到正确的解决方案。错误发生在以下代码中。
inputs=numpy.zeros((features,128),'f')
offset = 0
for index in range(len(seqTags)):
d=rawInputs[index]
w,h=d.shape
for i in range(90):
inputs[offset,:]=d[i,:]
offset+=1
//The varriable i runs 90 times correctly when index= 0.
//When index =1 and i=59 it stuck with this error.
// The seqTags= number of files
错误:
inputs[offset,:]=d[i,:]
IndexError: index 149 is out of bounds for axis 0 with size 149
任何帮助将不胜感激!
【问题讨论】:
-
我发现此链接有助于了解此错误的原因,andreask.cs.illinois.edu/cs357-f14/public/demos/00-intro/… 仍在苦苦挣扎:)
标签: python arrays arraylist sift