Ma Zerun b4e39d51d6
[Refactor] Refactor the docs structure. (#988)
* [Refactor] Refactor the rest data transforms and fix some docstring.

* Use `mmengine` instead of `mmcv`

* Refactor KFold dataset tools

* Fix docstring according to comments

* [Refactor] Refactor the docs structure.

* Rename `getting_started.md` to `get_started.md`

* Rename `transforms` to `data_process`
2022-08-24 16:00:36 +08:00

1.7 KiB
Raw Blame History

其他工具

打印完整配置

tools/misc/print_config.py 脚本会解析所有输入变量,并打印完整配置信息。

python tools/misc/print_config.py ${CONFIG} [--cfg-options ${CFG_OPTIONS}]

所有参数说明

示例

python tools/misc/print_config.py configs/t2t_vit/t2t-vit-t-14_8xb64_in1k.py

检查数据集

tools/misc/verify_dataset.py 脚本会检查数据集的所有图片,查看是否有已经损坏的图片。

python tools/print_config.py \
    ${CONFIG} \
    [--out-path ${OUT-PATH}] \
    [--phase ${PHASE}] \
    [--num-process ${NUM-PROCESS}]
    [--cfg-options ${CFG_OPTIONS}]

所有参数说明:

  • config 配置文件的路径。
  • --out-path 输出结果路径,默认为 'brokenfiles.log'。
  • --phase 检查哪个阶段的数据集,可用值为 "train" 、"test" 或者 "val" 默认为 "train"。
  • --num-process 指定的进程数默认为1。
  • --cfg-options: 额外的配置选项,会被合入配置文件,参考教程 1如何编写配置文件

示例:

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

常见问题