docs(visualization): 添加脚本使用示例到文件末尾
在 visualize_attention.py 文件末尾添加了脚本调用示例,说明如何通过命令行参数运行该可视化工具,便于用户快速了解使用方法。
This commit is contained in:
1 parent
4e27e8b3f0
commit
28f01968a6
1 file changed
+12
@@ -292,3 +292,15 @@ def main():
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
'''
|
||||
usage:
|
||||
|
||||
python visualization/visualize_attention.py `
|
||||
--checkpoint "path/to/your/finetuned_checkpoint.pth" `
|
||||
--data_root "path/to/your/dataset_root" `
|
||||
--split_file "path/to/your/split.json" `
|
||||
--config "CWT_MAE_v3/config.yaml" `
|
||||
--output "attention_result.png" `
|
||||
--mode "val" `
|
||||
--index 0
|
||||
'''
|
||||
Reference in new issue
Block a user