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

How to use CmBN/self-adversarial mentioned in yolov4? #5377

Open
yinruiying opened this issue Apr 28, 2020 · 9 comments
Open

How to use CmBN/self-adversarial mentioned in yolov4? #5377

yinruiying opened this issue Apr 28, 2020 · 9 comments

Comments

@yinruiying
Copy link

No description provided.

@ly0303521
Copy link

#5117
self-adversarial

@vb123er951
Copy link

vb123er951 commented Jun 4, 2020

Does there have answer for "how to use CmBN?"
I try to use CmBN on cspdarknet53
I change all the batch_normalize=1 in cfg file to batch_normalize=2, but the IOU and GIOU always 0, like this:
擷取

@yinruiying
Copy link
Author

Does there have answer for "how to use CmBN?"
I try to use CmBN on cspdarknet53
I change all the batch_normalize=1 in cfg file to batch_normalize=2, but the IOU and GIOU always 0, like this:
擷取

I try batch_normalize=2 in my cfg, and the training process is normal.
image

@vb123er951
Copy link

Does there have answer for "how to use CmBN?"
I try to use CmBN on cspdarknet53
I change all the batch_normalize=1 in cfg file to batch_normalize=2, but the IOU and GIOU always 0, like this:
擷取

I try batch_normalize=2 in my cfg, and the training process is normal.
image

Your log shows you are using ciou? Do you change any other settings?
Can you tell me what pretrained weight you use and share your cfg with me?
Thank you very much.

@yinruiying
Copy link
Author

I use the pretrained weight trained on my own dataset many times. Just changing batchnorm=2, the best_map increase .8%.
darknet53-yolov3_20200604.cfg.txt

@yinruiying
Copy link
Author

#5117
self-adversarial

Thanks!I'll try it.

@kairavpatel
Copy link

kairavpatel commented Dec 17, 2020

I use the pretrained weight trained on my own dataset many times. Just changing batchnorm=2, the best_map increase .8%.
darknet53-yolov3_20200604.cfg.txt

Awesome result!!
Anyone has an idea, how many previous iterations are considered to calculate current statistics, while using CmBN? @AlexeyAB

@AlexeyAB
Copy link
Owner

Anyone has an idea, how many previous iterations are considered to calculate current statistics, while using CmBN?

This number is subdivisions in cfg file.

previous mini_batches inside one batch.

@kairavpatel
Copy link

Anyone has an idea, how many previous iterations are considered to calculate current statistics, while using CmBN?

This number is subdivisions in cfg file.

previous mini_batches inside one batch.
Ok..Thanks..

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

5 participants