forked from ultralytics/yolov5
-
Notifications
You must be signed in to change notification settings - Fork 0
Features: DEV-3305 Migrate to Poetry, Python 3.9, PyTorch 1.12 #22
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
5238a63
Use poetry
Mindstan 436f7ef
Only use Python >= 3.9
Mindstan 75a996a
Moved to PyTorch 1.12
Mindstan 105abb3
Bump version
Mindstan 22c3ad1
PyTorch 1.11.0 compatibility updates (#6932)
glenn-jocher 5494f49
Bump beta version
Mindstan 593ce56
Fix torch `long` to `float` tensor on HUB macOS (#8067)
glenn-jocher b15445a
Bump beta version
Mindstan f0f507a
Updated Makefile
Mindstan 951de69
Added README
Mindstan c14047b
Added missing VERSION
Mindstan 0846252
Final major version
Mindstan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added README
- Loading branch information
commit 951de69b12b6b642f4cd547f21d2566c98511a0f
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,57 @@ | ||
| # Fork of YOLOv5 | ||
|
|
||
| ## About the package | ||
|
|
||
| \# TODO | ||
|
|
||
| ## Package management | ||
|
|
||
| ### Makefile | ||
|
|
||
| Poetry `~1.2` is required to run the Makefile. | ||
|
|
||
| Install the environment: | ||
|
|
||
| ```bash | ||
| make env | ||
| ``` | ||
|
|
||
| Build the source and wheel distribution: | ||
|
|
||
| ```bash | ||
| make dist | ||
| ``` | ||
|
|
||
| Build and release the package to the private PyPI (requires to setup Poetry auth), and tag this commit: | ||
| ```bash | ||
| make release | ||
| ``` | ||
|
|
||
| Remove all temporary files (cached Python code) | ||
| ```bash | ||
| make clean | ||
| ``` | ||
|
|
||
| ### Poetry | ||
|
|
||
| This package is using Poetry. Here are some usefull commands. | ||
|
|
||
| ```bash | ||
| # Install current package environment | ||
| poetry install | ||
|
|
||
| # Install current package environment with dev dependencies | ||
| poetry install --with dev | ||
|
|
||
| # Run a command inside the virtualenv | ||
| poetry run my_command | ||
|
|
||
| # Enter the virtualenv (exit with exit command or <CTRL+D>) | ||
| poetry shell | ||
|
|
||
| # Update dependances | ||
| poetry lock | ||
|
|
||
| # Refresh lock file without looking for updated packages | ||
| poetry lock --no-update | ||
| ``` | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.