Skip to content
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

Update export.py, yolo.py sys.path.append() #3579

Merged
merged 1 commit into from
Jun 10, 2021
Merged

Update export.py, yolo.py sys.path.append() #3579

merged 1 commit into from
Jun 10, 2021

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Jun 10, 2021

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Improved module import paths and activation functions in export script.

πŸ“Š Key Changes

  • Refactored sys.path.append to use a cleaner, more consistent style.
  • Direct import statements for Conv and Detect classes instead of importing the entire models module.
  • Changed activation assignments in Conv to use export-friendly versions when exporting models.

🎯 Purpose & Impact

  • ✨ Maintainability: Using direct imports and cleaner paths makes the code more readable and easier to maintain.
  • πŸ”₯ Compatibility: Including export-specific activations ensures compatibility with various export formats.
  • πŸš€ User Experience: These changes may contribute to smoother model exports, benefiting users who deploy YOLOv5 models across different platforms.

@glenn-jocher glenn-jocher merged commit 53ed872 into master Jun 10, 2021
@glenn-jocher glenn-jocher deleted the add_path branch June 10, 2021 13:35
Lechtr pushed a commit to Lechtr/yolov5 that referenced this pull request Jul 20, 2021
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 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