ibeis.scripts package

Submodules

ibeis.scripts._grave module

ibeis.scripts._grave.intraoccurrence_connected()[source]

CommandLine:

python -m ibeis.scripts.specialdraw intraoccurrence_connected --show
python -m ibeis.scripts.specialdraw intraoccurrence_connected --show --postcut

Example

>>> # DISABLE_DOCTEST
>>> from ibeis.scripts.specialdraw import *  # NOQA
>>> result = intraoccurrence_connected()
>>> print(result)
>>> ut.quit_if_noshow()
>>> import plottool as pt
>>> ut.show_if_requested()

ibeis.scripts.gen_cand_expts module

CommandLine:

# Run many experiments
python -m ibeis.scripts.gen_cand_expts --exec-generate_all --full
./experiments_overnight.sh

# Database information
python -m ibeis --db PZ_MTEST --dbinfo --postload-exit
python -m ibeis --db PZ_Master0 --dbinfo --postload-exit

# Info about configs for a test
python -m ibeis --tf run_test_configurations2 -t default -a ctrl --db PZ_MTEST --acfginfo
python -m ibeis --tf run_test_configurations2 -t default:sample_size=None -a ctrl --db PZ_Master0 --acfginfo  # NOQA
python -m ibeis --tf run_test_configurations2 -t default -a ctrl --db NNP_Master3 --acfginfo

# Regen Figures
python -m ibeis.scripts.gen_cand_expts --exec-parse_latex_comments_for_commmands
./regen_figdef_expt.sh


# Print all annotation configs that will be used
python -m ibeis.scripts.gen_cand_expts --exec-inspect_annotation_configs --full
sh experiment_inspect_acfg.sh
ibeis.scripts.gen_cand_expts.experiments_baseline()[source]

Generates the experiments we are doing on invariance

CommandLine:

python -m ibeis.scripts.gen_cand_expts --exec-experiments_baseline
./experiment_baseline.sh

Example

>>> from ibeis.scripts.gen_cand_expts import *
>>> make_standard_test_scripts(experiments_baseline())
ibeis.scripts.gen_cand_expts.experiments_invariance()[source]

Generates the experiments we are doing on invariance

CommandLine:

python -m ibeis.scripts.gen_cand_expts --exec-experiments_invariance
python -m ibeis.scripts.gen_cand_expts --exec-experiments_invariance --full

Example

>>> from ibeis.scripts.gen_cand_expts import *
>>> make_standard_test_scripts(experiments_invariance())
ibeis.scripts.gen_cand_expts.experiments_k()[source]

CommandLine:

python -m ibeis.scripts.gen_cand_expts --exec-experiments_k
python -m ibeis.scripts.gen_cand_expts --exec-experiments_k --full
./experiment_k.sh

Example

>>> from ibeis.scripts.gen_cand_expts import *
>>> make_standard_test_scripts(experiments_k())
ibeis.scripts.gen_cand_expts.experiments_namescore()[source]

Generates the experiments we are doing on invariance

CommandLine:

python -m ibeis.scripts.gen_cand_expts --exec-experiments_namescore --full
./experiment_namescore.sh

python -m ibeis.scripts.gen_cand_expts --exec-experiments_namescore --full
python -m ibeis.expt.experiment_helpers --exec-get_annotcfg_list:0 -a candidacy_namescore --db PZ_Master1  # NOQA

Example

>>> from ibeis.scripts.gen_cand_expts import *
>>> make_standard_test_scripts(experiments_namescore())
ibeis.scripts.gen_cand_expts.experiments_viewpoint()[source]

Generates the experiments we are doing on invariance

CommandLine:

python -m ibeis.scripts.gen_cand_expts --exec-experiments_viewpoint --full
./experiment_view.sh

Example

>>> from ibeis.scripts.gen_cand_expts import *
>>> make_standard_test_scripts(experiments_viewpoint())
ibeis.scripts.gen_cand_expts.gen_dbranks_tables()[source]

CommandLine:

python -m ibeis.scripts.gen_cand_expts --exec-gen_dbranks_tables

Example

>>> # SCRIPT
>>> from ibeis.scripts.gen_cand_expts import *  # NOQA
>>> result = gen_dbranks_tables()
>>> print(result)
ibeis.scripts.gen_cand_expts.generate_all()[source]

CommandLine:

python -m ibeis.scripts.gen_cand_expts --exec-generate_all --vim
python -m ibeis.scripts.gen_cand_expts --exec-generate_all
python -m ibeis.scripts.gen_cand_expts --exec-generate_all --full
./experiments_overnight.sh

Example

>>> from ibeis.scripts.gen_cand_expts import *  # NOQA
>>> generate_all()
ibeis.scripts.gen_cand_expts.generate_dbinfo_table()[source]

python -m ibeis.other.dbinfo –test-latex_dbstats –dblist PZ_Master0 PZ_FlankHack PZ_MTEST NNP_Master3 GZ_ALL NNP_MasterGIRM_core –show # NOQA

FIXME: Old database should not be converted to left python -m ibeis.other.dbinfo –test-latex_dbstats –dblist PZ_Master1 –show python -m ibeis.other.dbinfo –test-latex_dbstats –dblist PZ_Master0 PZ_FlankHack PZ_MTEST NNP_Master3 GZ_ALL NNP_MasterGIRM_core –show # NOQA python -m ibeis.other.dbinfo –test-latex_dbstats –dblist PZ_MTEST –show python -m ibeis.other.dbinfo –test-latex_dbstats –dblist GZ_Master0 –show python -m ibeis.other.dbinfo –test-latex_dbstats –dblist GIR_Tanya –show python -m ibeis.other.dbinfo –test-latex_dbstats –dblist LF_WEST_POINT_OPTIMIZADAS LF_OPTIMIZADAS_NI_V_E LF_Bajo_bonito –show # NOQA python -m ibeis.other.dbinfo –test-latex_dbstats –dblist JAG_Kieryn JAG_Kelly –show

ibeis.scripts.gen_cand_expts.get_dbnames(exclude_list=[])[source]
ibeis.scripts.gen_cand_expts.get_results_command(expt_name, media_name)[source]

Displays results using various media

ibeis.scripts.gen_cand_expts.inspect_annotation_configs()[source]

CommandLine:

python -m ibeis.scripts.gen_cand_expts --exec-inspect_annotation_configs
python -m ibeis.scripts.gen_cand_expts --exec-inspect_annotation_configs --full

Example

>>> # SCRIPT
>>> from ibeis.scripts.gen_cand_expts import *  # NOQA
>>> make_standard_test_scripts(inspect_annotation_configs())
ibeis.scripts.gen_cand_expts.make_standard_test_scripts(*args)[source]
ibeis.scripts.gen_cand_expts.parse_latex_comments_for_commmands()[source]

CommandLine:

python -m ibeis.scripts.gen_cand_expts --exec-parse_latex_comments_for_commmands

Example

>>> # SCRIPT
>>> from ibeis.scripts.gen_cand_expts import *  # NOQA
>>> parse_latex_comments_for_commmands()
ibeis.scripts.gen_cand_expts.precompute_data()[source]

Ensure features and such are computed .. rubric:: CommandLine:

python -m ibeis.scripts.gen_cand_expts --exec-precompute_data

Example

>>> from ibeis.scripts.gen_cand_expts import *
>>> make_standard_test_scripts(precompute_data())
ibeis.scripts.gen_cand_expts.register_testgen(func)[source]
ibeis.scripts.gen_cand_expts.test_database_intersection()[source]

# PZ_FlankHack is a pure subset of PZ_Master0, but there are minor changes between them python -m ibeis.dbio.export_subset –exec-check_database_overlap –db1=PZ_FlankHack –db2=PZ_Master0 # NOQA

# PZ_MTEST is also a subset of PZ_Master0 with minor changes python -m ibeis.dbio.export_subset –exec-check_database_overlap –db1=PZ_MTEST –db2=PZ_Master0 # NOQA

# NNP_Master3 and PZ_Master0 are disjoint python -m ibeis.dbio.export_subset –exec-check_database_overlap –db1=NNP_Master3 –db2=PZ_Master0 # NOQA

python -m ibeis.dbio.export_subset –exec-check_database_overlap –db1=PZ_Master1 –db2=PZ_Master0 # NOQA

ibeis.scripts.gen_cand_expts.write_formatted_script_lines(cmd_fmtstr_list, varydict_list, fname)[source]
ibeis.scripts.gen_cand_expts.write_script_lines(line_list, fname)[source]

ibeis.scripts.getshark module

ibeis.scripts.getshark.download_sharks(XMLdata, number)[source]

cd ~/work/WS_ALL python -m ibeis.scripts.getshark

>>> from ibeis.scripts.getshark import *  # NOQA
>>> url = 'www.whaleshark.org/listImages.jsp'
>>> XMLdata = ut.url_read(url)
>>> number = None
ibeis.scripts.getshark.main()[source]
ibeis.scripts.getshark.parse_shark_tags(orig_fname_list)[source]
ibeis.scripts.getshark.shark_misc()[source]
ibeis.scripts.getshark.usage()[source]

ibeis.scripts.name_recitifer module

ibeis.scripts.name_recitifer.find_consistent_labeling(grouped_oldnames)[source]

Solves a a maximum bipirtite matching problem to find a consistent name assignment.

Notes

# Install module containing the Hungarian algorithm for matching pip install munkres

Example

>>> # DISABLE_DOCTEST
>>> from ibeis.scripts.name_recitifer import *  # NOQA
>>> grouped_oldnames = [['a', 'b'], ['b', 'c'], ['c', 'a', 'a']]
>>> new_names = find_consistent_labeling(grouped_oldnames)
>>> print(new_names)
[u'b', u'c', u'a']

Example

>>> # DISABLE_DOCTEST
>>> from ibeis.scripts.name_recitifer import *  # NOQA
>>> grouped_oldnames = [['a', 'b', 'c'], ['b', 'c'], ['c', 'e', 'e']]
>>> new_names = find_consistent_labeling(grouped_oldnames)
>>> print(new_names)
[u'a', u'b', u'e']

Example

>>> # DISABLE_DOCTEST
>>> from ibeis.scripts.name_recitifer import *  # NOQA
>>> grouped_oldnames = [['a', 'b'], ['a', 'a', 'b'], ['a']]
>>> new_names = find_consistent_labeling(grouped_oldnames)
>>> print(new_names)
[u'a', u'b', u'e']
ibeis.scripts.name_recitifer.rectify_names(ibs, aid_list=None, old_img2_names=None, hack_prefix=u'')[source]

Changes the names in the IA-database to correspond to an older naming convention. If splits and merges were preformed tries to find the maximally consistent renaming scheme.

Parameters:
  • ibs (ibeis.IBEISController) – image analysis api
  • aid_list (list) – list of annotation rowids
  • img_list (list) –
  • name_list (list) – (default = None)

CommandLine:

python -m ibeis.scripts.name_recitifer rectify_names --show

Example

>>> # DISABLE_DOCTEST
>>> from ibeis.scripts.name_recitifer import *  # NOQA
>>> import ibeis
>>> ibs = ibeis.opendb(defaultdb='testdb1')
>>> aid_list = None
>>> hack_prefix = ''
>>> old_img2_names = None #['img_fred.png', ']
>>> result = rectify_names(ibs, aid_list, img_list, name_list)

ibeis.scripts.rsync_ibeisdb module

CommandLine:

python -m ibeis.scripts.rsync_ibeisdb
python -m ibeis.scripts.rsync_ibeisdb --dryrun
ibeis.scripts.rsync_ibeisdb.rsync_ibsdb_main()[source]
ibeis.scripts.rsync_ibeisdb.sync_ibeisdb(remote_uri, dbname, mode='pull', workdir=None, port=22, dryrun=False)[source]

syncs an ibeisdb without syncing the cache or the chip directory (or the top level image directory because it shouldnt exist unless it is an old hots database)

ibeis.scripts.specialdraw module

ibeis.scripts.specialdraw.double_depcache_graph()[source]

CommandLine:

python -m ibeis.scripts.specialdraw double_depcache_graph --show --testmode

python -m ibeis.scripts.specialdraw double_depcache_graph --save=figures5/doubledepc.png --dpath ~/latex/cand/  --diskshow  --figsize=8,20 --dpi=220 --testmode --show --clipwhite
python -m ibeis.scripts.specialdraw double_depcache_graph --save=figures5/doubledepc.png --dpath ~/latex/cand/  --diskshow  --figsize=8,20 --dpi=220 --testmode --show --clipwhite --arrow-width=.5

python -m ibeis.scripts.specialdraw double_depcache_graph --save=figures5/doubledepc.png --dpath ~/latex/cand/  --diskshow  --figsize=8,20 --dpi=220 --testmode --show --clipwhite --arrow-width=5

Example

>>> # DISABLE_DOCTEST
>>> from ibeis.scripts.specialdraw import *  # NOQA
>>> result = double_depcache_graph()
>>> print(result)
>>> ut.quit_if_noshow()
>>> import plottool as pt
>>> ut.show_if_requested()
ibeis.scripts.specialdraw.event_space()[source]

pip install matplotlib-venn

ibeis.scripts.specialdraw.general_identify_flow()[source]

CommandLine:

python -m ibeis.scripts.specialdraw general_identify_flow --show --save pairsim.png --dpi=100 --diskshow --clipwhite

python -m ibeis.scripts.specialdraw general_identify_flow --dpi=200 --diskshow --clipwhite --dpath ~/latex/cand/ --figsize=20,10  --save figures4/pairprob.png --arrow-width=2.0

Example

>>> # SCRIPT
>>> from ibeis.scripts.specialdraw import *  # NOQA
>>> general_identify_flow()
>>> ut.quit_if_noshow()
>>> ut.show_if_requested()
ibeis.scripts.specialdraw.graphcut_flow()[source]
Returns:name
Return type:?

CommandLine:

python -m ibeis.scripts.specialdraw graphcut_flow --show --save cutflow.png --diskshow --clipwhite
python -m ibeis.scripts.specialdraw graphcut_flow --save figures4/cutiden.png --diskshow --clipwhite --dpath ~/latex/crall-candidacy-2015/ --figsize=24,10 --arrow-width=2.0

Example

>>> # DISABLE_DOCTEST
>>> from ibeis.scripts.specialdraw import *  # NOQA
>>> graphcut_flow()
>>> ut.quit_if_noshow()
>>> import plottool as pt
>>> ut.show_if_requested()
ibeis.scripts.specialdraw.intraoccurrence_connected()[source]

CommandLine:

python -m ibeis.scripts.specialdraw intraoccurrence_connected --show
python -m ibeis.scripts.specialdraw intraoccurrence_connected --show --postcut
python -m ibeis.scripts.specialdraw intraoccurrence_connected --show --smaller

Example

>>> # DISABLE_DOCTEST
>>> from ibeis.scripts.specialdraw import *  # NOQA
>>> result = intraoccurrence_connected()
>>> print(result)
>>> ut.quit_if_noshow()
>>> import plottool as pt
>>> ut.show_if_requested()
ibeis.scripts.specialdraw.lighten_hex(hexcolor, amount)[source]
ibeis.scripts.specialdraw.merge_viewpoint_graph()[source]

CommandLine:

python -m ibeis.scripts.specialdraw merge_viewpoint_graph --show

Example

>>> # DISABLE_DOCTEST
>>> from ibeis.scripts.specialdraw import *  # NOQA
>>> result = merge_viewpoint_graph()
>>> print(result)
>>> ut.quit_if_noshow()
>>> import plottool as pt
>>> ut.show_if_requested()
ibeis.scripts.specialdraw.multidb_montage()[source]

CommandLine:

python -m ibeis.scripts.specialdraw multidb_montage --save montage.jpg --dpath ~/slides --diskshow --show

Example

>>> # DISABLE_DOCTEST
>>> from ibeis.scripts.specialdraw import *  # NOQA
>>> multidb_montage()
ibeis.scripts.specialdraw.scalespace()[source]

THIS DOES NOT SHOW A REAL SCALE SPACE PYRAMID YET. FIXME.

Returns:imgBGRA_warped
Return type:?

CommandLine:

python -m ibeis.scripts.specialdraw scalespace --show

Example

>>> # DISABLE_DOCTEST
>>> from ibeis.scripts.specialdraw import *  # NOQA
>>> imgBGRA_warped = scalespace()
>>> result = ('imgBGRA_warped = %s' % (ut.repr2(imgBGRA_warped),))
>>> print(result)
>>> ut.quit_if_noshow()
>>> import plottool as pt
>>> ut.show_if_requested()
ibeis.scripts.specialdraw.setcover_example()[source]

CommandLine:

python -m ibeis.scripts.specialdraw setcover_example --show

Example

>>> # DISABLE_DOCTEST
>>> from ibeis.scripts.specialdraw import *  # NOQA
>>> result = setcover_example()
>>> print(result)
>>> ut.quit_if_noshow()
>>> import plottool as pt
>>> ut.show_if_requested()

Module contents