mirror of
https://github.com/open-mmlab/mmclassification.git
synced 2025-06-03 21:53:55 +08:00
* refactor ananlysis_log and add docs * refactor ananlysis_log and fix lint * improve docs * improve docs * improve docs * fix bugs and refactor analysis_log * rename analysis folder to analysis_tools * fix failure link * add result analysis docs * add eval-metrics docs * add misc doc * fix lint * improve docs * improve misc docs * fix docs * Change the `eval_options` in `tools/analysis_tools/eval_metric.py` to `metric_options` * Improve tutorials Co-authored-by: mzr1996 <mzr1996@163.com>
1.7 KiB
1.7 KiB
MISCELLANEOUS
Print the entire config
tools/misc/print_config.py
prints the whole config verbatim, expanding all its imports.
python tools/misc/print_config.py ${CONFIG} [--cfg-options ${CFG_OPTIONS}]
Description of all arguments:
config
: The path of the model config file.--cfg-options
: If specified, the key-value pair config will be merged into the config file, for more details please refer to Tutorial 1: Learn about Configs
Examples:
python tools/misc/print_config.py configs/t2t_vit/t2t-vit-t-14_8xb64_in1k.py
Verify Dataset
tools/misc/verify_dataset.py
can verify dataset, check whether there are broken pictures in the given dataset.
python tools/print_config.py \
${CONFIG} \
[--out-path ${OUT-PATH}] \
[--phase ${PHASE}] \
[--num-process ${NUM-PROCESS}]
[--cfg-options ${CFG_OPTIONS}]
Description of all arguments:
config
: The path of the model config file.--out-path
: The path to save the verification result, if not set, defaults to 'brokenfiles.log'.--phase
: Phase of dataset to verify, accept "train" "test" and "val", if not set, defaults to "train".--num-process
: number of process to use, if not set, defaults to 1.--cfg-options
: If specified, the key-value pair config will be merged into the config file, for more details please refer to Tutorial 1: Learn about Configs
Examples:
python tools/misc/verify_dataset.py configs/t2t_vit/t2t-vit-t-14_8xb64_in1k.py --out-path broken_imgs.log --phase val --num-process 8
FAQs
- None