Skip to content

Update on_train_end callback#7716

Merged
glenn-jocher merged 2 commits intomasterfrom
update/ontrainend
May 6, 2022
Merged

Update on_train_end callback#7716
glenn-jocher merged 2 commits intomasterfrom
update/ontrainend

Conversation

@glenn-jocher
Copy link
Copy Markdown
Member

@glenn-jocher glenn-jocher commented May 6, 2022

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Streamlining result logging in YOLOv5's training script.

📊 Key Changes

  • Removed a line in train.py that reported saving results to a directory.
  • Added similar logging functionality in utils/loggers/__init__.py, ensuring that results are logged through the logger object.

🎯 Purpose & Impact

  • The adjustment ensures that all logging goes through the designated logger, maintaining consistency and potentially making it easier to control output from a single point.
  • This change has a minor impact on users: anyone reviewing the training output will now receive a slightly neater log message.
  • It simplifies the codebase by removing redundant lines, thus helping contributors with clearer code to maintain.

👩‍💻🧹💡

@glenn-jocher glenn-jocher self-assigned this May 6, 2022
@glenn-jocher glenn-jocher merged commit aa7a0e9 into master May 6, 2022
@glenn-jocher glenn-jocher deleted the update/ontrainend branch May 6, 2022 04:25
tdhooghe pushed a commit to tdhooghe/yolov5 that referenced this pull request Jun 10, 2022
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant