-
Notifications
You must be signed in to change notification settings - Fork 8k
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
recaculate anchors #1517
Comments
I want to recaculate anchors for yolov3-tiny.cfg. |
Do you use code from this repository?
Use the command:
Can you show screenshot? |
@gzhengli Do you use code from this repository or from https://github.com/pjreddie/darknet ? |
@AlexeyAB The latter .Frome https://github.com/pjreddie/darknet |
@gzhengli Try to use this repository: https://github.com/AlexeyAB/darknet |
hi! @gzhengli @AlexeyAB What is it "-num_of_clusters"? I want to recalculate to 608x608. Thanks! |
@AshleyRoth It is number of anchors (number of pairs of values), it is equal 5 for yolov2, 6 for yolov3-tiny, 9 for yolov3. |
@AlexeyAB Thank you! |
https://github.com/AlexeyAB/darknet/blob/master/scripts/gen_anchors.py How to use the above python code for YOLOv3? Are the modifications below all that needed?
|
should the values be fixed according to the architectures or we can random define the number of anchors, i.e., using 7 for yolo3-tiny? |
@ouyangkid You can use any number of anchors, but then you should change number of filters before each [yolo]-layer: https://github.com/AlexeyAB/darknet#how-to-train-to-detect-your-custom-objects
|
@AlexeyAB [convolutional] [yolo]
|
And in [yolo] you set this number by setting However,
p.s. this |
I used the command : ./darknet detector calc_anchors data/voc.data -num_of_clusters 9 -width 416 -height 416 to recaculate the anchors about my dataset.
But the result is there no output,just like this:
zhengli@zhengli-K55VD:~/darknet$ ./darknet detector calc_anchors data/voc.data -num_of_clusters 9 -width 416 -height 416 zhengli@zhengli-K55VD:~/darknet$
Why did this happen?
And in "https://github.com/AlexeyAB/darknet/blob/master/scripts/gen_anchors.py ",Where can I to change the path to recaculate for my dataset?
It's there?
` parser.add_argument('-filelist', default = '\path\to\voc\filelist\train.txt',
The text was updated successfully, but these errors were encountered: