-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
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
the speed of training my custom data #1196
Comments
@alicera with no details on your hardware there can be no answer to your question. |
@alicera also I see you are using a custom dataset despite your yaml being called coco.yaml. So you have an unknown dataset with unknown hardware asking people if your training time is correct. |
It is a problem about dataset. |
python test.py --weights yolov5x.pt --data coco.yaml --img 640 Output:
Speed: 9.2/8.6/17.8 ms inference/NMS/total per 640x640 image at batch-size 32 It have no the Do you know the reason? |
@alicera pycocotools mAP only runs on the COCO dataset. |
Hi, @alicera in road.yaml
and just changed only 'nc' in yolov5s.model
and training code would be,
|
@dongjuns yes this is good advice! We've updated the training commands to make them even simpler. Now you only need to specify your --data and your pretrained --weights. python train.py --data road.yaml --weights yolov5s.pt --batch-size 16 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
❔Question
I try to follow the #475 and https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data
I use the command
python -m torch.distributed.launch --nproc_per_node 4 train.py --batch-size 128 --data coco.yaml --cfg yolov5s.yaml --weights ''
Is it normal speed? or some problem
The log is
Epoch gpu_mem box obj cls total targets img_size
6/299 7.2G 0.08226 0.2537 0 0.3359 2253 640: 100%|█████████████████████| 389/389 [58:10<00:00, 4.97s/it]
Class Images Targets P R [email protected] [email protected]:.95: 100%|███████| 389/389 [1:01:00<00:00, 3.66s/it]
all 4.97e+04 5.03e+06 0.339 0.169 0.106 0.0322
The text was updated successfully, but these errors were encountered: