Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We add a CLI with two commands,
dm_evaluate
anddm_batch
. Thanks to the configuration in thepyproject.toml
file, we can simply runpoetry install
from the root directory and use them without explicitly invoking the python files.dm_evaluate
Single evaluation job given model and dataset configuration. Example:
dm_evaluate segmentation image --model_format torch --model /path/to/model.pt --model_ontology /path/to/ontology.json --model_cfg /path/to/cfg.json --dataset_format rellis3d --dataset_dir /path/to/dataset --dataset_ontology /path/to/ontology.json --out_fname /path/to/results.csv
dm_batch
Execute requested jobs sequentially. Configured by means of a YAML file. Example:
dm_batch evaluate local/data/evaluate_batch_carla.yaml
YAML file example:
Besides, we add the
generic
dataset format for easier usage with custom datasets. Train, validation and/or dataset directories, plus suffixes for matching data and label samples, plus ontology must be provided for instantiating a dataset in said format.PENDING: Update docs