Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行visualize.py 后保存的图片中并没有显示Bounding Boxes #5

Open
Amberrferr opened this issue Mar 15, 2022 · 4 comments
Open

Comments

@Amberrferr
Copy link

你好,我想问一下,为什么我运行了python visualize.py --base_json vis_configs/dota1_0/config.json之后保存在submission中的图片并没有显示相应的Bounding Boxes?与原图是一样的

@jbwang1997
Copy link
Owner

可能路径有问题,并没有读取到标签信息。

@Amberrferr
Copy link
Author

Amberrferr commented Mar 24, 2022

我一开始也觉得可能是因为这个问题,但是我反复检查以后感觉路径并没有问题,这是我的命令行语句:
python BboxToolkit/tools/visualize.py --base_json BboxToolkit/tools/vis_configs/dota1_0/config.json
请问这样是正确的?是否还需要其它需要设定的地方?
这是我输出的vis_config.json文件:
"load_type": "dota_submission",
"img_dir": "/home/install/OBBDetection_new/visual_demo/images",
"ann_dir": "/home/install/OBBDetection_new/visual_demo/labelTxt",
"classes": "dota1.0",
"prior_annfile": null,
"merge_type": "addition",
"load_nproc": 10,
"skip_empty": false,
"random_vis": false,
"ids": null,
"show_off": true,
"save_dir": "/home/install/OBBDetection_new/visual_demo/visualization",
"vis_nproc": 10,
"shown_btype": null,
"shown_names": "/home/install/OBBDetection_new/BboxToolkit/tools/vis_configs/dota1_0/short_names.txt",
"score_thr": 0.2,
"colors": "/home/install/OBBDetection_new/BboxToolkit/tools/vis_configs/dota1_0/colors.txt",
"thickness": 3.0,
"text_off": false,
"font_size": 10,
"wait_time": 0
其中image文件夹中存在一个图片P0003.png, labelTxt文件夹中存在一个label P0003.txt

@Amberrferr
Copy link
Author

可能路径有问题,并没有读取到标签信息。

作者你好,我已经解决这个问题了,我忽略了load_type

@H1d30nbu3h
Copy link

你好,我想检测并且可视化diorr自己挑选的图,我该怎么修改配置文件呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants