Erotemic / ibeis

image based ecological information system
Apache License 2.0
49 stars 17 forks source link

AttributeError: FLANN instance has no attribute 'add_points' #50

Closed chancsc closed 9 years ago

chancsc commented 9 years ago

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 qaid2qres, qreq = execute_query_batch(ibs, qaid_chunk, qreqvsmany, incinfo) File "/Users/SC/code/ibeis/ibeis/model/hots/automated_matcher.py", line 199, in execute_query_batch qaid2_qres = mc4.submit_query_requestnocache(ibs, qreq=qreq_) File "/Users/SC/code/ibeis/ibeis/model/hots/match_chips4.py", line 76, in submit_query_request_nocache qaid2_qres = executequery2(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_queryL0 qreq.lazy_load(verbose=verbose) File "/Users/SC/code/ibeis/ibeis/model/hots/query_request.py", line 670, in lazyload 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_ibeisnnindexer(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'

Erotemic commented 9 years ago

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.

chancsc commented 9 years ago

Thank you!! Will test it out ; )