Repository navigation
Different recognition results on different GPU #9288
Replies: 1 comment 2 replies
|
👋 Hello! Thanks for asking about training reproducibility. YOLOv5 🚀 uses a single training seed which is set here using the Line 104 in 7215a0f This function sets Lines 198 to 214 in 7215a0f To set a new training seed for example: python train.py --seed 3 # default seed=0Note that even when using the same seed trainings may produce different results, especially when using CUDA backends. See https://pytorch.org/docs/stable/notes/randomness.html for details on factors affecting PyTorch training reproducibility and sources of randomness. Good luck 🍀 and let us know if you have any other questions! |



👋 Hello! Thanks for asking about training reproducibility. YOLOv5 🚀 uses a single training seed which is set here using the
init_seeds()function. CPU and Single-GPU trainings should be fully reproducible withtorch>=1.12.0. Multi-GPU DDP trainings are still not reproducible unfortunately. This is an open issue for us and we could use any help in tracking down this problem.yolov5/train.py
Line 104 in 7215a0f
This function sets
python,numpyandtorchseeds and updatescudnnsettings:yolov5/utils/general.py
Lines 198 to 214 in 7215a0f