jesolem / PCV

Open source Python module for computer vision
BSD 2-Clause "Simplified" License
1.92k stars 674 forks source link

IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed #42

Closed annyhou closed 2 years ago

annyhou commented 2 years ago

File "gen_vocabulary.py", line 24, in voc.train(featlist, 122, 10) File "/opt/conda/lib/python3.8/site-packages/PCV/imagesearch/vocabulary.py", line 24, in train descr.append(sift.read_features_from_file(featurefiles[0])[1]) File "/opt/conda/lib/python3.8/site-packages/PCV/localdescriptors/sift.py", line 26, in read_features_from_file return f[:,:4],f[:,4:] # feature locations, descriptors IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed

annyhou commented 2 years ago

version: vlfeat-0.9.20-bin, not vlfeat-0.9.21-bin