Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.0%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: BehdadSDP
  • License: agpl-3.0
  • Language: Python
  • Default Branch: main
  • Size: 1.26 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 2 years ago · Last pushed about 1 year ago
Metadata Files
Contributing License Citation

https://github.com/BehdadSDP/AL-YOLO/blob/main/

# Ultralytics YOLOv5 

[![PyPI - YOLOv5](https://img.shields.io/pypi/v/yolov5?logo=pypi&logoColor=white)](https://pypi.org/project/yolov5/)
[![YOLOv5 CI](https://github.com/ultralytics/yolov5/actions/workflows/ci.yml/badge.svg)](https://github.com/ultralytics/yolov5/actions/workflows/ci.yml)
[![Downloads](https://img.shields.io/pypi/dm/yolov5)](https://pypi.org/project/yolov5/)
[![License: AGPL-3.0](https://img.shields.io/badge/License-AGPL_3.0-blue.svg)](https://opensource.org/licenses/AGPL-3.0)

Ultralytics YOLOv5 for state-of-the-art object detection, instance segmentation and image classification models.

**This README provides a brief overview. For full documentation, please visit [https://docs.ultralytics.com/yolov5/](https://docs.ultralytics.com/yolov5/).**

## Table of Contents

- [Installation](#installation)
- [Quick Start Examples](#quick-start-examples)
  - [Inference with `detect.py`](#inference-with-detectpy)
  - [Training with `train.py`](#training-with-trainpy)
  - [Validation with `val.py`](#validation-with-valpy)
- [License](#license)
- [Contributing](#contributing)
- [Citation](#citation)

## Installation

Clone the repository and install dependencies:

```bash
git clone https://github.com/ultralytics/yolov5  # clone
cd yolov5
pip install -r requirements.txt  # install
```

Alternatively, install via pip (may lag behind the latest GitHub version):
```bash
pip install yolov5
```

## Quick Start Examples

Download pretrained weights (e.g., `yolov5s.pt` for a small, fast model) or train your own.

```bash
# Download yolov5s.pt (if not already present)
# You might need to run this from within the cloned yolov5 directory
# or provide an explicit download path if using pip install.
# Example using wget:
# wget https://github.com/ultralytics/yolov5/releases/download/v7.0/yolov5s.pt
```

### Inference with `detect.py`

Run inference on various sources like images, videos, directories, webcams, etc.

```bash
python detect.py --weights yolov5s.pt --source 0                               # webcam
                                              img.jpg                         # image
                                              vid.mp4                         # video
                                              screen                          # screenshot
                                              path/                           # directory
                                              'path/*.jpg'                    # glob
                                              'https://youtu.be/LNwODJXcvt4'  # YouTube
                                              'rtsp://example.com/media.mp4'  # RTSP, RTMP, HTTP stream
```

Results are saved to `runs/detect/exp*/`.

### Training with `train.py`

Train a YOLOv5 model on a custom dataset (e.g., `coco128.yaml`).

```bash
# Train from scratch (replace yolov5s.yaml with desired model config)
# python train.py --data coco128.yaml --weights '' --cfg yolov5s.yaml --img 640

# Train from pretrained weights (recommended)
python train.py --data coco128.yaml --weights yolov5s.pt --img 640 --epochs 100 --batch-size 16
```

Specify your dataset configuration in a `.yaml` file (see `data/coco128.yaml` for an example). Training results and weights are saved to `runs/train/exp*/`.

### Validation with `val.py`

Validate a trained YOLOv5 model on a validation dataset.

```bash
python val.py --weights yolov5s.pt --data coco128.yaml --img 640 --task test # Use task 'test' for test set or 'val' for val set
```

Validation results (metrics, plots) are saved to `runs/val/exp*/`.

## License

YOLOv5 is licensed under the **AGPL-3.0 License**. See the [LICENSE](LICENSE) file for details.

## Contributing

Contributions are welcome! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) guide for details on how to contribute to the project.

## Citation

If you use YOLOv5 in your research, please cite the project. You can use the information in the [CITATION.cff](CITATION.cff) file. 

Owner

  • Name: Behdad
  • Login: BehdadSDP
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
preferred-citation:
  type: software
  message: If you use YOLOv5, please cite it as below.
  authors:
  - family-names: Jocher
    given-names: Glenn
    orcid: "https://orcid.org/0000-0001-5950-6979"
  title: "YOLOv5 by Ultralytics"
  version: 7.0
  doi: 10.5281/zenodo.3908559
  date-released: 2020-5-29
  license: AGPL-3.0
  url: "https://github.com/ultralytics/yolov5"

GitHub Events

Total
  • Push event: 1
Last Year
  • Push event: 1

Dependencies

utils/docker/Dockerfile docker
  • pytorch/pytorch 2.0.0-cuda11.7-cudnn8-runtime build
utils/google_app_engine/Dockerfile docker
  • gcr.io/google-appengine/python latest build
pyproject.toml pypi
  • matplotlib >=3.3.0
  • numpy >=1.22.2
  • opencv-python >=4.6.0
  • pandas >=1.1.4
  • pillow >=7.1.2
  • psutil *
  • py-cpuinfo *
  • pyyaml >=5.3.1
  • requests >=2.23.0
  • scipy >=1.4.1
  • seaborn >=0.11.0
  • thop >=0.1.1
  • torch >=1.8.0
  • torchvision >=0.9.0
  • tqdm >=4.64.0
  • ultralytics >=8.1.47
requirements.txt pypi
  • PyYAML >=5.3.1
  • gitpython >=3.1.30
  • matplotlib >=3.3
  • numpy >=1.23.5
  • opencv-python >=4.1.1
  • pandas >=1.1.4
  • pillow >=10.3.0
  • psutil *
  • requests >=2.23.0
  • scipy >=1.4.1
  • seaborn >=0.11.0
  • setuptools >=65.5.1
  • thop >=0.1.1
  • torchvision >=0.9.0
  • tqdm >=4.64.0
  • ultralytics >=8.0.232
  • wheel >=0.38.0
utils/google_app_engine/additional_requirements.txt pypi
  • Flask ==2.3.2
  • gunicorn ==22.0.0
  • pip ==23.3
  • werkzeug >=3.0.1