`ultralytics 8.0.51` add assets and CI actions (#1296)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Paul Kehrer <paulhkehrer@gmail.com>pull/861/head v8.0.51
parent
f0d8e4718b
commit
790f9c067c
21 changed files with 272 additions and 107 deletions
@ -0,0 +1,55 @@ |
||||
# Ultralytics YOLO 🚀, GPL-3.0 license |
||||
|
||||
name: Greetings |
||||
|
||||
on: |
||||
pull_request_target: |
||||
types: [opened] |
||||
issues: |
||||
types: [opened] |
||||
|
||||
jobs: |
||||
greeting: |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- uses: actions/first-interaction@v1 |
||||
with: |
||||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
||||
pr-message: | |
||||
👋 Hello @${{ github.actor }}, thank you for submitting a YOLOv8 🚀 PR! To allow your work to be integrated as seamlessly as possible, we advise you to: |
||||
|
||||
- ✅ Verify your PR is **up-to-date** with `ultralytics/ultralytics` `main` branch. If your PR is behind you can update your code by clicking the 'Update branch' button or by running `git pull` and `git merge master` locally. |
||||
- ✅ Verify all YOLOv8 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 |
||||
|
||||
See our [Contributing Guide](https://github.com/ultralytics/ultralytics/blob/main/CONTRIBUTING.md) for details and let us know if you have any questions! |
||||
|
||||
issue-message: | |
||||
👋 Hello @${{ github.actor }}, thank you for your interest in YOLOv8 🚀! We recommend a visit to the [YOLOv8 Docs](https://docs.ultralytics.com) for new users where you can find many [Python](https://docs.ultralytics.com/python/) and [CLI](https://docs.ultralytics.com/cli/) usage examples and where many of the most common questions may already be answered. |
||||
|
||||
If this is a 🐛 Bug Report, please provide a [minimum reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) to help us debug it. |
||||
|
||||
If this is a custom training ❓ Question, please provide as much information as possible, including dataset image examples and training logs, and verify you are following our [Tips for Best Training Results](https://github.com/ultralytics/yolov5/wiki/Tips-for-Best-Training-Results). |
||||
|
||||
## Install |
||||
|
||||
Pip install the `ultralytics` package including all [requirements.txt](https://github.com/ultralytics/ultralytics/blob/main/requirements.txt) in a [**Python>=3.7**](https://www.python.org/) environment with [**PyTorch>=1.7**](https://pytorch.org/get-started/locally/). |
||||
|
||||
```bash |
||||
pip install ultralytics |
||||
``` |
||||
|
||||
## Environments |
||||
|
||||
YOLOv8 may be run in any of the following up-to-date verified environments (with all dependencies including [CUDA](https://developer.nvidia.com/cuda)/[CUDNN](https://developer.nvidia.com/cudnn), [Python](https://www.python.org/) and [PyTorch](https://pytorch.org/) preinstalled): |
||||
|
||||
- **Notebooks** with free GPU: <a href="https://console.paperspace.com/github/ultralytics/ultralytics"><img src="https://assets.paperspace.io/img/gradient-badge.svg" alt="Run on Gradient"/></a> <a href="https://colab.research.google.com/github/ultralytics/ultralytics/blob/main/examples/tutorial.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> <a href="https://www.kaggle.com/ultralytics/yolov8"><img src="https://kaggle.com/static/images/open-in-kaggle.svg" alt="Open In Kaggle"></a> |
||||
- **Google Cloud** Deep Learning VM. See [GCP Quickstart Guide](https://github.com/ultralytics/yolov5/wiki/GCP-Quickstart) |
||||
- **Amazon** Deep Learning AMI. See [AWS Quickstart Guide](https://github.com/ultralytics/yolov5/wiki/AWS-Quickstart) |
||||
- **Docker Image**. See [Docker Quickstart Guide](https://github.com/ultralytics/yolov5/wiki/Docker-Quickstart) <a href="https://hub.docker.com/r/ultralytics/ultralytics"><img src="https://img.shields.io/docker/pulls/ultralytics/ultralytics?logo=docker" alt="Docker Pulls"></a> |
||||
|
||||
## Status |
||||
|
||||
<a href="https://github.com/ultralytics/ultralytics/actions/workflows/ci.yaml?query=event%3Aschedule"><img src="https://github.com/ultralytics/ultralytics/actions/workflows/ci.yaml/badge.svg" alt="Ultralytics CI"></a> |
||||
|
||||
If this badge is green, all [Ultralytics CI](https://github.com/ultralytics/ultralytics/actions/workflows/ci.yaml?query=event%3Aschedule) tests are currently passing. CI tests verify correct operation of all YOLOv8 modes and tasks on macOS, Windows, and Ubuntu every 24 hours and on every commit. |
@ -0,0 +1,67 @@ |
||||
# Ultralytics YOLO 🚀, GPL-3.0 license |
||||
# Publish pip package to PyPI https://pypi.org/project/ultralytics/ and Docs to https://docs.ultralytics.com |
||||
|
||||
name: Publish to PyPI and Deploy Docs |
||||
|
||||
on: |
||||
workflow_dispatch: |
||||
inputs: |
||||
pypi: |
||||
type: boolean |
||||
description: Publish to PyPI |
||||
docs: |
||||
type: boolean |
||||
description: Deploy Docs |
||||
push: |
||||
branches: [main] |
||||
|
||||
jobs: |
||||
publish: |
||||
if: github.repository == 'ultralytics/ultralytics' && github.actor == 'glenn-jocher' |
||||
name: Publish |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- name: Checkout code |
||||
uses: actions/checkout@v3 |
||||
- name: Set up Python environment |
||||
uses: actions/setup-python@v4 |
||||
with: |
||||
python-version: '3.10' |
||||
cache: 'pip' # caching pip dependencies |
||||
- name: Install dependencies |
||||
run: | |
||||
python -m pip install --upgrade pip wheel build twine |
||||
pip install -e '.[dev]' --extra-index-url https://download.pytorch.org/whl/cpu |
||||
- name: Check PyPI version |
||||
shell: python |
||||
run: | |
||||
import pkg_resources as pkg |
||||
import ultralytics |
||||
import os |
||||
from ultralytics.yolo.utils.checks import check_latest_pypi_version |
||||
|
||||
v_local = pkg.parse_version(ultralytics.__version__).release |
||||
v_pypi = pkg.parse_version(check_latest_pypi_version()).release |
||||
print(f'Local version is {v_local}') |
||||
print(f'PyPI version is {v_pypi}') |
||||
d = [a - b for a, b in zip(v_local, v_pypi)] # diff |
||||
increment = (d[0] == d[1] == 0) and d[2] == 1 # only patch increment by 1 |
||||
os.system(f'echo "increment={increment}" >> $GITHUB_OUTPUT') |
||||
if increment: |
||||
print('Local version is higher than PyPI version. Publishing new version to PyPI ✅.') |
||||
id: check_pypi |
||||
- name: Publish to PyPI |
||||
continue-on-error: true |
||||
if: (github.event_name == 'push' || github.event.inputs.pypi == 'true') && steps.check_pypi.outputs.increment == 'True' |
||||
env: |
||||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} |
||||
run: | |
||||
python -m build |
||||
python -m twine upload dist/* -u __token__ -p $PYPI_TOKEN |
||||
- name: Deploy Docs |
||||
continue-on-error: true |
||||
if: (github.event_name == 'push' && steps.check_pypi.outputs.increment == 'True') || github.event.inputs.docs == 'true' |
||||
run: | |
||||
mkdocs gh-deploy || true |
||||
git checkout gh-pages |
||||
git push https://github.com/ultralytics/docs gh-pages --force |
@ -0,0 +1,47 @@ |
||||
# Ultralytics YOLO 🚀, GPL-3.0 license |
||||
|
||||
name: Close stale issues |
||||
on: |
||||
schedule: |
||||
- cron: '0 0 * * *' # Runs at 00:00 UTC every day |
||||
|
||||
jobs: |
||||
stale: |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- uses: actions/stale@v7 |
||||
with: |
||||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
||||
|
||||
stale-issue-message: | |
||||
👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help. |
||||
|
||||
For additional resources and information, please see the links below: |
||||
|
||||
- **Docs**: https://docs.ultralytics.com |
||||
- **HUB**: https://hub.ultralytics.com |
||||
- **Community**: https://community.ultralytics.com |
||||
|
||||
Feel free to inform us of any other **issues** you discover or **feature requests** that come to mind in the future. Pull Requests (PRs) are also always welcomed! |
||||
|
||||
Thank you for your contributions to YOLO 🚀 and Vision AI ⭐ |
||||
|
||||
stale-pr-message: | |
||||
👋 Hello there! We wanted to let you know that we've decided to close this pull request due to inactivity. We appreciate the effort you put into contributing to our project, but unfortunately, not all contributions are suitable or aligned with our product roadmap. |
||||
|
||||
We hope you understand our decision, and please don't let it discourage you from contributing to open source projects in the future. We value all of our community members and their contributions, and we encourage you to keep exploring new projects and ways to get involved. |
||||
|
||||
For additional resources and information, please see the links below: |
||||
|
||||
- **Docs**: https://docs.ultralytics.com |
||||
- **HUB**: https://hub.ultralytics.com |
||||
- **Community**: https://community.ultralytics.com |
||||
|
||||
Thank you for your contributions to YOLO 🚀 and Vision AI ⭐ |
||||
|
||||
days-before-issue-stale: 30 |
||||
days-before-issue-close: 10 |
||||
days-before-pr-stale: 90 |
||||
days-before-pr-close: 30 |
||||
exempt-issue-labels: 'documentation,tutorial,TODO' |
||||
operations-per-run: 300 # The maximum number of operations per run, used to control rate limiting. |
Before Width: | Height: | Size: 476 KiB After Width: | Height: | Size: 134 KiB |
Before Width: | Height: | Size: 165 KiB After Width: | Height: | Size: 49 KiB |
Loading…
Reference in new issue