ultralytics / yolov5

YOLOv5 🚀 in PyTorch > ONNX > CoreML > TFLite
https://docs.ultralytics.com
GNU Affero General Public License v3.0
50.58k stars 16.31k forks source link

mosaic ratio or stop mosaic epochs #7667

Closed Jad-Goh closed 2 years ago

Jad-Goh commented 2 years ago

Search before asking

Question

I want to set up mosaic ratio . For example ,I train 300 epochs ,the first 270 epochs I want to train with mosaic , and the last 30 epochs I don't want to train with mosaic . How should I do. I have experienced on other models ,the results shows that this way could improve the mAP.

Additional

No response

glenn-jocher commented 2 years ago

@Jad-Goh there is no hyperparameter scheduling in place currently, but you might be able to use the same method here on L309 to update dataset properties:

https://github.com/ultralytics/yolov5/blob/1994ad93e431b5b0f7b66cc231511067032732cb/train.py#L305-L310

Jad-Goh commented 2 years ago

@Jad-Goh there is no hyperparameter scheduling in place currently, but you might be able to use the same method here on L309 to update dataset properties:

https://github.com/ultralytics/yolov5/blob/1994ad93e431b5b0f7b66cc231511067032732cb/train.py#L305-L310

Although I don't understand ,thanks a lot!I have a stupid method .

wenjunx commented 2 years ago

@Jad-Goh there is no hyperparameter scheduling in place currently, but you might be able to use the same method here on L309 to update dataset properties: https://github.com/ultralytics/yolov5/blob/1994ad93e431b5b0f7b66cc231511067032732cb/train.py#L305-L310

Although I don't understand ,thanks a lot!I have a stupid method .

how do you do? I want to learn,thank you!

wenjunx commented 2 years ago

@Jad-Goh

Jad-Goh commented 2 years ago

@Jad-Goh there is no hyperparameter scheduling in place currently, but you might be able to use the same method here on L309 to update dataset properties: https://github.com/ultralytics/yolov5/blob/1994ad93e431b5b0f7b66cc231511067032732cb/train.py#L305-L310

Although I don't understand ,thanks a lot!I have a stupid method .

how do you do? I want to learn,thank you!

很笨的一个办法,这个办法我还没有具体操作,想法是这样的:假如我要训练300个epoch,我自己手动看着,到了290个epoch的时候,我手动停止,然后手动更改run文件夹里面的opt.yaml文件的hyp路径(或者直接改这个文件的mosaic参数),然后继续训练剩下的10个epoch。

wenjunx commented 2 years ago

好的,谢谢你

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年6月6日(星期一) 下午5:25 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [ultralytics/yolov5] mosaic ratio or stop mosaic epochs (Issue #7667)

@Jad-Goh there is no hyperparameter scheduling in place currently, but you might be able to use the same method here on L309 to update dataset properties: https://github.com/ultralytics/yolov5/blob/1994ad93e431b5b0f7b66cc231511067032732cb/train.py#L305-L310

Although I don't understand ,thanks a lot!I have a stupid method .

how do you do? I want to learn,thank you!

很笨的一个办法,这个办法我还没有具体操作,想法是这样的:假如我要训练300个epoch,我自己手动看着,到了290个epoch的时候,我手动停止,然后手动更改run文件夹里面的opt.yaml文件的hyp路径(或者直接改这个文件的mosaic参数),然后继续训练剩下的10个epoch。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

github-actions[bot] commented 2 years ago

👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.

Access additional YOLOv5 🚀 resources:

Access additional Ultralytics ⚡ resources:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐!