-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Any suggestion for training tiny-yolo from scratch? #696
Comments
@Ringhu you need accumulate 1.
|
@glenn-jocher Thanks for reply. I will try it sooner. |
@Ringhu BTW I would also |
@glenn-jocher the .png file is attached. |
@Ringhu this is very strange behavior on the last couple epochs. I've never seen the validation losses drop like that. Something may be wrong with your training. Are you using an un-modified git clone? About the --accumulate, you always need to use --batch-size --accumulate multiplied together to calculate the total batch size. So your first command was --batch-size 64 --accumulate 4 (4 is argparse default), which leads to a total batch-size of 256, which is much larger than recommended. We recommend total batch size of 64, using --batch 64 --accum 1, or --batch 32 --accum 2 for example. |
Also use multi scale. Basically use everything mentioned in #310 |
Hi @glenn-jocher ,Here is my update command: |
This command reproduces our mAP results when training $ python3 train.py --weights '' --cfg yolov3-spp.cfg --epochs 273 --batch 16 --accum 4 --multi --pre I suggest you simply clone the default repo without changes and train using the above command, swapping your cfg in of course. |
Hi @glenn-jocher ,I git pull a current version of the repo yesterday and trained yolov3 24epoch for test.However, the result still seemed not good, |
@Ringhu don't use --adam |
Hi @glenn-jocher .It's just a update of my training. Finally I trained the tiny-yolo to the [email protected] 33.1 with this command: |
@Ringhu yeah that all looks correct! Good work :) |
Thanks for the contribution first!
I have a question here. I'm doing some research of tiny-yolo so I need to reproduce the result, which is the mAP, of tiny-yolo. In the README.md you mention the [email protected] of size 416 is 33.0, while I only get 30.7 when I trained the tiny-yolo from scratch. My trainning command is:
python3 train.py --cfg=cfg/yolov3-tiny.cfg --batch-size=64 --device=1,2 --weights=
And I do the training with 2 RTX 2080Ti GPU.
The results is attachedresults.txt.
Is there any suggestion for my training to increase the mAP to 33.0?
The text was updated successfully, but these errors were encountered: