WongKinYiu / yolor

implementation of paper - You Only Learn One Representation: Unified Network for Multiple Tasks (https://arxiv.org/abs/2105.04206)
GNU General Public License v3.0
1.98k stars 524 forks source link

Paper branch or main branch? #143

Closed DP1701 closed 2 years ago

DP1701 commented 2 years ago

Hello all,

I have a few questions because I am a little confused. I have a costum dataset (3 classes, 2800 images) which I would like to use for training.

Should I clone the main branch or the paper branch? In the paper branch, for example, there is the file yolor-p6.yaml in the model/ folder, while in the main branch there is the file yolov4_p6.cfg in the cfg/ folder. Which one should I use?

In the data/ folder I also find the two files hyp.finetune.1280.yaml and hyp.scratch.1280.yaml. Which one do you recommend to take if I take the weights from the file yolor_p6.pt? Or should I rather train from scratch?

Another question: What makes tune.py?

Sorry for all the questions, but I would like to understand this.

Deadpool5549 commented 2 years ago

Hi, I have used both branches for training (main branch for training p6, paper branch for d6) ,I don't think there will be any difference, but make sure you use the same weights for respective branch. Use finetuning(hyp.finetune (it further augments your images)) after completing few hundred epochs, Training from scratch takes time, so use pretrained weight. From what I know tune.py uses different mosaics https://github.com/WongKinYiu/yolor/issues/2#issuecomment-841727031

DP1701 commented 2 years ago

Thank you for the explanation!