-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
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
Add yolov5/__init__.py #3127
Add yolov5/__init__.py #3127
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 Hello @KC-Zhang, thank you for submitting a 🚀 PR! To allow your work to be integrated as seamlessly as possible, we advise you to:
- ✅ Verify your PR is up-to-date with origin/master. If your PR is behind origin/master an automatic GitHub actions rebase may be attempted by including the /rebase command in a comment body, or by running the following code, replacing 'feature' with the name of your local branch:
git remote add upstream https://github.com/ultralytics/yolov5.git
git fetch upstream
git checkout feature # <----- replace 'feature' with local branch name
git rebase upstream/master
git push -u origin -f
- ✅ Verify all Continuous Integration (CI) checks are passing.
- ✅ Reduce changes to the absolute minimum required for your bug fix or feature addition. "It is not daily increase but daily decrease, hack away the unessential. The closer to the source, the less wastage there is." -Bruce Lee
@KC-Zhang You can utilize torch hub or use this pypi package for this purpose. |
@KC-Zhang PR is passing CI, we'll try out your init. Thank you for your contributions! |
(cherry picked from commit bd6f6a7)
add an empty init.py in the base folder.
This way, the yolov5 folder can be installed as a package within our own projects as a git-submodule, and install everything using a setup.py. Since it is not clean to modify contents of a submodule (including adding init.py), it's better if the repo already has init.py.
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Introducing a new initial file setup for the
ultralytics/yolov5
project.📊 Key Changes
__init__.py
file has been added to the repository.🎯 Purpose & Impact
__init__.py
file signals that the directory it resides in is a Python package, allowing for its modules to be easily imported elsewhere in the project or by other Python projects.