Darknet: cfg and pretrained weight

Created on 5 Nov 2019  路  5Comments  路  Source: AlexeyAB/darknet

Hi, I am new in darknet, and I have question about pretrained weight(like darknet53.conv.74).

  1. If I modify the yolov3.cfg (add maxpooling layer and change the numbers of layers), can I use the same pretrained weights (darknet53.con.74) or what can I do??

And I also wondering how does pretrained weights work :

  1. cfg is not same to yolov3 and object is not same to coco
  2. cfg is same to yolov3 but object is not same to coco

Sorry, my English is not good.

Most helpful comment

darknet53.conv.74 here 74 means that it contains the weights from the first 74 layers. So if you modified the first 74 layers in your cfg-file, then you can't use darknet53.conv.74 file.

All 5 comments

darknet53.conv.74 here 74 means that it contains the weights from the first 74 layers. So if you modified the first 74 layers in your cfg-file, then you can't use darknet53.conv.74 file.

Thanks for your reply.

@AlexeyAB
I want to know if my thoughts are right.
When I鈥檓 training, if my cfg is not same to yolov3, but I choose darknet53.conv.74, then the initial weights will not apply darknet53.conv.74.The initial weight will be zero or random, and start to train.
Is it right?

If you don't use pre-trained weights - your weights will be random

Thanks for your answer.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Greta-A picture Greta-A  路  3Comments

off99555 picture off99555  路  3Comments

HanSeYeong picture HanSeYeong  路  3Comments

hemp110 picture hemp110  路  3Comments

Yumin-Sun-00 picture Yumin-Sun-00  路  3Comments