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

anachor计算 #1441

Open
hyz001 opened this issue Aug 18, 2018 · 2 comments
Open

anachor计算 #1441

hyz001 opened this issue Aug 18, 2018 · 2 comments

Comments

@hyz001
Copy link

hyz001 commented Aug 18, 2018

我使用gen_anchors.py,生成anchors,数据集是自己标注的商品数据,box大小差不多,18个class,结果是:
0.66,1.33, 0.78,2.37, 0.96,1.60, 1.08,1.08, 1.10,2.88, 1.23,1.89, 1.47,1.32, 1.60,2.63, 1.82,1.70
0.824868
数值这么小,正确吗?

@AlexeyAB
Copy link
Owner

gen_anchors.py is for Yolo v2 (not for Yolo v3)

Yes, in the yolo v2 the anchors have small values:

anchors = 1.3221, 1.73145, 3.19275, 4.00944, 5.05587, 8.09892, 9.47112, 4.84053, 11.2364, 10.0071

@hyz001
Copy link
Author

hyz001 commented Aug 20, 2018

recalculate anchors for your dataset for width and height from cfg-file: darknet.exe detector calc_anchors data/obj.data -num_of_clusters 9 -width 416 -height 416 then set the same 9 anchors in each of 3 [yolo]-layers in your cfg-file
这个指令在我电脑运行不出来,请问yolov3如何计算anachor?

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

2 participants