Bag-of-Visual-Words-Python icon indicating copy to clipboard operation
Bag-of-Visual-Words-Python copied to clipboard

vStack = np.array(l[0])

Open kbalbastre opened this issue 7 years ago • 5 comments

Always receiving this error when I run the program. Need help

kbalbastre avatar Jan 27 '18 10:01 kbalbastre

Probably cant find the images. Do not forget to change format at the helper.py.

for imagefile in glob(path+key+"/*.png"):

abdullahhacettepe avatar Dec 16 '18 15:12 abdullahhacettepe

helpers.py 143 replace with below line word = each.split("\")[-1]

roburst2 avatar Jun 26 '19 11:06 roburst2

When defining the class BOV, should I leave self.images=None? Or should I change it? I am getting the same error vStack = np.array(l[0]) IndexError: list index out of range. I figured that my images are not being read as indicated by self.descriptor_list has a size 0.

Kindly help me with this error.

nys09 avatar Sep 29 '19 05:09 nys09

Just do this change in line 141 in helpers.py word = each.split('\\')[-1] instead of word = each.split('\')[-1] for python 3 because the '\\' means regular expression's special character."\\" will remove the meaning of special character.

Kratos028 avatar Nov 18 '19 19:11 Kratos028

that is because imlist array is empty

Kratos028 avatar Nov 18 '19 19:11 Kratos028