Esempio n. 1
0
def testdata_query_repr(**kwargs):
    """
    Example:
        >>> from ibeis.algo.hots.smk.smk_debug import *  # NOQA
    """
    from ibeis.algo.hots.smk import smk_debug
    ibs, annots_df, daids, qaids, invindex, wx2_idxs, qparams = smk_debug.testdata_raw_internals1_5(**kwargs)
    print('[smk_debug] testdata_query_repr')
    qaid = qaids[0]
    #qreq_ = query_request.new_ibeis_query_request(ibs, qaids, daids)
    return ibs, annots_df, qaid, invindex, qparams
Esempio n. 2
0
def testdata_query_repr(**kwargs):
    """
    Example:
        >>> from ibeis.algo.hots.smk.smk_debug import *  # NOQA
    """
    from ibeis.algo.hots.smk import smk_debug
    ibs, annots_df, daids, qaids, invindex, wx2_idxs, qparams = smk_debug.testdata_raw_internals1_5(
        **kwargs)
    print('[smk_debug] testdata_query_repr')
    qaid = qaids[0]
    #qreq_ = query_request.new_ibeis_query_request(ibs, qaids, daids)
    return ibs, annots_df, qaid, invindex, qparams
Esempio n. 3
0
def testdata_compute_data_sccw(**kwargs):
    """
    Example:
        >>> from ibeis.algo.hots.smk.smk_debug import *  # NOQA
    """
    from ibeis.algo.hots.smk import smk_debug
    ibs, annots_df, daids, qaids, invindex, wx2_idxs, qparams = smk_debug.testdata_raw_internals1_5(**kwargs)
    print('[smk_debug] testdata_compute_data_sccw')
    aggregate = ibs.cfg.query_cfg.smk_cfg.aggregate
    idx2_vec  = invindex.idx2_dvec
    idx2_fx   = invindex.idx2_dfx
    wx2_dmaws = invindex.wx2_dmaws
    idx2_aid  = invindex.idx2_daid
    words     = invindex.words
    wx2_idf   = invindex.wx2_idf
    wx2_drvecs, wx2_aids, wx2_fxs, wx2_dmaws, wx2_dflags = smk_index.compute_residuals_(
        words, wx2_idxs, wx2_dmaws, idx2_vec, idx2_aid, idx2_fx, aggregate)
    invindex.wx2_dmaws  = wx2_dmaws
    invindex.wx2_drvecs = wx2_drvecs
    invindex.wx2_dflags = wx2_dflags
    return ibs, annots_df, invindex, wx2_idxs, wx2_idf, wx2_drvecs, wx2_aids, qparams
Esempio n. 4
0
def testdata_compute_data_sccw(**kwargs):
    """
    Example:
        >>> from ibeis.algo.hots.smk.smk_debug import *  # NOQA
    """
    from ibeis.algo.hots.smk import smk_debug
    ibs, annots_df, daids, qaids, invindex, wx2_idxs, qparams = smk_debug.testdata_raw_internals1_5(
        **kwargs)
    print('[smk_debug] testdata_compute_data_sccw')
    aggregate = ibs.cfg.query_cfg.smk_cfg.aggregate
    idx2_vec = invindex.idx2_dvec
    idx2_fx = invindex.idx2_dfx
    wx2_dmaws = invindex.wx2_dmaws
    idx2_aid = invindex.idx2_daid
    words = invindex.words
    wx2_idf = invindex.wx2_idf
    wx2_drvecs, wx2_aids, wx2_fxs, wx2_dmaws, wx2_dflags = smk_index.compute_residuals_(
        words, wx2_idxs, wx2_dmaws, idx2_vec, idx2_aid, idx2_fx, aggregate)
    invindex.wx2_dmaws = wx2_dmaws
    invindex.wx2_drvecs = wx2_drvecs
    invindex.wx2_dflags = wx2_dflags
    return ibs, annots_df, invindex, wx2_idxs, wx2_idf, wx2_drvecs, wx2_aids, qparams