Results 416 comments of Ayush Chaurasia

That's strange. Our test here passed on the main branch https://github.com/ultralytics/ultralytics/blob/main/tests/test_python.py#L81

yeah that sounds right! I'll see whats up tomorrow

@haimat this should be fixed in master. It was related to DDP. Was it a ddp training where you got None?

Yes the main branch should work now

@haimat yes it should work with ddp mode as well. Let me know if you face any issues

Hmm 🤔 okay I'll need to debug this in DDP mode then. I'll back to you

@glenn-jocher yeah that seems like the only approach we have left. EDIT: I think this might work but if not then let's just revert it. I don't understand the cause...

> @AyushExel I tried to update this line in but now getting a new error: [d46d828](https://github.com/ultralytics/ultralytics/commit/d46d82867ad6cf06e281d7c91c27154dffc6c15d) > > `AttributeError: 'DetectionTrainer' object has no attribute 'metrics' ` I tried this it's...

@glenn-jocher this won't be a standard solution as trainer.metrics is raw dict but validator.metrics is a Python object wrapper around the dict. So we also need to return validator.metrics.results_dict set...

@glenn-jocher works on mac m1