forked from ultralytics/yolov5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Features: DEV-3305 Migrate to Poetry, Python 3.9, PyTorch 1.12 (#22)
* Use poetry * Only use Python >= 3.9 * Moved to PyTorch 1.12 * Bump version * PyTorch 1.11.0 compatibility updates (ultralytics#6932) Resolves `AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'` first raised in ultralytics#5499 * Bump beta version * Fix torch `long` to `float` tensor on HUB macOS (ultralytics#8067) * Bump beta version * Updated Makefile * Added README * Added missing VERSION * Final major version Co-authored-by: Glenn Jocher <[email protected]>
- Loading branch information
1 parent
e942902
commit d9f1cd8
Showing
10 changed files
with
1,276 additions
and
119 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +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 | ||
``` |
Oops, something went wrong.