setup_test_database
Test Database Setup CLILink
A command-line utility to download and set up a ROMI test database from ZENODO.
It wraps the plantdb.commons.test_database.setup_test_database function to
download the requested test dataset(s) and, optionally, the pipeline
configuration files and trained CNN models.
Usage ExamplesLink
Download the default 'real_plant' dataset to the per-user cache directoryLink
setup_test_database
Download several datasets to a specific database directoryLink
setup_test_database real_plant virtual_plant --db-path /tmp/ROMI_DB
Download all datasets, with configs and modelsLink
setup_test_database all --with-configs --with-models
Force re-download of the datasetLink
setup_test_database real_plant --force
main
Link
main(dataset, db_path, with_configs, with_models, force, keep_tmp, log_level)
Test Database Setup CLI
Download and set up a ROMI test database from ZENODO.
DATASET is the name of the dataset(s) to download, or 'all' to download every dataset. If omitted, defaults to 'real_plant'.
Source code in plantdb/commons/cli/setup_test_database.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | |