AttributeError: FLANN instance has no attribute 'add_points'
chancsc opened this issue · 2 comments
Need help on the below, encountered the below error while running ibeis. Thanks!
[nnindex] Adding 6147 vecs from 8 annots to nnindex with 347035 vecs and 387 annots
Traceback (most recent call last):
File "/Users/SC/code/ibeis/ibeis/model/hots/qt_inc_automatch.py", line 326, in next_query_slot
item = six.next(self.inc_query_gen)
File "/Users/SC/code/ibeis/ibeis/model/hots/automated_matcher.py", line 138, in generate_incremental_queries
for item in generate_subquery_steps(ibs, qaid_chunk, incinfo=incinfo):
File "/Users/SC/code/ibeis/ibeis/model/hots/automated_matcher.py", line 231, in generate_subquery_steps
qaid2_qres, qreq_ = execute_query_batch(ibs, qaid_chunk, qreq_vsmany_, incinfo)
File "/Users/SC/code/ibeis/ibeis/model/hots/automated_matcher.py", line 199, in execute_query_batch
qaid2_qres = mc4.submit_query_request_nocache(ibs, qreq_=qreq_)
File "/Users/SC/code/ibeis/ibeis/model/hots/match_chips4.py", line 76, in submit_query_request_nocache
qaid2_qres = execute_query2(ibs, qreq_, verbose, save_qcache)
File "/Users/SC/code/ibeis/ibeis/model/hots/match_chips4.py", line 259, in execute_query2
qaid2_qres = pipeline.request_ibeis_query_L0(ibs, qreq, verbose=verbose)
File "/Users/SC/code/ibeis/ibeis/model/hots/pipeline.py", line 167, in request_ibeis_query_L0
qreq.lazy_load(verbose=verbose)
File "/Users/SC/code/ibeis/ibeis/model/hots/query_request.py", line 670, in lazy_load
qreq.load_indexer(verbose=verbose)
File "/Users/SC/code/ibeis/ibeis/model/hots/query_request.py", line 787, in load_indexer
indexer = neighbor_index.request_ibeis_nnindexer(qreq, verbose=verbose, **qreq._indexer_request_params)
File "/Users/SC/code/ibeis/ibeis/model/hots/neighbor_index.py", line 292, in request_ibeis_nnindexer
force_rebuild=force_rebuild)
File "/Users/SC/code/ibeis/ibeis/model/hots/neighbor_index.py", line 383, in request_augmented_ibeis_nnindexer
base_nnindexer.add_support(new_daid_list, new_vecs_list, new_fgws_list, verbose=True)
File "/Users/SC/code/ibeis/ibeis/model/hots/neighbor_index.py", line 952, in add_support
nnindexer.flann.add_points(new_idx2_vec)
AttributeError: FLANN instance has no attribute 'add_points'
The python bindings of FLANN in the release branch do not have add_points. I have added the method in the ibeis_master branch in my fork of FLANN: https://github.com/Erotemic/flann
I've sent a pull request, but it hasn't been accepted yet, so for the time being you should use my fork of FLANN.
Thank you!! Will test it out ; )