[Improvement] browse_dataset.py#304
Merged
hhaAndroid merged 13 commits intoDec 1, 2022
Merged
Conversation
Upgrate the brow_transform 对pipeline中的transform过程实现了可视化,以及可以将transform中key参数的变化打印出来。
hhaAndroid
reviewed
Nov 30, 2022
修改了215行result_i = [result['dataset_sample'] for result in intermediate_imgs]通过lint
hhaAndroid
approved these changes
Dec 1, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
浏览数据集
python tools/analysis_tools/browse_dataset.py \ ${CONFIG_FILE} \ [-o, --output-dir ${OUTPUT_DIR}] \ [-p, --phase ${DATASET_PHASE}] \ [-n, --show-number ${NUMBER_IMAGES_DISPLAY}] \ [-i, --show-interval ${SHOW_INTERRVAL}] \ [-m, --mode ${DISPLAY_MODE}] \ [-r, --rescale-factor ${RESCALE_FACTOR}] \ [-c, --channel-order ${CHANNEL_ORDER}] \ [--cfg-options ${CFG_OPTIONS}]所有参数的说明:
config: 模型配置文件的路径。-o, --output-dir: 保存图片文件夹,如果没有指定,默认为'',表示不保存。-p, --phase: 可视化数据集的阶段,只能为['train', 'val', 'test']之一,默认为'train'。-n, --show-number: 可视化样本数量。如果没有指定,默认展示数据集的所有图片。-i, --show-interval: 浏览时,每张图片的停留间隔,单位为秒。-m, --mode: 可视化的模式,只能为['original', 'transformed', 'concat', 'pipeline']之一。 默认为'transformed'.--cfg-options: 对配置文件的修改,参考[学习配置文件](./config.md)。示例:
--phase val: 可视化验证集, 可简化为-p val;--output-dir tmp: 可视化结果保存在 "tmp" 文件夹, 可简化为-o tmp;--mode original: 可视化原图, 可简化为-m original;--show-number 100: 可视化100张图,可简化为-n 100;