# Contributing to YOLO π
We value your input and are committed to making contributing to YOLO as easy and transparent as possible. Whether you're:
- Reporting a bug
- Discussing the current state of the codebase
- Submitting a fix
- Proposing a new feature
- Interested in becoming a maintainer
Ultralytics YOLO thrives thanks to the collective efforts of our community. Every improvement you contribute helps push the boundaries of what's possible in AI! π
## π οΈ Submitting a Pull Request (PR)
Submitting a PR is straightforward! Hereβs an example showing how to update `requirements.txt` in four simple steps:
### 1. Select the File to Update
Click on `requirements.txt` in the GitHub repository.

### 2. Click 'Edit this file'
Find the 'Edit this file' button in the top-right corner.

### 3. Make Your Changes
For example, update the `matplotlib` version from `3.2.2` to `3.3`.

### 4. Preview Changes and Submit Your PR
Click the **Preview changes** tab to review your updates. At the bottom, select 'Create a new branch for this commit', give your branch a descriptive name like `fix/matplotlib_version`, and click the green **Propose changes** button. Your PR is now submitted for review! π

### PR Best Practices
To ensure your work is integrated smoothly, please:
- β
Make sure your PR is **up-to-date** with the `ultralytics/yolov5` `master` branch. If your branch is behind, update it using the 'Update branch' button or by running `git pull` and `git merge master` locally.

- β
Ensure all YOLO Continuous Integration (CI) **checks are passing**.

- β
Limit your changes to the **minimum** required for your bug fix or feature.
_"It is not daily increase but daily decrease, hack away the unessential. The closer to the source, the less wastage there is."_ β Bruce Lee
## π Submitting a Bug Report
If you encounter an issue with YOLO, please submit a bug report!
To help us investigate, we need to be able to reproduce the problem. Follow these guidelines to provide what we need to get started:
When asking a question or reporting a bug, you'll get better help if you provide **code** that others can easily understand and use to **reproduce** the issue. This is known as a [minimum reproducible example](https://docs.ultralytics.com/help/minimum-reproducible-example/). Your code should be:
- β
**Minimal** β Use as little code as possible that still produces the issue
- β
**Complete** β Include all parts needed for someone else to reproduce the problem
- β
**Reproducible** β Test your code to ensure it actually reproduces the issue
Additionally, for [Ultralytics](https://www.ultralytics.com/) to assist you, your code should be:
- β
**Current** β Ensure your code is up-to-date with the latest [master branch](https://github.com/ultralytics/yolov5/tree/master). Use `git pull` or `git clone` to get the latest version and confirm your issue hasn't already been fixed.
- β
**Unmodified** β The problem must be reproducible without any custom modifications to the repository. [Ultralytics](https://www.ultralytics.com/) does not provide support for custom code β οΈ.
If your issue meets these criteria, please close your current issue and open a new one using the π **Bug Report** [template](https://github.com/ultralytics/yolov5/issues/new/choose), including your [minimum reproducible example](https://docs.ultralytics.com/help/minimum-reproducible-example/) to help us diagnose your problem.
## π License
By contributing, you agree that your contributions will be licensed under the [AGPL-3.0 license](https://choosealicense.com/licenses/agpl-3.0/).
---
For more details on contributing, check out the [Ultralytics open-source contributing guide](https://docs.ultralytics.com/help/contributing/), and explore our [Ultralytics blog](https://www.ultralytics.com/blog) for community highlights and best practices.
We welcome your contributionsβthank you for helping make Ultralytics YOLO better! π
[](https://github.com/ultralytics/ultralytics/graphs/contributors)