Exemplo n.º 1
0
    def __init__(metaself, name, bases, dct):
        super(_AnnotMatchPropInjector, metaself).__init__(name, bases, dct)
        metaself.rrr = rrr

        attrs = [
            'aid1',
            'aid2',
            'confidence',
            'count',
            'evidence_decision',
            'meta_decision',
            'posixtime_modified',
            'reviewer',
            'tag_text',
            'case_tags',
        ]
        settable_attrs = [
            'confidence',
            'count',
            'evidence_decision',
            'meta_decision',
            'posixtime_modified',
            'reviewer',
            'tag_text',
        ]

        configurable_attrs = []
        depcache_attrs = []
        aliased_attrs = {}

        objname = 'annotmatch'
        _ibeis_object._inject_getter_attrs(metaself, objname, attrs,
                                           configurable_attrs, None,
                                           depcache_attrs, settable_attrs,
                                           aliased_attrs)
Exemplo n.º 2
0
 def __init__(metaself, name, bases, dct):
     super(ImageSetAttrInjector, metaself).__init__(name, bases, dct)
     metaself.rrr = rrr
     #misc = [ 'instancelist', 'gids_with_aids', 'lazydict', ]  #
     attrs = [
         'aids', 'configid', 'custom_filtered_aids', 'duration',
         'end_time_posix', 'fraction_annotmatch_reviewed',
         'fraction_imgs_reviewed', 'fraction_names_with_exemplar', 'gids',
         'gps_lats', 'gps_lons', 'gsgrids', 'image_uuids',
         'imgsetids_from_text', 'imgsetids_from_uuid', 'isoccurrence',
         'name_uuids', 'nids', 'note', 'notes', 'num_aids',
         'num_annotmatch_reviewed', 'num_annots_reviewed', 'num_gids',
         'num_imgs_reviewed', 'num_names_with_exemplar',
         'percent_annotmatch_reviewed_str', 'percent_imgs_reviewed_str',
         'percent_names_with_exemplar_str', 'processed_flags',
         'shipped_flags', 'smart_waypoint_ids', 'smart_xml_contents',
         'smart_xml_fnames', 'start_time_posix', 'text', 'uuid', 'uuids'
     ]
     #inverse_attrs = [
     #     'gids_from_uuid',
     #]
     objname = 'imageset'
     _ibeis_object._inject_getter_attrs(metaself, objname, attrs, [])
Exemplo n.º 3
0
    def __init__(metaself, name, bases, dct):
        super(_AnnotPropInjector, metaself).__init__(name, bases, dct)
        metaself.rrr = rrr

        attrs = ANNOT_BASE_ATTRS

        settable_attrs = ANNOT_SETTABLE_ATTRS

        configurable_attrs = [
            # Chip
            'chip_dlensqrd',
            'chip_fpath',
            'chip_sizes',
            'chip_thumbpath',
            'chip_thumbtup',
            'chips',
            # Feat / FeatWeight / Kpts / Desc
            'feat_rowids',
            'num_feats',
            'featweight_rowids',
            'fgweights',
            'fgweights_subset',
            'kpts',
            'kpts_distinctiveness',
            'vecs',
            'vecs_cache',
            'vecs_subset',
        ]
        #misc = [
        #    'gar_rowids', 'alrids', 'alrids_oftype', 'lblannot_rowids',
        #    'lblannot_rowids_oftype', 'lblannot_value_of_lbltype', 'rows',
        #    'instancelist', 'lazy_dict', 'lazy_dict2', 'missing_uuid',
        #    'been_adjusted', 'class_labels',
        #]
        #extra_attrs = [
        #    # Age / Sex
        #    'age_months_est', 'age_months_est_max', 'age_months_est_max_texts',
        #    'age_months_est_min', 'age_months_est_min_texts',
        #    'age_months_est_texts', 'sex', 'sex_texts',

        #    # Stats
        #    'stats_dict', 'per_name_stats', 'qual_stats', 'info', 'yaw_stats',
        #    'intermediate_viewpoint_stats',
        #]
        #inverse_attrs = [
        #    # External lookups via superkeys
        #    'aids_from_semantic_uuid',
        #    'aids_from_uuid',
        #    'aids_from_visual_uuid',
        #    'rowids_from_partial_vuuids',
        #]

        depcache_attrs = [
            ('hog', 'hog'),
            ('probchip', 'img'),
        ]

        aliased_attrs = {
            'time': 'image_unixtimes_asfloat',
            'gps': 'image_gps2',
            'chip_size': 'chip_sizes',
            'yaw': 'yaws_asfloat',
            'qual': 'qualities',
            'name': 'names',
            'nid': 'nids',
            'unary_tags': 'case_tags',
            # DEPRICATE
            'rchip': 'chips',
            'rchip_fpath': 'chip_fpath',
        }

        objname = 'annot'
        _ibeis_object._inject_getter_attrs(metaself, objname, attrs,
                                           configurable_attrs, 'depc_annot',
                                           depcache_attrs, settable_attrs,
                                           aliased_attrs)
Exemplo n.º 4
0
 def __init__(metaself, name, bases, dct):
     super(ImageIBEISPropertyInjector, metaself).__init__(name, bases, dct)
     metaself.rrr = rrr
     #misc = [ 'instancelist', 'gids_with_aids', 'lazydict', ]  #
     attrs = [
         'aids',
         'aids_of_species',
         'annot_uuids',
         'annot_uuids_of_species',
         'annotation_bboxes',
         'annotation_thetas',
         'contributor_rowid',
         'contributor_tag',
         'datetime',
         'datetime_str',
         'detect_confidence',
         'detectpaths',
         'enabled',
         'exts',
         'gid',
         'glrids',
         'gnames',
         'gps',
         'gps2',
         'gsgrids',
         'heights',
         'imagesettext',
         'imgset_uuids',
         'imgsetids',
         'lat',
         'location_codes',
         'lon',
         'missing_uuid',
         'name_uuids',
         'nids',
         'notes',
         'num_annotations',
         'orientation',
         'orientation_str',
         'party_rowids',
         'party_tag',
         'paths',
         'reviewed',
         'sizes',
         'species_rowids',
         'species_uuids',
         'thumbpath',
         'thumbtup',
         'time_statstr',
         'timedelta_posix',
         'unixtime',
         'unixtime_asfloat',
         'unixtime2',
         'uris',
         'uris_original',
         'uuids',
         'widths'
         'imgdata',
     ]
     #inverse_attrs = [
     #     'gids_from_uuid',
     #]
     objname = 'image'
     _ibeis_object._inject_getter_attrs(metaself, objname, attrs, [])