diff --git a/ultralytics-main/.github/ISSUE_TEMPLATE/config.yml b/ultralytics-main/.github/ISSUE_TEMPLATE/config.yml
deleted file mode 100644
index 9018a62..0000000
--- a/ultralytics-main/.github/ISSUE_TEMPLATE/config.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-blank_issues_enabled: true
-contact_links:
- - name: 📄 Docs
- url: https://docs.ultralytics.com/
- about: Full Ultralytics YOLOv8 Documentation
- - name: 💬 Forum
- url: https://community.ultralytics.com/
- about: Ask on Ultralytics Community Forum
- - name: 🎧 Discord
- url: https://ultralytics.com/discord
- about: Ask on Ultralytics Discord
diff --git a/ultralytics-main/.github/workflows/ci.yaml b/ultralytics-main/.github/workflows/ci.yaml
deleted file mode 100644
index 4eadc3b..0000000
--- a/ultralytics-main/.github/workflows/ci.yaml
+++ /dev/null
@@ -1,288 +0,0 @@
-# Ultralytics YOLO 🚀, AGPL-3.0 license
-# YOLO Continuous Integration (CI) GitHub Actions tests
-
-name: Ultralytics CI
-
-on:
- push:
- branches: [main]
- paths-ignore:
- - "docs/**"
- - "mkdocs.yml"
- pull_request:
- branches: [main]
- paths-ignore:
- - "docs/**"
- schedule:
- - cron: "0 0 * * *" # runs at 00:00 UTC every day
- workflow_dispatch:
- inputs:
- hub:
- description: "Run HUB"
- default: false
- type: boolean
- benchmarks:
- description: "Run Benchmarks"
- default: false
- type: boolean
- tests:
- description: "Run Tests"
- default: false
- type: boolean
- gpu:
- description: "Run GPU"
- default: false
- type: boolean
- conda:
- description: "Run Conda"
- default: false
- type: boolean
-
-jobs:
- HUB:
- if: github.repository == 'ultralytics/ultralytics' && (github.event_name == 'schedule' || github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.hub == 'true'))
- runs-on: ${{ matrix.os }}
- strategy:
- fail-fast: false
- matrix:
- os: [ubuntu-latest]
- python-version: ["3.11"]
- steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
- with:
- python-version: ${{ matrix.python-version }}
- cache: "pip" # caching pip dependencies
- - name: Install requirements
- shell: bash # for Windows compatibility
- run: |
- python -m pip install --upgrade pip wheel
- pip install -e . --extra-index-url https://download.pytorch.org/whl/cpu
- - name: Check environment
- run: |
- yolo checks
- pip list
- - name: Test HUB training
- shell: python
- env:
- API_KEY: ${{ secrets.ULTRALYTICS_HUB_API_KEY }}
- MODEL_ID: ${{ secrets.ULTRALYTICS_HUB_MODEL_ID }}
- run: |
- import os
- from ultralytics import YOLO, hub
- api_key, model_id = os.environ['API_KEY'], os.environ['MODEL_ID']
- hub.login(api_key)
- hub.reset_model(model_id)
- model = YOLO('https://hub.ultralytics.com/models/' + model_id)
- model.train()
- - name: Test HUB inference API
- shell: python
- env:
- API_KEY: ${{ secrets.ULTRALYTICS_HUB_API_KEY }}
- MODEL_ID: ${{ secrets.ULTRALYTICS_HUB_MODEL_ID }}
- run: |
- import os
- import requests
- import json
- api_key, model_id = os.environ['API_KEY'], os.environ['MODEL_ID']
- url = f"https://api.ultralytics.com/v1/predict/{model_id}"
- headers = {"x-api-key": api_key}
- data = {"size": 320, "confidence": 0.25, "iou": 0.45}
- with open("ultralytics/assets/zidane.jpg", "rb") as f:
- response = requests.post(url, headers=headers, data=data, files={"image": f})
- assert response.status_code == 200, f'Status code {response.status_code}, Reason {response.reason}'
- print(json.dumps(response.json(), indent=2))
-
- Benchmarks:
- if: github.event_name != 'workflow_dispatch' || github.event.inputs.benchmarks == 'true'
- runs-on: ${{ matrix.os }}
- strategy:
- fail-fast: false
- matrix:
- os: [ubuntu-latest, macos-14]
- python-version: ["3.11"]
- model: [yolov8n]
- steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
- with:
- python-version: ${{ matrix.python-version }}
- cache: "pip" # caching pip dependencies
- - name: Install requirements
- shell: bash # for Windows compatibility
- run: |
- python -m pip install --upgrade pip wheel
- pip install -e ".[export]" "coverage[toml]" --extra-index-url https://download.pytorch.org/whl/cpu
- # yolo export format=tflite imgsz=32 || true
- - name: Check environment
- run: |
- yolo checks
- pip list
- - name: Benchmark YOLOWorld DetectionModel
- shell: bash
- run: coverage run -a --source=ultralytics -m ultralytics.cfg.__init__ benchmark model='path with spaces/yolov8s-worldv2.pt' imgsz=160 verbose=0.318
- - name: Benchmark SegmentationModel
- shell: bash
- run: coverage run -a --source=ultralytics -m ultralytics.cfg.__init__ benchmark model='path with spaces/${{ matrix.model }}-seg.pt' imgsz=160 verbose=0.281
- - name: Benchmark ClassificationModel
- shell: bash
- run: coverage run -a --source=ultralytics -m ultralytics.cfg.__init__ benchmark model='path with spaces/${{ matrix.model }}-cls.pt' imgsz=160 verbose=0.166
- - name: Benchmark PoseModel
- shell: bash
- run: coverage run -a --source=ultralytics -m ultralytics.cfg.__init__ benchmark model='path with spaces/${{ matrix.model }}-pose.pt' imgsz=160 verbose=0.183
- - name: Benchmark OBBModel
- shell: bash
- run: coverage run -a --source=ultralytics -m ultralytics.cfg.__init__ benchmark model='path with spaces/${{ matrix.model }}-obb.pt' imgsz=160 verbose=0.472
- - name: Merge Coverage Reports
- run: |
- coverage xml -o coverage-benchmarks.xml
- - name: Upload Coverage Reports to CodeCov
- if: github.repository == 'ultralytics/ultralytics'
- uses: codecov/codecov-action@v4
- with:
- flags: Benchmarks
- env:
- CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- - name: Benchmark Summary
- run: |
- cat benchmarks.log
- echo "$(cat benchmarks.log)" >> $GITHUB_STEP_SUMMARY
-
- Tests:
- if: github.event_name != 'workflow_dispatch' || github.event.inputs.tests == 'true'
- timeout-minutes: 60
- runs-on: ${{ matrix.os }}
- strategy:
- fail-fast: false
- matrix:
- os: [ubuntu-latest, macos-14]
- python-version: ["3.11"]
- torch: [latest]
- include:
- - os: ubuntu-latest
- python-version: "3.8" # torch 1.8.0 requires python >=3.6, <=3.8
- torch: "1.8.0" # min torch version CI https://pypi.org/project/torchvision/
- steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
- with:
- python-version: ${{ matrix.python-version }}
- cache: "pip" # caching pip dependencies
- - name: Install requirements
- shell: bash # for Windows compatibility
- run: |
- # CoreML must be installed before export due to protobuf error from AutoInstall
- python -m pip install --upgrade pip wheel
- torch=""
- if [ "${{ matrix.torch }}" == "1.8.0" ]; then
- torch="torch==1.8.0 torchvision==0.9.0"
- fi
- pip install -e . $torch pytest-cov "coremltools>=7.0; platform_system != 'Windows' and python_version <= '3.11'" --extra-index-url https://download.pytorch.org/whl/cpu
- - name: Check environment
- run: |
- yolo checks
- pip list
- - name: Pytest tests
- shell: bash # for Windows compatibility
- run: |
- slow=""
- if [[ "${{ github.event_name }}" == "schedule" ]] || [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
- pip install mlflow pycocotools 'ray[tune]'
- slow="--slow"
- fi
- pytest $slow --cov=ultralytics/ --cov-report xml tests/
- - name: Upload Coverage Reports to CodeCov
- if: github.repository == 'ultralytics/ultralytics' # && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
- uses: codecov/codecov-action@v4
- with:
- flags: Tests
- env:
- CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
-
- GPU:
- if: github.repository == 'ultralytics/ultralytics' && (github.event_name != 'workflow_dispatch' || github.event.inputs.gpu == 'true')
- timeout-minutes: 60
- runs-on: gpu-latest
- steps:
- - uses: actions/checkout@v4
- - name: Install requirements
- run: pip install -e .
- - name: Check environment
- run: |
- yolo checks
- pip list
- - name: Pytest tests
- run: pytest --cov=ultralytics/ --cov-report xml tests/test_cuda.py
- - name: Upload Coverage Reports to CodeCov
- uses: codecov/codecov-action@v4
- with:
- flags: GPU
- env:
- CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
-
- Conda:
- if: github.repository == 'ultralytics/ultralytics' && (github.event_name == 'schedule_disabled' || github.event.inputs.conda == 'true')
- runs-on: ${{ matrix.os }}
- strategy:
- fail-fast: false
- matrix:
- os: [ubuntu-latest]
- python-version: ["3.11"]
- defaults:
- run:
- shell: bash -el {0}
- steps:
- - uses: conda-incubator/setup-miniconda@v3
- with:
- python-version: ${{ matrix.python-version }}
- mamba-version: "*"
- channels: conda-forge,defaults
- channel-priority: true
- activate-environment: anaconda-client-env
- - name: Install Libmamba
- run: |
- conda config --set solver libmamba
- - name: Install Ultralytics package from conda-forge
- run: |
- conda install -c pytorch -c conda-forge pytorch torchvision ultralytics openvino
- - name: Install pip packages
- run: |
- # CoreML must be installed before export due to protobuf error from AutoInstall
- pip install pytest "coremltools>=7.0; platform_system != 'Windows' and python_version <= '3.11'"
- - name: Check environment
- run: |
- conda list
- - name: Test CLI
- run: |
- yolo predict model=yolov8n.pt imgsz=320
- yolo train model=yolov8n.pt data=coco8.yaml epochs=1 imgsz=32
- yolo val model=yolov8n.pt data=coco8.yaml imgsz=32
- yolo export model=yolov8n.pt format=torchscript imgsz=160
- - name: Test Python
- run: |
- python -c "
- from ultralytics import YOLO
- model = YOLO('yolov8n.pt')
- results = model.train(data='coco8.yaml', epochs=3, imgsz=160)
- results = model.val(imgsz=160)
- results = model.predict(imgsz=160)
- results = model.export(format='onnx', imgsz=160)
- "
- - name: PyTest
- run: |
- git clone https://github.com/ultralytics/ultralytics
- pytest ultralytics/tests
-
- Summary:
- runs-on: ubuntu-latest
- needs: [HUB, Benchmarks, Tests, GPU, Conda] # Add job names that you want to check for failure
- if: always() # This ensures the job runs even if previous jobs fail
- steps:
- - name: Check for failure and notify
- if: (needs.HUB.result == 'failure' || needs.Benchmarks.result == 'failure' || needs.Tests.result == 'failure' || needs.GPU.result == 'failure' || needs.Conda.result == 'failure') && github.repository == 'ultralytics/ultralytics' && (github.event_name == 'schedule' || github.event_name == 'push')
- uses: slackapi/slack-github-action@v1.25.0
- with:
- payload: |
- {"text": " GitHub Actions error for ${{ github.workflow }} ❌\n\n\n*Repository:* https://github.com/${{ github.repository }}\n*Action:* https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Author:* ${{ github.actor }}\n*Event:* ${{ github.event_name }}\n"}
- env:
- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_YOLO }}
diff --git a/ultralytics-main/.github/workflows/cla.yml b/ultralytics-main/.github/workflows/cla.yml
deleted file mode 100644
index a11ee19..0000000
--- a/ultralytics-main/.github/workflows/cla.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-# Ultralytics YOLO 🚀, AGPL-3.0 license
-
-name: CLA Assistant
-on:
- issue_comment:
- types:
- - created
- pull_request_target:
- types:
- - reopened
- - opened
- - synchronize
-
-jobs:
- CLA:
- if: github.repository == 'ultralytics/ultralytics'
- runs-on: ubuntu-latest
- steps:
- - name: CLA Assistant
- if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I sign the CLA') || github.event_name == 'pull_request_target'
- uses: contributor-assistant/github-action@v2.3.1
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- # must be repository secret token
- PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- with:
- path-to-signatures: "signatures/version1/cla.json"
- path-to-document: "https://docs.ultralytics.com/help/CLA" # CLA document
- # branch should not be protected
- branch: "main"
- allowlist: dependabot[bot],github-actions,[pre-commit*,pre-commit*,bot*
-
- remote-organization-name: ultralytics
- remote-repository-name: cla
- custom-pr-sign-comment: "I have read the CLA Document and I sign the CLA"
- custom-allsigned-prcomment: All Contributors have signed the CLA. ✅
- #custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
diff --git a/ultralytics-main/.github/workflows/codeql.yaml b/ultralytics-main/.github/workflows/codeql.yaml
deleted file mode 100644
index e6e3e85..0000000
--- a/ultralytics-main/.github/workflows/codeql.yaml
+++ /dev/null
@@ -1,42 +0,0 @@
-# Ultralytics YOLO 🚀, AGPL-3.0 license
-
-name: "CodeQL"
-
-on:
- schedule:
- - cron: "0 0 1 * *"
- workflow_dispatch:
-
-jobs:
- analyze:
- name: Analyze
- runs-on: ${{ 'ubuntu-latest' }}
- permissions:
- actions: read
- contents: read
- security-events: write
-
- strategy:
- fail-fast: false
- matrix:
- language: ["python"]
- # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
-
- # Initializes the CodeQL tools for scanning.
- - name: Initialize CodeQL
- uses: github/codeql-action/init@v3
- with:
- languages: ${{ matrix.language }}
- # If you wish to specify custom queries, you can do so here or in a config file.
- # By default, queries listed here will override any specified in a config file.
- # Prefix the list here with "+" to use these queries and those in the config file.
- # queries: security-extended,security-and-quality
-
- - name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@v3
- with:
- category: "/language:${{matrix.language}}"
diff --git a/ultralytics-main/.github/workflows/docker.yaml b/ultralytics-main/.github/workflows/docker.yaml
deleted file mode 100644
index afd2a66..0000000
--- a/ultralytics-main/.github/workflows/docker.yaml
+++ /dev/null
@@ -1,159 +0,0 @@
-# Ultralytics YOLO 🚀, AGPL-3.0 license
-# Builds ultralytics/ultralytics:latest images on DockerHub https://hub.docker.com/r/ultralytics
-
-name: Publish Docker Images
-
-on:
- push:
- branches: [main]
- paths-ignore:
- - "docs/**"
- - "mkdocs.yml"
- workflow_dispatch:
- inputs:
- Dockerfile:
- type: boolean
- description: Use Dockerfile
- default: true
- Dockerfile-cpu:
- type: boolean
- description: Use Dockerfile-cpu
- Dockerfile-arm64:
- type: boolean
- description: Use Dockerfile-arm64
- Dockerfile-jetson:
- type: boolean
- description: Use Dockerfile-jetson
- Dockerfile-python:
- type: boolean
- description: Use Dockerfile-python
- Dockerfile-conda:
- type: boolean
- description: Use Dockerfile-conda
- push:
- type: boolean
- description: Push images to Docker Hub
- default: true
-
-jobs:
- docker:
- if: github.repository == 'ultralytics/ultralytics'
- name: Push
- runs-on: ubuntu-latest
- strategy:
- fail-fast: false
- max-parallel: 6
- matrix:
- include:
- - dockerfile: "Dockerfile"
- tags: "latest"
- platforms: "linux/amd64"
- - dockerfile: "Dockerfile-cpu"
- tags: "latest-cpu"
- platforms: "linux/amd64"
- - dockerfile: "Dockerfile-arm64"
- tags: "latest-arm64"
- platforms: "linux/arm64"
- - dockerfile: "Dockerfile-jetson"
- tags: "latest-jetson"
- platforms: "linux/arm64"
- - dockerfile: "Dockerfile-python"
- tags: "latest-python"
- platforms: "linux/amd64"
- # - dockerfile: "Dockerfile-conda"
- # tags: "latest-conda"
- # platforms: "linux/amd64"
- steps:
- - name: Checkout repo
- uses: actions/checkout@v4
- with:
- fetch-depth: 0 # copy full .git directory to access full git history in Docker images
-
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v3
-
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v3
-
- - name: Login to Docker Hub
- uses: docker/login-action@v3
- with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
-
- - name: Retrieve Ultralytics version
- id: get_version
- run: |
- VERSION=$(grep "^__version__ =" ultralytics/__init__.py | awk -F'"' '{print $2}')
- echo "Retrieved Ultralytics version: $VERSION"
- echo "version=$VERSION" >> $GITHUB_OUTPUT
-
- VERSION_TAG=$(echo "${{ matrix.tags }}" | sed "s/latest/${VERSION}/")
- echo "Intended version tag: $VERSION_TAG"
- echo "version_tag=$VERSION_TAG" >> $GITHUB_OUTPUT
-
- - name: Check if version tag exists on DockerHub
- id: check_tag
- run: |
- RESPONSE=$(curl -s https://hub.docker.com/v2/repositories/ultralytics/ultralytics/tags/$VERSION_TAG)
- MESSAGE=$(echo $RESPONSE | jq -r '.message')
- if [[ "$MESSAGE" == "null" ]]; then
- echo "Tag $VERSION_TAG already exists on DockerHub."
- echo "exists=true" >> $GITHUB_OUTPUT
- elif [[ "$MESSAGE" == *"404"* ]]; then
- echo "Tag $VERSION_TAG does not exist on DockerHub."
- echo "exists=false" >> $GITHUB_OUTPUT
- else
- echo "Unexpected response from DockerHub. Please check manually."
- echo "exists=false" >> $GITHUB_OUTPUT
- fi
- env:
- VERSION_TAG: ${{ steps.get_version.outputs.version_tag }}
-
- - name: Build Image
- if: github.event_name == 'push' || github.event.inputs[matrix.dockerfile] == 'true'
- uses: nick-invision/retry@v3
- with:
- timeout_minutes: 60
- retry_wait_seconds: 30
- max_attempts: 2 # retry once
- command: |
- docker build \
- --platform ${{ matrix.platforms }} \
- -f docker/${{ matrix.dockerfile }} \
- -t ultralytics/ultralytics:${{ matrix.tags }} \
- -t ultralytics/ultralytics:${{ steps.get_version.outputs.version_tag }} \
- .
-
- - name: Run Tests
- if: (github.event_name == 'push' || github.event.inputs[matrix.dockerfile] == 'true') && matrix.platforms == 'linux/amd64' && matrix.dockerfile != 'Dockerfile-conda' # arm64 images not supported on GitHub CI runners
- run: docker run ultralytics/ultralytics:${{ matrix.tags }} /bin/bash -c "pip install pytest && pytest tests"
-
- - name: Run Benchmarks
- # WARNING: Dockerfile (GPU) error on TF.js export 'module 'numpy' has no attribute 'object'.
- if: (github.event_name == 'push' || github.event.inputs[matrix.dockerfile] == 'true') && matrix.platforms == 'linux/amd64' && matrix.dockerfile != 'Dockerfile' && matrix.dockerfile != 'Dockerfile-conda' # arm64 images not supported on GitHub CI runners
- run: docker run ultralytics/ultralytics:${{ matrix.tags }} yolo benchmark model=yolov8n.pt imgsz=160 verbose=0.318
-
- - name: Push Docker Image with Ultralytics version tag
- if: (github.event_name == 'push' || (github.event.inputs[matrix.dockerfile] == 'true' && github.event.inputs.push == 'true')) && steps.check_tag.outputs.exists == 'false' && matrix.dockerfile != 'Dockerfile-conda'
- run: |
- docker push ultralytics/ultralytics:${{ steps.get_version.outputs.version_tag }}
-
- - name: Push Docker Image with latest tag
- if: github.event_name == 'push' || (github.event.inputs[matrix.dockerfile] == 'true' && github.event.inputs.push == 'true')
- run: |
- docker push ultralytics/ultralytics:${{ matrix.tags }}
- if [[ "${{ matrix.tags }}" == "latest" ]]; then
- t=ultralytics/ultralytics:latest-runner
- docker build -f docker/Dockerfile-runner -t $t .
- docker push $t
- fi
-
- - name: Notify on failure
- if: github.event_name == 'push' && failure() # do not notify on cancelled() as cancelling is performed by hand
- uses: slackapi/slack-github-action@v1.25.0
- with:
- payload: |
- {"text": " GitHub Actions error for ${{ github.workflow }} ❌\n\n\n*Repository:* https://github.com/${{ github.repository }}\n*Action:* https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Author:* ${{ github.actor }}\n*Event:* ${{ github.event_name }}\n"}
- env:
- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_YOLO }}
diff --git a/ultralytics-main/.github/workflows/format.yml b/ultralytics-main/.github/workflows/format.yml
deleted file mode 100644
index 470d4f3..0000000
--- a/ultralytics-main/.github/workflows/format.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-# Ultralytics 🚀 - AGPL-3.0 license
-# Ultralytics Actions https://github.com/ultralytics/actions
-# This workflow automatically formats code and documentation in PRs to official Ultralytics standards
-
-name: Ultralytics Actions
-
-on:
- push:
- branches: [main]
- pull_request_target:
- branches: [main]
- types: [opened, closed, synchronize]
-
-jobs:
- format:
- runs-on: ubuntu-latest
- steps:
- - name: Run Ultralytics Formatting
- uses: ultralytics/actions@main
- with:
- token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, do not modify
- python: true # format Python code and docstrings
- markdown: true # format Markdown and YAML
- spelling: true # check spelling
- links: false # check broken links
- summary: true # print PR summary with GPT4 (requires 'openai_api_key' or 'openai_azure_api_key' and 'openai_azure_endpoint')
- openai_azure_api_key: ${{ secrets.OPENAI_AZURE_API_KEY }}
- openai_azure_endpoint: ${{ secrets.OPENAI_AZURE_ENDPOINT }}
diff --git a/ultralytics-main/.github/workflows/greetings.yml b/ultralytics-main/.github/workflows/greetings.yml
deleted file mode 100644
index 00e0f9d..0000000
--- a/ultralytics-main/.github/workflows/greetings.yml
+++ /dev/null
@@ -1,58 +0,0 @@
-# Ultralytics YOLO 🚀, AGPL-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 an Ultralytics 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 main` locally.
- - ✅ Verify all YOLOv8 Continuous Integration (CI) **checks are passing**.
- - ✅ Update YOLOv8 [Docs](https://docs.ultralytics.com) for any new or updated features.
- - ✅ 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://docs.ultralytics.com/help/contributing) for details and let us know if you have any questions!
-
- issue-message: |
- 👋 Hello @${{ github.actor }}, thank you for your interest in Ultralytics YOLOv8 🚀! We recommend a visit to the [Docs](https://docs.ultralytics.com) for new users where you can find many [Python](https://docs.ultralytics.com/usage/python/) and [CLI](https://docs.ultralytics.com/usage/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://docs.ultralytics.com/help/minimum_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://docs.ultralytics.com/yolov5/tutorials/tips_for_best_training_results/).
-
- Join the vibrant [Ultralytics Discord](https://ultralytics.com/discord) 🎧 community for real-time conversations and collaborations. This platform offers a perfect space to inquire, showcase your work, and connect with fellow Ultralytics users.
-
- ## Install
-
- Pip install the `ultralytics` package including all [requirements](https://github.com/ultralytics/ultralytics/blob/main/pyproject.toml) in a [**Python>=3.8**](https://www.python.org/) environment with [**PyTorch>=1.8**](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:
- - **Google Cloud** Deep Learning VM. See [GCP Quickstart Guide](https://docs.ultralytics.com/yolov5/environments/google_cloud_quickstart_tutorial/)
- - **Amazon** Deep Learning AMI. See [AWS Quickstart Guide](https://docs.ultralytics.com/yolov5/environments/aws_quickstart_tutorial/)
- - **Docker Image**. See [Docker Quickstart Guide](https://docs.ultralytics.com/yolov5/environments/docker_image_quickstart_tutorial/)
-
- ## Status
-
-
-
- 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](https://docs.ultralytics.com/modes/) and [Tasks](https://docs.ultralytics.com/tasks/) on macOS, Windows, and Ubuntu every 24 hours and on every commit.
diff --git a/ultralytics-main/.github/workflows/links.yml b/ultralytics-main/.github/workflows/links.yml
deleted file mode 100644
index 73542b3..0000000
--- a/ultralytics-main/.github/workflows/links.yml
+++ /dev/null
@@ -1,90 +0,0 @@
-# Ultralytics YOLO 🚀, AGPL-3.0 license
-# Continuous Integration (CI) GitHub Actions tests broken link checker using https://github.com/lycheeverse/lychee
-# Ignores the following status codes to reduce false positives:
-# - 403(OpenVINO, 'forbidden')
-# - 429(Instagram, 'too many requests')
-# - 500(Zenodo, 'cached')
-# - 502(Zenodo, 'bad gateway')
-# - 999(LinkedIn, 'unknown status code')
-
-name: Check Broken links
-
-on:
- workflow_dispatch:
- schedule:
- - cron: "0 0 * * *" # runs at 00:00 UTC every day
-
-jobs:
- Links:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
-
- - name: Download and install lychee
- run: |
- LYCHEE_URL=$(curl -s https://api.github.com/repos/lycheeverse/lychee/releases/latest | grep "browser_download_url" | grep "x86_64-unknown-linux-gnu.tar.gz" | cut -d '"' -f 4)
- curl -L $LYCHEE_URL -o lychee.tar.gz
- tar xzf lychee.tar.gz
- sudo mv lychee /usr/local/bin
-
- - name: Test Markdown and HTML links with retry
- uses: nick-invision/retry@v3
- with:
- timeout_minutes: 5
- retry_wait_seconds: 60
- max_attempts: 3
- command: |
- lychee \
- --scheme https \
- --timeout 60 \
- --insecure \
- --accept 403,429,500,502,999 \
- --exclude-all-private \
- --exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|fonts\.gstatic\.com|url\.com)' \
- --exclude-path docs/zh \
- --exclude-path docs/es \
- --exclude-path docs/ru \
- --exclude-path docs/pt \
- --exclude-path docs/fr \
- --exclude-path docs/de \
- --exclude-path docs/ja \
- --exclude-path docs/ko \
- --exclude-path docs/hi \
- --exclude-path docs/ar \
- --github-token ${{ secrets.GITHUB_TOKEN }} \
- './**/*.md' \
- './**/*.html'
-
- - name: Test Markdown, HTML, YAML, Python and Notebook links with retry
- if: github.event_name == 'workflow_dispatch'
- uses: nick-invision/retry@v3
- with:
- timeout_minutes: 5
- retry_wait_seconds: 60
- max_attempts: 3
- command: |
- lychee \
- --scheme https \
- --timeout 60 \
- --insecure \
- --accept 429,999 \
- --exclude-all-private \
- --exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|fonts\.gstatic\.com|url\.com)' \
- --exclude-path '**/ci.yaml' \
- --exclude-path docs/zh \
- --exclude-path docs/es \
- --exclude-path docs/ru \
- --exclude-path docs/pt \
- --exclude-path docs/fr \
- --exclude-path docs/de \
- --exclude-path docs/ja \
- --exclude-path docs/ko \
- --exclude-path docs/hi \
- --exclude-path docs/ar \
- --github-token ${{ secrets.GITHUB_TOKEN }} \
- './**/*.md' \
- './**/*.html' \
- './**/*.yml' \
- './**/*.yaml' \
- './**/*.py' \
- './**/*.ipynb'
diff --git a/ultralytics-main/.github/workflows/publish.yml b/ultralytics-main/.github/workflows/publish.yml
deleted file mode 100644
index ca2980f..0000000
--- a/ultralytics-main/.github/workflows/publish.yml
+++ /dev/null
@@ -1,113 +0,0 @@
-# Ultralytics YOLO 🚀, AGPL-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:
- push:
- branches: [main]
- workflow_dispatch:
- inputs:
- pypi:
- type: boolean
- description: Publish to PyPI
- docs:
- type: boolean
- description: Deploy Docs
-
-jobs:
- publish:
- if: github.repository == 'ultralytics/ultralytics' && github.actor == 'glenn-jocher'
- name: Publish
- runs-on: ubuntu-latest
- steps:
- - name: Checkout code
- uses: actions/checkout@v4
- with:
- fetch-depth: "0" # pulls all commits (needed correct last updated dates in Docs)
- - name: Set up Python environment
- uses: actions/setup-python@v5
- with:
- python-version: "3.11"
- 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 os
- import ultralytics
- from ultralytics.utils.checks import check_latest_pypi_version
-
- v_local = tuple(map(int, ultralytics.__version__.split('.')))
- v_pypi = tuple(map(int, check_latest_pypi_version().split('.')))
- 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 (0 < d[2] < 3) # only publish if patch version increments by 1 or 2
- os.system(f'echo "increment={increment}" >> $GITHUB_OUTPUT')
- os.system(f'echo "version={ultralytics.__version__}" >> $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' || github.event.inputs.docs == 'true') && github.repository == 'ultralytics/ultralytics' && github.actor == 'glenn-jocher'
- env:
- PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- INDEXNOW_KEY: ${{ secrets.INDEXNOW_KEY_DOCS }}
- run: |
- export JUPYTER_PLATFORM_DIRS=1
- python docs/build_docs.py
- git config --global user.name "Glenn Jocher"
- git config --global user.email "glenn.jocher@ultralytics.com"
- git clone https://github.com/ultralytics/docs.git docs-repo
- cd docs-repo
- git checkout gh-pages || git checkout -b gh-pages
- rm -rf *
- cp -R ../site/* .
- echo "$INDEXNOW_KEY" > "$INDEXNOW_KEY.txt"
- git add .
- LATEST_HASH=$(git rev-parse --short=7 HEAD)
- git commit -m "Update Docs for 'ultralytics ${{ steps.check_pypi.outputs.version }} - $LATEST_HASH'"
- git push https://$PERSONAL_ACCESS_TOKEN@github.com/ultralytics/docs.git gh-pages
- - name: Extract PR Details
- run: |
- if [ "${{ github.event_name }}" = "pull_request" ]; then
- PR_JSON=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }})
- PR_NUMBER=${{ github.event.pull_request.number }}
- PR_TITLE=$(echo $PR_JSON | jq -r '.title')
- else
- COMMIT_SHA=${{ github.event.after }}
- PR_JSON=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/search/issues?q=repo:${{ github.repository }}+is:pr+is:merged+sha:$COMMIT_SHA")
- PR_NUMBER=$(echo $PR_JSON | jq -r '.items[0].number')
- PR_TITLE=$(echo $PR_JSON | jq -r '.items[0].title')
- fi
- echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
- echo "PR_TITLE=$PR_TITLE" >> $GITHUB_ENV
- - name: Notify on Slack (Success)
- if: success() && github.event_name == 'push' && steps.check_pypi.outputs.increment == 'True'
- uses: slackapi/slack-github-action@v1.25.0
- with:
- payload: |
- {"text": " GitHub Actions success for ${{ github.workflow }} ✅\n\n\n*Repository:* https://github.com/${{ github.repository }}\n*Action:* https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Author:* ${{ github.actor }}\n*Event:* NEW 'ultralytics ${{ steps.check_pypi.outputs.version }}' pip package published 😃\n*Job Status:* ${{ job.status }}\n*Pull Request:* ${{ env.PR_TITLE }}\n"}
- env:
- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_YOLO }}
- - name: Notify on Slack (Failure)
- if: failure()
- uses: slackapi/slack-github-action@v1.25.0
- with:
- payload: |
- {"text": " GitHub Actions error for ${{ github.workflow }} ❌\n\n\n*Repository:* https://github.com/${{ github.repository }}\n*Action:* https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Author:* ${{ github.actor }}\n*Event:* ${{ github.event_name }}\n*Job Status:* ${{ job.status }}\n*Pull Request:* ${{ env.PR_TITLE }}\n"}
- env:
- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_YOLO }}
diff --git a/ultralytics-main/.github/workflows/stale.yml b/ultralytics-main/.github/workflows/stale.yml
deleted file mode 100644
index dd85035..0000000
--- a/ultralytics-main/.github/workflows/stale.yml
+++ /dev/null
@@ -1,47 +0,0 @@
-# Ultralytics YOLO 🚀, AGPL-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@v9
- 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.
diff --git a/ultralytics-main/.gitignore b/ultralytics-main/.gitignore
deleted file mode 100644
index 0854267..0000000
--- a/ultralytics-main/.gitignore
+++ /dev/null
@@ -1,166 +0,0 @@
-# Byte-compiled / optimized / DLL files
-__pycache__/
-*.py[cod]
-*$py.class
-
-# C extensions
-*.so
-
-# Distribution / packaging
-.Python
-build/
-develop-eggs/
-dist/
-downloads/
-eggs/
-.eggs/
-lib/
-lib64/
-parts/
-sdist/
-var/
-wheels/
-pip-wheel-metadata/
-share/python-wheels/
-*.egg-info/
-.installed.cfg
-*.egg
-MANIFEST
-
-# PyInstaller
-# Usually these files are written by a python script from a template
-# before PyInstaller builds the exe, so as to inject date/other info into it.
-*.manifest
-*.spec
-
-# Installer logs
-pip-log.txt
-pip-delete-this-directory.txt
-
-# Unit test / coverage reports
-htmlcov/
-.tox/
-.nox/
-.coverage
-.coverage.*
-.cache
-nosetests.xml
-coverage.xml
-*.cover
-*.py,cover
-.hypothesis/
-.pytest_cache/
-mlruns/
-
-# Translations
-*.mo
-*.pot
-
-# Django stuff:
-*.log
-local_settings.py
-db.sqlite3
-db.sqlite3-journal
-
-# Flask stuff:
-instance/
-.webassets-cache
-
-# Scrapy stuff:
-.scrapy
-
-# Sphinx documentation
-docs/_build/
-
-# PyBuilder
-target/
-
-# Jupyter Notebook
-.ipynb_checkpoints
-
-# IPython
-profile_default/
-ipython_config.py
-
-# Profiling
-*.pclprof
-
-# pyenv
-.python-version
-
-# pipenv
-# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
-# However, in case of collaboration, if having platform-specific dependencies or dependencies
-# having no cross-platform support, pipenv may install dependencies that don't work, or not
-# install all needed dependencies.
-#Pipfile.lock
-
-# PEP 582; used by e.g. github.com/David-OConnor/pyflow
-__pypackages__/
-
-# Celery stuff
-celerybeat-schedule
-celerybeat.pid
-
-# SageMath parsed files
-*.sage.py
-
-# Environments
-.env
-.venv
-.idea
-env/
-venv/
-ENV/
-env.bak/
-venv.bak/
-
-# Spyder project settings
-.spyderproject
-.spyproject
-
-# VSCode project settings
-.vscode/
-
-# Rope project settings
-.ropeproject
-
-# mkdocs documentation
-/site
-mkdocs_github_authors.yaml
-
-# mypy
-.mypy_cache/
-.dmypy.json
-dmypy.json
-
-# Pyre type checker
-.pyre/
-
-# datasets and projects
-datasets/
-runs/
-wandb/
-tests/
-.DS_Store
-
-# Neural Network weights -----------------------------------------------------------------------------------------------
-weights/
-*.weights
-*.pt
-*.pb
-*.onnx
-*.engine
-*.mlmodel
-*.mlpackage
-*.torchscript
-*.tflite
-*.h5
-*_saved_model/
-*_web_model/
-*_openvino_model/
-*_paddle_model/
-pnnx*
-
-# Autogenerated files for tests
-/ultralytics/assets/
diff --git a/ultralytics-main/.pre-commit-config.yaml b/ultralytics-main/.pre-commit-config.yaml
deleted file mode 100644
index 03461f1..0000000
--- a/ultralytics-main/.pre-commit-config.yaml
+++ /dev/null
@@ -1,86 +0,0 @@
-# Ultralytics YOLO 🚀, AGPL-3.0 license
-# Pre-commit hooks. For more information see https://github.com/pre-commit/pre-commit-hooks/blob/main/README.md
-# Optionally remove from local hooks with 'rm .git/hooks/pre-commit'
-
-# Define bot property if installed via https://github.com/marketplace/pre-commit-ci
-ci:
- autofix_prs: true
- autoupdate_commit_msg: "[pre-commit.ci] pre-commit suggestions"
- autoupdate_schedule: monthly
- submodules: true
-
-# Exclude directories (optional)
-# exclude: 'docs/'
-
-# Define repos to run
-repos:
- - repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.5.0
- hooks:
- - id: end-of-file-fixer
- - id: trailing-whitespace
- - id: check-case-conflict
- # - id: check-yaml
- - id: check-docstring-first
- - id: detect-private-key
-
- - repo: https://github.com/asottile/pyupgrade
- rev: v3.15.0
- hooks:
- - id: pyupgrade
- name: Upgrade code
-
- - repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.1.11
- hooks:
- - id: ruff
- args: [--fix]
-
- - repo: https://github.com/executablebooks/mdformat
- rev: 0.7.17
- hooks:
- - id: mdformat
- name: MD formatting
- additional_dependencies:
- - mdformat-gfm
- - mdformat-frontmatter
- - mdformat-mkdocs
- args:
- - --wrap=no
- - --number
- exclude: 'docs/.*\.md'
- # exclude: "README.md|README.zh-CN.md|CONTRIBUTING.md"
-
- - repo: https://github.com/codespell-project/codespell
- rev: v2.2.6
- hooks:
- - id: codespell
- exclude: "docs/de|docs/fr|docs/pt|docs/es|docs/mkdocs_de.yml"
- args:
- - --ignore-words-list=crate,nd,ned,strack,dota,ane,segway,fo,gool,winn,commend,bloc,nam,afterall
-
- - repo: https://github.com/hadialqattan/pycln
- rev: v2.4.0
- hooks:
- - id: pycln
- args: [--all]
-#
-# - repo: https://github.com/PyCQA/docformatter
-# rev: v1.7.5
-# hooks:
-# - id: docformatter
-
-# - repo: https://github.com/asottile/yesqa
-# rev: v1.4.0
-# hooks:
-# - id: yesqa
-
-# - repo: https://github.com/asottile/dead
-# rev: v1.5.0
-# hooks:
-# - id: dead
-
-# - repo: https://github.com/ultralytics/pre-commit
-# rev: bd60a414f80a53fb8f593d3bfed4701fc47e4b23
-# hooks:
-# - id: capitalize-comments
diff --git a/ultralytics-main/Author_advice.txt b/ultralytics-main/Author_advice.txt
deleted file mode 100644
index 22b6129..0000000
--- a/ultralytics-main/Author_advice.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-
-# 双目测距运行yolov8-stereo.py文件即可
-
-# 测量速度运行stereo-speed.py文件
-
-
-具体操作步骤见播客主页:https://blog.csdn.net/qq_45077760
\ No newline at end of file
diff --git a/ultralytics-main/CITATION.cff b/ultralytics-main/CITATION.cff
deleted file mode 100644
index bee0abe..0000000
--- a/ultralytics-main/CITATION.cff
+++ /dev/null
@@ -1,26 +0,0 @@
-# This CITATION.cff file was generated with https://bit.ly/cffinit
-
-cff-version: 1.2.0
-title: Ultralytics YOLO
-message: >-
- If you use this software, please cite it using the
- metadata from this file.
-type: software
-authors:
- - given-names: Glenn
- family-names: Jocher
- affiliation: Ultralytics
- orcid: 'https://orcid.org/0000-0001-5950-6979'
- - given-names: Ayush
- family-names: Chaurasia
- affiliation: Ultralytics
- orcid: 'https://orcid.org/0000-0002-7603-6750'
- - family-names: Qiu
- given-names: Jing
- affiliation: Ultralytics
- orcid: 'https://orcid.org/0000-0003-3783-7069'
-repository-code: 'https://github.com/ultralytics/ultralytics'
-url: 'https://ultralytics.com'
-license: AGPL-3.0
-version: 8.0.0
-date-released: '2023-01-10'
diff --git a/ultralytics-main/Instance Segmentation-camera.py b/ultralytics-main/Instance Segmentation-camera.py
deleted file mode 100644
index 5cc4e88..0000000
--- a/ultralytics-main/Instance Segmentation-camera.py
+++ /dev/null
@@ -1,37 +0,0 @@
-import cv2
-from ultralytics import YOLO
-from ultralytics.utils.plotting import Annotator, colors
-
-model = YOLO("yolov8n-seg.pt") # segmentation model
-names = model.model.names
-cap = cv2.VideoCapture(0)
-w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
-out = cv2.VideoWriter('instance-segmentation.avi', cv2.VideoWriter_fourcc(*'MJPG'), fps, (w, h))
-
-while True:
- ret, im0 = cap.read()
- if not ret:
- print("Video frame is empty or video processing has been successfully completed.")
- break
-
- results = model.predict(im0)
- annotator = Annotator(im0, line_width=2)
-
- if results[0].masks is not None:
- clss = results[0].boxes.cls.cpu().tolist()
- masks = results[0].masks.xy
- for mask, cls in zip(masks, clss):
- annotator.seg_bbox(mask=mask,
- mask_color=colors(int(cls), True),
- det_label=names[int(cls)])
-
- out.write(im0)
- cv2.imshow("instance-segmentation", im0)
-
- if cv2.waitKey(1) & 0xFF == ord('q'):
- break
-
-out.release()
-cap.release()
-cv2.destroyAllWindows()
\ No newline at end of file
diff --git a/ultralytics-main/Instance Segmentation-pic-video.py b/ultralytics-main/Instance Segmentation-pic-video.py
deleted file mode 100644
index 8aa8b1e..0000000
--- a/ultralytics-main/Instance Segmentation-pic-video.py
+++ /dev/null
@@ -1,66 +0,0 @@
-from ultralytics import YOLO
-import cv2
-import os
-from ultralytics.utils.plotting import Annotator, colors
-if __name__ == '__main__':
-# 实例分割检测文件夹里所有图片视频(实例分割和掩码分割不同):
- model = YOLO('yolov8n-seg.pt')
- names = model.model.names
- input_folder = 'ultralytics/assets' # 输入文件夹
- output_folder = 'runs/detect/test' # 输出文件夹
-
- if not os.path.exists(output_folder):
- os.makedirs(output_folder)
-
- # 获取输入文件夹中所有文件的文件名
- all_files = [f for f in os.listdir(input_folder)]
-
- for file_name in all_files:
- file_path = os.path.join(input_folder, file_name)
- if file_name.endswith('.jpg') or file_name.endswith('.png'):
- # 处理图片
- im0 = cv2.imread(file_path)
- results = model.predict(im0)
- annotator = Annotator(im0, line_width=2)
-
- if results[0].masks is not None:
- clss = results[0].boxes.cls.cpu().tolist()
- masks = results[0].masks.xy
- for mask, cls in zip(masks, clss):
- annotator.seg_bbox(mask=mask,
- mask_color=colors(int(cls), True),
- det_label=names[int(cls)])
-
- output_path = os.path.join(output_folder, file_name)
- cv2.imwrite(output_path, im0)
-
- elif file_name.endswith('.mp4') or file_name.endswith('.avi'):
- # 处理视频
- cap = cv2.VideoCapture(file_path)
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- out = cv2.VideoWriter(os.path.join(output_folder, file_name + '_segmented.avi'), cv2.VideoWriter_fourcc(*'MJPG'),
- fps, (w, h))
-
- while True:
- ret, im0 = cap.read()
- if not ret:
- print(f"视频 {file_name} 处理完成")
- break
-
- results = model.predict(im0)
- annotator = Annotator(im0, line_width=2)
-
- if results[0].masks is not None:
- clss = results[0].boxes.cls.cpu().tolist()
- masks = results[0].masks.xy
- for mask, cls in zip(masks, clss):
- annotator.seg_bbox(mask=mask,
- mask_color=colors(int(cls), True),
- det_label=names[int(cls)])
-
- out.write(im0)
- cv2.imshow("instance-segmentation", im0)
-
- out.release()
- cap.release()
diff --git a/ultralytics-main/Instance Segmentation-track-camera.py b/ultralytics-main/Instance Segmentation-track-camera.py
deleted file mode 100644
index 61b18ac..0000000
--- a/ultralytics-main/Instance Segmentation-track-camera.py
+++ /dev/null
@@ -1,42 +0,0 @@
-import cv2
-from ultralytics import YOLO
-from ultralytics.utils.plotting import Annotator, colors
-
-from collections import defaultdict
-
-track_history = defaultdict(lambda: [])
-
-model = YOLO("yolov8n-seg.pt") # segmentation model
-cap = cv2.VideoCapture(0)
-w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
-out = cv2.VideoWriter('instance-segmentation-object-tracking.avi', cv2.VideoWriter_fourcc(*'MJPG'), fps, (w, h))
-
-while True:
- ret, im0 = cap.read()
- if not ret:
- print("Video frame is empty or video processing has been successfully completed.")
- break
-
- annotator = Annotator(im0, line_width=2)
-
- results = model.track(im0, persist=True)
-
- if results[0].boxes.id is not None and results[0].masks is not None:
- masks = results[0].masks.xy
- track_ids = results[0].boxes.id.int().cpu().tolist()
-
- for mask, track_id in zip(masks, track_ids):
- annotator.seg_bbox(mask=mask,
- mask_color=colors(track_id, True),
- track_label=str(track_id))
-
- out.write(im0)
- cv2.imshow("instance-segmentation-object-tracking", im0)
-
- if cv2.waitKey(1) & 0xFF == ord('q'):
- break
-
-out.release()
-cap.release()
-cv2.destroyAllWindows()
\ No newline at end of file
diff --git a/ultralytics-main/Instance Segmentation-track-pic-video.py b/ultralytics-main/Instance Segmentation-track-pic-video.py
deleted file mode 100644
index ceaef95..0000000
--- a/ultralytics-main/Instance Segmentation-track-pic-video.py
+++ /dev/null
@@ -1,67 +0,0 @@
-from ultralytics import YOLO
-import cv2
-import os
-from ultralytics.utils.plotting import Annotator, colors
-from collections import defaultdict
-if __name__ == '__main__':
-# 实例分割检测文件夹里所有图片视频(实例分割和掩码分割不同):
- model = YOLO('yolov8n-seg.pt')
- names = model.model.names
- input_folder = 'ultralytics/assets' # 输入文件夹
- output_folder = 'runs/detect/test1' # 输出文件夹
-
- if not os.path.exists(output_folder):
- os.makedirs(output_folder)
-
- # 获取输入文件夹中所有文件的文件名
- all_files = [f for f in os.listdir(input_folder)]
-
- for file_name in all_files:
- file_path = os.path.join(input_folder, file_name)
- if file_name.endswith('.jpg') or file_name.endswith('.png'):
- # 处理图片
- im0 = cv2.imread(file_path)
- results = model.track(im0)
- annotator = Annotator(im0, line_width=2)
-
- if results[0].boxes.id is not None and results[0].masks is not None:
- masks = results[0].masks.xy
- track_ids = results[0].boxes.id.int().cpu().tolist()
- for mask, track_id in zip(masks, track_ids):
- annotator.seg_bbox(mask=mask,
- mask_color=colors(track_id, True),
- track_label=str(track_id))
-
- output_path = os.path.join(output_folder, file_name)
- cv2.imwrite(output_path, im0)
-
- elif file_name.endswith('.mp4') or file_name.endswith('.avi'):
- # 处理视频
- cap = cv2.VideoCapture(file_path)
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- out = cv2.VideoWriter(os.path.join(output_folder, file_name + '_segmented.avi'), cv2.VideoWriter_fourcc(*'MJPG'),
- fps, (w, h))
-
- while True:
- ret, im0 = cap.read()
- if not ret:
- print(f"视频 {file_name} 处理完成")
- break
-
- results = model.track(im0)
- annotator = Annotator(im0, line_width=2)
-
- if results[0].boxes.id is not None and results[0].masks is not None:
- masks = results[0].masks.xy
- track_ids = results[0].boxes.id.int().cpu().tolist()
- for mask, track_id in zip(masks, track_ids):
- annotator.seg_bbox(mask=mask,
- mask_color=colors(track_id, True),
- track_label=str(track_id))
-
- out.write(im0)
- cv2.imshow("instance-segmentation", im0)
-
- out.release()
- cap.release()
diff --git a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_456_00_42_15.jpg b/ultralytics-main/dataset/coco128/images/train2017/image_BS1_456_00_42_15.jpg
deleted file mode 100644
index bef0dcb..0000000
Binary files a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_456_00_42_15.jpg and /dev/null differ
diff --git a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_457_00_42_15.jpg b/ultralytics-main/dataset/coco128/images/train2017/image_BS1_457_00_42_15.jpg
deleted file mode 100644
index 3de1ae9..0000000
Binary files a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_457_00_42_15.jpg and /dev/null differ
diff --git a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_458_00_42_15.jpg b/ultralytics-main/dataset/coco128/images/train2017/image_BS1_458_00_42_15.jpg
deleted file mode 100644
index ff53e53..0000000
Binary files a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_458_00_42_15.jpg and /dev/null differ
diff --git a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_459_00_42_15.jpg b/ultralytics-main/dataset/coco128/images/train2017/image_BS1_459_00_42_15.jpg
deleted file mode 100644
index 92c7011..0000000
Binary files a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_459_00_42_15.jpg and /dev/null differ
diff --git a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_460_00_42_15.jpg b/ultralytics-main/dataset/coco128/images/train2017/image_BS1_460_00_42_15.jpg
deleted file mode 100644
index 952aa4a..0000000
Binary files a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_460_00_42_15.jpg and /dev/null differ
diff --git a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_461_00_42_15.jpg b/ultralytics-main/dataset/coco128/images/train2017/image_BS1_461_00_42_15.jpg
deleted file mode 100644
index 25c523e..0000000
Binary files a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_461_00_42_15.jpg and /dev/null differ
diff --git a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_462_00_42_15.jpg b/ultralytics-main/dataset/coco128/images/train2017/image_BS1_462_00_42_15.jpg
deleted file mode 100644
index 7e47ffe..0000000
Binary files a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_462_00_42_15.jpg and /dev/null differ
diff --git a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_463_00_42_15.jpg b/ultralytics-main/dataset/coco128/images/train2017/image_BS1_463_00_42_15.jpg
deleted file mode 100644
index 463d928..0000000
Binary files a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_463_00_42_15.jpg and /dev/null differ
diff --git a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_464_00_42_16.jpg b/ultralytics-main/dataset/coco128/images/train2017/image_BS1_464_00_42_16.jpg
deleted file mode 100644
index b68f63e..0000000
Binary files a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_464_00_42_16.jpg and /dev/null differ
diff --git a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_465_00_42_16.jpg b/ultralytics-main/dataset/coco128/images/train2017/image_BS1_465_00_42_16.jpg
deleted file mode 100644
index bea513a..0000000
Binary files a/ultralytics-main/dataset/coco128/images/train2017/image_BS1_465_00_42_16.jpg and /dev/null differ
diff --git a/ultralytics-main/dataset/coco128/labels/train2017.cache b/ultralytics-main/dataset/coco128/labels/train2017.cache
deleted file mode 100644
index 5d453a7..0000000
Binary files a/ultralytics-main/dataset/coco128/labels/train2017.cache and /dev/null differ
diff --git a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_456_00_42_15.txt b/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_456_00_42_15.txt
deleted file mode 100644
index f5f15ec..0000000
--- a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_456_00_42_15.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-0 0.016146 0.229630 0.030208 0.085185
-1 0.584896 0.175926 0.015625 0.062963
-1 0.555208 0.171296 0.014583 0.068519
diff --git a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_457_00_42_15.txt b/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_457_00_42_15.txt
deleted file mode 100644
index 35b3439..0000000
--- a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_457_00_42_15.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-0 0.020833 0.233333 0.039583 0.088889
-1 0.584375 0.175926 0.014583 0.059259
-1 0.556250 0.174074 0.012500 0.059259
diff --git a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_458_00_42_15.txt b/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_458_00_42_15.txt
deleted file mode 100644
index 1167b31..0000000
--- a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_458_00_42_15.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-0 0.026042 0.231481 0.050000 0.096296
-1 0.584896 0.179630 0.015625 0.062963
-1 0.555208 0.172222 0.012500 0.059259
diff --git a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_459_00_42_15.txt b/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_459_00_42_15.txt
deleted file mode 100644
index 95620ab..0000000
--- a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_459_00_42_15.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-0 0.032292 0.227778 0.062500 0.103704
-1 0.586458 0.175000 0.012500 0.061111
-1 0.552604 0.176852 0.015625 0.068519
diff --git a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_460_00_42_15.txt b/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_460_00_42_15.txt
deleted file mode 100644
index 46a76a2..0000000
--- a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_460_00_42_15.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-0 0.035417 0.227778 0.068750 0.103704
-1 0.587500 0.175000 0.018750 0.053704
-1 0.553125 0.172222 0.012500 0.062963
diff --git a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_461_00_42_15.txt b/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_461_00_42_15.txt
deleted file mode 100644
index 073adce..0000000
--- a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_461_00_42_15.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-0 0.041146 0.228704 0.080208 0.101852
-1 0.587500 0.177778 0.014583 0.066667
-1 0.553125 0.174074 0.012500 0.062963
diff --git a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_462_00_42_15.txt b/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_462_00_42_15.txt
deleted file mode 100644
index 9662efd..0000000
--- a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_462_00_42_15.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-0 0.045312 0.228704 0.088542 0.101852
-1 0.586979 0.177778 0.013542 0.055556
-1 0.554688 0.174074 0.013542 0.062963
diff --git a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_463_00_42_15.txt b/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_463_00_42_15.txt
deleted file mode 100644
index 0bfafab..0000000
--- a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_463_00_42_15.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-0 0.053646 0.230556 0.105208 0.101852
-1 0.586458 0.175926 0.014583 0.055556
-1 0.552604 0.169444 0.015625 0.064815
diff --git a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_464_00_42_16.txt b/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_464_00_42_16.txt
deleted file mode 100644
index d869c72..0000000
--- a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_464_00_42_16.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-0 0.058333 0.231481 0.114583 0.096296
-1 0.588021 0.180556 0.013542 0.075926
-1 0.552083 0.176852 0.010417 0.061111
diff --git a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_465_00_42_16.txt b/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_465_00_42_16.txt
deleted file mode 100644
index 7f15e7d..0000000
--- a/ultralytics-main/dataset/coco128/labels/train2017/image_BS1_465_00_42_16.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-0 0.061458 0.231481 0.120833 0.100000
-1 0.588542 0.180556 0.012500 0.053704
-1 0.552083 0.175000 0.010417 0.061111
diff --git a/ultralytics-main/docker/Dockerfile b/ultralytics-main/docker/Dockerfile
deleted file mode 100644
index b96173e..0000000
--- a/ultralytics-main/docker/Dockerfile
+++ /dev/null
@@ -1,85 +0,0 @@
-# Ultralytics YOLO 🚀, AGPL-3.0 license
-# Builds ultralytics/ultralytics:latest image on DockerHub https://hub.docker.com/r/ultralytics/ultralytics
-# Image is CUDA-optimized for YOLOv8 single/multi-GPU training and inference
-
-# Start FROM PyTorch image https://hub.docker.com/r/pytorch/pytorch or nvcr.io/nvidia/pytorch:23.03-py3
-FROM pytorch/pytorch:2.2.0-cuda12.1-cudnn8-runtime
-RUN pip install --no-cache nvidia-tensorrt --index-url https://pypi.ngc.nvidia.com
-
-# Downloads to user config dir
-ADD https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.ttf \
- https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.Unicode.ttf \
- /root/.config/Ultralytics/
-
-# Install linux packages
-# g++ required to build 'tflite_support' and 'lap' packages, libusb-1.0-0 required for 'tflite_support' package
-RUN apt update \
- && apt install --no-install-recommends -y gcc git zip curl htop libgl1 libglib2.0-0 libpython3-dev gnupg g++ libusb-1.0-0
-
-# Security updates
-# https://security.snyk.io/vuln/SNYK-UBUNTU1804-OPENSSL-3314796
-RUN apt upgrade --no-install-recommends -y openssl tar
-
-# Create working directory
-WORKDIR /usr/src/ultralytics
-
-# Copy contents
-# COPY . /usr/src/ultralytics # git permission issues inside container
-RUN git clone https://github.com/ultralytics/ultralytics -b main /usr/src/ultralytics
-ADD https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n.pt /usr/src/ultralytics/
-
-# Install pip packages
-RUN python3 -m pip install --upgrade pip wheel
-RUN pip install --no-cache -e ".[export]" albumentations comet pycocotools
-
-# Run exports to AutoInstall packages
-# Edge TPU export fails the first time so is run twice here
-RUN yolo export model=tmp/yolov8n.pt format=edgetpu imgsz=32 || yolo export model=tmp/yolov8n.pt format=edgetpu imgsz=32
-RUN yolo export model=tmp/yolov8n.pt format=ncnn imgsz=32
-# Requires <= Python 3.10, bug with paddlepaddle==2.5.0 https://github.com/PaddlePaddle/X2Paddle/issues/991
-RUN pip install --no-cache paddlepaddle>=2.6.0 x2paddle
-# Fix error: `np.bool` was a deprecated alias for the builtin `bool` segmentation error in Tests
-RUN pip install --no-cache numpy==1.23.5
-# Remove exported models
-RUN rm -rf tmp
-
-# Set environment variables
-ENV OMP_NUM_THREADS=1
-# Avoid DDP error "MKL_THREADING_LAYER=INTEL is incompatible with libgomp.so.1 library" https://github.com/pytorch/pytorch/issues/37377
-ENV MKL_THREADING_LAYER=GNU
-
-
-# Usage Examples -------------------------------------------------------------------------------------------------------
-
-# Build and Push
-# t=ultralytics/ultralytics:latest && sudo docker build -f docker/Dockerfile -t $t . && sudo docker push $t
-
-# Pull and Run with access to all GPUs
-# t=ultralytics/ultralytics:latest && sudo docker pull $t && sudo docker run -it --ipc=host --gpus all $t
-
-# Pull and Run with access to GPUs 2 and 3 (inside container CUDA devices will appear as 0 and 1)
-# t=ultralytics/ultralytics:latest && sudo docker pull $t && sudo docker run -it --ipc=host --gpus '"device=2,3"' $t
-
-# Pull and Run with local directory access
-# t=ultralytics/ultralytics:latest && sudo docker pull $t && sudo docker run -it --ipc=host --gpus all -v "$(pwd)"/datasets:/usr/src/datasets $t
-
-# Kill all
-# sudo docker kill $(sudo docker ps -q)
-
-# Kill all image-based
-# sudo docker kill $(sudo docker ps -qa --filter ancestor=ultralytics/ultralytics:latest)
-
-# DockerHub tag update
-# t=ultralytics/ultralytics:latest tnew=ultralytics/ultralytics:v6.2 && sudo docker pull $t && sudo docker tag $t $tnew && sudo docker push $tnew
-
-# Clean up
-# sudo docker system prune -a --volumes
-
-# Update Ubuntu drivers
-# https://www.maketecheasier.com/install-nvidia-drivers-ubuntu/
-
-# DDP test
-# python -m torch.distributed.run --nproc_per_node 2 --master_port 1 train.py --epochs 3
-
-# GCP VM from Image
-# docker.io/ultralytics/ultralytics:latest
diff --git a/ultralytics-main/docker/Dockerfile-arm64 b/ultralytics-main/docker/Dockerfile-arm64
deleted file mode 100644
index e9ab84c..0000000
--- a/ultralytics-main/docker/Dockerfile-arm64
+++ /dev/null
@@ -1,51 +0,0 @@
-# Ultralytics YOLO 🚀, AGPL-3.0 license
-# Builds ultralytics/ultralytics:latest-arm64 image on DockerHub https://hub.docker.com/r/ultralytics/ultralytics
-# Image is aarch64-compatible for Apple M1, M2, M3, Raspberry Pi and other ARM architectures
-
-# Start FROM Ubuntu image https://hub.docker.com/_/ubuntu with "FROM arm64v8/ubuntu:22.04" (deprecated)
-# Start FROM Debian image for arm64v8 https://hub.docker.com/r/arm64v8/debian (new)
-FROM arm64v8/debian:bookworm-slim
-
-# Downloads to user config dir
-ADD https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.ttf \
- https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.Unicode.ttf \
- /root/.config/Ultralytics/
-
-# Install linux packages
-# g++ required to build 'tflite_support' and 'lap' packages, libusb-1.0-0 required for 'tflite_support' package
-# cmake and build-essential is needed to build onnxsim when exporting to tflite
-RUN apt update \
- && apt install --no-install-recommends -y python3-pip git zip curl htop gcc libgl1 libglib2.0-0 libpython3-dev gnupg g++ libusb-1.0-0 build-essential
-
-# Create working directory
-WORKDIR /usr/src/ultralytics
-
-# Copy contents
-# COPY . /usr/src/ultralytics # git permission issues inside container
-RUN git clone https://github.com/ultralytics/ultralytics -b main /usr/src/ultralytics
-ADD https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n.pt /usr/src/ultralytics/
-
-# Remove python3.11/EXTERNALLY-MANAGED to avoid 'externally-managed-environment' issue, Debian 12 Bookworm error
-RUN rm -rf /usr/lib/python3.11/EXTERNALLY-MANAGED
-
-# Install pip packages
-RUN python3 -m pip install --upgrade pip wheel
-RUN pip install --no-cache -e ".[export]"
-
-# Creates a symbolic link to make 'python' point to 'python3'
-RUN ln -sf /usr/bin/python3 /usr/bin/python
-
-
-# Usage Examples -------------------------------------------------------------------------------------------------------
-
-# Build and Push
-# t=ultralytics/ultralytics:latest-arm64 && sudo docker build --platform linux/arm64 -f docker/Dockerfile-arm64 -t $t . && sudo docker push $t
-
-# Run
-# t=ultralytics/ultralytics:latest-arm64 && sudo docker run -it --ipc=host $t
-
-# Pull and Run
-# t=ultralytics/ultralytics:latest-arm64 && sudo docker pull $t && sudo docker run -it --ipc=host $t
-
-# Pull and Run with local volume mounted
-# t=ultralytics/ultralytics:latest-arm64 && sudo docker pull $t && sudo docker run -it --ipc=host -v "$(pwd)"/datasets:/usr/src/datasets $t
diff --git a/ultralytics-main/docker/Dockerfile-conda b/ultralytics-main/docker/Dockerfile-conda
deleted file mode 100644
index 30d4ce1..0000000
--- a/ultralytics-main/docker/Dockerfile-conda
+++ /dev/null
@@ -1,40 +0,0 @@
-# Ultralytics YOLO 🚀, AGPL-3.0 license
-# Builds ultralytics/ultralytics:latest-conda image on DockerHub https://hub.docker.com/r/ultralytics/ultralytics
-# Image is optimized for Ultralytics Anaconda (https://anaconda.org/conda-forge/ultralytics) installation and usage
-
-# Start FROM miniconda3 image https://hub.docker.com/r/continuumio/miniconda3
-FROM continuumio/miniconda3:latest
-
-# Downloads to user config dir
-ADD https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.ttf \
- https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.Unicode.ttf \
- /root/.config/Ultralytics/
-
-# Install linux packages
-RUN apt update \
- && apt install --no-install-recommends -y libgl1
-
-# Copy contents
-ADD https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n.pt .
-
-# Install conda packages
-# mkl required to fix 'OSError: libmkl_intel_lp64.so.2: cannot open shared object file: No such file or directory'
-RUN conda config --set solver libmamba && \
- conda install pytorch torchvision pytorch-cuda=11.8 -c pytorch -c nvidia && \
- conda install -c conda-forge ultralytics mkl
- # conda install -c pytorch -c nvidia -c conda-forge pytorch torchvision pytorch-cuda=11.8 ultralytics mkl
-
-
-# Usage Examples -------------------------------------------------------------------------------------------------------
-
-# Build and Push
-# t=ultralytics/ultralytics:latest-conda && sudo docker build -f docker/Dockerfile-cpu -t $t . && sudo docker push $t
-
-# Run
-# t=ultralytics/ultralytics:latest-conda && sudo docker run -it --ipc=host $t
-
-# Pull and Run
-# t=ultralytics/ultralytics:latest-conda && sudo docker pull $t && sudo docker run -it --ipc=host $t
-
-# Pull and Run with local volume mounted
-# t=ultralytics/ultralytics:latest-conda && sudo docker pull $t && sudo docker run -it --ipc=host -v "$(pwd)"/datasets:/usr/src/datasets $t
diff --git a/ultralytics-main/docker/Dockerfile-cpu b/ultralytics-main/docker/Dockerfile-cpu
deleted file mode 100644
index f829ebf..0000000
--- a/ultralytics-main/docker/Dockerfile-cpu
+++ /dev/null
@@ -1,57 +0,0 @@
-# Ultralytics YOLO 🚀, AGPL-3.0 license
-# Builds ultralytics/ultralytics:latest-cpu image on DockerHub https://hub.docker.com/r/ultralytics/ultralytics
-# Image is CPU-optimized for ONNX, OpenVINO and PyTorch YOLOv8 deployments
-
-# Start FROM Ubuntu image https://hub.docker.com/_/ubuntu
-FROM ubuntu:23.10
-
-# Downloads to user config dir
-ADD https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.ttf \
- https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.Unicode.ttf \
- /root/.config/Ultralytics/
-
-# Install linux packages
-# g++ required to build 'tflite_support' and 'lap' packages, libusb-1.0-0 required for 'tflite_support' package
-RUN apt update \
- && apt install --no-install-recommends -y python3-pip git zip curl htop libgl1 libglib2.0-0 libpython3-dev gnupg g++ libusb-1.0-0
-
-# Create working directory
-WORKDIR /usr/src/ultralytics
-
-# Copy contents
-# COPY . /usr/src/ultralytics # git permission issues inside container
-RUN git clone https://github.com/ultralytics/ultralytics -b main /usr/src/ultralytics
-ADD https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n.pt /usr/src/ultralytics/
-
-# Remove python3.11/EXTERNALLY-MANAGED or use 'pip install --break-system-packages' avoid 'externally-managed-environment' Ubuntu nightly error
-RUN rm -rf /usr/lib/python3.11/EXTERNALLY-MANAGED
-
-# Install pip packages
-RUN python3 -m pip install --upgrade pip wheel
-RUN pip install --no-cache -e ".[export]" --extra-index-url https://download.pytorch.org/whl/cpu
-
-# Run exports to AutoInstall packages
-RUN yolo export model=tmp/yolov8n.pt format=edgetpu imgsz=32
-RUN yolo export model=tmp/yolov8n.pt format=ncnn imgsz=32
-# Requires <= Python 3.10, bug with paddlepaddle==2.5.0 https://github.com/PaddlePaddle/X2Paddle/issues/991
-# RUN pip install --no-cache paddlepaddle>=2.6.0 x2paddle
-# Remove exported models
-RUN rm -rf tmp
-
-# Creates a symbolic link to make 'python' point to 'python3'
-RUN ln -sf /usr/bin/python3 /usr/bin/python
-
-
-# Usage Examples -------------------------------------------------------------------------------------------------------
-
-# Build and Push
-# t=ultralytics/ultralytics:latest-cpu && sudo docker build -f docker/Dockerfile-cpu -t $t . && sudo docker push $t
-
-# Run
-# t=ultralytics/ultralytics:latest-cpu && sudo docker run -it --ipc=host --name NAME $t
-
-# Pull and Run
-# t=ultralytics/ultralytics:latest-cpu && sudo docker pull $t && sudo docker run -it --ipc=host --name NAME $t
-
-# Pull and Run with local volume mounted
-# t=ultralytics/ultralytics:latest-cpu && sudo docker pull $t && sudo docker run -it --ipc=host -v "$(pwd)"/datasets:/usr/src/datasets $t
diff --git a/ultralytics-main/docker/Dockerfile-jetson b/ultralytics-main/docker/Dockerfile-jetson
deleted file mode 100644
index 6528628..0000000
--- a/ultralytics-main/docker/Dockerfile-jetson
+++ /dev/null
@@ -1,50 +0,0 @@
-# Ultralytics YOLO 🚀, AGPL-3.0 license
-# Builds ultralytics/ultralytics:jetson image on DockerHub https://hub.docker.com/r/ultralytics/ultralytics
-# Supports JetPack for YOLOv8 on Jetson Nano, TX1/TX2, Xavier NX, AGX Xavier, AGX Orin, and Orin NX
-
-# Start FROM https://catalog.ngc.nvidia.com/orgs/nvidia/containers/l4t-pytorch
-FROM nvcr.io/nvidia/l4t-pytorch:r35.2.1-pth2.0-py3
-
-# Downloads to user config dir
-ADD https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.ttf \
- https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.Unicode.ttf \
- /root/.config/Ultralytics/
-
-# Install linux packages
-# g++ required to build 'tflite_support' and 'lap' packages, libusb-1.0-0 required for 'tflite_support' package
-RUN apt update \
- && apt install --no-install-recommends -y gcc git zip curl htop libgl1 libglib2.0-0 libpython3-dev gnupg g++ libusb-1.0-0
-
-# Create working directory
-WORKDIR /usr/src/ultralytics
-
-# Copy contents
-# COPY . /usr/src/ultralytics # git permission issues inside container
-RUN git clone https://github.com/ultralytics/ultralytics -b main /usr/src/ultralytics
-ADD https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n.pt /usr/src/ultralytics/
-
-# Remove opencv-python from Ultralytics dependencies as it conflicts with opencv-python installed in base image
-RUN grep -v "opencv-python" pyproject.toml > temp.toml && mv temp.toml pyproject.toml
-
-# Install pip packages manually for TensorRT compatibility https://github.com/NVIDIA/TensorRT/issues/2567
-RUN python3 -m pip install --upgrade pip wheel
-RUN pip install --no-cache tqdm matplotlib pyyaml psutil pandas onnx "numpy==1.23"
-RUN pip install --no-cache -e .
-
-# Set environment variables
-ENV OMP_NUM_THREADS=1
-
-
-# Usage Examples -------------------------------------------------------------------------------------------------------
-
-# Build and Push
-# t=ultralytics/ultralytics:latest-jetson && sudo docker build --platform linux/arm64 -f docker/Dockerfile-jetson -t $t . && sudo docker push $t
-
-# Run
-# t=ultralytics/ultralytics:latest-jetson && sudo docker run -it --ipc=host $t
-
-# Pull and Run
-# t=ultralytics/ultralytics:latest-jetson && sudo docker pull $t && sudo docker run -it --ipc=host $t
-
-# Pull and Run with NVIDIA runtime
-# t=ultralytics/ultralytics:latest-jetson && sudo docker pull $t && sudo docker run -it --ipc=host --runtime=nvidia $t
diff --git a/ultralytics-main/docker/Dockerfile-python b/ultralytics-main/docker/Dockerfile-python
deleted file mode 100644
index 8423dbb..0000000
--- a/ultralytics-main/docker/Dockerfile-python
+++ /dev/null
@@ -1,54 +0,0 @@
-# Ultralytics YOLO 🚀, AGPL-3.0 license
-# Builds ultralytics/ultralytics:latest-cpu image on DockerHub https://hub.docker.com/r/ultralytics/ultralytics
-# Image is CPU-optimized for ONNX, OpenVINO and PyTorch YOLOv8 deployments
-
-# Use the official Python 3.10 slim-bookworm as base image
-FROM python:3.10-slim-bookworm
-
-# Downloads to user config dir
-ADD https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.ttf \
- https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.Unicode.ttf \
- /root/.config/Ultralytics/
-
-# Install linux packages
-# g++ required to build 'tflite_support' and 'lap' packages, libusb-1.0-0 required for 'tflite_support' package
-RUN apt update \
- && apt install --no-install-recommends -y python3-pip git zip curl htop libgl1 libglib2.0-0 libpython3-dev gnupg g++ libusb-1.0-0
-
-# Create working directory
-WORKDIR /usr/src/ultralytics
-
-# Copy contents
-# COPY . /usr/src/ultralytics # git permission issues inside container
-RUN git clone https://github.com/ultralytics/ultralytics -b main /usr/src/ultralytics
-ADD https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n.pt /usr/src/ultralytics/
-
-# Remove python3.11/EXTERNALLY-MANAGED or use 'pip install --break-system-packages' avoid 'externally-managed-environment' Ubuntu nightly error
-# RUN rm -rf /usr/lib/python3.11/EXTERNALLY-MANAGED
-
-# Install pip packages
-RUN python3 -m pip install --upgrade pip wheel
-RUN pip install --no-cache -e ".[export]" --extra-index-url https://download.pytorch.org/whl/cpu
-
-# Run exports to AutoInstall packages
-RUN yolo export model=tmp/yolov8n.pt format=edgetpu imgsz=32
-RUN yolo export model=tmp/yolov8n.pt format=ncnn imgsz=32
-# Requires <= Python 3.10, bug with paddlepaddle==2.5.0 https://github.com/PaddlePaddle/X2Paddle/issues/991
-RUN pip install --no-cache paddlepaddle>=2.6.0 x2paddle
-# Remove exported models
-RUN rm -rf tmp
-
-
-# Usage Examples -------------------------------------------------------------------------------------------------------
-
-# Build and Push
-# t=ultralytics/ultralytics:latest-python && sudo docker build -f docker/Dockerfile-python -t $t . && sudo docker push $t
-
-# Run
-# t=ultralytics/ultralytics:latest-python && sudo docker run -it --ipc=host $t
-
-# Pull and Run
-# t=ultralytics/ultralytics:latest-python && sudo docker pull $t && sudo docker run -it --ipc=host $t
-
-# Pull and Run with local volume mounted
-# t=ultralytics/ultralytics:latest-python && sudo docker pull $t && sudo docker run -it --ipc=host -v "$(pwd)"/datasets:/usr/src/datasets $t
diff --git a/ultralytics-main/docker/Dockerfile-runner b/ultralytics-main/docker/Dockerfile-runner
deleted file mode 100644
index c0f8659..0000000
--- a/ultralytics-main/docker/Dockerfile-runner
+++ /dev/null
@@ -1,38 +0,0 @@
-# Ultralytics YOLO 🚀, AGPL-3.0 license
-# Builds GitHub actions CI runner image for deployment to DockerHub https://hub.docker.com/r/ultralytics/ultralytics
-# Image is CUDA-optimized for YOLOv8 single/multi-GPU training and inference tests
-
-# Start FROM Ultralytics GPU image
-FROM ultralytics/ultralytics:latest
-
-# Set the working directory
-WORKDIR /actions-runner
-
-# Download and unpack the latest runner from https://github.com/actions/runner
-RUN FILENAME=actions-runner-linux-x64-2.309.0.tar.gz && \
- curl -o $FILENAME -L https://github.com/actions/runner/releases/download/v2.309.0/$FILENAME && \
- tar xzf $FILENAME && \
- rm $FILENAME
-
-# Install runner dependencies
-ENV RUNNER_ALLOW_RUNASROOT=1
-ENV DEBIAN_FRONTEND=noninteractive
-RUN ./bin/installdependencies.sh && \
- apt-get -y install libicu-dev
-
-# Inline ENTRYPOINT command to configure and start runner with default TOKEN and NAME
-ENTRYPOINT sh -c './config.sh --url https://github.com/ultralytics/ultralytics \
- --token ${GITHUB_RUNNER_TOKEN:-TOKEN} \
- --name ${GITHUB_RUNNER_NAME:-NAME} \
- --labels gpu-latest \
- --replace && \
- ./run.sh'
-
-
-# Usage Examples -------------------------------------------------------------------------------------------------------
-
-# Build and Push
-# t=ultralytics/ultralytics:latest-runner && sudo docker build -f docker/Dockerfile-runner -t $t . && sudo docker push $t
-
-# Pull and Run in detached mode with access to GPUs 0 and 1
-# t=ultralytics/ultralytics:latest-runner && sudo docker run -d -e GITHUB_RUNNER_TOKEN=TOKEN -e GITHUB_RUNNER_NAME=NAME --ipc=host --gpus '"device=0,1"' $t
diff --git a/ultralytics-main/docs/README.md b/ultralytics-main/docs/README.md
deleted file mode 100644
index 954e130..0000000
--- a/ultralytics-main/docs/README.md
+++ /dev/null
@@ -1,140 +0,0 @@
-
-
-
-# 📚 Ultralytics Docs
-
-Ultralytics Docs are the gateway to understanding and utilizing our cutting-edge machine learning tools. These documents are deployed to [https://docs.ultralytics.com](https://docs.ultralytics.com) for your convenience.
-
-[![pages-build-deployment](https://github.com/ultralytics/docs/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/ultralytics/docs/actions/workflows/pages/pages-build-deployment) [![Check Broken links](https://github.com/ultralytics/docs/actions/workflows/links.yml/badge.svg)](https://github.com/ultralytics/docs/actions/workflows/links.yml) [![Check Domains](https://github.com/ultralytics/docs/actions/workflows/check_domains.yml/badge.svg)](https://github.com/ultralytics/docs/actions/workflows/check_domains.yml) [![Ultralytics Actions](https://github.com/ultralytics/docs/actions/workflows/format.yml/badge.svg)](https://github.com/ultralytics/docs/actions/workflows/format.yml)
-
-## 🛠️ Installation
-
-[![PyPI version](https://badge.fury.io/py/ultralytics.svg)](https://badge.fury.io/py/ultralytics) [![Downloads](https://static.pepy.tech/badge/ultralytics)](https://pepy.tech/project/ultralytics)
-
-To install the ultralytics package in developer mode, ensure you have Git and Python 3 installed on your system. Then, follow these steps:
-
-1. Clone the ultralytics repository to your local machine using Git:
-
- ```bash
- git clone https://github.com/ultralytics/ultralytics.git
- ```
-
-2. Navigate to the cloned repository's root directory:
-
- ```bash
- cd ultralytics
- ```
-
-3. Install the package in developer mode using pip (or pip3 for Python 3):
-
- ```bash
- pip install -e '.[dev]'
- ```
-
-- This command installs the ultralytics package along with all development dependencies, allowing you to modify the package code and have the changes immediately reflected in your Python environment.
-
-## 🚀 Building and Serving Locally
-
-The `mkdocs serve` command builds and serves a local version of your MkDocs documentation, ideal for development and testing:
-
-```bash
-mkdocs serve
-```
-
-- #### Command Breakdown:
-
- - `mkdocs` is the main MkDocs command-line interface.
- - `serve` is the subcommand to build and locally serve your documentation.
-
-- 🧐 Note:
-
- - Grasp changes to the docs in real-time as `mkdocs serve` supports live reloading.
- - To stop the local server, press `CTRL+C`.
-
-## 🌍 Building and Serving Multi-Language
-
-Supporting multi-language documentation? Follow these steps:
-
-1. Stage all new language \*.md files with Git:
-
- ```bash
- git add docs/**/*.md -f
- ```
-
-2. Build all languages to the `/site` folder, ensuring relevant root-level files are present:
-
- ```bash
- # Clear existing /site directory
- rm -rf site
-
- # Loop through each language config file and build
- mkdocs build -f docs/mkdocs.yml
- for file in docs/mkdocs_*.yml; do
- echo "Building MkDocs site with $file"
- mkdocs build -f "$file"
- done
- ```
-
-3. To preview your site, initiate a simple HTTP server:
-
- ```bash
- cd site
- python -m http.server
- # Open in your preferred browser
- ```
-
-- 🖥️ Access the live site at `http://localhost:8000`.
-
-## 📤 Deploying Your Documentation Site
-
-Choose a hosting provider and deployment method for your MkDocs documentation:
-
-- Configure `mkdocs.yml` with deployment settings.
-- Use `mkdocs deploy` to build and deploy your site.
-
-* ### GitHub Pages Deployment Example:
- ```bash
- mkdocs gh-deploy
- ```
-
-- Update the "Custom domain" in your repository's settings for a personalized URL.
-
-![196814117-fc16e711-d2be-4722-9536-b7c6d78fd167](https://user-images.githubusercontent.com/26833433/210150206-9e86dcd7-10af-43e4-9eb2-9518b3799eac.png)
-
-- For detailed deployment guidance, consult the [MkDocs documentation](https://www.mkdocs.org/user-guide/deploying-your-docs/).
-
-## 💡 Contribute
-
-We cherish the community's input as it drives Ultralytics open-source initiatives. Dive into the [Contributing Guide](https://docs.ultralytics.com/help/contributing) and share your thoughts via our [Survey](https://ultralytics.com/survey?utm_source=github&utm_medium=social&utm_campaign=Survey). A heartfelt thank you 🙏 to each contributor!
-
-
-
-![Ultralytics open-source contributors](https://github.com/ultralytics/assets/raw/main/im/image-contributors.png)
-
-## 📜 License
-
-Ultralytics presents two licensing options:
-
-- **AGPL-3.0 License**: Perfect for academia and open collaboration. Details are in the [LICENSE](https://github.com/ultralytics/ultralytics/blob/main/LICENSE) file.
-- **Enterprise License**: Tailored for commercial usage, offering a seamless blend of Ultralytics technology in your products. Learn more at [Ultralytics Licensing](https://ultralytics.com/license).
-
-## ✉️ Contact
-
-For bug reports and feature requests, navigate to [GitHub Issues](https://github.com/ultralytics/docs/issues). Engage with peers and the Ultralytics team on [Discord](https://ultralytics.com/discord) for enriching conversations!
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ultralytics-main/docs/build_docs.py b/ultralytics-main/docs/build_docs.py
deleted file mode 100644
index 825df80..0000000
--- a/ultralytics-main/docs/build_docs.py
+++ /dev/null
@@ -1,141 +0,0 @@
-# Ultralytics YOLO 🚀, AGPL-3.0 license
-"""
-This Python script is designed to automate the building and post-processing of MkDocs documentation, particularly for
-projects with multilingual content. It streamlines the workflow for generating localized versions of the documentation
-and updating HTML links to ensure they are correctly formatted.
-
-Key Features:
-- Automated building of MkDocs documentation: The script compiles both the main documentation and
- any localized versions specified in separate MkDocs configuration files.
-- Post-processing of generated HTML files: After the documentation is built, the script updates all
- HTML files to remove the '.md' extension from internal links. This ensures that links in the built
- HTML documentation correctly point to other HTML pages rather than Markdown files, which is crucial
- for proper navigation within the web-based documentation.
-
-Usage:
-- Run the script from the root directory of your MkDocs project.
-- Ensure that MkDocs is installed and that all MkDocs configuration files (main and localized versions)
- are present in the project directory.
-- The script first builds the documentation using MkDocs, then scans the generated HTML files in the 'site'
- directory to update the internal links.
-- It's ideal for projects where the documentation is written in Markdown and needs to be served as a static website.
-
-Note:
-- This script is built to be run in an environment where Python and MkDocs are installed and properly configured.
-"""
-
-import os
-import re
-import shutil
-import subprocess
-from pathlib import Path
-
-from tqdm import tqdm
-
-DOCS = Path(__file__).parent.resolve()
-SITE = DOCS.parent / "site"
-
-
-def build_docs(clone_repos=True):
- """Build docs using mkdocs."""
- if SITE.exists():
- print(f"Removing existing {SITE}")
- shutil.rmtree(SITE)
-
- # Get hub-sdk repo
- if clone_repos:
- repo = "https://github.com/ultralytics/hub-sdk"
- local_dir = DOCS.parent / Path(repo).name
- if not local_dir.exists():
- os.system(f"git clone {repo} {local_dir}")
- os.system(f"git -C {local_dir} pull") # update repo
- shutil.rmtree(DOCS / "en/hub/sdk", ignore_errors=True) # delete if exists
- shutil.copytree(local_dir / "docs", DOCS / "en/hub/sdk") # for docs
- shutil.rmtree(DOCS.parent / "hub_sdk", ignore_errors=True) # delete if exists
- shutil.copytree(local_dir / "hub_sdk", DOCS.parent / "hub_sdk") # for mkdocstrings
- print(f"Cloned/Updated {repo} in {local_dir}")
-
- # Build the main documentation
- print(f"Building docs from {DOCS}")
- subprocess.run(f"mkdocs build -f {DOCS.parent}/mkdocs.yml", check=True, shell=True)
- print(f"Site built at {SITE}")
-
-
-def update_page_title(file_path: Path, new_title: str):
- """Update the title of an HTML file."""
-
- # Read the content of the file
- with open(file_path, encoding="utf-8") as file:
- content = file.read()
-
- # Replace the existing title with the new title
- updated_content = re.sub(r".*?", f"{new_title}", content)
-
- # Write the updated content back to the file
- with open(file_path, "w", encoding="utf-8") as file:
- file.write(updated_content)
-
-
-def update_html_head(script=""):
- """Update the HTML head section of each file."""
- html_files = Path(SITE).rglob("*.html")
- for html_file in tqdm(html_files, desc="Processing HTML files"):
- with html_file.open("r", encoding="utf-8") as file:
- html_content = file.read()
-
- if script in html_content: # script already in HTML file
- return
-
- head_end_index = html_content.lower().rfind("")
- if head_end_index != -1:
- # Add the specified JavaScript to the HTML file just before the end of the head tag.
- new_html_content = html_content[:head_end_index] + script + html_content[head_end_index:]
- with html_file.open("w", encoding="utf-8") as file:
- file.write(new_html_content)
-
-
-def update_subdir_edit_links(subdir="", docs_url=""):
- """Update the HTML head section of each file."""
- from bs4 import BeautifulSoup
-
- if str(subdir[0]) == "/":
- subdir = str(subdir[0])[1:]
- html_files = (SITE / subdir).rglob("*.html")
- for html_file in tqdm(html_files, desc="Processing subdir files"):
- with html_file.open("r", encoding="utf-8") as file:
- soup = BeautifulSoup(file, "html.parser")
-
- # Find the anchor tag and update its href attribute
- a_tag = soup.find("a", {"class": "md-content__button md-icon"})
- if a_tag and a_tag["title"] == "Edit this page":
- a_tag["href"] = f"{docs_url}{a_tag['href'].split(subdir)[-1]}"
-
- # Write the updated HTML back to the file
- with open(html_file, "w", encoding="utf-8") as file:
- file.write(str(soup))
-
-
-def main():
- """Builds docs, updates titles and edit links, and prints local server command."""
- build_docs()
-
- # Update titles
- update_page_title(SITE / "404.html", new_title="Ultralytics Docs - Not Found")
-
- # Update edit links
- update_subdir_edit_links(
- subdir="hub/sdk/", # do not use leading slash
- docs_url="https://github.com/ultralytics/hub-sdk/tree/develop/docs/",
- )
-
- # Update HTML file head section
- script = ""
- if any(script):
- update_html_head(script)
-
- # Show command to serve built website
- print('Serve site at http://localhost:8000 with "python -m http.server --directory site"')
-
-
-if __name__ == "__main__":
- main()
diff --git a/ultralytics-main/docs/build_reference.py b/ultralytics-main/docs/build_reference.py
deleted file mode 100644
index a9ddd07..0000000
--- a/ultralytics-main/docs/build_reference.py
+++ /dev/null
@@ -1,130 +0,0 @@
-# Ultralytics YOLO 🚀, AGPL-3.0 license
-"""
-Helper file to build Ultralytics Docs reference section. Recursively walks through ultralytics dir and builds an MkDocs
-reference section of *.md files composed of classes and functions, and also creates a nav menu for use in mkdocs.yaml.
-
-Note: Must be run from repository root directory. Do not run from docs directory.
-"""
-
-import re
-from collections import defaultdict
-from pathlib import Path
-
-# Get package root i.e. /Users/glennjocher/PycharmProjects/ultralytics/ultralytics
-from ultralytics.utils import ROOT as PACKAGE_DIR
-
-# Constants
-REFERENCE_DIR = PACKAGE_DIR.parent / "docs/en/reference"
-GITHUB_REPO = "ultralytics/ultralytics"
-
-
-def extract_classes_and_functions(filepath: Path) -> tuple:
- """Extracts class and function names from a given Python file."""
- content = filepath.read_text()
- class_pattern = r"(?:^|\n)class\s(\w+)(?:\(|:)"
- func_pattern = r"(?:^|\n)def\s(\w+)\("
-
- classes = re.findall(class_pattern, content)
- functions = re.findall(func_pattern, content)
-
- return classes, functions
-
-
-def create_markdown(py_filepath: Path, module_path: str, classes: list, functions: list):
- """Creates a Markdown file containing the API reference for the given Python module."""
- md_filepath = py_filepath.with_suffix(".md")
-
- # Read existing content and keep header content between first two ---
- header_content = ""
- if md_filepath.exists():
- existing_content = md_filepath.read_text()
- header_parts = existing_content.split("---")
- for part in header_parts:
- if "description:" in part or "comments:" in part:
- header_content += f"---{part}---\n\n"
-
- module_name = module_path.replace(".__init__", "")
- module_path = module_path.replace(".", "/")
- url = f"https://github.com/{GITHUB_REPO}/blob/main/{module_path}.py"
- edit = f"https://github.com/{GITHUB_REPO}/edit/main/{module_path}.py"
- title_content = (
- f"# Reference for `{module_path}.py`\n\n"
- f"!!! Note\n\n"
- f" This file is available at [{url}]({url}). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request]({edit}) 🛠️. Thank you 🙏!\n\n"
- )
- md_content = ["
\n"] + [f"## ::: {module_name}.{class_name}\n\n
\n" for class_name in classes]
- md_content.extend(f"## ::: {module_name}.{func_name}\n\n
\n" for func_name in functions)
- md_content = header_content + title_content + "\n".join(md_content)
- if not md_content.endswith("\n"):
- md_content += "\n"
-
- md_filepath.parent.mkdir(parents=True, exist_ok=True)
- md_filepath.write_text(md_content)
-
- return md_filepath.relative_to(PACKAGE_DIR.parent)
-
-
-def nested_dict() -> defaultdict:
- """Creates and returns a nested defaultdict."""
- return defaultdict(nested_dict)
-
-
-def sort_nested_dict(d: dict) -> dict:
- """Sorts a nested dictionary recursively."""
- return {key: sort_nested_dict(value) if isinstance(value, dict) else value for key, value in sorted(d.items())}
-
-
-def create_nav_menu_yaml(nav_items: list, save: bool = False):
- """Creates a YAML file for the navigation menu based on the provided list of items."""
- nav_tree = nested_dict()
-
- for item_str in nav_items:
- item = Path(item_str)
- parts = item.parts
- current_level = nav_tree["reference"]
- for part in parts[2:-1]: # skip the first two parts (docs and reference) and the last part (filename)
- current_level = current_level[part]
-
- md_file_name = parts[-1].replace(".md", "")
- current_level[md_file_name] = item
-
- nav_tree_sorted = sort_nested_dict(nav_tree)
-
- def _dict_to_yaml(d, level=0):
- """Converts a nested dictionary to a YAML-formatted string with indentation."""
- yaml_str = ""
- indent = " " * level
- for k, v in d.items():
- if isinstance(v, dict):
- yaml_str += f"{indent}- {k}:\n{_dict_to_yaml(v, level + 1)}"
- else:
- yaml_str += f"{indent}- {k}: {str(v).replace('docs/en/', '')}\n"
- return yaml_str
-
- # Print updated YAML reference section
- print("Scan complete, new mkdocs.yaml reference section is:\n\n", _dict_to_yaml(nav_tree_sorted))
-
- # Save new YAML reference section
- if save:
- (PACKAGE_DIR.parent / "nav_menu_updated.yml").write_text(_dict_to_yaml(nav_tree_sorted))
-
-
-def main():
- """Main function to extract class and function names, create Markdown files, and generate a YAML navigation menu."""
- nav_items = []
-
- for py_filepath in PACKAGE_DIR.rglob("*.py"):
- classes, functions = extract_classes_and_functions(py_filepath)
-
- if classes or functions:
- py_filepath_rel = py_filepath.relative_to(PACKAGE_DIR)
- md_filepath = REFERENCE_DIR / py_filepath_rel
- module_path = f"{PACKAGE_DIR.name}.{py_filepath_rel.with_suffix('').as_posix().replace('/', '.')}"
- md_rel_filepath = create_markdown(md_filepath, module_path, classes, functions)
- nav_items.append(str(md_rel_filepath))
-
- create_nav_menu_yaml(nav_items)
-
-
-if __name__ == "__main__":
- main()
diff --git a/ultralytics-main/docs/coming_soon_template.md b/ultralytics-main/docs/coming_soon_template.md
deleted file mode 100644
index f8d7802..0000000
--- a/ultralytics-main/docs/coming_soon_template.md
+++ /dev/null
@@ -1,34 +0,0 @@
----
-description: Discover what's next for Ultralytics with our under-construction page, previewing new, groundbreaking AI and ML features coming soon.
-keywords: Ultralytics, coming soon, under construction, new features, AI updates, ML advancements, YOLO, technology preview
----
-
-# Under Construction 🏗️🌟
-
-Welcome to the Ultralytics "Under Construction" page! Here, we're hard at work developing the next generation of AI and ML innovations. This page serves as a teaser for the exciting updates and new features we're eager to share with you!
-
-## Exciting New Features on the Way 🎉
-
-- **Innovative Breakthroughs:** Get ready for advanced features and services that will transform your AI and ML experience.
-- **New Horizons:** Anticipate novel products that redefine AI and ML capabilities.
-- **Enhanced Services:** We're upgrading our services for greater efficiency and user-friendliness.
-
-## Stay Updated 🚧
-
-This placeholder page is your first stop for upcoming developments. Keep an eye out for:
-
-- **Newsletter:** Subscribe [here](https://ultralytics.com/#newsletter) for the latest news.
-- **Social Media:** Follow us [here](https://www.linkedin.com/company/ultralytics) for updates and teasers.
-- **Blog:** Visit our [blog](https://ultralytics.com/blog) for detailed insights.
-
-## We Value Your Input 🗣️
-
-Your feedback shapes our future releases. Share your thoughts and suggestions [here](https://ultralytics.com/contact).
-
-## Thank You, Community! 🌍
-
-Your [contributions](https://docs.ultralytics.com/help/contributing) inspire our continuous [innovation](https://github.com/ultralytics/ultralytics). Stay tuned for the big reveal of what's next in AI and ML at Ultralytics!
-
----
-
-Excited for what's coming? Bookmark this page and get ready for a transformative AI and ML journey with Ultralytics! 🛠️🤖
diff --git a/ultralytics-main/docs/en/CNAME b/ultralytics-main/docs/en/CNAME
deleted file mode 100644
index 339382a..0000000
--- a/ultralytics-main/docs/en/CNAME
+++ /dev/null
@@ -1 +0,0 @@
-docs.ultralytics.com
diff --git a/ultralytics-main/docs/en/guides/azureml-quickstart.md b/ultralytics-main/docs/en/guides/azureml-quickstart.md
deleted file mode 100644
index 56b1cea..0000000
--- a/ultralytics-main/docs/en/guides/azureml-quickstart.md
+++ /dev/null
@@ -1,152 +0,0 @@
----
-comments: true
-description: Step-by-step Quickstart Guide to Running YOLOv8 Object Detection Models on AzureML for Fast Prototyping and Testing
-keywords: Ultralytics, YOLOv8, Object Detection, Azure Machine Learning, Quickstart Guide, Prototype, Compute Instance, Terminal, Notebook, IPython Kernel, CLI, Python SDK
----
-
-# YOLOv8 🚀 on AzureML
-
-## What is Azure?
-
-[Azure](https://azure.microsoft.com/) is Microsoft's cloud computing platform, designed to help organizations move their workloads to the cloud from on-premises data centers. With the full spectrum of cloud services including those for computing, databases, analytics, machine learning, and networking, users can pick and choose from these services to develop and scale new applications, or run existing applications, in the public cloud.
-
-## What is Azure Machine Learning (AzureML)?
-
-Azure Machine Learning, commonly referred to as AzureML, is a fully managed cloud service that enables data scientists and developers to efficiently embed predictive analytics into their applications, helping organizations use massive data sets and bring all the benefits of the cloud to machine learning. AzureML offers a variety of services and capabilities aimed at making machine learning accessible, easy to use, and scalable. It provides capabilities like automated machine learning, drag-and-drop model training, as well as a robust Python SDK so that developers can make the most out of their machine learning models.
-
-## How Does AzureML Benefit YOLO Users?
-
-For users of YOLO (You Only Look Once), AzureML provides a robust, scalable, and efficient platform to both train and deploy machine learning models. Whether you are looking to run quick prototypes or scale up to handle more extensive data, AzureML's flexible and user-friendly environment offers various tools and services to fit your needs. You can leverage AzureML to:
-
-- Easily manage large datasets and computational resources for training.
-- Utilize built-in tools for data preprocessing, feature selection, and model training.
-- Collaborate more efficiently with capabilities for MLOps (Machine Learning Operations), including but not limited to monitoring, auditing, and versioning of models and data.
-
-In the subsequent sections, you will find a quickstart guide detailing how to run YOLOv8 object detection models using AzureML, either from a compute terminal or a notebook.
-
-## Prerequisites
-
-Before you can get started, make sure you have access to an AzureML workspace. If you don't have one, you can create a new [AzureML workspace](https://learn.microsoft.com/azure/machine-learning/concept-workspace?view=azureml-api-2) by following Azure's official documentation. This workspace acts as a centralized place to manage all AzureML resources.
-
-## Create a compute instance
-
-From your AzureML workspace, select Compute > Compute instances > New, select the instance with the resources you need.
-
-
-
-
-
-## Quickstart from Terminal
-
-Start your compute and open a Terminal:
-
-
-
-
-
-### Create virtualenv
-
-Create your conda virtualenv and install pip in it:
-
-```bash
-conda create --name yolov8env -y
-conda activate yolov8env
-conda install pip -y
-```
-
-Install the required dependencies:
-
-```bash
-cd ultralytics
-pip install -r requirements.txt
-pip install ultralytics
-pip install onnx>=1.12.0
-```
-
-### Perform YOLOv8 tasks
-
-Predict:
-
-```bash
-yolo predict model=yolov8n.pt source='https://ultralytics.com/images/bus.jpg'
-```
-
-Train a detection model for 10 epochs with an initial learning_rate of 0.01:
-
-```bash
-yolo train data=coco128.yaml model=yolov8n.pt epochs=10 lr0=0.01
-```
-
-You can find more [instructions to use the Ultralytics CLI here](../quickstart.md#use-ultralytics-with-cli).
-
-## Quickstart from a Notebook
-
-### Create a new IPython kernel
-
-Open the compute Terminal.
-
-
-
-
-
-From your compute terminal, you need to create a new ipykernel that will be used by your notebook to manage your dependencies:
-
-```bash
-conda create --name yolov8env -y
-conda activate yolov8env
-conda install pip -y
-conda install ipykernel -y
-python -m ipykernel install --user --name yolov8env --display-name "yolov8env"
-```
-
-Close your terminal and create a new notebook. From your Notebook, you can select the new kernel.
-
-Then you can open a Notebook cell and install the required dependencies:
-
-```bash
-%%bash
-source activate yolov8env
-cd ultralytics
-pip install -r requirements.txt
-pip install ultralytics
-pip install onnx>=1.12.0
-```
-
-Note that we need to use the `source activate yolov8env` for all the %%bash cells, to make sure that the %%bash cell uses environment we want.
-
-Run some predictions using the [Ultralytics CLI](../quickstart.md#use-ultralytics-with-cli):
-
-```bash
-%%bash
-source activate yolov8env
-yolo predict model=yolov8n.pt source='https://ultralytics.com/images/bus.jpg'
-```
-
-Or with the [Ultralytics Python interface](../quickstart.md#use-ultralytics-with-python), for example to train the model:
-
-```python
-from ultralytics import YOLO
-
-# Load a model
-model = YOLO("yolov8n.pt") # load an official YOLOv8n model
-
-# Use the model
-model.train(data="coco128.yaml", epochs=3) # train the model
-metrics = model.val() # evaluate model performance on the validation set
-results = model("https://ultralytics.com/images/bus.jpg") # predict on an image
-path = model.export(format="onnx") # export the model to ONNX format
-```
-
-You can use either the Ultralytics CLI or Python interface for running YOLOv8 tasks, as described in the terminal section above.
-
-By following these steps, you should be able to get YOLOv8 running quickly on AzureML for quick trials. For more advanced uses, you may refer to the full AzureML documentation linked at the beginning of this guide.
-
-## Explore More with AzureML
-
-This guide serves as an introduction to get you up and running with YOLOv8 on AzureML. However, it only scratches the surface of what AzureML can offer. To delve deeper and unlock the full potential of AzureML for your machine learning projects, consider exploring the following resources:
-
-- [Create a Data Asset](https://learn.microsoft.com/azure/machine-learning/how-to-create-data-assets): Learn how to set up and manage your data assets effectively within the AzureML environment.
-- [Initiate an AzureML Job](https://learn.microsoft.com/azure/machine-learning/how-to-train-model): Get a comprehensive understanding of how to kickstart your machine learning training jobs on AzureML.
-- [Register a Model](https://learn.microsoft.com/azure/machine-learning/how-to-manage-models): Familiarize yourself with model management practices including registration, versioning, and deployment.
-- [Train YOLOv8 with AzureML Python SDK](https://medium.com/@ouphi/how-to-train-the-yolov8-model-with-azure-machine-learning-python-sdk-8268696be8ba): Explore a step-by-step guide on using the AzureML Python SDK to train your YOLOv8 models.
-- [Train YOLOv8 with AzureML CLI](https://medium.com/@ouphi/how-to-train-the-yolov8-model-with-azureml-and-the-az-cli-73d3c870ba8e): Discover how to utilize the command-line interface for streamlined training and management of YOLOv8 models on AzureML.
diff --git a/ultralytics-main/docs/en/guides/conda-quickstart.md b/ultralytics-main/docs/en/guides/conda-quickstart.md
deleted file mode 100644
index 5163220..0000000
--- a/ultralytics-main/docs/en/guides/conda-quickstart.md
+++ /dev/null
@@ -1,132 +0,0 @@
----
-comments: true
-description: Comprehensive guide to setting up and using Ultralytics YOLO models in a Conda environment. Learn how to install the package, manage dependencies, and get started with object detection projects.
-keywords: Ultralytics, YOLO, Conda, environment setup, object detection, package installation, deep learning, machine learning, guide
----
-
-# Conda Quickstart Guide for Ultralytics
-
-
-
-
-
-This guide provides a comprehensive introduction to setting up a Conda environment for your Ultralytics projects. Conda is an open-source package and environment management system that offers an excellent alternative to pip for installing packages and dependencies. Its isolated environments make it particularly well-suited for data science and machine learning endeavors. For more details, visit the Ultralytics Conda package on [Anaconda](https://anaconda.org/conda-forge/ultralytics) and check out the Ultralytics feedstock repository for package updates on [GitHub](https://github.com/conda-forge/ultralytics-feedstock/).
-
-[![Conda Recipe](https://img.shields.io/badge/recipe-ultralytics-green.svg)](https://anaconda.org/conda-forge/ultralytics) [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/ultralytics.svg)](https://anaconda.org/conda-forge/ultralytics) [![Conda Version](https://img.shields.io/conda/vn/conda-forge/ultralytics.svg)](https://anaconda.org/conda-forge/ultralytics) [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/ultralytics.svg)](https://anaconda.org/conda-forge/ultralytics)
-
-## What You Will Learn
-
-- Setting up a Conda environment
-- Installing Ultralytics via Conda
-- Initializing Ultralytics in your environment
-- Using Ultralytics Docker images with Conda
-
----
-
-## Prerequisites
-
-- You should have Anaconda or Miniconda installed on your system. If not, download and install it from [Anaconda](https://www.anaconda.com/) or [Miniconda](https://docs.conda.io/projects/miniconda/en/latest/).
-
----
-
-## Setting up a Conda Environment
-
-First, let's create a new Conda environment. Open your terminal and run the following command:
-
-```bash
-conda create --name ultralytics-env python=3.8 -y
-```
-
-Activate the new environment:
-
-```bash
-conda activate ultralytics-env
-```
-
----
-
-## Installing Ultralytics
-
-You can install the Ultralytics package from the conda-forge channel. Execute the following command:
-
-```bash
-conda install -c conda-forge ultralytics
-```
-
-### Note on CUDA Environment
-
-If you're working in a CUDA-enabled environment, it's a good practice to install `ultralytics`, `pytorch`, and `pytorch-cuda` together to resolve any conflicts:
-
-```bash
-conda install -c pytorch -c nvidia -c conda-forge pytorch torchvision pytorch-cuda=11.8 ultralytics
-```
-
----
-
-## Using Ultralytics
-
-With Ultralytics installed, you can now start using its robust features for object detection, instance segmentation, and more. For example, to predict an image, you can run:
-
-```python
-from ultralytics import YOLO
-
-model = YOLO('yolov8n.pt') # initialize model
-results = model('path/to/image.jpg') # perform inference
-results[0].show() # display results for the first image
-```
-
----
-
-## Ultralytics Conda Docker Image
-
-If you prefer using Docker, Ultralytics offers Docker images with a Conda environment included. You can pull these images from [DockerHub](https://hub.docker.com/r/ultralytics/ultralytics).
-
-Pull the latest Ultralytics image:
-
-```bash
-# Set image name as a variable
-t=ultralytics/ultralytics:latest-conda
-
-# Pull the latest Ultralytics image from Docker Hub
-sudo docker pull $t
-```
-
-Run the image:
-
-```bash
-# Run the Ultralytics image in a container with GPU support
-sudo docker run -it --ipc=host --gpus all $t # all GPUs
-sudo docker run -it --ipc=host --gpus '"device=2,3"' $t # specify GPUs
-```
-
----
-
-Certainly, you can include the following section in your Conda guide to inform users about speeding up installation using `libmamba`:
-
----
-
-## Speeding Up Installation with Libmamba
-
-If you're looking to [speed up the package installation](https://www.anaconda.com/blog/a-faster-conda-for-a-growing-community) process in Conda, you can opt to use `libmamba`, a fast, cross-platform, and dependency-aware package manager that serves as an alternative solver to Conda's default.
-
-### How to Enable Libmamba
-
-To enable `libmamba` as the solver for Conda, you can perform the following steps:
-
-1. First, install the `conda-libmamba-solver` package. This can be skipped if your Conda version is 4.11 or above, as `libmamba` is included by default.
-
- ```bash
- conda install conda-libmamba-solver
- ```
-
-2. Next, configure Conda to use `libmamba` as the solver:
-
- ```bash
- conda config --set solver libmamba
- ```
-
-And that's it! Your Conda installation will now use `libmamba` as the solver, which should result in a faster package installation process.
-
----
-
-Congratulations! You have successfully set up a Conda environment, installed the Ultralytics package, and are now ready to explore its rich functionalities. Feel free to dive deeper into the [Ultralytics documentation](../index.md) for more advanced tutorials and examples.
diff --git a/ultralytics-main/docs/en/guides/coral-edge-tpu-on-raspberry-pi.md b/ultralytics-main/docs/en/guides/coral-edge-tpu-on-raspberry-pi.md
deleted file mode 100644
index 90f9145..0000000
--- a/ultralytics-main/docs/en/guides/coral-edge-tpu-on-raspberry-pi.md
+++ /dev/null
@@ -1,140 +0,0 @@
----
-comments: true
-description: Guide on how to use Ultralytics with a Coral Edge TPU on a Raspberry Pi for increased inference performance.
-keywords: Ultralytics, YOLOv8, Object Detection, Coral, Edge TPU, Raspberry Pi, embedded, edge compute, sbc, accelerator, mobile
----
-
-# Coral Edge TPU on a Raspberry Pi with Ultralytics YOLOv8 🚀
-
-
-
-
-
-## What is a Coral Edge TPU?
-
-The Coral Edge TPU is a compact device that adds an Edge TPU coprocessor to your system. It enables low-power, high-performance ML inference for TensorFlow Lite models. Read more at the [Coral Edge TPU home page](https://coral.ai/products/accelerator).
-
-## Boost Raspberry Pi Model Performance with Coral Edge TPU
-
-Many people want to run their models on an embedded or mobile device such as a Raspberry Pi, since they are very power efficient and can be used in many different applications. However, the inference performance on these devices is usually poor even when using formats like [onnx](../integrations/onnx.md) or [openvino](../integrations/openvino.md). The Coral Edge TPU is a great solution to this problem, since it can be used with a Raspberry Pi and accelerate inference performance greatly.
-
-## Edge TPU on Raspberry Pi with TensorFlow Lite (New)⭐
-
-The [existing guide](https://coral.ai/docs/accelerator/get-started/) by Coral on how to use the Edge TPU with a Raspberry Pi is outdated, and the current Coral Edge TPU runtime builds do not work with the current TensorFlow Lite runtime versions anymore. In addition to that, Google seems to have completely abandoned the Coral project, and there have not been any updates between 2021 and 2024. This guide will show you how to get the Edge TPU working with the latest versions of the TensorFlow Lite runtime and an updated Coral Edge TPU runtime on a Raspberry Pi single board computer (SBC).
-
-## Prerequisites
-
-- [Raspberry Pi 4B](https://www.raspberrypi.com/products/raspberry-pi-4-model-b/) (2GB or more recommended) or [Raspberry Pi 5](https://www.raspberrypi.com/products/raspberry-pi-5/) (Recommended)
-- [Raspberry Pi OS](https://www.raspberrypi.com/software/) Bullseye/Bookworm (64-bit) with desktop (Recommended)
-- [Coral USB Accelerator](https://coral.ai/products/accelerator/)
-- A non-ARM based platform for exporting an Ultralytics PyTorch model
-
-## Installation Walkthrough
-
-This guide assumes that you already have a working Raspberry Pi OS install and have installed `ultralytics` and all dependencies. To get `ultralytics` installed, visit the [quickstart guide](../quickstart.md) to get setup before continuing here.
-
-### Installing the Edge TPU runtime
-
-First, we need to install the Edge TPU runtime. There are many different versions available, so you need to choose the right version for your operating system.
-
-| Raspberry Pi OS | High frequency mode | Version to download |
-|-----------------|:-------------------:|--------------------------------------------|
-| Bullseye 32bit | No | `libedgetpu1-std_ ... .bullseye_armhf.deb` |
-| Bullseye 64bit | No | `libedgetpu1-std_ ... .bullseye_arm64.deb` |
-| Bullseye 32bit | Yes | `libedgetpu1-max_ ... .bullseye_armhf.deb` |
-| Bullseye 64bit | Yes | `libedgetpu1-max_ ... .bullseye_arm64.deb` |
-| Bookworm 32bit | No | `libedgetpu1-std_ ... .bookworm_armhf.deb` |
-| Bookworm 64bit | No | `libedgetpu1-std_ ... .bookworm_arm64.deb` |
-| Bookworm 32bit | Yes | `libedgetpu1-max_ ... .bookworm_armhf.deb` |
-| Bookworm 64bit | Yes | `libedgetpu1-max_ ... .bookworm_arm64.deb` |
-
-[Download the latest version from here](https://github.com/feranick/libedgetpu/releases).
-
-After downloading the file, you can install it with the following command:
-
-```bash
-sudo dpkg -i path/to/package.deb
-```
-
-After installing the runtime, you need to plug in your Coral Edge TPU into a USB 3.0 port on your Raspberry Pi. This is because, according to the official guide, a new `udev` rule needs to take effect after installation.
-
-???+ warning "Important"
-
- If you already have the Coral Edge TPU runtime installed, uninstall it using the following command.
-
- ```bash
- # If you installed the standard version
- sudo apt remove libedgetpu1-std
-
- # If you installed the high frequency version
- sudo apt remove libedgetpu1-max
- ```
-
-## Export your model to a Edge TPU compatible model
-
-To use the Edge TPU, you need to convert your model into a compatible format. It is recommended that you run export on Google Colab, x86_64 Linux machine, using the official [Ultralytics Docker container](docker-quickstart.md), or using [Ultralytics HUB](../hub/quickstart.md), since the Edge TPU compiler is not available on ARM. See the [Export Mode](../modes/export.md) for the available arguments.
-
-!!! Exporting the model
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('path/to/model.pt') # Load a official model or custom model
-
- # Export the model
- model.export(format='edgetpu')
- ```
-
- === "CLI"
-
- ```bash
- yolo export model=path/to/model.pt format=edgetpu # Export a official model or custom model
- ```
-
-The exported model will be saved in the `_saved_model/` folder with the name `_full_integer_quant_edgetpu.tflite`.
-
-## Running the model
-
-After exporting your model, you can run inference with it using the following code:
-
-!!! Running the model
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('path/to/edgetpu_model.tflite') # Load a official model or custom model
-
- # Run Prediction
- model.predict("path/to/source.png")
- ```
-
- === "CLI"
-
- ```bash
- yolo predict model=path/to/edgetpu_model.tflite source=path/to/source.png # Load a official model or custom model
- ```
-
-Find comprehensive information on the [Predict](../modes/predict.md) page for full prediction mode details.
-
-???+ warning "Important"
-
- You should run the model using `tflite-runtime` and not `tensorflow`.
- If `tensorflow` is installed, uninstall tensorflow with the following command:
-
- ```bash
- pip uninstall tensorflow tensorflow-aarch64
- ```
-
- Then install/update `tflite-runtime`:
-
- ```
- pip install -U tflite-runtime
- ```
-
- If you want a `tflite-runtime` wheel for `tensorflow` 2.15.0 download it from [here](https://github.com/feranick/TFlite-builds/releases) and install it using `pip` or your package manager of choice.
diff --git a/ultralytics-main/docs/en/guides/distance-calculation.md b/ultralytics-main/docs/en/guides/distance-calculation.md
deleted file mode 100644
index c479d5f..0000000
--- a/ultralytics-main/docs/en/guides/distance-calculation.md
+++ /dev/null
@@ -1,107 +0,0 @@
----
-comments: true
-description: Distance Calculation Using Ultralytics YOLOv8
-keywords: Ultralytics, YOLOv8, Object Detection, Distance Calculation, Object Tracking, Notebook, IPython Kernel, CLI, Python SDK
----
-
-# Distance Calculation using Ultralytics YOLOv8 🚀
-
-## What is Distance Calculation?
-
-Measuring the gap between two objects is known as distance calculation within a specified space. In the case of [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics), the bounding box centroid is employed to calculate the distance for bounding boxes highlighted by the user.
-
-
-
-## Visuals
-
-| Distance Calculation using Ultralytics YOLOv8 |
-|:-----------------------------------------------------------------------------------------------------------------------------------------------:|
-| ![Ultralytics YOLOv8 Distance Calculation](https://github.com/RizwanMunawar/RizwanMunawar/assets/62513924/6b6b735d-3c49-4b84-a022-2bf6e3c72f8b) |
-
-## Advantages of Distance Calculation?
-
-- **Localization Precision:** Enhances accurate spatial positioning in computer vision tasks.
-- **Size Estimation:** Allows estimation of physical sizes for better contextual understanding.
-- **Scene Understanding:** Contributes to a 3D understanding of the environment for improved decision-making.
-
-???+ tip "Distance Calculation"
-
- - Click on any two bounding boxes with Left Mouse click for distance calculation
-
-!!! Example "Distance Calculation using YOLOv8 Example"
-
- === "Video Stream"
-
- ```python
- from ultralytics import YOLO
- from ultralytics.solutions import distance_calculation
- import cv2
-
- model = YOLO("yolov8n.pt")
- names = model.model.names
-
- cap = cv2.VideoCapture("path/to/video/file.mp4")
- assert cap.isOpened(), "Error reading video file"
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- # Video writer
- video_writer = cv2.VideoWriter("distance_calculation.avi",
- cv2.VideoWriter_fourcc(*'mp4v'),
- fps,
- (w, h))
-
- # Init distance-calculation obj
- dist_obj = distance_calculation.DistanceCalculation()
- dist_obj.set_args(names=names, view_img=True)
-
- while cap.isOpened():
- success, im0 = cap.read()
- if not success:
- print("Video frame is empty or video processing has been successfully completed.")
- break
-
- tracks = model.track(im0, persist=True, show=False)
- im0 = dist_obj.start_process(im0, tracks)
- video_writer.write(im0)
-
- cap.release()
- video_writer.release()
- cv2.destroyAllWindows()
-
- ```
-
-???+ tip "Note"
-
- - Mouse Right Click will delete all drawn points
- - Mouse Left Click can be used to draw points
-
-### Optional Arguments `set_args`
-
-| Name | Type | Default | Description |
-|------------------|--------|-----------------|--------------------------------------------------------|
-| `names` | `dict` | `None` | Classes names |
-| `view_img` | `bool` | `False` | Display frames with counts |
-| `line_thickness` | `int` | `2` | Increase bounding boxes thickness |
-| `line_color` | `RGB` | `(255, 255, 0)` | Line Color for centroids mapping on two bounding boxes |
-| `centroid_color` | `RGB` | `(255, 0, 255)` | Centroid color for each bounding box |
-
-### Arguments `model.track`
-
-| Name | Type | Default | Description |
-|-----------|---------|----------------|-------------------------------------------------------------|
-| `source` | `im0` | `None` | source directory for images or videos |
-| `persist` | `bool` | `False` | persisting tracks between frames |
-| `tracker` | `str` | `botsort.yaml` | Tracking method 'bytetrack' or 'botsort' |
-| `conf` | `float` | `0.3` | Confidence Threshold |
-| `iou` | `float` | `0.5` | IOU Threshold |
-| `classes` | `list` | `None` | filter results by class, i.e. classes=0, or classes=[0,2,3] |
-| `verbose` | `bool` | `True` | Display the object tracking results |
diff --git a/ultralytics-main/docs/en/guides/docker-quickstart.md b/ultralytics-main/docs/en/guides/docker-quickstart.md
deleted file mode 100644
index 6c45268..0000000
--- a/ultralytics-main/docs/en/guides/docker-quickstart.md
+++ /dev/null
@@ -1,119 +0,0 @@
----
-comments: true
-description: Complete guide to setting up and using Ultralytics YOLO models with Docker. Learn how to install Docker, manage GPU support, and run YOLO models in isolated containers.
-keywords: Ultralytics, YOLO, Docker, GPU, containerization, object detection, package installation, deep learning, machine learning, guide
----
-
-# Docker Quickstart Guide for Ultralytics
-
-
-
-
-
-This guide serves as a comprehensive introduction to setting up a Docker environment for your Ultralytics projects. [Docker](https://docker.com/) is a platform for developing, shipping, and running applications in containers. It is particularly beneficial for ensuring that the software will always run the same, regardless of where it's deployed. For more details, visit the Ultralytics Docker repository on [Docker Hub](https://hub.docker.com/r/ultralytics/ultralytics).
-
-[![Docker Pulls](https://img.shields.io/docker/pulls/ultralytics/ultralytics?logo=docker)](https://hub.docker.com/r/ultralytics/ultralytics)
-
-## What You Will Learn
-
-- Setting up Docker with NVIDIA support
-- Installing Ultralytics Docker images
-- Running Ultralytics in a Docker container
-- Mounting local directories into the container
-
----
-
-## Prerequisites
-
-- Make sure Docker is installed on your system. If not, you can download and install it from [Docker's website](https://www.docker.com/products/docker-desktop).
-- Ensure that your system has an NVIDIA GPU and NVIDIA drivers are installed.
-
----
-
-## Setting up Docker with NVIDIA Support
-
-First, verify that the NVIDIA drivers are properly installed by running:
-
-```bash
-nvidia-smi
-```
-
-### Installing NVIDIA Docker Runtime
-
-Now, let's install the NVIDIA Docker runtime to enable GPU support in Docker containers:
-
-```bash
-# Add NVIDIA package repositories
-curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
-distribution=$(lsb_release -cs)
-curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
-
-# Install NVIDIA Docker runtime
-sudo apt-get update
-sudo apt-get install -y nvidia-docker2
-
-# Restart Docker service to apply changes
-sudo systemctl restart docker
-```
-
-### Verify NVIDIA Runtime with Docker
-
-Run `docker info | grep -i runtime` to ensure that `nvidia` appears in the list of runtimes:
-
-```bash
-docker info | grep -i runtime
-```
-
----
-
-## Installing Ultralytics Docker Images
-
-Ultralytics offers several Docker images optimized for various platforms and use-cases:
-
-- **Dockerfile:** GPU image, ideal for training.
-- **Dockerfile-arm64:** For ARM64 architecture, suitable for devices like [Raspberry Pi](raspberry-pi.md).
-- **Dockerfile-cpu:** CPU-only version for inference and non-GPU environments.
-- **Dockerfile-jetson:** Optimized for NVIDIA Jetson devices.
-- **Dockerfile-python:** Minimal Python environment for lightweight applications.
-- **Dockerfile-conda:** Includes [Miniconda3](https://docs.conda.io/projects/miniconda/en/latest/) and Ultralytics package installed via Conda.
-
-To pull the latest image:
-
-```bash
-# Set image name as a variable
-t=ultralytics/ultralytics:latest
-
-# Pull the latest Ultralytics image from Docker Hub
-sudo docker pull $t
-```
-
----
-
-## Running Ultralytics in Docker Container
-
-Here's how to execute the Ultralytics Docker container:
-
-```bash
-# Run with all GPUs
-sudo docker run -it --ipc=host --gpus all $t
-
-# Run specifying which GPUs to use
-sudo docker run -it --ipc=host --gpus '"device=2,3"' $t
-```
-
-The `-it` flag assigns a pseudo-TTY and keeps stdin open, allowing you to interact with the container. The `--ipc=host` flag enables sharing of host's IPC namespace, essential for sharing memory between processes. The `--gpus` flag allows the container to access the host's GPUs.
-
-### Note on File Accessibility
-
-To work with files on your local machine within the container, you can use Docker volumes:
-
-```bash
-# Mount a local directory into the container
-sudo docker run -it --ipc=host --gpus all -v /path/on/host:/path/in/container $t
-```
-
-Replace `/path/on/host` with the directory path on your local machine and `/path/in/container` with the desired path inside the Docker container.
-
----
-
-Congratulations! You're now set up to use Ultralytics with Docker and ready to take advantage of its powerful capabilities. For alternate installation methods, feel free to explore the [Ultralytics quickstart documentation](../quickstart.md).
diff --git a/ultralytics-main/docs/en/guides/heatmaps.md b/ultralytics-main/docs/en/guides/heatmaps.md
deleted file mode 100644
index 3b8b911..0000000
--- a/ultralytics-main/docs/en/guides/heatmaps.md
+++ /dev/null
@@ -1,301 +0,0 @@
----
-comments: true
-description: Advanced Data Visualization with Ultralytics YOLOv8 Heatmaps
-keywords: Ultralytics, YOLOv8, Advanced Data Visualization, Heatmap Technology, Object Detection and Tracking, Jupyter Notebook, Python SDK, Command Line Interface
----
-
-# Advanced Data Visualization: Heatmaps using Ultralytics YOLOv8 🚀
-
-## Introduction to Heatmaps
-
-A heatmap generated with [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics/) transforms complex data into a vibrant, color-coded matrix. This visual tool employs a spectrum of colors to represent varying data values, where warmer hues indicate higher intensities and cooler tones signify lower values. Heatmaps excel in visualizing intricate data patterns, correlations, and anomalies, offering an accessible and engaging approach to data interpretation across diverse domains.
-
-
-
-
-
- Watch: Heatmaps using Ultralytics YOLOv8
-
-
-## Why Choose Heatmaps for Data Analysis?
-
-- **Intuitive Data Distribution Visualization:** Heatmaps simplify the comprehension of data concentration and distribution, converting complex datasets into easy-to-understand visual formats.
-- **Efficient Pattern Detection:** By visualizing data in heatmap format, it becomes easier to spot trends, clusters, and outliers, facilitating quicker analysis and insights.
-- **Enhanced Spatial Analysis and Decision-Making:** Heatmaps are instrumental in illustrating spatial relationships, aiding in decision-making processes in sectors such as business intelligence, environmental studies, and urban planning.
-
-## Real World Applications
-
-| Transportation | Retail |
-|:-----------------------------------------------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------------------------------------:|
-| ![Ultralytics YOLOv8 Transportation Heatmap](https://github.com/RizwanMunawar/ultralytics/assets/62513924/288d7053-622b-4452-b4e4-1f41aeb764aa) | ![Ultralytics YOLOv8 Retail Heatmap](https://github.com/RizwanMunawar/ultralytics/assets/62513924/edef75ad-50a7-4c0a-be4a-a66cdfc12802) |
-| Ultralytics YOLOv8 Transportation Heatmap | Ultralytics YOLOv8 Retail Heatmap |
-
-!!! tip "Heatmap Configuration"
-
- - `heatmap_alpha`: Ensure this value is within the range (0.0 - 1.0).
- - `decay_factor`: Used for removing heatmap after an object is no longer in the frame, its value should also be in the range (0.0 - 1.0).
-
-!!! Example "Heatmaps using Ultralytics YOLOv8 Example"
-
- === "Heatmap"
-
- ```python
- from ultralytics import YOLO
- from ultralytics.solutions import heatmap
- import cv2
-
- model = YOLO("yolov8n.pt")
- cap = cv2.VideoCapture("path/to/video/file.mp4")
- assert cap.isOpened(), "Error reading video file"
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- # Video writer
- video_writer = cv2.VideoWriter("heatmap_output.avi",
- cv2.VideoWriter_fourcc(*'mp4v'),
- fps,
- (w, h))
-
- # Init heatmap
- heatmap_obj = heatmap.Heatmap()
- heatmap_obj.set_args(colormap=cv2.COLORMAP_PARULA,
- imw=w,
- imh=h,
- view_img=True,
- shape="circle")
-
- while cap.isOpened():
- success, im0 = cap.read()
- if not success:
- print("Video frame is empty or video processing has been successfully completed.")
- break
- tracks = model.track(im0, persist=True, show=False)
-
- im0 = heatmap_obj.generate_heatmap(im0, tracks)
- video_writer.write(im0)
-
- cap.release()
- video_writer.release()
- cv2.destroyAllWindows()
-
- ```
-
- === "Line Counting"
-
- ```python
- from ultralytics import YOLO
- from ultralytics.solutions import heatmap
- import cv2
-
- model = YOLO("yolov8n.pt")
- cap = cv2.VideoCapture("path/to/video/file.mp4")
- assert cap.isOpened(), "Error reading video file"
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- # Video writer
- video_writer = cv2.VideoWriter("heatmap_output.avi",
- cv2.VideoWriter_fourcc(*'mp4v'),
- fps,
- (w, h))
-
- line_points = [(20, 400), (1080, 404)] # line for object counting
-
- # Init heatmap
- heatmap_obj = heatmap.Heatmap()
- heatmap_obj.set_args(colormap=cv2.COLORMAP_PARULA,
- imw=w,
- imh=h,
- view_img=True,
- shape="circle",
- count_reg_pts=line_points)
-
- while cap.isOpened():
- success, im0 = cap.read()
- if not success:
- print("Video frame is empty or video processing has been successfully completed.")
- break
- tracks = model.track(im0, persist=True, show=False)
-
- im0 = heatmap_obj.generate_heatmap(im0, tracks)
- video_writer.write(im0)
-
- cap.release()
- video_writer.release()
- cv2.destroyAllWindows()
- ```
-
- === "Region Counting"
-
- ```python
- from ultralytics import YOLO
- from ultralytics.solutions import heatmap
- import cv2
-
- model = YOLO("yolov8n.pt")
- cap = cv2.VideoCapture("path/to/video/file.mp4")
- assert cap.isOpened(), "Error reading video file"
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- # Video writer
- video_writer = cv2.VideoWriter("heatmap_output.avi",
- cv2.VideoWriter_fourcc(*'mp4v'),
- fps,
- (w, h))
-
- # Define region points
- region_points = [(20, 400), (1080, 404), (1080, 360), (20, 360)]
-
- # Init heatmap
- heatmap_obj = heatmap.Heatmap()
- heatmap_obj.set_args(colormap=cv2.COLORMAP_PARULA,
- imw=w,
- imh=h,
- view_img=True,
- shape="circle",
- count_reg_pts=region_points)
-
- while cap.isOpened():
- success, im0 = cap.read()
- if not success:
- print("Video frame is empty or video processing has been successfully completed.")
- break
- tracks = model.track(im0, persist=True, show=False)
-
- im0 = heatmap_obj.generate_heatmap(im0, tracks)
- video_writer.write(im0)
-
- cap.release()
- video_writer.release()
- cv2.destroyAllWindows()
- ```
-
- === "Im0"
-
- ```python
- from ultralytics import YOLO
- from ultralytics.solutions import heatmap
- import cv2
-
- model = YOLO("yolov8s.pt") # YOLOv8 custom/pretrained model
-
- im0 = cv2.imread("path/to/image.png") # path to image file
- h, w = im0.shape[:2] # image height and width
-
- # Heatmap Init
- heatmap_obj = heatmap.Heatmap()
- heatmap_obj.set_args(colormap=cv2.COLORMAP_PARULA,
- imw=w,
- imh=h,
- view_img=True,
- shape="circle")
-
- results = model.track(im0, persist=True)
- im0 = heatmap_obj.generate_heatmap(im0, tracks=results)
- cv2.imwrite("ultralytics_output.png", im0)
- ```
-
- === "Specific Classes"
-
- ```python
- from ultralytics import YOLO
- from ultralytics.solutions import heatmap
- import cv2
-
- model = YOLO("yolov8n.pt")
- cap = cv2.VideoCapture("path/to/video/file.mp4")
- assert cap.isOpened(), "Error reading video file"
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- # Video writer
- video_writer = cv2.VideoWriter("heatmap_output.avi",
- cv2.VideoWriter_fourcc(*'mp4v'),
- fps,
- (w, h))
-
- classes_for_heatmap = [0, 2] # classes for heatmap
-
- # Init heatmap
- heatmap_obj = heatmap.Heatmap()
- heatmap_obj.set_args(colormap=cv2.COLORMAP_PARULA,
- imw=w,
- imh=h,
- view_img=True,
- shape="circle")
-
- while cap.isOpened():
- success, im0 = cap.read()
- if not success:
- print("Video frame is empty or video processing has been successfully completed.")
- break
- tracks = model.track(im0, persist=True, show=False,
- classes=classes_for_heatmap)
-
- im0 = heatmap_obj.generate_heatmap(im0, tracks)
- video_writer.write(im0)
-
- cap.release()
- video_writer.release()
- cv2.destroyAllWindows()
- ```
-
-### Arguments `set_args`
-
-| Name | Type | Default | Description |
-|-----------------------|----------------|-------------------|-----------------------------------------------------------|
-| `view_img` | `bool` | `False` | Display the frame with heatmap |
-| `colormap` | `cv2.COLORMAP` | `None` | cv2.COLORMAP for heatmap |
-| `imw` | `int` | `None` | Width of Heatmap |
-| `imh` | `int` | `None` | Height of Heatmap |
-| `heatmap_alpha` | `float` | `0.5` | Heatmap alpha value |
-| `count_reg_pts` | `list` | `None` | Object counting region points |
-| `count_txt_thickness` | `int` | `2` | Count values text size |
-| `count_txt_color` | `RGB Color` | `(0, 0, 0)` | Foreground color for Object counts text |
-| `count_color` | `RGB Color` | `(255, 255, 255)` | Background color for Object counts text |
-| `count_reg_color` | `RGB Color` | `(255, 0, 255)` | Counting region color |
-| `region_thickness` | `int` | `5` | Counting region thickness value |
-| `decay_factor` | `float` | `0.99` | Decay factor for heatmap area removal after specific time |
-| `shape` | `str` | `circle` | Heatmap shape for display "rect" or "circle" supported |
-| `line_dist_thresh` | `int` | `15` | Euclidean Distance threshold for line counter |
-
-### Arguments `model.track`
-
-| Name | Type | Default | Description |
-|-----------|---------|----------------|-------------------------------------------------------------|
-| `source` | `im0` | `None` | source directory for images or videos |
-| `persist` | `bool` | `False` | persisting tracks between frames |
-| `tracker` | `str` | `botsort.yaml` | Tracking method 'bytetrack' or 'botsort' |
-| `conf` | `float` | `0.3` | Confidence Threshold |
-| `iou` | `float` | `0.5` | IOU Threshold |
-| `classes` | `list` | `None` | filter results by class, i.e. classes=0, or classes=[0,2,3] |
-
-### Heatmap COLORMAPs
-
-| Colormap Name | Description |
-|---------------------------------|----------------------------------------|
-| `cv::COLORMAP_AUTUMN` | Autumn color map |
-| `cv::COLORMAP_BONE` | Bone color map |
-| `cv::COLORMAP_JET` | Jet color map |
-| `cv::COLORMAP_WINTER` | Winter color map |
-| `cv::COLORMAP_RAINBOW` | Rainbow color map |
-| `cv::COLORMAP_OCEAN` | Ocean color map |
-| `cv::COLORMAP_SUMMER` | Summer color map |
-| `cv::COLORMAP_SPRING` | Spring color map |
-| `cv::COLORMAP_COOL` | Cool color map |
-| `cv::COLORMAP_HSV` | HSV (Hue, Saturation, Value) color map |
-| `cv::COLORMAP_PINK` | Pink color map |
-| `cv::COLORMAP_HOT` | Hot color map |
-| `cv::COLORMAP_PARULA` | Parula color map |
-| `cv::COLORMAP_MAGMA` | Magma color map |
-| `cv::COLORMAP_INFERNO` | Inferno color map |
-| `cv::COLORMAP_PLASMA` | Plasma color map |
-| `cv::COLORMAP_VIRIDIS` | Viridis color map |
-| `cv::COLORMAP_CIVIDIS` | Cividis color map |
-| `cv::COLORMAP_TWILIGHT` | Twilight color map |
-| `cv::COLORMAP_TWILIGHT_SHIFTED` | Shifted Twilight color map |
-| `cv::COLORMAP_TURBO` | Turbo color map |
-| `cv::COLORMAP_DEEPGREEN` | Deep Green color map |
-
-These colormaps are commonly used for visualizing data with different color representations.
diff --git a/ultralytics-main/docs/en/guides/hyperparameter-tuning.md b/ultralytics-main/docs/en/guides/hyperparameter-tuning.md
deleted file mode 100644
index 4888c34..0000000
--- a/ultralytics-main/docs/en/guides/hyperparameter-tuning.md
+++ /dev/null
@@ -1,206 +0,0 @@
----
-comments: true
-description: Dive into hyperparameter tuning in Ultralytics YOLO models. Learn how to optimize performance using the Tuner class and genetic evolution.
-keywords: Ultralytics, YOLO, Hyperparameter Tuning, Tuner Class, Genetic Evolution, Optimization
----
-
-# Ultralytics YOLO Hyperparameter Tuning Guide
-
-## Introduction
-
-Hyperparameter tuning is not just a one-time set-up but an iterative process aimed at optimizing the machine learning model's performance metrics, such as accuracy, precision, and recall. In the context of Ultralytics YOLO, these hyperparameters could range from learning rate to architectural details, such as the number of layers or types of activation functions used.
-
-### What are Hyperparameters?
-
-Hyperparameters are high-level, structural settings for the algorithm. They are set prior to the training phase and remain constant during it. Here are some commonly tuned hyperparameters in Ultralytics YOLO:
-
-- **Learning Rate** `lr0`: Determines the step size at each iteration while moving towards a minimum in the loss function.
-- **Batch Size** `batch`: Number of images processed simultaneously in a forward pass.
-- **Number of Epochs** `epochs`: An epoch is one complete forward and backward pass of all the training examples.
-- **Architecture Specifics**: Such as channel counts, number of layers, types of activation functions, etc.
-
-
-
-
-
-For a full list of augmentation hyperparameters used in YOLOv8 please refer to the [configurations page](../usage/cfg.md#augmentation-settings).
-
-### Genetic Evolution and Mutation
-
-Ultralytics YOLO uses genetic algorithms to optimize hyperparameters. Genetic algorithms are inspired by the mechanism of natural selection and genetics.
-
-- **Mutation**: In the context of Ultralytics YOLO, mutation helps in locally searching the hyperparameter space by applying small, random changes to existing hyperparameters, producing new candidates for evaluation.
-- **Crossover**: Although crossover is a popular genetic algorithm technique, it is not currently used in Ultralytics YOLO for hyperparameter tuning. The focus is mainly on mutation for generating new hyperparameter sets.
-
-## Preparing for Hyperparameter Tuning
-
-Before you begin the tuning process, it's important to:
-
-1. **Identify the Metrics**: Determine the metrics you will use to evaluate the model's performance. This could be AP50, F1-score, or others.
-2. **Set the Tuning Budget**: Define how much computational resources you're willing to allocate. Hyperparameter tuning can be computationally intensive.
-
-## Steps Involved
-
-### Initialize Hyperparameters
-
-Start with a reasonable set of initial hyperparameters. This could either be the default hyperparameters set by Ultralytics YOLO or something based on your domain knowledge or previous experiments.
-
-### Mutate Hyperparameters
-
-Use the `_mutate` method to produce a new set of hyperparameters based on the existing set.
-
-### Train Model
-
-Training is performed using the mutated set of hyperparameters. The training performance is then assessed.
-
-### Evaluate Model
-
-Use metrics like AP50, F1-score, or custom metrics to evaluate the model's performance.
-
-### Log Results
-
-It's crucial to log both the performance metrics and the corresponding hyperparameters for future reference.
-
-### Repeat
-
-The process is repeated until either the set number of iterations is reached or the performance metric is satisfactory.
-
-## Usage Example
-
-Here's how to use the `model.tune()` method to utilize the `Tuner` class for hyperparameter tuning of YOLOv8n on COCO8 for 30 epochs with an AdamW optimizer and skipping plotting, checkpointing and validation other than on final epoch for faster Tuning.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Initialize the YOLO model
- model = YOLO('yolov8n.pt')
-
- # Tune hyperparameters on COCO8 for 30 epochs
- model.tune(data='coco8.yaml', epochs=30, iterations=300, optimizer='AdamW', plots=False, save=False, val=False)
- ```
-
-## Results
-
-After you've successfully completed the hyperparameter tuning process, you will obtain several files and directories that encapsulate the results of the tuning. The following describes each:
-
-### File Structure
-
-Here's what the directory structure of the results will look like. Training directories like `train1/` contain individual tuning iterations, i.e. one model trained with one set of hyperparameters. The `tune/` directory contains tuning results from all the individual model trainings:
-
-```plaintext
-runs/
-└── detect/
- ├── train1/
- ├── train2/
- ├── ...
- └── tune/
- ├── best_hyperparameters.yaml
- ├── best_fitness.png
- ├── tune_results.csv
- ├── tune_scatter_plots.png
- └── weights/
- ├── last.pt
- └── best.pt
-```
-
-### File Descriptions
-
-#### best_hyperparameters.yaml
-
-This YAML file contains the best-performing hyperparameters found during the tuning process. You can use this file to initialize future trainings with these optimized settings.
-
-- **Format**: YAML
-- **Usage**: Hyperparameter results
-- **Example**:
- ```yaml
- # 558/900 iterations complete ✅ (45536.81s)
- # Results saved to /usr/src/ultralytics/runs/detect/tune
- # Best fitness=0.64297 observed at iteration 498
- # Best fitness metrics are {'metrics/precision(B)': 0.87247, 'metrics/recall(B)': 0.71387, 'metrics/mAP50(B)': 0.79106, 'metrics/mAP50-95(B)': 0.62651, 'val/box_loss': 2.79884, 'val/cls_loss': 2.72386, 'val/dfl_loss': 0.68503, 'fitness': 0.64297}
- # Best fitness model is /usr/src/ultralytics/runs/detect/train498
- # Best fitness hyperparameters are printed below.
-
- lr0: 0.00269
- lrf: 0.00288
- momentum: 0.73375
- weight_decay: 0.00015
- warmup_epochs: 1.22935
- warmup_momentum: 0.1525
- box: 18.27875
- cls: 1.32899
- dfl: 0.56016
- hsv_h: 0.01148
- hsv_s: 0.53554
- hsv_v: 0.13636
- degrees: 0.0
- translate: 0.12431
- scale: 0.07643
- shear: 0.0
- perspective: 0.0
- flipud: 0.0
- fliplr: 0.08631
- mosaic: 0.42551
- mixup: 0.0
- copy_paste: 0.0
- ```
-
-#### best_fitness.png
-
-This is a plot displaying fitness (typically a performance metric like AP50) against the number of iterations. It helps you visualize how well the genetic algorithm performed over time.
-
-- **Format**: PNG
-- **Usage**: Performance visualization
-
-
-
-
-
-#### tune_results.csv
-
-A CSV file containing detailed results of each iteration during the tuning. Each row in the file represents one iteration, and it includes metrics like fitness score, precision, recall, as well as the hyperparameters used.
-
-- **Format**: CSV
-- **Usage**: Per-iteration results tracking.
-- **Example**:
- ```csv
- fitness,lr0,lrf,momentum,weight_decay,warmup_epochs,warmup_momentum,box,cls,dfl,hsv_h,hsv_s,hsv_v,degrees,translate,scale,shear,perspective,flipud,fliplr,mosaic,mixup,copy_paste
- 0.05021,0.01,0.01,0.937,0.0005,3.0,0.8,7.5,0.5,1.5,0.015,0.7,0.4,0.0,0.1,0.5,0.0,0.0,0.0,0.5,1.0,0.0,0.0
- 0.07217,0.01003,0.00967,0.93897,0.00049,2.79757,0.81075,7.5,0.50746,1.44826,0.01503,0.72948,0.40658,0.0,0.0987,0.4922,0.0,0.0,0.0,0.49729,1.0,0.0,0.0
- 0.06584,0.01003,0.00855,0.91009,0.00073,3.42176,0.95,8.64301,0.54594,1.72261,0.01503,0.59179,0.40658,0.0,0.0987,0.46955,0.0,0.0,0.0,0.49729,0.80187,0.0,0.0
- ```
-
-#### tune_scatter_plots.png
-
-This file contains scatter plots generated from `tune_results.csv`, helping you visualize relationships between different hyperparameters and performance metrics. Note that hyperparameters initialized to 0 will not be tuned, such as `degrees` and `shear` below.
-
-- **Format**: PNG
-- **Usage**: Exploratory data analysis
-
-
-
-
-
-#### weights/
-
-This directory contains the saved PyTorch models for the last and the best iterations during the hyperparameter tuning process.
-
-- **`last.pt`**: The last.pt are the weights from the last epoch of training.
-- **`best.pt`**: The best.pt weights for the iteration that achieved the best fitness score.
-
-Using these results, you can make more informed decisions for your future model trainings and analyses. Feel free to consult these artifacts to understand how well your model performed and how you might improve it further.
-
-## Conclusion
-
-The hyperparameter tuning process in Ultralytics YOLO is simplified yet powerful, thanks to its genetic algorithm-based approach focused on mutation. Following the steps outlined in this guide will assist you in systematically tuning your model to achieve better performance.
-
-### Further Reading
-
-1. [Hyperparameter Optimization in Wikipedia](https://en.wikipedia.org/wiki/Hyperparameter_optimization)
-2. [YOLOv5 Hyperparameter Evolution Guide](../yolov5/tutorials/hyperparameter_evolution.md)
-3. [Efficient Hyperparameter Tuning with Ray Tune and YOLOv8](../integrations/ray-tune.md)
-
-For deeper insights, you can explore the `Tuner` class source code and accompanying documentation. Should you have any questions, feature requests, or need further assistance, feel free to reach out to us on [GitHub](https://github.com/ultralytics/ultralytics/issues/new/choose) or [Discord](https://ultralytics.com/discord).
diff --git a/ultralytics-main/docs/en/guides/index.md b/ultralytics-main/docs/en/guides/index.md
deleted file mode 100644
index 62c2ccb..0000000
--- a/ultralytics-main/docs/en/guides/index.md
+++ /dev/null
@@ -1,65 +0,0 @@
----
-comments: true
-description: In-depth exploration of Ultralytics' YOLO. Learn about the YOLO object detection model, how to train it on custom data, multi-GPU training, exporting, predicting, deploying, and more.
-keywords: Ultralytics, YOLO, Deep Learning, Object detection, PyTorch, Tutorial, Multi-GPU training, Custom data training, SAHI, Tiled Inference
----
-
-# Comprehensive Tutorials to Ultralytics YOLO
-
-Welcome to the Ultralytics' YOLO 🚀 Guides! Our comprehensive tutorials cover various aspects of the YOLO object detection model, ranging from training and prediction to deployment. Built on PyTorch, YOLO stands out for its exceptional speed and accuracy in real-time object detection tasks.
-
-Whether you're a beginner or an expert in deep learning, our tutorials offer valuable insights into the implementation and optimization of YOLO for your computer vision projects. Let's dive in!
-
-
-
-## Guides
-
-Here's a compilation of in-depth guides to help you master different aspects of Ultralytics YOLO.
-
-- [YOLO Common Issues](yolo-common-issues.md) ⭐ RECOMMENDED: Practical solutions and troubleshooting tips to the most frequently encountered issues when working with Ultralytics YOLO models.
-- [YOLO Performance Metrics](yolo-performance-metrics.md) ⭐ ESSENTIAL: Understand the key metrics like mAP, IoU, and F1 score used to evaluate the performance of your YOLO models. Includes practical examples and tips on how to improve detection accuracy and speed.
-- [Model Deployment Options](model-deployment-options.md): Overview of YOLO model deployment formats like ONNX, OpenVINO, and TensorRT, with pros and cons for each to inform your deployment strategy.
-- [K-Fold Cross Validation](kfold-cross-validation.md) 🚀 NEW: Learn how to improve model generalization using K-Fold cross-validation technique.
-- [Hyperparameter Tuning](hyperparameter-tuning.md) 🚀 NEW: Discover how to optimize your YOLO models by fine-tuning hyperparameters using the Tuner class and genetic evolution algorithms.
-- [SAHI Tiled Inference](sahi-tiled-inference.md) 🚀 NEW: Comprehensive guide on leveraging SAHI's sliced inference capabilities with YOLOv8 for object detection in high-resolution images.
-- [AzureML Quickstart](azureml-quickstart.md) 🚀 NEW: Get up and running with Ultralytics YOLO models on Microsoft's Azure Machine Learning platform. Learn how to train, deploy, and scale your object detection projects in the cloud.
-- [Conda Quickstart](conda-quickstart.md) 🚀 NEW: Step-by-step guide to setting up a [Conda](https://anaconda.org/conda-forge/ultralytics) environment for Ultralytics. Learn how to install and start using the Ultralytics package efficiently with Conda.
-- [Docker Quickstart](docker-quickstart.md) 🚀 NEW: Complete guide to setting up and using Ultralytics YOLO models with [Docker](https://hub.docker.com/r/ultralytics/ultralytics). Learn how to install Docker, manage GPU support, and run YOLO models in isolated containers for consistent development and deployment.
-- [Raspberry Pi](raspberry-pi.md) 🚀 NEW: Quickstart tutorial to run YOLO models to the latest Raspberry Pi hardware.
-- [Triton Inference Server Integration](triton-inference-server.md) 🚀 NEW: Dive into the integration of Ultralytics YOLOv8 with NVIDIA's Triton Inference Server for scalable and efficient deep learning inference deployments.
-- [YOLO Thread-Safe Inference](yolo-thread-safe-inference.md) 🚀 NEW: Guidelines for performing inference with YOLO models in a thread-safe manner. Learn the importance of thread safety and best practices to prevent race conditions and ensure consistent predictions.
-- [Isolating Segmentation Objects](isolating-segmentation-objects.md) 🚀 NEW: Step-by-step recipe and explanation on how to extract and/or isolate objects from images using Ultralytics Segmentation.
-- [Edge TPU on Raspberry Pi](coral-edge-tpu-on-raspberry-pi.md): [Google Edge TPU](https://coral.ai/products/accelerator) accelerates YOLO inference on [Raspberry Pi](https://www.raspberrypi.com/).
-- [View Inference Images in a Terminal](view-results-in-terminal.md): Use VSCode's integrated terminal to view inference results when using Remote Tunnel or SSH sessions.
-- [OpenVINO Latency vs Throughput Modes](optimizing-openvino-latency-vs-throughput-modes.md) - Learn latency and throughput optimization techniques for peak YOLO inference performance.
-
-## Real-World Projects
-
-- [Object Counting](object-counting.md) 🚀 NEW: Explore the process of real-time object counting with Ultralytics YOLOv8 and acquire the knowledge to effectively count objects in a live video stream.
-- [Object Cropping](object-cropping.md) 🚀 NEW: Explore object cropping using YOLOv8 for precise extraction of objects from images and videos.
-- [Object Blurring](object-blurring.md) 🚀 NEW: Apply object blurring with YOLOv8 for privacy protection in image and video processing.
-- [Workouts Monitoring](workouts-monitoring.md) 🚀 NEW: Discover the comprehensive approach to monitoring workouts with Ultralytics YOLOv8. Acquire the skills and insights necessary to effectively use YOLOv8 for tracking and analyzing various aspects of fitness routines in real time.
-- [Objects Counting in Regions](region-counting.md) 🚀 NEW: Explore counting objects in specific regions with Ultralytics YOLOv8 for precise and efficient object detection in varied areas.
-- [Security Alarm System](security-alarm-system.md) 🚀 NEW: Discover the process of creating a security alarm system with Ultralytics YOLOv8. This system triggers alerts upon detecting new objects in the frame. Subsequently, you can customize the code to align with your specific use case.
-- [Heatmaps](heatmaps.md) 🚀 NEW: Elevate your understanding of data with our Detection Heatmaps! These intuitive visual tools use vibrant color gradients to vividly illustrate the intensity of data values across a matrix. Essential in computer vision, heatmaps are skillfully designed to highlight areas of interest, providing an immediate, impactful way to interpret spatial information.
-- [Instance Segmentation with Object Tracking](instance-segmentation-and-tracking.md) 🚀 NEW: Explore our feature on [Object Segmentation](https://docs.ultralytics.com/tasks/segment/) in Bounding Boxes Shape, providing a visual representation of precise object boundaries for enhanced understanding and analysis.
-- [VisionEye View Objects Mapping](vision-eye.md) 🚀 NEW: This feature aim computers to discern and focus on specific objects, much like the way the human eye observes details from a particular viewpoint.
-- [Speed Estimation](speed-estimation.md) 🚀 NEW: Speed estimation in computer vision relies on analyzing object motion through techniques like [object tracking](https://docs.ultralytics.com/modes/track/), crucial for applications like autonomous vehicles and traffic monitoring.
-- [Distance Calculation](distance-calculation.md) 🚀 NEW: Distance calculation, which involves measuring the separation between two objects within a defined space, is a crucial aspect. In the context of Ultralytics YOLOv8, the method employed for this involves using the bounding box centroid to determine the distance associated with user-highlighted bounding boxes.
-
-## Contribute to Our Guides
-
-We welcome contributions from the community! If you've mastered a particular aspect of Ultralytics YOLO that's not yet covered in our guides, we encourage you to share your expertise. Writing a guide is a great way to give back to the community and help us make our documentation more comprehensive and user-friendly.
-
-To get started, please read our [Contributing Guide](../help/contributing.md) for guidelines on how to open up a Pull Request (PR) 🛠️. We look forward to your contributions!
-
-Let's work together to make the Ultralytics YOLO ecosystem more robust and versatile 🙏!
diff --git a/ultralytics-main/docs/en/guides/instance-segmentation-and-tracking.md b/ultralytics-main/docs/en/guides/instance-segmentation-and-tracking.md
deleted file mode 100644
index 558ab57..0000000
--- a/ultralytics-main/docs/en/guides/instance-segmentation-and-tracking.md
+++ /dev/null
@@ -1,140 +0,0 @@
----
-comments: true
-description: Instance Segmentation with Object Tracking using Ultralytics YOLOv8
-keywords: Ultralytics, YOLOv8, Instance Segmentation, Object Detection, Object Tracking, Bounding Box, Computer Vision, Notebook, IPython Kernel, CLI, Python SDK
----
-
-# Instance Segmentation and Tracking using Ultralytics YOLOv8 🚀
-
-## What is Instance Segmentation?
-
-[Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics/) instance segmentation involves identifying and outlining individual objects in an image, providing a detailed understanding of spatial distribution. Unlike semantic segmentation, it uniquely labels and precisely delineates each object, crucial for tasks like object detection and medical imaging.
-
-There are two types of instance segmentation tracking available in the Ultralytics package:
-
-- **Instance Segmentation with Class Objects:** Each class object is assigned a unique color for clear visual separation.
-
-- **Instance Segmentation with Object Tracks:** Every track is represented by a distinct color, facilitating easy identification and tracking.
-
-
-
-
-
- Watch: Instance Segmentation with Object Tracking using Ultralytics YOLOv8
-
-
-## Samples
-
-| Instance Segmentation | Instance Segmentation + Object Tracking |
-|:---------------------------------------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------:|
-| ![Ultralytics Instance Segmentation](https://github.com/RizwanMunawar/ultralytics/assets/62513924/d4ad3499-1f33-4871-8fbc-1be0b2643aa2) | ![Ultralytics Instance Segmentation with Object Tracking](https://github.com/RizwanMunawar/ultralytics/assets/62513924/2e5c38cc-fd5c-4145-9682-fa94ae2010a0) |
-| Ultralytics Instance Segmentation 😍 | Ultralytics Instance Segmentation with Object Tracking 🔥 |
-
-!!! Example "Instance Segmentation and Tracking"
-
- === "Instance Segmentation"
-
- ```python
- import cv2
- from ultralytics import YOLO
- from ultralytics.utils.plotting import Annotator, colors
-
- model = YOLO("yolov8n-seg.pt") # segmentation model
- names = model.model.names
- cap = cv2.VideoCapture("path/to/video/file.mp4")
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- out = cv2.VideoWriter('instance-segmentation.avi', cv2.VideoWriter_fourcc(*'MJPG'), fps, (w, h))
-
- while True:
- ret, im0 = cap.read()
- if not ret:
- print("Video frame is empty or video processing has been successfully completed.")
- break
-
- results = model.predict(im0)
- annotator = Annotator(im0, line_width=2)
-
- if results[0].masks is not None:
- clss = results[0].boxes.cls.cpu().tolist()
- masks = results[0].masks.xy
- for mask, cls in zip(masks, clss):
- annotator.seg_bbox(mask=mask,
- mask_color=colors(int(cls), True),
- det_label=names[int(cls)])
-
- out.write(im0)
- cv2.imshow("instance-segmentation", im0)
-
- if cv2.waitKey(1) & 0xFF == ord('q'):
- break
-
- out.release()
- cap.release()
- cv2.destroyAllWindows()
-
- ```
-
- === "Instance Segmentation with Object Tracking"
-
- ```python
- import cv2
- from ultralytics import YOLO
- from ultralytics.utils.plotting import Annotator, colors
-
- from collections import defaultdict
-
- track_history = defaultdict(lambda: [])
-
- model = YOLO("yolov8n-seg.pt") # segmentation model
- cap = cv2.VideoCapture("path/to/video/file.mp4")
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- out = cv2.VideoWriter('instance-segmentation-object-tracking.avi', cv2.VideoWriter_fourcc(*'MJPG'), fps, (w, h))
-
- while True:
- ret, im0 = cap.read()
- if not ret:
- print("Video frame is empty or video processing has been successfully completed.")
- break
-
- annotator = Annotator(im0, line_width=2)
-
- results = model.track(im0, persist=True)
-
- if results[0].boxes.id is not None and results[0].masks is not None:
- masks = results[0].masks.xy
- track_ids = results[0].boxes.id.int().cpu().tolist()
-
- for mask, track_id in zip(masks, track_ids):
- annotator.seg_bbox(mask=mask,
- mask_color=colors(track_id, True),
- track_label=str(track_id))
-
- out.write(im0)
- cv2.imshow("instance-segmentation-object-tracking", im0)
-
- if cv2.waitKey(1) & 0xFF == ord('q'):
- break
-
- out.release()
- cap.release()
- cv2.destroyAllWindows()
- ```
-
-### `seg_bbox` Arguments
-
-| Name | Type | Default | Description |
-|---------------|---------|-----------------|----------------------------------------|
-| `mask` | `array` | `None` | Segmentation mask coordinates |
-| `mask_color` | `tuple` | `(255, 0, 255)` | Mask color for every segmented box |
-| `det_label` | `str` | `None` | Label for segmented object |
-| `track_label` | `str` | `None` | Label for segmented and tracked object |
-
-## Note
-
-For any inquiries, feel free to post your questions in the [Ultralytics Issue Section](https://github.com/ultralytics/ultralytics/issues/new/choose) or the discussion section mentioned below.
diff --git a/ultralytics-main/docs/en/guides/isolating-segmentation-objects.md b/ultralytics-main/docs/en/guides/isolating-segmentation-objects.md
deleted file mode 100644
index f8e9a7a..0000000
--- a/ultralytics-main/docs/en/guides/isolating-segmentation-objects.md
+++ /dev/null
@@ -1,325 +0,0 @@
----
-comments: true
-description: A concise guide on isolating segmented objects using Ultralytics.
-keywords: Ultralytics, YOLO, segmentation, Python, object detection, inference, dataset, prediction, instance segmentation, contours, binary mask, object mask, image processing
----
-
-# Isolating Segmentation Objects
-
-After performing the [Segment Task](../tasks/segment.md), it's sometimes desirable to extract the isolated objects from the inference results. This guide provides a generic recipe on how to accomplish this using the Ultralytics [Predict Mode](../modes/predict.md).
-
-
-
-
-
-## Recipe Walk Through
-
-1. Begin with the necessary imports
-
- ```python
- from pathlib import Path
-
- import cv2
- import numpy as np
- from ultralytics import YOLO
- ```
-
- ???+ tip "Ultralytics Install"
-
- See the Ultralytics [Quickstart](../quickstart.md/#install-ultralytics) Installation section for a quick walkthrough on installing the required libraries.
-
- ***
-
-2. Load a model and run `predict()` method on a source.
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n-seg.pt')
-
- # Run inference
- results = model.predict()
- ```
-
- !!! question "No Prediction Arguments?"
-
- Without specifying a source, the example images from the library will be used:
-
- ```
- 'ultralytics/assets/bus.jpg'
- 'ultralytics/assets/zidane.jpg'
- ```
-
- This is helpful for rapid testing with the `predict()` method.
-
- For additional information about Segmentation Models, visit the [Segment Task](../tasks/segment.md#models) page. To learn more about `predict()` method, see [Predict Mode](../modes/predict.md) section of the Documentation.
-
- ***
-
-3. Now iterate over the results and the contours. For workflows that want to save an image to file, the source image `base-name` and the detection `class-label` are retrieved for later use (optional).
-
- ```{ .py .annotate }
- # (2) Iterate detection results (helpful for multiple images)
- for r in res:
- img = np.copy(r.orig_img)
- img_name = Path(r.path).stem # source image base-name
-
- # Iterate each object contour (multiple detections)
- for ci,c in enumerate(r):
- # (1) Get detection class name
- label = c.names[c.boxes.cls.tolist().pop()]
-
- ```
-
- 1. To learn more about working with detection results, see [Boxes Section for Predict Mode](../modes/predict.md#boxes).
- 2. To learn more about `predict()` results see [Working with Results for Predict Mode](../modes/predict.md#working-with-results)
-
- ??? info "For-Loop"
-
- A single image will only iterate the first loop once. A single image with only a single detection will iterate each loop _only_ once.
-
- ***
-
-4. Start with generating a binary mask from the source image and then draw a filled contour onto the mask. This will allow the object to be isolated from the other parts of the image. An example from `bus.jpg` for one of the detected `person` class objects is shown on the right.
-
- ![Binary Mask Image](https://github.com/ultralytics/ultralytics/assets/62214284/59bce684-fdda-4b17-8104-0b4b51149aca){ width="240", align="right" }
-
- ```{ .py .annotate }
- # Create binary mask
- b_mask = np.zeros(img.shape[:2], np.uint8)
-
- # (1) Extract contour result
- contour = c.masks.xy.pop()
- # (2) Changing the type
- contour = contour.astype(np.int32)
- # (3) Reshaping
- contour = contour.reshape(-1, 1, 2)
-
-
- # Draw contour onto mask
- _ = cv2.drawContours(b_mask,
- [contour],
- -1,
- (255, 255, 255),
- cv2.FILLED)
-
- ```
-
- 1. For more info on `c.masks.xy` see [Masks Section from Predict Mode](../modes/predict.md#masks).
-
- 2. Here, the values are cast into `np.int32` for compatibility with `drawContours()` function from OpenCV.
-
- 3. The OpenCV `drawContours()` function expects contours to have a shape of `[N, 1, 2]` expand section below for more details.
-
-
- Expand to understand what is happening when defining the contour variable.
-
-
- - `c.masks.xy` :: Provides the coordinates of the mask contour points in the format `(x, y)`. For more details, refer to the [Masks Section from Predict Mode](../modes/predict.md#masks).
-
- - `.pop()` :: As `masks.xy` is a list containing a single element, this element is extracted using the `pop()` method.
-
- - `.astype(np.int32)` :: Using `masks.xy` will return with a data type of `float32`, but this won't be compatible with the OpenCV `drawContours()` function, so this will change the data type to `int32` for compatibility.
-
- - `.reshape(-1, 1, 2)` :: Reformats the data into the required shape of `[N, 1, 2]` where `N` is the number of contour points, with each point represented by a single entry `1`, and the entry is composed of `2` values. The `-1` denotes that the number of values along this dimension is flexible.
-
-
-
-
- Expand for an explanation of the drawContours() configuration.
-
-
- - Encapsulating the `contour` variable within square brackets, `[contour]`, was found to effectively generate the desired contour mask during testing.
-
- - The value `-1` specified for the `drawContours()` parameter instructs the function to draw all contours present in the image.
-
- - The `tuple` `(255, 255, 255)` represents the color white, which is the desired color for drawing the contour in this binary mask.
-
- - The addition of `cv2.FILLED` will color all pixels enclosed by the contour boundary the same, in this case, all enclosed pixels will be white.
-
- - See [OpenCV Documentation on `drawContours()`](https://docs.opencv.org/4.8.0/d6/d6e/group__imgproc__draw.html#ga746c0625f1781f1ffc9056259103edbc) for more information.
-
-
-
-
- ***
-
-5. Next the there are 2 options for how to move forward with the image from this point and a subsequent option for each.
-
- ### Object Isolation Options
-
- !!! example ""
-
- === "Black Background Pixels"
-
- ```py
- # Create 3-channel mask
- mask3ch = cv2.cvtColor(b_mask, cv2.COLOR_GRAY2BGR)
-
- # Isolate object with binary mask
- isolated = cv2.bitwise_and(mask3ch, img)
-
- ```
-
- ??? question "How does this work?"
-
- - First, the binary mask is first converted from a single-channel image to a three-channel image. This conversion is necessary for the subsequent step where the mask and the original image are combined. Both images must have the same number of channels to be compatible with the blending operation.
-
- - The original image and the three-channel binary mask are merged using the OpenCV function `bitwise_and()`. This operation retains only pixel values that are greater than zero `(> 0)` from both images. Since the mask pixels are greater than zero `(> 0)` only within the contour region, the pixels remaining from the original image are those that overlap with the contour.
-
- ### Isolate with Black Pixels: Sub-options
-
- ??? info "Full-size Image"
-
- There are no additional steps required if keeping full size image.
-
-
-
- ??? info "Cropped object Image"
-
- Additional steps required to crop image to only include object region.
-
- ![Example Crop Isolated Object Image Black Background](https://github.com/ultralytics/ultralytics/assets/62214284/103dbf90-c169-4f77-b791-76cdf09c6f22){ align="right" }
- ``` { .py .annotate }
- # (1) Bounding box coordinates
- x1, y1, x2, y2 = c.boxes.xyxy.cpu().numpy().squeeze().astype(np.int32)
- # Crop image to object region
- iso_crop = isolated[y1:y2, x1:x2]
-
- ```
-
- 1. For more information on bounding box results, see [Boxes Section from Predict Mode](../modes/predict.md/#boxes)
-
- ??? question "What does this code do?"
-
- - The `c.boxes.xyxy.cpu().numpy()` call retrieves the bounding boxes as a NumPy array in the `xyxy` format, where `xmin`, `ymin`, `xmax`, and `ymax` represent the coordinates of the bounding box rectangle. See [Boxes Section from Predict Mode](../modes/predict.md/#boxes) for more details.
-
- - The `squeeze()` operation removes any unnecessary dimensions from the NumPy array, ensuring it has the expected shape.
-
- - Converting the coordinate values using `.astype(np.int32)` changes the box coordinates data type from `float32` to `int32`, making them compatible for image cropping using index slices.
-
- - Finally, the bounding box region is cropped from the image using index slicing. The bounds are defined by the `[ymin:ymax, xmin:xmax]` coordinates of the detection bounding box.
-
- === "Transparent Background Pixels"
-
- ```py
- # Isolate object with transparent background (when saved as PNG)
- isolated = np.dstack([img, b_mask])
-
- ```
-
- ??? question "How does this work?"
-
- - Using the NumPy `dstack()` function (array stacking along depth-axis) in conjunction with the binary mask generated, will create an image with four channels. This allows for all pixels outside of the object contour to be transparent when saving as a `PNG` file.
-
- ### Isolate with Transparent Pixels: Sub-options
-
- ??? info "Full-size Image"
-
- There are no additional steps required if keeping full size image.
-
-
-
- ??? info "Cropped object Image"
-
- Additional steps required to crop image to only include object region.
-
- ![Example Crop Isolated Object Image No Background](https://github.com/ultralytics/ultralytics/assets/62214284/5910244f-d1e1-44af-af7f-6dea4c688da8){ align="right" }
- ``` { .py .annotate }
- # (1) Bounding box coordinates
- x1, y1, x2, y2 = c.boxes.xyxy.cpu().numpy().squeeze().astype(np.int32)
- # Crop image to object region
- iso_crop = isolated[y1:y2, x1:x2]
-
- ```
-
- 1. For more information on bounding box results, see [Boxes Section from Predict Mode](../modes/predict.md/#boxes)
-
- ??? question "What does this code do?"
-
- - When using `c.boxes.xyxy.cpu().numpy()`, the bounding boxes are returned as a NumPy array, using the `xyxy` box coordinates format, which correspond to the points `xmin, ymin, xmax, ymax` for the bounding box (rectangle), see [Boxes Section from Predict Mode](../modes/predict.md/#boxes) for more information.
-
- - Adding `squeeze()` ensures that any extraneous dimensions are removed from the NumPy array.
-
- - Converting the coordinate values using `.astype(np.int32)` changes the box coordinates data type from `float32` to `int32` which will be compatible when cropping the image using index slices.
-
- - Finally the image region for the bounding box is cropped using index slicing, where the bounds are set using the `[ymin:ymax, xmin:xmax]` coordinates of the detection bounding box.
-
- ??? question "What if I want the cropped object **including** the background?"
-
- This is a built in feature for the Ultralytics library. See the `save_crop` argument for [Predict Mode Inference Arguments](../modes/predict.md/#inference-arguments) for details.
-
- ***
-
-6. What to do next is entirely left to you as the developer. A basic example of one possible next step (saving the image to file for future use) is shown.
-
- - **NOTE:** this step is optional and can be skipped if not required for your specific use case.
-
- ??? example "Example Final Step"
-
- ```py
- # Save isolated object to file
- _ = cv2.imwrite(f'{img_name}_{label}-{ci}.png', iso_crop)
- ```
-
- - In this example, the `img_name` is the base-name of the source image file, `label` is the detected class-name, and `ci` is the index of the object detection (in case of multiple instances with the same class name).
-
-## Full Example code
-
-Here, all steps from the previous section are combined into a single block of code. For repeated use, it would be optimal to define a function to do some or all commands contained in the `for`-loops, but that is an exercise left to the reader.
-
-```{ .py .annotate }
-from pathlib import Path
-
-import cv2
-import numpy as np
-from ultralytics import YOLO
-
-m = YOLO('yolov8n-seg.pt')#(4)!
-res = m.predict()#(3)!
-
-# iterate detection results (5)
-for r in res:
- img = np.copy(r.orig_img)
- img_name = Path(r.path).stem
-
- # iterate each object contour (6)
- for ci,c in enumerate(r):
- label = c.names[c.boxes.cls.tolist().pop()]
-
- b_mask = np.zeros(img.shape[:2], np.uint8)
-
- # Create contour mask (1)
- contour = c.masks.xy.pop().astype(np.int32).reshape(-1, 1, 2)
- _ = cv2.drawContours(b_mask, [contour], -1, (255, 255, 255), cv2.FILLED)
-
- # Choose one:
-
- # OPTION-1: Isolate object with black background
- mask3ch = cv2.cvtColor(b_mask, cv2.COLOR_GRAY2BGR)
- isolated = cv2.bitwise_and(mask3ch, img)
-
- # OPTION-2: Isolate object with transparent background (when saved as PNG)
- isolated = np.dstack([img, b_mask])
-
- # OPTIONAL: detection crop (from either OPT1 or OPT2)
- x1, y1, x2, y2 = c.boxes.xyxy.cpu().numpy().squeeze().astype(np.int32)
- iso_crop = isolated[y1:y2, x1:x2]
-
- # TODO your actions go here (2)
-
-```
-
-1. The line populating `contour` is combined into a single line here, where it was split to multiple above.
-2. {==What goes here is up to you!==}
-3. See [Predict Mode](../modes/predict.md) for additional information.
-4. See [Segment Task](../tasks/segment.md#models) for more information.
-5. Learn more about [Working with Results](../modes/predict.md#working-with-results)
-6. Learn more about [Segmentation Mask Results](../modes/predict.md#masks)
diff --git a/ultralytics-main/docs/en/guides/kfold-cross-validation.md b/ultralytics-main/docs/en/guides/kfold-cross-validation.md
deleted file mode 100644
index 9eb53a1..0000000
--- a/ultralytics-main/docs/en/guides/kfold-cross-validation.md
+++ /dev/null
@@ -1,278 +0,0 @@
----
-comments: true
-description: An in-depth guide demonstrating the implementation of K-Fold Cross Validation with the Ultralytics ecosystem for object detection datasets, leveraging Python, YOLO, and sklearn.
-keywords: K-Fold cross validation, Ultralytics, YOLO detection format, Python, sklearn, object detection
----
-
-# K-Fold Cross Validation with Ultralytics
-
-## Introduction
-
-This comprehensive guide illustrates the implementation of K-Fold Cross Validation for object detection datasets within the Ultralytics ecosystem. We'll leverage the YOLO detection format and key Python libraries such as sklearn, pandas, and PyYaml to guide you through the necessary setup, the process of generating feature vectors, and the execution of a K-Fold dataset split.
-
-
-
-
-
-Whether your project involves the Fruit Detection dataset or a custom data source, this tutorial aims to help you comprehend and apply K-Fold Cross Validation to bolster the reliability and robustness of your machine learning models. While we're applying `k=5` folds for this tutorial, keep in mind that the optimal number of folds can vary depending on your dataset and the specifics of your project.
-
-Without further ado, let's dive in!
-
-## Setup
-
-- Your annotations should be in the [YOLO detection format](../datasets/detect/index.md).
-
-- This guide assumes that annotation files are locally available.
-
-- For our demonstration, we use the [Fruit Detection](https://www.kaggle.com/datasets/lakshaytyagi01/fruit-detection/code) dataset.
- - This dataset contains a total of 8479 images.
- - It includes 6 class labels, each with its total instance counts listed below.
-
-| Class Label | Instance Count |
-|:------------|:--------------:|
-| Apple | 7049 |
-| Grapes | 7202 |
-| Pineapple | 1613 |
-| Orange | 15549 |
-| Banana | 3536 |
-| Watermelon | 1976 |
-
-- Necessary Python packages include:
-
- - `ultralytics`
- - `sklearn`
- - `pandas`
- - `pyyaml`
-
-- This tutorial operates with `k=5` folds. However, you should determine the best number of folds for your specific dataset.
-
-1. Initiate a new Python virtual environment (`venv`) for your project and activate it. Use `pip` (or your preferred package manager) to install:
-
- - The Ultralytics library: `pip install -U ultralytics`. Alternatively, you can clone the official [repo](https://github.com/ultralytics/ultralytics).
- - Scikit-learn, pandas, and PyYAML: `pip install -U scikit-learn pandas pyyaml`.
-
-2. Verify that your annotations are in the [YOLO detection format](../datasets/detect/index.md).
-
- - For this tutorial, all annotation files are found in the `Fruit-Detection/labels` directory.
-
-## Generating Feature Vectors for Object Detection Dataset
-
-1. Start by creating a new Python file and import the required libraries.
-
- ```python
- import datetime
- import shutil
- from pathlib import Path
- from collections import Counter
-
- import yaml
- import numpy as np
- import pandas as pd
- from ultralytics import YOLO
- from sklearn.model_selection import KFold
- ```
-
-2. Proceed to retrieve all label files for your dataset.
-
- ```python
- dataset_path = Path('./Fruit-detection') # replace with 'path/to/dataset' for your custom data
- labels = sorted(dataset_path.rglob("*labels/*.txt")) # all data in 'labels'
- ```
-
-3. Now, read the contents of the dataset YAML file and extract the indices of the class labels.
-
- ```python
- yaml_file = 'path/to/data.yaml' # your data YAML with data directories and names dictionary
- with open(yaml_file, 'r', encoding="utf8") as y:
- classes = yaml.safe_load(y)['names']
- cls_idx = sorted(classes.keys())
- ```
-
-4. Initialize an empty `pandas` DataFrame.
-
- ```python
- indx = [l.stem for l in labels] # uses base filename as ID (no extension)
- labels_df = pd.DataFrame([], columns=cls_idx, index=indx)
- ```
-
-5. Count the instances of each class-label present in the annotation files.
-
- ```python
- for label in labels:
- lbl_counter = Counter()
-
- with open(label,'r') as lf:
- lines = lf.readlines()
-
- for l in lines:
- # classes for YOLO label uses integer at first position of each line
- lbl_counter[int(l.split(' ')[0])] += 1
-
- labels_df.loc[label.stem] = lbl_counter
-
- labels_df = labels_df.fillna(0.0) # replace `nan` values with `0.0`
- ```
-
-6. The following is a sample view of the populated DataFrame:
-
- ```pandas
- 0 1 2 3 4 5
- '0000a16e4b057580_jpg.rf.00ab48988370f64f5ca8ea4...' 0.0 0.0 0.0 0.0 0.0 7.0
- '0000a16e4b057580_jpg.rf.7e6dce029fb67f01eb19aa7...' 0.0 0.0 0.0 0.0 0.0 7.0
- '0000a16e4b057580_jpg.rf.bc4d31cdcbe229dd022957a...' 0.0 0.0 0.0 0.0 0.0 7.0
- '00020ebf74c4881c_jpg.rf.508192a0a97aa6c4a3b6882...' 0.0 0.0 0.0 1.0 0.0 0.0
- '00020ebf74c4881c_jpg.rf.5af192a2254c8ecc4188a25...' 0.0 0.0 0.0 1.0 0.0 0.0
- ... ... ... ... ... ... ...
- 'ff4cd45896de38be_jpg.rf.c4b5e967ca10c7ced3b9e97...' 0.0 0.0 0.0 0.0 0.0 2.0
- 'ff4cd45896de38be_jpg.rf.ea4c1d37d2884b3e3cbce08...' 0.0 0.0 0.0 0.0 0.0 2.0
- 'ff5fd9c3c624b7dc_jpg.rf.bb519feaa36fc4bf630a033...' 1.0 0.0 0.0 0.0 0.0 0.0
- 'ff5fd9c3c624b7dc_jpg.rf.f0751c9c3aa4519ea3c9d6a...' 1.0 0.0 0.0 0.0 0.0 0.0
- 'fffe28b31f2a70d4_jpg.rf.7ea16bd637ba0711c53b540...' 0.0 6.0 0.0 0.0 0.0 0.0
- ```
-
-The rows index the label files, each corresponding to an image in your dataset, and the columns correspond to your class-label indices. Each row represents a pseudo feature-vector, with the count of each class-label present in your dataset. This data structure enables the application of K-Fold Cross Validation to an object detection dataset.
-
-## K-Fold Dataset Split
-
-1. Now we will use the `KFold` class from `sklearn.model_selection` to generate `k` splits of the dataset.
-
- - Important:
- - Setting `shuffle=True` ensures a randomized distribution of classes in your splits.
- - By setting `random_state=M` where `M` is a chosen integer, you can obtain repeatable results.
-
- ```python
- ksplit = 5
- kf = KFold(n_splits=ksplit, shuffle=True, random_state=20) # setting random_state for repeatable results
-
- kfolds = list(kf.split(labels_df))
- ```
-
-2. The dataset has now been split into `k` folds, each having a list of `train` and `val` indices. We will construct a DataFrame to display these results more clearly.
-
- ```python
- folds = [f'split_{n}' for n in range(1, ksplit + 1)]
- folds_df = pd.DataFrame(index=indx, columns=folds)
-
- for idx, (train, val) in enumerate(kfolds, start=1):
- folds_df[f'split_{idx}'].loc[labels_df.iloc[train].index] = 'train'
- folds_df[f'split_{idx}'].loc[labels_df.iloc[val].index] = 'val'
- ```
-
-3. Now we will calculate the distribution of class labels for each fold as a ratio of the classes present in `val` to those present in `train`.
-
- ```python
- fold_lbl_distrb = pd.DataFrame(index=folds, columns=cls_idx)
-
- for n, (train_indices, val_indices) in enumerate(kfolds, start=1):
- train_totals = labels_df.iloc[train_indices].sum()
- val_totals = labels_df.iloc[val_indices].sum()
-
- # To avoid division by zero, we add a small value (1E-7) to the denominator
- ratio = val_totals / (train_totals + 1E-7)
- fold_lbl_distrb.loc[f'split_{n}'] = ratio
- ```
-
- The ideal scenario is for all class ratios to be reasonably similar for each split and across classes. This, however, will be subject to the specifics of your dataset.
-
-4. Next, we create the directories and dataset YAML files for each split.
-
- ```python
- supported_extensions = ['.jpg', '.jpeg', '.png']
-
- # Initialize an empty list to store image file paths
- images = []
-
- # Loop through supported extensions and gather image files
- for ext in supported_extensions:
- images.extend(sorted((dataset_path / 'images').rglob(f"*{ext}")))
-
- # Create the necessary directories and dataset YAML files (unchanged)
- save_path = Path(dataset_path / f'{datetime.date.today().isoformat()}_{ksplit}-Fold_Cross-val')
- save_path.mkdir(parents=True, exist_ok=True)
- ds_yamls = []
-
- for split in folds_df.columns:
- # Create directories
- split_dir = save_path / split
- split_dir.mkdir(parents=True, exist_ok=True)
- (split_dir / 'train' / 'images').mkdir(parents=True, exist_ok=True)
- (split_dir / 'train' / 'labels').mkdir(parents=True, exist_ok=True)
- (split_dir / 'val' / 'images').mkdir(parents=True, exist_ok=True)
- (split_dir / 'val' / 'labels').mkdir(parents=True, exist_ok=True)
-
- # Create dataset YAML files
- dataset_yaml = split_dir / f'{split}_dataset.yaml'
- ds_yamls.append(dataset_yaml)
-
- with open(dataset_yaml, 'w') as ds_y:
- yaml.safe_dump({
- 'path': split_dir.as_posix(),
- 'train': 'train',
- 'val': 'val',
- 'names': classes
- }, ds_y)
- ```
-
-5. Lastly, copy images and labels into the respective directory ('train' or 'val') for each split.
-
- - __NOTE:__ The time required for this portion of the code will vary based on the size of your dataset and your system hardware.
-
- ```python
- for image, label in zip(images, labels):
- for split, k_split in folds_df.loc[image.stem].items():
- # Destination directory
- img_to_path = save_path / split / k_split / 'images'
- lbl_to_path = save_path / split / k_split / 'labels'
-
- # Copy image and label files to new directory (SamefileError if file already exists)
- shutil.copy(image, img_to_path / image.name)
- shutil.copy(label, lbl_to_path / label.name)
- ```
-
-## Save Records (Optional)
-
-Optionally, you can save the records of the K-Fold split and label distribution DataFrames as CSV files for future reference.
-
-```python
-folds_df.to_csv(save_path / "kfold_datasplit.csv")
-fold_lbl_distrb.to_csv(save_path / "kfold_label_distribution.csv")
-```
-
-## Train YOLO using K-Fold Data Splits
-
-1. First, load the YOLO model.
-
- ```python
- weights_path = 'path/to/weights.pt'
- model = YOLO(weights_path, task='detect')
- ```
-
-2. Next, iterate over the dataset YAML files to run training. The results will be saved to a directory specified by the `project` and `name` arguments. By default, this directory is 'exp/runs#' where # is an integer index.
-
- ```python
- results = {}
-
- # Define your additional arguments here
- batch = 16
- project = 'kfold_demo'
- epochs = 100
-
- for k in range(ksplit):
- dataset_yaml = ds_yamls[k]
- model.train(data=dataset_yaml,epochs=epochs, batch=batch, project=project) # include any train arguments
- results[k] = model.metrics # save output metrics for further analysis
- ```
-
-## Conclusion
-
-In this guide, we have explored the process of using K-Fold cross-validation for training the YOLO object detection model. We learned how to split our dataset into K partitions, ensuring a balanced class distribution across the different folds.
-
-We also explored the procedure for creating report DataFrames to visualize the data splits and label distributions across these splits, providing us a clear insight into the structure of our training and validation sets.
-
-Optionally, we saved our records for future reference, which could be particularly useful in large-scale projects or when troubleshooting model performance.
-
-Finally, we implemented the actual model training using each split in a loop, saving our training results for further analysis and comparison.
-
-This technique of K-Fold cross-validation is a robust way of making the most out of your available data, and it helps to ensure that your model performance is reliable and consistent across different data subsets. This results in a more generalizable and reliable model that is less likely to overfit to specific data patterns.
-
-Remember that although we used YOLO in this guide, these steps are mostly transferable to other machine learning models. Understanding these steps allows you to apply cross-validation effectively in your own machine learning projects. Happy coding!
diff --git a/ultralytics-main/docs/en/guides/model-deployment-options.md b/ultralytics-main/docs/en/guides/model-deployment-options.md
deleted file mode 100644
index a487ea4..0000000
--- a/ultralytics-main/docs/en/guides/model-deployment-options.md
+++ /dev/null
@@ -1,305 +0,0 @@
----
-comments: true
-description: A guide to help determine which deployment option to choose for your YOLOv8 model, including essential considerations.
-keywords: YOLOv8, Deployment, PyTorch, TorchScript, ONNX, OpenVINO, TensorRT, CoreML, TensorFlow, Export
----
-
-# Understanding YOLOv8’s Deployment Options
-
-## Introduction
-
-You've come a long way on your journey with YOLOv8. You've diligently collected data, meticulously annotated it, and put in the hours to train and rigorously evaluate your custom YOLOv8 model. Now, it’s time to put your model to work for your specific application, use case, or project. But there's a critical decision that stands before you: how to export and deploy your model effectively.
-
-This guide walks you through YOLOv8’s deployment options and the essential factors to consider to choose the right option for your project.
-
-## How to Select the Right Deployment Option for Your YOLOv8 Model
-
-When it's time to deploy your YOLOv8 model, selecting a suitable export format is very important. As outlined in the [Ultralytics YOLOv8 Modes documentation](../modes/export.md#usage-examples), the model.export() function allows for converting your trained model into a variety of formats tailored to diverse environments and performance requirements.
-
-The ideal format depends on your model's intended operational context, balancing speed, hardware constraints, and ease of integration. In the following section, we'll take a closer look at each export option, understanding when to choose each one.
-
-### YOLOv8’s Deployment Options
-
-Let’s walk through the different YOLOv8 deployment options. For a detailed walkthrough of the export process, visit the [Ultralytics documentation page on exporting](../modes/export.md).
-
-#### PyTorch
-
-PyTorch is an open-source machine learning library widely used for applications in deep learning and artificial intelligence. It provides a high level of flexibility and speed, which has made it a favorite among researchers and developers.
-
-- **Performance Benchmarks**: PyTorch is known for its ease of use and flexibility, which may result in a slight trade-off in raw performance when compared to other frameworks that are more specialized and optimized.
-
-- **Compatibility and Integration**: Offers excellent compatibility with various data science and machine learning libraries in Python.
-
-- **Community Support and Ecosystem**: One of the most vibrant communities, with extensive resources for learning and troubleshooting.
-
-- **Case Studies**: Commonly used in research prototypes, many academic papers reference models deployed in PyTorch.
-
-- **Maintenance and Updates**: Regular updates with active development and support for new features.
-
-- **Security Considerations**: Regular patches for security issues, but security is largely dependent on the overall environment it’s deployed in.
-
-- **Hardware Acceleration**: Supports CUDA for GPU acceleration, essential for speeding up model training and inference.
-
-#### TorchScript
-
-TorchScript extends PyTorch’s capabilities by allowing the exportation of models to be run in a C++ runtime environment. This makes it suitable for production environments where Python is unavailable.
-
-- **Performance Benchmarks**: Can offer improved performance over native PyTorch, especially in production environments.
-
-- **Compatibility and Integration**: Designed for seamless transition from PyTorch to C++ production environments, though some advanced features might not translate perfectly.
-
-- **Community Support and Ecosystem**: Benefits from PyTorch’s large community but has a narrower scope of specialized developers.
-
-- **Case Studies**: Widely used in industry settings where Python’s performance overhead is a bottleneck.
-
-- **Maintenance and Updates**: Maintained alongside PyTorch with consistent updates.
-
-- **Security Considerations**: Offers improved security by enabling the running of models in environments without full Python installations.
-
-- **Hardware Acceleration**: Inherits PyTorch’s CUDA support, ensuring efficient GPU utilization.
-
-#### ONNX
-
-The Open Neural Network Exchange (ONNX) is a format that allows for model interoperability across different frameworks, which can be critical when deploying to various platforms.
-
-- **Performance Benchmarks**: ONNX models may experience a variable performance depending on the specific runtime they are deployed on.
-
-- **Compatibility and Integration**: High interoperability across multiple platforms and hardware due to its framework-agnostic nature.
-
-- **Community Support and Ecosystem**: Supported by many organizations, leading to a broad ecosystem and a variety of tools for optimization.
-
-- **Case Studies**: Frequently used to move models between different machine learning frameworks, demonstrating its flexibility.
-
-- **Maintenance and Updates**: As an open standard, ONNX is regularly updated to support new operations and models.
-
-- **Security Considerations**: As with any cross-platform tool, it's essential to ensure secure practices in the conversion and deployment pipeline.
-
-- **Hardware Acceleration**: With ONNX Runtime, models can leverage various hardware optimizations.
-
-#### OpenVINO
-
-OpenVINO is an Intel toolkit designed to facilitate the deployment of deep learning models across Intel hardware, enhancing performance and speed.
-
-- **Performance Benchmarks**: Specifically optimized for Intel CPUs, GPUs, and VPUs, offering significant performance boosts on compatible hardware.
-
-- **Compatibility and Integration**: Works best within the Intel ecosystem but also supports a range of other platforms.
-
-- **Community Support and Ecosystem**: Backed by Intel, with a solid user base especially in the computer vision domain.
-
-- **Case Studies**: Often utilized in IoT and edge computing scenarios where Intel hardware is prevalent.
-
-- **Maintenance and Updates**: Intel regularly updates OpenVINO to support the latest deep learning models and Intel hardware.
-
-- **Security Considerations**: Provides robust security features suitable for deployment in sensitive applications.
-
-- **Hardware Acceleration**: Tailored for acceleration on Intel hardware, leveraging dedicated instruction sets and hardware features.
-
-For more details on deployment using OpenVINO, refer to the Ultralytics Integration documentation: [Intel OpenVINO Export](../integrations/openvino.md).
-
-#### TensorRT
-
-TensorRT is a high-performance deep learning inference optimizer and runtime from NVIDIA, ideal for applications needing speed and efficiency.
-
-- **Performance Benchmarks**: Delivers top-tier performance on NVIDIA GPUs with support for high-speed inference.
-
-- **Compatibility and Integration**: Best suited for NVIDIA hardware, with limited support outside this environment.
-
-- **Community Support and Ecosystem**: Strong support network through NVIDIA’s developer forums and documentation.
-
-- **Case Studies**: Widely adopted in industries requiring real-time inference on video and image data.
-
-- **Maintenance and Updates**: NVIDIA maintains TensorRT with frequent updates to enhance performance and support new GPU architectures.
-
-- **Security Considerations**: Like many NVIDIA products, it has a strong emphasis on security, but specifics depend on the deployment environment.
-
-- **Hardware Acceleration**: Exclusively designed for NVIDIA GPUs, providing deep optimization and acceleration.
-
-#### CoreML
-
-CoreML is Apple’s machine learning framework, optimized for on-device performance in the Apple ecosystem, including iOS, macOS, watchOS, and tvOS.
-
-- **Performance Benchmarks**: Optimized for on-device performance on Apple hardware with minimal battery usage.
-
-- **Compatibility and Integration**: Exclusively for Apple's ecosystem, providing a streamlined workflow for iOS and macOS applications.
-
-- **Community Support and Ecosystem**: Strong support from Apple and a dedicated developer community, with extensive documentation and tools.
-
-- **Case Studies**: Commonly used in applications that require on-device machine learning capabilities on Apple products.
-
-- **Maintenance and Updates**: Regularly updated by Apple to support the latest machine learning advancements and Apple hardware.
-
-- **Security Considerations**: Benefits from Apple's focus on user privacy and data security.
-
-- **Hardware Acceleration**: Takes full advantage of Apple's neural engine and GPU for accelerated machine learning tasks.
-
-#### TF SavedModel
-
-TF SavedModel is TensorFlow’s format for saving and serving machine learning models, particularly suited for scalable server environments.
-
-- **Performance Benchmarks**: Offers scalable performance in server environments, especially when used with TensorFlow Serving.
-
-- **Compatibility and Integration**: Wide compatibility across TensorFlow's ecosystem, including cloud and enterprise server deployments.
-
-- **Community Support and Ecosystem**: Large community support due to TensorFlow's popularity, with a vast array of tools for deployment and optimization.
-
-- **Case Studies**: Extensively used in production environments for serving deep learning models at scale.
-
-- **Maintenance and Updates**: Supported by Google and the TensorFlow community, ensuring regular updates and new features.
-
-- **Security Considerations**: Deployment using TensorFlow Serving includes robust security features for enterprise-grade applications.
-
-- **Hardware Acceleration**: Supports various hardware accelerations through TensorFlow's backends.
-
-#### TF GraphDef
-
-TF GraphDef is a TensorFlow format that represents the model as a graph, which is beneficial for environments where a static computation graph is required.
-
-- **Performance Benchmarks**: Provides stable performance for static computation graphs, with a focus on consistency and reliability.
-
-- **Compatibility and Integration**: Easily integrates within TensorFlow's infrastructure but less flexible compared to SavedModel.
-
-- **Community Support and Ecosystem**: Good support from TensorFlow's ecosystem, with many resources available for optimizing static graphs.
-
-- **Case Studies**: Useful in scenarios where a static graph is necessary, such as in certain embedded systems.
-
-- **Maintenance and Updates**: Regular updates alongside TensorFlow's core updates.
-
-- **Security Considerations**: Ensures safe deployment with TensorFlow's established security practices.
-
-- **Hardware Acceleration**: Can utilize TensorFlow's hardware acceleration options, though not as flexible as SavedModel.
-
-#### TF Lite
-
-TF Lite is TensorFlow’s solution for mobile and embedded device machine learning, providing a lightweight library for on-device inference.
-
-- **Performance Benchmarks**: Designed for speed and efficiency on mobile and embedded devices.
-
-- **Compatibility and Integration**: Can be used on a wide range of devices due to its lightweight nature.
-
-- **Community Support and Ecosystem**: Backed by Google, it has a robust community and a growing number of resources for developers.
-
-- **Case Studies**: Popular in mobile applications that require on-device inference with minimal footprint.
-
-- **Maintenance and Updates**: Regularly updated to include the latest features and optimizations for mobile devices.
-
-- **Security Considerations**: Provides a secure environment for running models on end-user devices.
-
-- **Hardware Acceleration**: Supports a variety of hardware acceleration options, including GPU and DSP.
-
-#### TF Edge TPU
-
-TF Edge TPU is designed for high-speed, efficient computing on Google's Edge TPU hardware, perfect for IoT devices requiring real-time processing.
-
-- **Performance Benchmarks**: Specifically optimized for high-speed, efficient computing on Google's Edge TPU hardware.
-
-- **Compatibility and Integration**: Works exclusively with TensorFlow Lite models on Edge TPU devices.
-
-- **Community Support and Ecosystem**: Growing support with resources provided by Google and third-party developers.
-
-- **Case Studies**: Used in IoT devices and applications that require real-time processing with low latency.
-
-- **Maintenance and Updates**: Continually improved upon to leverage the capabilities of new Edge TPU hardware releases.
-
-- **Security Considerations**: Integrates with Google's robust security for IoT and edge devices.
-
-- **Hardware Acceleration**: Custom-designed to take full advantage of Google Coral devices.
-
-#### TF.js
-
-TensorFlow.js (TF.js) is a library that brings machine learning capabilities directly to the browser, offering a new realm of possibilities for web developers and users alike. It allows for the integration of machine learning models in web applications without the need for back-end infrastructure.
-
-- **Performance Benchmarks**: Enables machine learning directly in the browser with reasonable performance, depending on the client device.
-
-- **Compatibility and Integration**: High compatibility with web technologies, allowing for easy integration into web applications.
-
-- **Community Support and Ecosystem**: Support from a community of web and Node.js developers, with a variety of tools for deploying ML models in browsers.
-
-- **Case Studies**: Ideal for interactive web applications that benefit from client-side machine learning without the need for server-side processing.
-
-- **Maintenance and Updates**: Maintained by the TensorFlow team with contributions from the open-source community.
-
-- **Security Considerations**: Runs within the browser's secure context, utilizing the security model of the web platform.
-
-- **Hardware Acceleration**: Performance can be enhanced with web-based APIs that access hardware acceleration like WebGL.
-
-#### PaddlePaddle
-
-PaddlePaddle is an open-source deep learning framework developed by Baidu. It is designed to be both efficient for researchers and easy to use for developers. It's particularly popular in China and offers specialized support for Chinese language processing.
-
-- **Performance Benchmarks**: Offers competitive performance with a focus on ease of use and scalability.
-
-- **Compatibility and Integration**: Well-integrated within Baidu's ecosystem and supports a wide range of applications.
-
-- **Community Support and Ecosystem**: While the community is smaller globally, it's rapidly growing, especially in China.
-
-- **Case Studies**: Commonly used in Chinese markets and by developers looking for alternatives to other major frameworks.
-
-- **Maintenance and Updates**: Regularly updated with a focus on serving Chinese language AI applications and services.
-
-- **Security Considerations**: Emphasizes data privacy and security, catering to Chinese data governance standards.
-
-- **Hardware Acceleration**: Supports various hardware accelerations, including Baidu's own Kunlun chips.
-
-#### NCNN
-
-NCNN is a high-performance neural network inference framework optimized for the mobile platform. It stands out for its lightweight nature and efficiency, making it particularly well-suited for mobile and embedded devices where resources are limited.
-
-- **Performance Benchmarks**: Highly optimized for mobile platforms, offering efficient inference on ARM-based devices.
-
-- **Compatibility and Integration**: Suitable for applications on mobile phones and embedded systems with ARM architecture.
-
-- **Community Support and Ecosystem**: Supported by a niche but active community focused on mobile and embedded ML applications.
-
-- **Case Studies**: Favoured for mobile applications where efficiency and speed are critical on Android and other ARM-based systems.
-
-- **Maintenance and Updates**: Continuously improved to maintain high performance on a range of ARM devices.
-
-- **Security Considerations**: Focuses on running locally on the device, leveraging the inherent security of on-device processing.
-
-- **Hardware Acceleration**: Tailored for ARM CPUs and GPUs, with specific optimizations for these architectures.
-
-## Comparative Analysis of YOLOv8 Deployment Options
-
-The following table provides a snapshot of the various deployment options available for YOLOv8 models, helping you to assess which may best fit your project needs based on several critical criteria. For an in-depth look at each deployment option's format, please see the [Ultralytics documentation page on export formats](../modes/export.md#export-formats).
-
-| Deployment Option | Performance Benchmarks | Compatibility and Integration | Community Support and Ecosystem | Case Studies | Maintenance and Updates | Security Considerations | Hardware Acceleration |
-|-------------------|-------------------------------------------------|------------------------------------------------|-----------------------------------------------|--------------------------------------------|---------------------------------------------|---------------------------------------------------|------------------------------------|
-| PyTorch | Good flexibility; may trade off raw performance | Excellent with Python libraries | Extensive resources and community | Research and prototypes | Regular, active development | Dependent on deployment environment | CUDA support for GPU acceleration |
-| TorchScript | Better for production than PyTorch | Smooth transition from PyTorch to C++ | Specialized but narrower than PyTorch | Industry where Python is a bottleneck | Consistent updates with PyTorch | Improved security without full Python | Inherits CUDA support from PyTorch |
-| ONNX | Variable depending on runtime | High across different frameworks | Broad ecosystem, supported by many orgs | Flexibility across ML frameworks | Regular updates for new operations | Ensure secure conversion and deployment practices | Various hardware optimizations |
-| OpenVINO | Optimized for Intel hardware | Best within Intel ecosystem | Solid in computer vision domain | IoT and edge with Intel hardware | Regular updates for Intel hardware | Robust features for sensitive applications | Tailored for Intel hardware |
-| TensorRT | Top-tier on NVIDIA GPUs | Best for NVIDIA hardware | Strong network through NVIDIA | Real-time video and image inference | Frequent updates for new GPUs | Emphasis on security | Designed for NVIDIA GPUs |
-| CoreML | Optimized for on-device Apple hardware | Exclusive to Apple ecosystem | Strong Apple and developer support | On-device ML on Apple products | Regular Apple updates | Focus on privacy and security | Apple neural engine and GPU |
-| TF SavedModel | Scalable in server environments | Wide compatibility in TensorFlow ecosystem | Large support due to TensorFlow popularity | Serving models at scale | Regular updates by Google and community | Robust features for enterprise | Various hardware accelerations |
-| TF GraphDef | Stable for static computation graphs | Integrates well with TensorFlow infrastructure | Resources for optimizing static graphs | Scenarios requiring static graphs | Updates alongside TensorFlow core | Established TensorFlow security practices | TensorFlow acceleration options |
-| TF Lite | Speed and efficiency on mobile/embedded | Wide range of device support | Robust community, Google backed | Mobile applications with minimal footprint | Latest features for mobile | Secure environment on end-user devices | GPU and DSP among others |
-| TF Edge TPU | Optimized for Google's Edge TPU hardware | Exclusive to Edge TPU devices | Growing with Google and third-party resources | IoT devices requiring real-time processing | Improvements for new Edge TPU hardware | Google's robust IoT security | Custom-designed for Google Coral |
-| TF.js | Reasonable in-browser performance | High with web technologies | Web and Node.js developers support | Interactive web applications | TensorFlow team and community contributions | Web platform security model | Enhanced with WebGL and other APIs |
-| PaddlePaddle | Competitive, easy to use and scalable | Baidu ecosystem, wide application support | Rapidly growing, especially in China | Chinese market and language processing | Focus on Chinese AI applications | Emphasizes data privacy and security | Including Baidu's Kunlun chips |
-| NCNN | Optimized for mobile ARM-based devices | Mobile and embedded ARM systems | Niche but active mobile/embedded ML community | Android and ARM systems efficiency | High performance maintenance on ARM | On-device security advantages | ARM CPUs and GPUs optimizations |
-
-This comparative analysis gives you a high-level overview. For deployment, it's essential to consider the specific requirements and constraints of your project, and consult the detailed documentation and resources available for each option.
-
-## Community and Support
-
-When you're getting started with YOLOv8, having a helpful community and support can make a significant impact. Here's how to connect with others who share your interests and get the assistance you need.
-
-### Engage with the Broader Community
-
-- **GitHub Discussions:** The YOLOv8 repository on GitHub has a "Discussions" section where you can ask questions, report issues, and suggest improvements.
-
-- **Ultralytics Discord Server:** Ultralytics has a [Discord server](https://ultralytics.com/discord/) where you can interact with other users and developers.
-
-### Official Documentation and Resources
-
-- **Ultralytics YOLOv8 Docs:** The [official documentation](../index.md) provides a comprehensive overview of YOLOv8, along with guides on installation, usage, and troubleshooting.
-
-These resources will help you tackle challenges and stay updated on the latest trends and best practices in the YOLOv8 community.
-
-## Conclusion
-
-In this guide, we've explored the different deployment options for YOLOv8. We've also discussed the important factors to consider when making your choice. These options allow you to customize your model for various environments and performance requirements, making it suitable for real-world applications.
-
-Don't forget that the YOLOv8 and Ultralytics community is a valuable source of help. Connect with other developers and experts to learn unique tips and solutions you might not find in regular documentation. Keep seeking knowledge, exploring new ideas, and sharing your experiences.
-
-Happy deploying!
diff --git a/ultralytics-main/docs/en/guides/object-blurring.md b/ultralytics-main/docs/en/guides/object-blurring.md
deleted file mode 100644
index 0b6faa3..0000000
--- a/ultralytics-main/docs/en/guides/object-blurring.md
+++ /dev/null
@@ -1,91 +0,0 @@
----
-comments: true
-description: Learn to blur objects using Ultralytics YOLOv8 for privacy in images and videos.
-keywords: Ultralytics, YOLOv8, Object Detection, Object Blurring, Privacy Protection, Image Processing, Video Analysis, AI, Machine Learning
----
-
-# Object Blurring using Ultralytics YOLOv8 🚀
-
-## What is Object Blurring?
-
-Object blurring with [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics/) involves applying a blurring effect to specific detected objects in an image or video. This can be achieved using the YOLOv8 model capabilities to identify and manipulate objects within a given scene.
-
-## Advantages of Object Blurring?
-
-- **Privacy Protection**: Object blurring is an effective tool for safeguarding privacy by concealing sensitive or personally identifiable information in images or videos.
-- **Selective Focus**: YOLOv8 allows for selective blurring, enabling users to target specific objects, ensuring a balance between privacy and retaining relevant visual information.
-- **Real-time Processing**: YOLOv8's efficiency enables object blurring in real-time, making it suitable for applications requiring on-the-fly privacy enhancements in dynamic environments.
-
-!!! Example "Object Blurring using YOLOv8 Example"
-
- === "Object Blurring"
-
- ```python
- from ultralytics import YOLO
- from ultralytics.utils.plotting import Annotator, colors
- import cv2
-
- model = YOLO("yolov8n.pt")
- names = model.names
-
- cap = cv2.VideoCapture("path/to/video/file.mp4")
- assert cap.isOpened(), "Error reading video file"
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- # Blur ratio
- blur_ratio = 50
-
- # Video writer
- video_writer = cv2.VideoWriter("object_blurring_output.avi",
- cv2.VideoWriter_fourcc(*'mp4v'),
- fps, (w, h))
-
- while cap.isOpened():
- success, im0 = cap.read()
- if not success:
- print("Video frame is empty or video processing has been successfully completed.")
- break
-
- results = model.predict(im0, show=False)
- boxes = results[0].boxes.xyxy.cpu().tolist()
- clss = results[0].boxes.cls.cpu().tolist()
- annotator = Annotator(im0, line_width=2, example=names)
-
- if boxes is not None:
- for box, cls in zip(boxes, clss):
- annotator.box_label(box, color=colors(int(cls), True), label=names[int(cls)])
-
- obj = im0[int(box[1]):int(box[3]), int(box[0]):int(box[2])]
- blur_obj = cv2.blur(obj, (blur_ratio, blur_ratio))
-
- im0[int(box[1]):int(box[3]), int(box[0]):int(box[2])] = blur_obj
-
- cv2.imshow("ultralytics", im0)
- video_writer.write(im0)
- if cv2.waitKey(1) & 0xFF == ord('q'):
- break
-
- cap.release()
- video_writer.release()
- cv2.destroyAllWindows()
- ```
-
-### Arguments `model.predict`
-
-| Name | Type | Default | Description |
-|-----------------|----------------|------------------------|----------------------------------------------------------------------------|
-| `source` | `str` | `'ultralytics/assets'` | source directory for images or videos |
-| `conf` | `float` | `0.25` | object confidence threshold for detection |
-| `iou` | `float` | `0.7` | intersection over union (IoU) threshold for NMS |
-| `imgsz` | `int or tuple` | `640` | image size as scalar or (h, w) list, i.e. (640, 480) |
-| `half` | `bool` | `False` | use half precision (FP16) |
-| `device` | `None or str` | `None` | device to run on, i.e. cuda device=0/1/2/3 or device=cpu |
-| `max_det` | `int` | `300` | maximum number of detections per image |
-| `vid_stride` | `bool` | `False` | video frame-rate stride |
-| `stream_buffer` | `bool` | `False` | buffer all streaming frames (True) or return the most recent frame (False) |
-| `visualize` | `bool` | `False` | visualize model features |
-| `augment` | `bool` | `False` | apply image augmentation to prediction sources |
-| `agnostic_nms` | `bool` | `False` | class-agnostic NMS |
-| `classes` | `list[int]` | `None` | filter results by class, i.e. classes=0, or classes=[0,2,3] |
-| `retina_masks` | `bool` | `False` | use high-resolution segmentation masks |
-| `embed` | `list[int]` | `None` | return feature vectors/embeddings from given layers |
diff --git a/ultralytics-main/docs/en/guides/object-counting.md b/ultralytics-main/docs/en/guides/object-counting.md
deleted file mode 100644
index 0c3ce72..0000000
--- a/ultralytics-main/docs/en/guides/object-counting.md
+++ /dev/null
@@ -1,246 +0,0 @@
----
-comments: true
-description: Object Counting Using Ultralytics YOLOv8
-keywords: Ultralytics, YOLOv8, Object Detection, Object Counting, Object Tracking, Notebook, IPython Kernel, CLI, Python SDK
----
-
-# Object Counting using Ultralytics YOLOv8 🚀
-
-## What is Object Counting?
-
-Object counting with [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics/) involves accurate identification and counting of specific objects in videos and camera streams. YOLOv8 excels in real-time applications, providing efficient and precise object counting for various scenarios like crowd analysis and surveillance, thanks to its state-of-the-art algorithms and deep learning capabilities.
-
-
-
-## Advantages of Object Counting?
-
-- **Resource Optimization:** Object counting facilitates efficient resource management by providing accurate counts, and optimizing resource allocation in applications like inventory management.
-- **Enhanced Security:** Object counting enhances security and surveillance by accurately tracking and counting entities, aiding in proactive threat detection.
-- **Informed Decision-Making:** Object counting offers valuable insights for decision-making, optimizing processes in retail, traffic management, and various other domains.
-
-## Real World Applications
-
-| Logistics | Aquaculture |
-|:-------------------------------------------------------------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------------------------------------------------:|
-| ![Conveyor Belt Packets Counting Using Ultralytics YOLOv8](https://github.com/RizwanMunawar/ultralytics/assets/62513924/70e2d106-510c-4c6c-a57a-d34a765aa757) | ![Fish Counting in Sea using Ultralytics YOLOv8](https://github.com/RizwanMunawar/ultralytics/assets/62513924/c60d047b-3837-435f-8d29-bb9fc95d2191) |
-| Conveyor Belt Packets Counting Using Ultralytics YOLOv8 | Fish Counting in Sea using Ultralytics YOLOv8 |
-
-!!! Example "Object Counting using YOLOv8 Example"
-
- === "Count in Region"
-
- ```python
- from ultralytics import YOLO
- from ultralytics.solutions import object_counter
- import cv2
-
- model = YOLO("yolov8n.pt")
- cap = cv2.VideoCapture("path/to/video/file.mp4")
- assert cap.isOpened(), "Error reading video file"
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- # Define region points
- region_points = [(20, 400), (1080, 404), (1080, 360), (20, 360)]
-
- # Video writer
- video_writer = cv2.VideoWriter("object_counting_output.avi",
- cv2.VideoWriter_fourcc(*'mp4v'),
- fps,
- (w, h))
-
- # Init Object Counter
- counter = object_counter.ObjectCounter()
- counter.set_args(view_img=True,
- reg_pts=region_points,
- classes_names=model.names,
- draw_tracks=True)
-
- while cap.isOpened():
- success, im0 = cap.read()
- if not success:
- print("Video frame is empty or video processing has been successfully completed.")
- break
- tracks = model.track(im0, persist=True, show=False)
-
- im0 = counter.start_counting(im0, tracks)
- video_writer.write(im0)
-
- cap.release()
- video_writer.release()
- cv2.destroyAllWindows()
- ```
-
- === "Count in Polygon"
-
- ```python
- from ultralytics import YOLO
- from ultralytics.solutions import object_counter
- import cv2
-
- model = YOLO("yolov8n.pt")
- cap = cv2.VideoCapture("path/to/video/file.mp4")
- assert cap.isOpened(), "Error reading video file"
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- # Define region points as a polygon with 5 points
- region_points = [(20, 400), (1080, 404), (1080, 360), (20, 360), (20, 400)]
-
- # Video writer
- video_writer = cv2.VideoWriter("object_counting_output.avi",
- cv2.VideoWriter_fourcc(*'mp4v'),
- fps,
- (w, h))
-
- # Init Object Counter
- counter = object_counter.ObjectCounter()
- counter.set_args(view_img=True,
- reg_pts=region_points,
- classes_names=model.names,
- draw_tracks=True)
-
- while cap.isOpened():
- success, im0 = cap.read()
- if not success:
- print("Video frame is empty or video processing has been successfully completed.")
- break
- tracks = model.track(im0, persist=True, show=False)
-
- im0 = counter.start_counting(im0, tracks)
- video_writer.write(im0)
-
- cap.release()
- video_writer.release()
- cv2.destroyAllWindows()
- ```
-
- === "Count in Line"
-
- ```python
- from ultralytics import YOLO
- from ultralytics.solutions import object_counter
- import cv2
-
- model = YOLO("yolov8n.pt")
- cap = cv2.VideoCapture("path/to/video/file.mp4")
- assert cap.isOpened(), "Error reading video file"
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- # Define line points
- line_points = [(20, 400), (1080, 400)]
-
- # Video writer
- video_writer = cv2.VideoWriter("object_counting_output.avi",
- cv2.VideoWriter_fourcc(*'mp4v'),
- fps,
- (w, h))
-
- # Init Object Counter
- counter = object_counter.ObjectCounter()
- counter.set_args(view_img=True,
- reg_pts=line_points,
- classes_names=model.names,
- draw_tracks=True)
-
- while cap.isOpened():
- success, im0 = cap.read()
- if not success:
- print("Video frame is empty or video processing has been successfully completed.")
- break
- tracks = model.track(im0, persist=True, show=False)
-
- im0 = counter.start_counting(im0, tracks)
- video_writer.write(im0)
-
- cap.release()
- video_writer.release()
- cv2.destroyAllWindows()
- ```
-
- === "Specific Classes"
-
- ```python
- from ultralytics import YOLO
- from ultralytics.solutions import object_counter
- import cv2
-
- model = YOLO("yolov8n.pt")
- cap = cv2.VideoCapture("path/to/video/file.mp4")
- assert cap.isOpened(), "Error reading video file"
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- line_points = [(20, 400), (1080, 400)] # line or region points
- classes_to_count = [0, 2] # person and car classes for count
-
- # Video writer
- video_writer = cv2.VideoWriter("object_counting_output.avi",
- cv2.VideoWriter_fourcc(*'mp4v'),
- fps,
- (w, h))
-
- # Init Object Counter
- counter = object_counter.ObjectCounter()
- counter.set_args(view_img=True,
- reg_pts=line_points,
- classes_names=model.names,
- draw_tracks=True)
-
- while cap.isOpened():
- success, im0 = cap.read()
- if not success:
- print("Video frame is empty or video processing has been successfully completed.")
- break
- tracks = model.track(im0, persist=True, show=False,
- classes=classes_to_count)
-
- im0 = counter.start_counting(im0, tracks)
- video_writer.write(im0)
-
- cap.release()
- video_writer.release()
- cv2.destroyAllWindows()
- ```
-
-???+ tip "Region is Movable"
-
- You can move the region anywhere in the frame by clicking on its edges
-
-### Optional Arguments `set_args`
-
-| Name | Type | Default | Description |
-|-----------------------|-------------|----------------------------|-----------------------------------------------|
-| `view_img` | `bool` | `False` | Display frames with counts |
-| `view_in_counts` | `bool` | `True` | Display in-counts only on video frame |
-| `view_out_counts` | `bool` | `True` | Display out-counts only on video frame |
-| `line_thickness` | `int` | `2` | Increase bounding boxes thickness |
-| `reg_pts` | `list` | `[(20, 400), (1260, 400)]` | Points defining the Region Area |
-| `classes_names` | `dict` | `model.model.names` | Dictionary of Class Names |
-| `region_color` | `RGB Color` | `(255, 0, 255)` | Color of the Object counting Region or Line |
-| `track_thickness` | `int` | `2` | Thickness of Tracking Lines |
-| `draw_tracks` | `bool` | `False` | Enable drawing Track lines |
-| `track_color` | `RGB Color` | `(0, 255, 0)` | Color for each track line |
-| `line_dist_thresh` | `int` | `15` | Euclidean Distance threshold for line counter |
-| `count_txt_thickness` | `int` | `2` | Thickness of Object counts text |
-| `count_txt_color` | `RGB Color` | `(0, 0, 0)` | Foreground color for Object counts text |
-| `count_color` | `RGB Color` | `(255, 255, 255)` | Background color for Object counts text |
-| `region_thickness` | `int` | `5` | Thickness for object counter region or line |
-
-### Arguments `model.track`
-
-| Name | Type | Default | Description |
-|-----------|---------|----------------|-------------------------------------------------------------|
-| `source` | `im0` | `None` | source directory for images or videos |
-| `persist` | `bool` | `False` | persisting tracks between frames |
-| `tracker` | `str` | `botsort.yaml` | Tracking method 'bytetrack' or 'botsort' |
-| `conf` | `float` | `0.3` | Confidence Threshold |
-| `iou` | `float` | `0.5` | IOU Threshold |
-| `classes` | `list` | `None` | filter results by class, i.e. classes=0, or classes=[0,2,3] |
-| `verbose` | `bool` | `True` | Display the object tracking results |
diff --git a/ultralytics-main/docs/en/guides/object-cropping.md b/ultralytics-main/docs/en/guides/object-cropping.md
deleted file mode 100644
index 240230a..0000000
--- a/ultralytics-main/docs/en/guides/object-cropping.md
+++ /dev/null
@@ -1,102 +0,0 @@
----
-comments: true
-description: Learn how to isolate and extract specific objects from images and videos using YOLOv8 object cropping.
-keywords: Ultralytics, YOLOv8, Object Detection, Object Cropping, Image Analysis, Video Processing, Data Extraction, Python
----
-
-# Object Cropping using Ultralytics YOLOv8 🚀
-
-## What is Object Cropping?
-
-Object cropping with [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics/) involves isolating and extracting specific detected objects from an image or video. The YOLOv8 model capabilities are utilized to accurately identify and delineate objects, enabling precise cropping for further analysis or manipulation.
-
-## Advantages of Object Cropping?
-
-- **Focused Analysis**: YOLOv8 facilitates targeted object cropping, allowing for in-depth examination or processing of individual items within a scene.
-- **Reduced Data Volume**: By extracting only relevant objects, object cropping helps in minimizing data size, making it efficient for storage, transmission, or subsequent computational tasks.
-- **Enhanced Precision**: YOLOv8's object detection accuracy ensures that the cropped objects maintain their spatial relationships, preserving the integrity of the visual information for detailed analysis.
-
-## Visuals
-
-| Airport Luggage |
-|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
-| ![Conveyor Belt at Airport Suitcases Cropping using Ultralytics YOLOv8](https://github.com/RizwanMunawar/RizwanMunawar/assets/62513924/648f46be-f233-4307-a8e5-046eea38d2e4) |
-| Suitcases Cropping at airport conveyor belt using Ultralytics YOLOv8 |
-
-!!! Example "Object Cropping using YOLOv8 Example"
-
- === "Object Cropping"
-
- ```python
- from ultralytics import YOLO
- from ultralytics.utils.plotting import Annotator, colors
- import cv2
- import os
-
- model = YOLO("yolov8n.pt")
- names = model.names
-
- cap = cv2.VideoCapture("path/to/video/file.mp4")
- assert cap.isOpened(), "Error reading video file"
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- crop_dir_name = "ultralytics_crop"
- if not os.path.exists(crop_dir_name):
- os.mkdir(crop_dir_name)
-
- # Video writer
- video_writer = cv2.VideoWriter("object_cropping_output.avi",
- cv2.VideoWriter_fourcc(*'mp4v'),
- fps, (w, h))
-
- idx = 0
- while cap.isOpened():
- success, im0 = cap.read()
- if not success:
- print("Video frame is empty or video processing has been successfully completed.")
- break
-
- results = model.predict(im0, show=False)
- boxes = results[0].boxes.xyxy.cpu().tolist()
- clss = results[0].boxes.cls.cpu().tolist()
- annotator = Annotator(im0, line_width=2, example=names)
-
- if boxes is not None:
- for box, cls in zip(boxes, clss):
- idx += 1
- annotator.box_label(box, color=colors(int(cls), True), label=names[int(cls)])
-
- crop_obj = im0[int(box[1]):int(box[3]), int(box[0]):int(box[2])]
-
- cv2.imwrite(os.path.join(crop_dir_name, str(idx)+".png"), crop_obj)
-
- cv2.imshow("ultralytics", im0)
- video_writer.write(im0)
-
- if cv2.waitKey(1) & 0xFF == ord('q'):
- break
-
- cap.release()
- video_writer.release()
- cv2.destroyAllWindows()
- ```
-
-### Arguments `model.predict`
-
-| Name | Type | Default | Description |
-|-----------------|----------------|------------------------|----------------------------------------------------------------------------|
-| `source` | `str` | `'ultralytics/assets'` | source directory for images or videos |
-| `conf` | `float` | `0.25` | object confidence threshold for detection |
-| `iou` | `float` | `0.7` | intersection over union (IoU) threshold for NMS |
-| `imgsz` | `int or tuple` | `640` | image size as scalar or (h, w) list, i.e. (640, 480) |
-| `half` | `bool` | `False` | use half precision (FP16) |
-| `device` | `None or str` | `None` | device to run on, i.e. cuda device=0/1/2/3 or device=cpu |
-| `max_det` | `int` | `300` | maximum number of detections per image |
-| `vid_stride` | `bool` | `False` | video frame-rate stride |
-| `stream_buffer` | `bool` | `False` | buffer all streaming frames (True) or return the most recent frame (False) |
-| `visualize` | `bool` | `False` | visualize model features |
-| `augment` | `bool` | `False` | apply image augmentation to prediction sources |
-| `agnostic_nms` | `bool` | `False` | class-agnostic NMS |
-| `classes` | `list[int]` | `None` | filter results by class, i.e. classes=0, or classes=[0,2,3] |
-| `retina_masks` | `bool` | `False` | use high-resolution segmentation masks |
-| `embed` | `list[int]` | `None` | return feature vectors/embeddings from given layers |
diff --git a/ultralytics-main/docs/en/guides/optimizing-openvino-latency-vs-throughput-modes.md b/ultralytics-main/docs/en/guides/optimizing-openvino-latency-vs-throughput-modes.md
deleted file mode 100644
index 8231be2..0000000
--- a/ultralytics-main/docs/en/guides/optimizing-openvino-latency-vs-throughput-modes.md
+++ /dev/null
@@ -1,69 +0,0 @@
----
-comments: true
-description: Learn how to optimize Ultralytics YOLOv8 models with Intel OpenVINO for maximum performance. Discover expert techniques to minimize latency and maximize throughput for real-time object detection applications.
-keywords: Ultralytics, YOLOv8, OpenVINO, optimization, latency, throughput, inference, object detection, deep learning, machine learning, guide, Intel
----
-
-# Optimizing OpenVINO Inference for Ultralytics YOLO Models: A Comprehensive Guide
-
-
-
-## Introduction
-
-When deploying deep learning models, particularly those for object detection such as Ultralytics YOLO models, achieving optimal performance is crucial. This guide delves into leveraging Intel's OpenVINO toolkit to optimize inference, focusing on latency and throughput. Whether you're working on consumer-grade applications or large-scale deployments, understanding and applying these optimization strategies will ensure your models run efficiently on various devices.
-
-## Optimizing for Latency
-
-Latency optimization is vital for applications requiring immediate response from a single model given a single input, typical in consumer scenarios. The goal is to minimize the delay between input and inference result. However, achieving low latency involves careful consideration, especially when running concurrent inferences or managing multiple models.
-
-### Key Strategies for Latency Optimization:
-
-- **Single Inference per Device:** The simplest way to achieve low latency is by limiting to one inference at a time per device. Additional concurrency often leads to increased latency.
-- **Leveraging Sub-Devices:** Devices like multi-socket CPUs or multi-tile GPUs can execute multiple requests with minimal latency increase by utilizing their internal sub-devices.
-- **OpenVINO Performance Hints:** Utilizing OpenVINO's `ov::hint::PerformanceMode::LATENCY` for the `ov::hint::performance_mode` property during model compilation simplifies performance tuning, offering a device-agnostic and future-proof approach.
-
-### Managing First-Inference Latency:
-
-- **Model Caching:** To mitigate model load and compile times impacting latency, use model caching where possible. For scenarios where caching isn't viable, CPUs generally offer the fastest model load times.
-- **Model Mapping vs. Reading:** To reduce load times, OpenVINO replaced model reading with mapping. However, if the model is on a removable or network drive, consider using `ov::enable_mmap(false)` to switch back to reading.
-- **AUTO Device Selection:** This mode begins inference on the CPU, shifting to an accelerator once ready, seamlessly reducing first-inference latency.
-
-## Optimizing for Throughput
-
-Throughput optimization is crucial for scenarios serving numerous inference requests simultaneously, maximizing resource utilization without significantly sacrificing individual request performance.
-
-### Approaches to Throughput Optimization:
-
-1. **OpenVINO Performance Hints:** A high-level, future-proof method to enhance throughput across devices using performance hints.
-
- ```python
- import openvino.properties as props
- import openvino.properties.hint as hints
-
- config = {hints.performance_mode: hints.PerformanceMode.THROUGHPUT}
- compiled_model = core.compile_model(model, "GPU", config)
- ```
-
-2. **Explicit Batching and Streams:** A more granular approach involving explicit batching and the use of streams for advanced performance tuning.
-
-### Designing Throughput-Oriented Applications:
-
-To maximize throughput, applications should:
-
-- Process inputs in parallel, making full use of the device's capabilities.
-- Decompose data flow into concurrent inference requests, scheduled for parallel execution.
-- Utilize the Async API with callbacks to maintain efficiency and avoid device starvation.
-
-### Multi-Device Execution:
-
-OpenVINO's multi-device mode simplifies scaling throughput by automatically balancing inference requests across devices without requiring application-level device management.
-
-## Conclusion
-
-Optimizing Ultralytics YOLO models for latency and throughput with OpenVINO can significantly enhance your application's performance. By carefully applying the strategies outlined in this guide, developers can ensure their models run efficiently, meeting the demands of various deployment scenarios. Remember, the choice between optimizing for latency or throughput depends on your specific application needs and the characteristics of the deployment environment.
-
-For more detailed technical information and the latest updates, refer to the [OpenVINO documentation](https://docs.openvino.ai/latest/index.html) and [Ultralytics YOLO repository](https://github.com/ultralytics/ultralytics). These resources provide in-depth guides, tutorials, and community support to help you get the most out of your deep learning models.
-
----
-
-Ensuring your models achieve optimal performance is not just about tweaking configurations; it's about understanding your application's needs and making informed decisions. Whether you're optimizing for real-time responses or maximizing throughput for large-scale processing, the combination of Ultralytics YOLO models and OpenVINO offers a powerful toolkit for developers to deploy high-performance AI solutions.
diff --git a/ultralytics-main/docs/en/guides/raspberry-pi.md b/ultralytics-main/docs/en/guides/raspberry-pi.md
deleted file mode 100644
index 15c37fc..0000000
--- a/ultralytics-main/docs/en/guides/raspberry-pi.md
+++ /dev/null
@@ -1,196 +0,0 @@
----
-comments: true
-description: Quick start guide to setting up YOLO on a Raspberry Pi with a Pi Camera using the libcamera stack. Detailed comparison between Raspberry Pi 3, 4 and 5 models.
-keywords: Ultralytics, YOLO, Raspberry Pi, Pi Camera, libcamera, quick start guide, Raspberry Pi 4 vs Raspberry Pi 5, YOLO on Raspberry Pi, hardware setup, machine learning, AI
----
-
-# Quick Start Guide: Raspberry Pi and Pi Camera with YOLOv5 and YOLOv8
-
-This comprehensive guide aims to expedite your journey with YOLO object detection models on a [Raspberry Pi](https://www.raspberrypi.com/) using a [Pi Camera](https://www.raspberrypi.com/products/camera-module-v2/). Whether you're a student, hobbyist, or a professional, this guide is designed to get you up and running in less than 30 minutes. The instructions here are rigorously tested to minimize setup issues, allowing you to focus on utilizing YOLO for your specific projects.
-
-
-
-
-
- Watch: Raspberry Pi 5 updates and improvements.
-
-
-## Prerequisites
-
-- Raspberry Pi 3, 4 or 5
-- Pi Camera
-- 64-bit Raspberry Pi Operating System
-
-Connect the Pi Camera to your Raspberry Pi via a CSI cable and install the 64-bit Raspberry Pi Operating System. Verify your camera with the following command:
-
-```bash
-libcamera-hello
-```
-
-You should see a video feed from your camera.
-
-## Choose Your YOLO Version: YOLOv5 or YOLOv8
-
-This guide offers you the flexibility to start with either [YOLOv5](https://github.com/ultralytics/yolov5) or [YOLOv8](https://github.com/ultralytics/ultralytics). Both versions have their unique advantages and use-cases. The choice is yours, but remember, the guide's aim is not just quick setup but also a robust foundation for your future work in object detection.
-
-## Hardware Specifics: At a Glance
-
-To assist you in making an informed hardware decision, we've summarized the key hardware specifics of Raspberry Pi 3, 4, and 5 in the table below:
-
-| Feature | Raspberry Pi 3 | Raspberry Pi 4 | Raspberry Pi 5 |
-|----------------------------|------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|----------------------------------------------------------------------|
-| **CPU** | 1.2GHz Quad-Core ARM Cortex-A53 | 1.5GHz Quad-core 64-bit ARM Cortex-A72 | 2.4GHz Quad-core 64-bit Arm Cortex-A76 |
-| **RAM** | 1GB LPDDR2 | 2GB, 4GB or 8GB LPDDR4 | *Details not yet available* |
-| **USB Ports** | 4 x USB 2.0 | 2 x USB 2.0, 2 x USB 3.0 | 2 x USB 3.0, 2 x USB 2.0 |
-| **Network** | Ethernet & Wi-Fi 802.11n | Gigabit Ethernet & Wi-Fi 802.11ac | Gigabit Ethernet with PoE+ support, Dual-band 802.11ac Wi-Fi® |
-| **Performance** | Slower, may require lighter YOLO models | Faster, can run complex YOLO models | *Details not yet available* |
-| **Power Requirement** | 2.5A power supply | 3.0A USB-C power supply | *Details not yet available* |
-| **Official Documentation** | [Link](https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2837/README.md) | [Link](https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711/README.md) | [Link](https://www.raspberrypi.com/news/introducing-raspberry-pi-5/) |
-
-Please make sure to follow the instructions specific to your Raspberry Pi model to ensure a smooth setup process.
-
-## Quick Start with YOLOv5
-
-This section outlines how to set up YOLOv5 on a Raspberry Pi with a Pi Camera. These steps are designed to be compatible with the libcamera camera stack introduced in Raspberry Pi OS Bullseye.
-
-### Install Necessary Packages
-
-1. Update the Raspberry Pi:
-
- ```bash
- sudo apt-get update
- sudo apt-get upgrade -y
- sudo apt-get autoremove -y
- ```
-
-2. Clone the YOLOv5 repository:
-
- ```bash
- cd ~
- git clone https://github.com/Ultralytics/yolov5.git
- ```
-
-3. Install the required dependencies:
-
- ```bash
- cd ~/yolov5
- pip3 install -r requirements.txt
- ```
-
-4. For Raspberry Pi 3, install compatible versions of PyTorch and Torchvision (skip for Raspberry Pi 4):
-
- ```bash
- pip3 uninstall torch torchvision
- pip3 install torch==1.11.0 torchvision==0.12.0
- ```
-
-### Modify `detect.py`
-
-To enable TCP streams via SSH or the CLI, minor modifications are needed in `detect.py`.
-
-1. Open `detect.py`:
-
- ```bash
- sudo nano ~/yolov5/detect.py
- ```
-
-2. Find and modify the `is_url` line to accept TCP streams:
-
- ```python
- is_url = source.lower().startswith(('rtsp://', 'rtmp://', 'http://', 'https://', 'tcp://'))
- ```
-
-3. Comment out the `view_img` line:
-
- ```python
- # view_img = check_imshow(warn=True)
- ```
-
-4. Save and exit:
-
- ```bash
- CTRL + O -> ENTER -> CTRL + X
- ```
-
-### Initiate TCP Stream with Libcamera
-
-1. Start the TCP stream:
-
- ```bash
- libcamera-vid -n -t 0 --width 1280 --height 960 --framerate 1 --inline --listen -o tcp://127.0.0.1:8888
- ```
-
-Keep this terminal session running for the next steps.
-
-### Perform YOLOv5 Inference
-
-1. Run the YOLOv5 detection:
-
- ```bash
- cd ~/yolov5
- python3 detect.py --source=tcp://127.0.0.1:8888
- ```
-
-## Quick Start with YOLOv8
-
-Follow this section if you are interested in setting up YOLOv8 instead. The steps are quite similar but are tailored for YOLOv8's specific needs.
-
-### Install Necessary Packages
-
-1. Update the Raspberry Pi:
-
- ```bash
- sudo apt-get update
- sudo apt-get upgrade -y
- sudo apt-get autoremove -y
- ```
-
-2. Install the `ultralytics` Python package:
-
- ```bash
- pip3 install ultralytics
- ```
-
-3. Reboot:
-
- ```bash
- sudo reboot
- ```
-
-### Initiate TCP Stream with Libcamera
-
-1. Start the TCP stream:
-
- ```bash
- libcamera-vid -n -t 0 --width 1280 --height 960 --framerate 1 --inline --listen -o tcp://127.0.0.1:8888
- ```
-
-### Perform YOLOv8 Inference
-
-To perform inference with YOLOv8, you can use the following Python code snippet:
-
-```python
-from ultralytics import YOLO
-
-model = YOLO('yolov8n.pt')
-results = model('tcp://127.0.0.1:8888', stream=True)
-
-while True:
- for result in results:
- boxes = result.boxes
- probs = result.probs
-```
-
-## Next Steps
-
-Congratulations on successfully setting up YOLO on your Raspberry Pi! For further learning and support, visit [Ultralytics](https://ultralytics.com/) and [Kashmir World Foundation](https://www.kashmirworldfoundation.org/).
-
-## Acknowledgements and Citations
-
-This guide was initially created by Daan Eeltink for Kashmir World Foundation, an organization dedicated to the use of YOLO for the conservation of endangered species. We acknowledge their pioneering work and educational focus in the realm of object detection technologies.
-
-For more information about Kashmir World Foundation's activities, you can visit their [website](https://www.kashmirworldfoundation.org/).
diff --git a/ultralytics-main/docs/en/guides/region-counting.md b/ultralytics-main/docs/en/guides/region-counting.md
deleted file mode 100644
index 7a922eb..0000000
--- a/ultralytics-main/docs/en/guides/region-counting.md
+++ /dev/null
@@ -1,86 +0,0 @@
----
-comments: true
-description: Object Counting in Different Region using Ultralytics YOLOv8
-keywords: Ultralytics, YOLOv8, Object Detection, Object Counting, Object Tracking, Notebook, IPython Kernel, CLI, Python SDK
----
-
-# Object Counting in Different Regions using Ultralytics YOLOv8 🚀
-
-## What is Object Counting in Regions?
-
-[Object counting](https://docs.ultralytics.com/guides/object-counting/) in regions with [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics/) involves precisely determining the number of objects within specified areas using advanced computer vision. This approach is valuable for optimizing processes, enhancing security, and improving efficiency in various applications.
-
-
-
-
-
- Watch: Ultralytics YOLOv8 Object Counting in Multiple & Movable Regions
-
-
-## Advantages of Object Counting in Regions?
-
-- **Precision and Accuracy:** Object counting in regions with advanced computer vision ensures precise and accurate counts, minimizing errors often associated with manual counting.
-- **Efficiency Improvement:** Automated object counting enhances operational efficiency, providing real-time results and streamlining processes across different applications.
-- **Versatility and Application:** The versatility of object counting in regions makes it applicable across various domains, from manufacturing and surveillance to traffic monitoring, contributing to its widespread utility and effectiveness.
-
-## Real World Applications
-
-| Retail | Market Streets |
-|:------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------:|
-| ![People Counting in Different Region using Ultralytics YOLOv8](https://github.com/RizwanMunawar/ultralytics/assets/62513924/5ab3bbd7-fd12-4849-928e-5f294d6c3fcf) | ![Crowd Counting in Different Region using Ultralytics YOLOv8](https://github.com/RizwanMunawar/ultralytics/assets/62513924/e7c1aea7-474d-4d78-8d48-b50854ffe1ca) |
-| People Counting in Different Region using Ultralytics YOLOv8 | Crowd Counting in Different Region using Ultralytics YOLOv8 |
-
-## Steps to Run
-
-### Step 1: Install Required Libraries
-
-Begin by cloning the Ultralytics repository, installing dependencies, and navigating to the local directory using the provided commands in Step 2.
-
-```bash
-# Clone Ultralytics repo
-git clone https://github.com/ultralytics/ultralytics
-
-# Navigate to the local directory
-cd ultralytics/examples/YOLOv8-Region-Counter
-```
-
-### Step 2: Run Region Counting Using Ultralytics YOLOv8
-
-Execute the following basic commands for inference.
-
-???+ tip "Region is Movable"
-
- During video playback, you can interactively move the region within the video by clicking and dragging using the left mouse button.
-
-```bash
-# Save results
-python yolov8_region_counter.py --source "path/to/video.mp4" --save-img
-
-# Run model on CPU
-python yolov8_region_counter.py --source "path/to/video.mp4" --device cpu
-
-# Change model file
-python yolov8_region_counter.py --source "path/to/video.mp4" --weights "path/to/model.pt"
-
-# Detect specific classes (e.g., first and third classes)
-python yolov8_region_counter.py --source "path/to/video.mp4" --classes 0 2
-
-# View results without saving
-python yolov8_region_counter.py --source "path/to/video.mp4" --view-img
-```
-
-### Optional Arguments
-
-| Name | Type | Default | Description |
-|----------------------|--------|--------------|--------------------------------------------|
-| `--source` | `str` | `None` | Path to video file, for webcam 0 |
-| `--line_thickness` | `int` | `2` | Bounding Box thickness |
-| `--save-img` | `bool` | `False` | Save the predicted video/image |
-| `--weights` | `str` | `yolov8n.pt` | Weights file path |
-| `--classes` | `list` | `None` | Detect specific classes i.e. --classes 0 2 |
-| `--region-thickness` | `int` | `2` | Region Box thickness |
-| `--track-thickness` | `int` | `2` | Tracking line thickness |
diff --git a/ultralytics-main/docs/en/guides/sahi-tiled-inference.md b/ultralytics-main/docs/en/guides/sahi-tiled-inference.md
deleted file mode 100644
index 9728703..0000000
--- a/ultralytics-main/docs/en/guides/sahi-tiled-inference.md
+++ /dev/null
@@ -1,185 +0,0 @@
----
-comments: true
-description: A comprehensive guide on how to use YOLOv8 with SAHI for standard and sliced inference in object detection tasks.
-keywords: YOLOv8, SAHI, Sliced Inference, Object Detection, Ultralytics, Large Scale Image Analysis, High-Resolution Imagery
----
-
-# Ultralytics Docs: Using YOLOv8 with SAHI for Sliced Inference
-
-Welcome to the Ultralytics documentation on how to use YOLOv8 with [SAHI](https://github.com/obss/sahi) (Slicing Aided Hyper Inference). This comprehensive guide aims to furnish you with all the essential knowledge you'll need to implement SAHI alongside YOLOv8. We'll deep-dive into what SAHI is, why sliced inference is critical for large-scale applications, and how to integrate these functionalities with YOLOv8 for enhanced object detection performance.
-
-
-
-
-
-## Introduction to SAHI
-
-SAHI (Slicing Aided Hyper Inference) is an innovative library designed to optimize object detection algorithms for large-scale and high-resolution imagery. Its core functionality lies in partitioning images into manageable slices, running object detection on each slice, and then stitching the results back together. SAHI is compatible with a range of object detection models, including the YOLO series, thereby offering flexibility while ensuring optimized use of computational resources.
-
-### Key Features of SAHI
-
-- **Seamless Integration**: SAHI integrates effortlessly with YOLO models, meaning you can start slicing and detecting without a lot of code modification.
-- **Resource Efficiency**: By breaking down large images into smaller parts, SAHI optimizes the memory usage, allowing you to run high-quality detection on hardware with limited resources.
-- **High Accuracy**: SAHI maintains the detection accuracy by employing smart algorithms to merge overlapping detection boxes during the stitching process.
-
-## What is Sliced Inference?
-
-Sliced Inference refers to the practice of subdividing a large or high-resolution image into smaller segments (slices), conducting object detection on these slices, and then recompiling the slices to reconstruct the object locations on the original image. This technique is invaluable in scenarios where computational resources are limited or when working with extremely high-resolution images that could otherwise lead to memory issues.
-
-### Benefits of Sliced Inference
-
-- **Reduced Computational Burden**: Smaller image slices are faster to process, and they consume less memory, enabling smoother operation on lower-end hardware.
-
-- **Preserved Detection Quality**: Since each slice is treated independently, there is no reduction in the quality of object detection, provided the slices are large enough to capture the objects of interest.
-
-- **Enhanced Scalability**: The technique allows for object detection to be more easily scaled across different sizes and resolutions of images, making it ideal for a wide range of applications from satellite imagery to medical diagnostics.
-
-
-
-
YOLOv8 without SAHI
-
YOLOv8 with SAHI
-
-
-
-
-
-
-
-## Installation and Preparation
-
-### Installation
-
-To get started, install the latest versions of SAHI and Ultralytics:
-
-```bash
-pip install -U ultralytics sahi
-```
-
-### Import Modules and Download Resources
-
-Here's how to import the necessary modules and download a YOLOv8 model and some test images:
-
-```python
-from sahi.utils.yolov8 import download_yolov8s_model
-from sahi import AutoDetectionModel
-from sahi.utils.cv import read_image
-from sahi.utils.file import download_from_url
-from sahi.predict import get_prediction, get_sliced_prediction, predict
-from pathlib import Path
-from IPython.display import Image
-
-# Download YOLOv8 model
-yolov8_model_path = "models/yolov8s.pt"
-download_yolov8s_model(yolov8_model_path)
-
-# Download test images
-download_from_url('https://raw.githubusercontent.com/obss/sahi/main/demo/demo_data/small-vehicles1.jpeg', 'demo_data/small-vehicles1.jpeg')
-download_from_url('https://raw.githubusercontent.com/obss/sahi/main/demo/demo_data/terrain2.png', 'demo_data/terrain2.png')
-```
-
-## Standard Inference with YOLOv8
-
-### Instantiate the Model
-
-You can instantiate a YOLOv8 model for object detection like this:
-
-```python
-detection_model = AutoDetectionModel.from_pretrained(
- model_type='yolov8',
- model_path=yolov8_model_path,
- confidence_threshold=0.3,
- device="cpu", # or 'cuda:0'
-)
-```
-
-### Perform Standard Prediction
-
-Perform standard inference using an image path or a numpy image.
-
-```python
-# With an image path
-result = get_prediction("demo_data/small-vehicles1.jpeg", detection_model)
-
-# With a numpy image
-result = get_prediction(read_image("demo_data/small-vehicles1.jpeg"), detection_model)
-```
-
-### Visualize Results
-
-Export and visualize the predicted bounding boxes and masks:
-
-```python
-result.export_visuals(export_dir="demo_data/")
-Image("demo_data/prediction_visual.png")
-```
-
-## Sliced Inference with YOLOv8
-
-Perform sliced inference by specifying the slice dimensions and overlap ratios:
-
-```python
-result = get_sliced_prediction(
- "demo_data/small-vehicles1.jpeg",
- detection_model,
- slice_height=256,
- slice_width=256,
- overlap_height_ratio=0.2,
- overlap_width_ratio=0.2
-)
-```
-
-## Handling Prediction Results
-
-SAHI provides a `PredictionResult` object, which can be converted into various annotation formats:
-
-```python
-# Access the object prediction list
-object_prediction_list = result.object_prediction_list
-
-# Convert to COCO annotation, COCO prediction, imantics, and fiftyone formats
-result.to_coco_annotations()[:3]
-result.to_coco_predictions(image_id=1)[:3]
-result.to_imantics_annotations()[:3]
-result.to_fiftyone_detections()[:3]
-```
-
-## Batch Prediction
-
-For batch prediction on a directory of images:
-
-```python
-predict(
- model_type="yolov8",
- model_path="path/to/yolov8n.pt",
- model_device="cpu", # or 'cuda:0'
- model_confidence_threshold=0.4,
- source="path/to/dir",
- slice_height=256,
- slice_width=256,
- overlap_height_ratio=0.2,
- overlap_width_ratio=0.2,
-)
-```
-
-That's it! Now you're equipped to use YOLOv8 with SAHI for both standard and sliced inference.
-
-## Citations and Acknowledgments
-
-If you use SAHI in your research or development work, please cite the original SAHI paper and acknowledge the authors:
-
-!!! Quote ""
-
- === "BibTeX"
-
- ```bibtex
- @article{akyon2022sahi,
- title={Slicing Aided Hyper Inference and Fine-tuning for Small Object Detection},
- author={Akyon, Fatih Cagatay and Altinuc, Sinan Onur and Temizel, Alptekin},
- journal={2022 IEEE International Conference on Image Processing (ICIP)},
- doi={10.1109/ICIP46576.2022.9897990},
- pages={966-970},
- year={2022}
- }
- ```
-
-We extend our thanks to the SAHI research group for creating and maintaining this invaluable resource for the computer vision community. For more information about SAHI and its creators, visit the [SAHI GitHub repository](https://github.com/obss/sahi).
diff --git a/ultralytics-main/docs/en/guides/security-alarm-system.md b/ultralytics-main/docs/en/guides/security-alarm-system.md
deleted file mode 100644
index c572822..0000000
--- a/ultralytics-main/docs/en/guides/security-alarm-system.md
+++ /dev/null
@@ -1,166 +0,0 @@
----
-comments: true
-description: Security Alarm System Project Using Ultralytics YOLOv8. Learn How to implement a Security Alarm System Using ultralytics YOLOv8
-keywords: Object Detection, Security Alarm, Object Tracking, YOLOv8, Computer Vision Projects
----
-
-# Security Alarm System Project Using Ultralytics YOLOv8
-
-
-
-The Security Alarm System Project utilizing Ultralytics YOLOv8 integrates advanced computer vision capabilities to enhance security measures. YOLOv8, developed by Ultralytics, provides real-time object detection, allowing the system to identify and respond to potential security threats promptly. This project offers several advantages:
-
-- **Real-time Detection:** YOLOv8's efficiency enables the Security Alarm System to detect and respond to security incidents in real-time, minimizing response time.
-- **Accuracy:** YOLOv8 is known for its accuracy in object detection, reducing false positives and enhancing the reliability of the security alarm system.
-- **Integration Capabilities:** The project can be seamlessly integrated with existing security infrastructure, providing an upgraded layer of intelligent surveillance.
-
-
-
-
-
- Watch: Security Alarm System Project with Ultralytics YOLOv8 Object Detection
-
-
-### Code
-
-#### Import Libraries
-
-```python
-import torch
-import numpy as np
-import cv2
-from time import time
-from ultralytics import YOLO
-from ultralytics.utils.plotting import Annotator, colors
-import smtplib
-from email.mime.multipart import MIMEMultipart
-from email.mime.text import MIMEText
-```
-
-#### Set up the parameters of the message
-
-???+ tip "Note"
-
- App Password Generation is necessary
-
-- Navigate to [App Password Generator](https://myaccount.google.com/apppasswords), designate an app name such as "security project," and obtain a 16-digit password. Copy this password and paste it into the designated password field as instructed.
-
-```python
-password = ""
-from_email = "" # must match the email used to generate the password
-to_email = "" # receiver email
-```
-
-#### Server creation and authentication
-
-```python
-server = smtplib.SMTP('smtp.gmail.com: 587')
-server.starttls()
-server.login(from_email, password)
-```
-
-#### Email Send Function
-
-```python
-def send_email(to_email, from_email, object_detected=1):
- message = MIMEMultipart()
- message['From'] = from_email
- message['To'] = to_email
- message['Subject'] = "Security Alert"
- # Add in the message body
- message_body = f'ALERT - {object_detected} objects has been detected!!'
-
- message.attach(MIMEText(message_body, 'plain'))
- server.sendmail(from_email, to_email, message.as_string())
-```
-
-#### Object Detection and Alert Sender
-
-```python
-class ObjectDetection:
- def __init__(self, capture_index):
- # default parameters
- self.capture_index = capture_index
- self.email_sent = False
-
- # model information
- self.model = YOLO("yolov8n.pt")
-
- # visual information
- self.annotator = None
- self.start_time = 0
- self.end_time = 0
-
- # device information
- self.device = 'cuda' if torch.cuda.is_available() else 'cpu'
-
- def predict(self, im0):
- results = self.model(im0)
- return results
-
- def display_fps(self, im0):
- self.end_time = time()
- fps = 1 / np.round(self.end_time - self.start_time, 2)
- text = f'FPS: {int(fps)}'
- text_size = cv2.getTextSize(text, cv2.FONT_HERSHEY_SIMPLEX, 1.0, 2)[0]
- gap = 10
- cv2.rectangle(im0, (20 - gap, 70 - text_size[1] - gap), (20 + text_size[0] + gap, 70 + gap), (255, 255, 255), -1)
- cv2.putText(im0, text, (20, 70), cv2.FONT_HERSHEY_SIMPLEX, 1.0, (0, 0, 0), 2)
-
- def plot_bboxes(self, results, im0):
- class_ids = []
- self.annotator = Annotator(im0, 3, results[0].names)
- boxes = results[0].boxes.xyxy.cpu()
- clss = results[0].boxes.cls.cpu().tolist()
- names = results[0].names
- for box, cls in zip(boxes, clss):
- class_ids.append(cls)
- self.annotator.box_label(box, label=names[int(cls)], color=colors(int(cls), True))
- return im0, class_ids
-
- def __call__(self):
- cap = cv2.VideoCapture(self.capture_index)
- assert cap.isOpened()
- cap.set(cv2.CAP_PROP_FRAME_WIDTH, 640)
- cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480)
- frame_count = 0
- while True:
- self.start_time = time()
- ret, im0 = cap.read()
- assert ret
- results = self.predict(im0)
- im0, class_ids = self.plot_bboxes(results, im0)
-
- if len(class_ids) > 0: # Only send email If not sent before
- if not self.email_sent:
- send_email(to_email, from_email, len(class_ids))
- self.email_sent = True
- else:
- self.email_sent = False
-
- self.display_fps(im0)
- cv2.imshow('YOLOv8 Detection', im0)
- frame_count += 1
- if cv2.waitKey(5) & 0xFF == 27:
- break
- cap.release()
- cv2.destroyAllWindows()
- server.quit()
-```
-
-#### Call the Object Detection class and Run the Inference
-
-```python
-detector = ObjectDetection(capture_index=0)
-detector()
-```
-
-That's it! When you execute the code, you'll receive a single notification on your email if any object is detected. The notification is sent immediately, not repeatedly. However, feel free to customize the code to suit your project requirements.
-
-#### Email Received Sample
-
-
diff --git a/ultralytics-main/docs/en/guides/speed-estimation.md b/ultralytics-main/docs/en/guides/speed-estimation.md
deleted file mode 100644
index de3f527..0000000
--- a/ultralytics-main/docs/en/guides/speed-estimation.md
+++ /dev/null
@@ -1,110 +0,0 @@
----
-comments: true
-description: Speed Estimation Using Ultralytics YOLOv8
-keywords: Ultralytics, YOLOv8, Object Detection, Speed Estimation, Object Tracking, Notebook, IPython Kernel, CLI, Python SDK
----
-
-# Speed Estimation using Ultralytics YOLOv8 🚀
-
-## What is Speed Estimation?
-
-Speed estimation is the process of calculating the rate of movement of an object within a given context, often employed in computer vision applications. Using [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics/) you can now calculate the speed of object using [object tracking](https://docs.ultralytics.com/modes/track/) alongside distance and time data, crucial for tasks like traffic and surveillance. The accuracy of speed estimation directly influences the efficiency and reliability of various applications, making it a key component in the advancement of intelligent systems and real-time decision-making processes.
-
-
-
-## Advantages of Speed Estimation?
-
-- **Efficient Traffic Control:** Accurate speed estimation aids in managing traffic flow, enhancing safety, and reducing congestion on roadways.
-- **Precise Autonomous Navigation:** In autonomous systems like self-driving cars, reliable speed estimation ensures safe and accurate vehicle navigation.
-- **Enhanced Surveillance Security:** Speed estimation in surveillance analytics helps identify unusual behaviors or potential threats, improving the effectiveness of security measures.
-
-## Real World Applications
-
-| Transportation | Transportation |
-|:-------------------------------------------------------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------:|
-| ![Speed Estimation on Road using Ultralytics YOLOv8](https://github.com/RizwanMunawar/ultralytics/assets/62513924/c8a0fd4a-d394-436d-8de3-d5b754755fc7) | ![Speed Estimation on Bridge using Ultralytics YOLOv8](https://github.com/RizwanMunawar/ultralytics/assets/62513924/cee10e02-b268-4304-b73a-5b9cb42da669) |
-| Speed Estimation on Road using Ultralytics YOLOv8 | Speed Estimation on Bridge using Ultralytics YOLOv8 |
-
-!!! Example "Speed Estimation using YOLOv8 Example"
-
- === "Speed Estimation"
-
- ```python
- from ultralytics import YOLO
- from ultralytics.solutions import speed_estimation
- import cv2
-
- model = YOLO("yolov8n.pt")
- names = model.model.names
-
- cap = cv2.VideoCapture("path/to/video/file.mp4")
- assert cap.isOpened(), "Error reading video file"
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- # Video writer
- video_writer = cv2.VideoWriter("speed_estimation.avi",
- cv2.VideoWriter_fourcc(*'mp4v'),
- fps,
- (w, h))
-
- line_pts = [(0, 360), (1280, 360)]
-
- # Init speed-estimation obj
- speed_obj = speed_estimation.SpeedEstimator()
- speed_obj.set_args(reg_pts=line_pts,
- names=names,
- view_img=True)
-
- while cap.isOpened():
-
- success, im0 = cap.read()
- if not success:
- print("Video frame is empty or video processing has been successfully completed.")
- break
-
- tracks = model.track(im0, persist=True, show=False)
-
- im0 = speed_obj.estimate_speed(im0, tracks)
- video_writer.write(im0)
-
- cap.release()
- video_writer.release()
- cv2.destroyAllWindows()
-
- ```
-
-???+ warning "Speed is Estimate"
-
- Speed will be an estimate and may not be completely accurate. Additionally, the estimation can vary depending on GPU speed.
-
-### Optional Arguments `set_args`
-
-| Name | Type | Default | Description |
-|--------------------|--------|----------------------------|---------------------------------------------------|
-| `reg_pts` | `list` | `[(20, 400), (1260, 400)]` | Points defining the Region Area |
-| `names` | `dict` | `None` | Classes names |
-| `view_img` | `bool` | `False` | Display frames with counts |
-| `line_thickness` | `int` | `2` | Increase bounding boxes thickness |
-| `region_thickness` | `int` | `5` | Thickness for object counter region or line |
-| `spdl_dist_thresh` | `int` | `10` | Euclidean Distance threshold for speed check line |
-
-### Arguments `model.track`
-
-| Name | Type | Default | Description |
-|-----------|---------|----------------|-------------------------------------------------------------|
-| `source` | `im0` | `None` | source directory for images or videos |
-| `persist` | `bool` | `False` | persisting tracks between frames |
-| `tracker` | `str` | `botsort.yaml` | Tracking method 'bytetrack' or 'botsort' |
-| `conf` | `float` | `0.3` | Confidence Threshold |
-| `iou` | `float` | `0.5` | IOU Threshold |
-| `classes` | `list` | `None` | filter results by class, i.e. classes=0, or classes=[0,2,3] |
-| `verbose` | `bool` | `True` | Display the object tracking results |
diff --git a/ultralytics-main/docs/en/guides/triton-inference-server.md b/ultralytics-main/docs/en/guides/triton-inference-server.md
deleted file mode 100644
index 6f3b1d2..0000000
--- a/ultralytics-main/docs/en/guides/triton-inference-server.md
+++ /dev/null
@@ -1,137 +0,0 @@
----
-comments: true
-description: A step-by-step guide on integrating Ultralytics YOLOv8 with Triton Inference Server for scalable and high-performance deep learning inference deployments.
-keywords: YOLOv8, Triton Inference Server, ONNX, Deep Learning Deployment, Scalable Inference, Ultralytics, NVIDIA, Object Detection, Cloud Inference
----
-
-# Triton Inference Server with Ultralytics YOLOv8
-
-The [Triton Inference Server](https://developer.nvidia.com/nvidia-triton-inference-server) (formerly known as TensorRT Inference Server) is an open-source software solution developed by NVIDIA. It provides a cloud inference solution optimized for NVIDIA GPUs. Triton simplifies the deployment of AI models at scale in production. Integrating Ultralytics YOLOv8 with Triton Inference Server allows you to deploy scalable, high-performance deep learning inference workloads. This guide provides steps to set up and test the integration.
-
-
-
-
-
- Watch: Getting Started with NVIDIA Triton Inference Server.
-
-
-## What is Triton Inference Server?
-
-Triton Inference Server is designed to deploy a variety of AI models in production. It supports a wide range of deep learning and machine learning frameworks, including TensorFlow, PyTorch, ONNX Runtime, and many others. Its primary use cases are:
-
-- Serving multiple models from a single server instance.
-- Dynamic model loading and unloading without server restart.
-- Ensemble inference, allowing multiple models to be used together to achieve results.
-- Model versioning for A/B testing and rolling updates.
-
-## Prerequisites
-
-Ensure you have the following prerequisites before proceeding:
-
-- Docker installed on your machine.
-- Install `tritonclient`:
- ```bash
- pip install tritonclient[all]
- ```
-
-## Exporting YOLOv8 to ONNX Format
-
-Before deploying the model on Triton, it must be exported to the ONNX format. ONNX (Open Neural Network Exchange) is a format that allows models to be transferred between different deep learning frameworks. Use the `export` function from the `YOLO` class:
-
-```python
-from ultralytics import YOLO
-
-# Load a model
-model = YOLO('yolov8n.pt') # load an official model
-
-# Export the model
-onnx_file = model.export(format='onnx', dynamic=True)
-```
-
-## Setting Up Triton Model Repository
-
-The Triton Model Repository is a storage location where Triton can access and load models.
-
-1. Create the necessary directory structure:
-
- ```python
- from pathlib import Path
-
- # Define paths
- triton_repo_path = Path('tmp') / 'triton_repo'
- triton_model_path = triton_repo_path / 'yolo'
-
- # Create directories
- (triton_model_path / '1').mkdir(parents=True, exist_ok=True)
- ```
-
-2. Move the exported ONNX model to the Triton repository:
-
- ```python
- from pathlib import Path
-
- # Move ONNX model to Triton Model path
- Path(onnx_file).rename(triton_model_path / '1' / 'model.onnx')
-
- # Create config file
- (triton_model_path / 'config.pbtxt').touch()
- ```
-
-## Running Triton Inference Server
-
-Run the Triton Inference Server using Docker:
-
-```python
-import subprocess
-import time
-
-from tritonclient.http import InferenceServerClient
-
-# Define image https://catalog.ngc.nvidia.com/orgs/nvidia/containers/tritonserver
-tag = 'nvcr.io/nvidia/tritonserver:23.09-py3' # 6.4 GB
-
-# Pull the image
-subprocess.call(f'docker pull {tag}', shell=True)
-
-# Run the Triton server and capture the container ID
-container_id = subprocess.check_output(
- f'docker run -d --rm -v {triton_repo_path}:/models -p 8000:8000 {tag} tritonserver --model-repository=/models',
- shell=True).decode('utf-8').strip()
-
-# Wait for the Triton server to start
-triton_client = InferenceServerClient(url='localhost:8000', verbose=False, ssl=False)
-
-# Wait until model is ready
-for _ in range(10):
- with contextlib.suppress(Exception):
- assert triton_client.is_model_ready(model_name)
- break
- time.sleep(1)
-```
-
-Then run inference using the Triton Server model:
-
-```python
-from ultralytics import YOLO
-
-# Load the Triton Server model
-model = YOLO(f'http://localhost:8000/yolo', task='detect')
-
-# Run inference on the server
-results = model('path/to/image.jpg')
-```
-
-Cleanup the container:
-
-```python
-# Kill and remove the container at the end of the test
-subprocess.call(f'docker kill {container_id}', shell=True)
-```
-
----
-
-By following the above steps, you can deploy and run Ultralytics YOLOv8 models efficiently on Triton Inference Server, providing a scalable and high-performance solution for deep learning inference tasks. If you face any issues or have further queries, refer to the [official Triton documentation](https://docs.nvidia.com/deeplearning/triton-inference-server/user-guide/docs/index.html) or reach out to the Ultralytics community for support.
diff --git a/ultralytics-main/docs/en/guides/view-results-in-terminal.md b/ultralytics-main/docs/en/guides/view-results-in-terminal.md
deleted file mode 100644
index d0a00bb..0000000
--- a/ultralytics-main/docs/en/guides/view-results-in-terminal.md
+++ /dev/null
@@ -1,146 +0,0 @@
----
-comments: true
-description: Learn how to view image results inside a compatible VSCode terminal.
-keywords: YOLOv8, VSCode, Terminal, Remote Development, Ultralytics, SSH, Object Detection, Inference, Results, Remote Tunnel, Images, Helpful, Productivity Hack
----
-
-# Viewing Inference Results in a Terminal
-
-
-
-
-
-Image from the the [libsixel](https://saitoha.github.io/libsixel/) website.
-
-## Motivation
-
-When connecting to a remote machine, normally visualizing image results is not possible or requires moving data to a local device with a GUI. The VSCode integrated terminal allows for directly rendering images. This is a short demonstration on how to use this in conjunction with `ultralytics` with [prediction results](../modes/predict.md).
-
-!!! warning
-
- Only compatible with Linux and MacOS. Check the VSCode [repository](https://github.com/microsoft/vscode), check [Issue status](https://github.com/microsoft/vscode/issues/198622), or [documentation](https://code.visualstudio.com/docs) for updates about Windows support to view images in terminal with `sixel`.
-
-The VSCode compatible protocols for viewing images using the integrated terminal are [`sixel`](https://en.wikipedia.org/wiki/Sixel) and [`iTerm`](https://iterm2.com/documentation-images.html). This guide will demonstrate use of the `sixel` protocol.
-
-## Process
-
-1. First, you must enable settings `terminal.integrated.enableImages` and `terminal.integrated.gpuAcceleration` in VSCode.
-
- ```yaml
- "terminal.integrated.gpuAcceleration": "auto" # "auto" is default, can also use "on"
- "terminal.integrated.enableImages": false
- ```
-
-
-
-
-
-1. Install the `python-sixel` library in your virtual environment. This is a [fork](https://github.com/lubosz/python-sixel?tab=readme-ov-file) of the `PySixel` library, which is no longer maintained.
-
- ```bash
- pip install sixel
- ```
-
-1. Import the relevant libraries
-
- ```py
- import io
-
- import cv2 as cv
-
- from ultralytics import YOLO
- from sixel import SixelWriter
- ```
-
-1. Load a model and execute inference, then plot the results and store in a variable. See more about inference arguments and working with results on the [predict mode](../modes/predict.md) page.
-
- ```{ .py .annotate }
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO("yolov8n.pt")
-
- # Run inference on an image
- results = model.predict(source="ultralytics/assets/bus.jpg")
-
- # Plot inference results
- plot = results[0].plot() #(1)!
- ```
-
- 1. See [plot method parameters](../modes/predict.md#plot-method-parameters) to see possible arguments to use.
-
-1. Now, use OpenCV to convert the `numpy.ndarray` to `bytes` data. Then use `io.BytesIO` to make a "file-like" object.
-
- ```{ .py .annotate }
- # Results image as bytes
- im_bytes = cv.imencode(
- ".png", #(1)!
- plot,
- )[1].tobytes() #(2)!
-
- # Image bytes as a file-like object
- mem_file = io.BytesIO(im_bytes)
- ```
-
- 1. It's possible to use other image extensions as well.
- 2. Only the object at index `1` that is returned is needed.
-
-1. Create a `SixelWriter` instance, and then use the `.draw()` method to draw the image in the terminal.
-
- ```py
- # Create sixel writer object
- w = SixelWriter()
-
- # Draw the sixel image in the terminal
- w.draw(mem_file)
- ```
-
-## Example Inference Results
-
-
-
-
-
-!!! danger
-
- Using this example with videos or animated GIF frames has **not** been tested. Attempt at your own risk.
-
-## Full Code Example
-
-```{ .py .annotate }
-import io
-
-import cv2 as cv
-
-from ultralytics import YOLO
-from sixel import SixelWriter
-
-# Load a model
-model = YOLO("yolov8n.pt")
-
-# Run inference on an image
-results = model.predict(source="ultralytics/assets/bus.jpg")
-
-# Plot inference results
-plot = results[0].plot() #(3)!
-
-# Results image as bytes
-im_bytes = cv.imencode(
- ".png", #(1)!
- plot,
- )[1].tobytes() #(2)!
-
-mem_file = io.BytesIO(im_bytes)
-w = SixelWriter()
-w.draw(mem_file)
-```
-
-1. It's possible to use other image extensions as well.
-2. Only the object at index `1` that is returned is needed.
-3. See [plot method parameters](../modes/predict.md#plot-method-parameters) to see possible arguments to use.
-
----
-
-!!! tip
-
- You may need to use `clear` to "erase" the view of the image in the terminal.
diff --git a/ultralytics-main/docs/en/guides/vision-eye.md b/ultralytics-main/docs/en/guides/vision-eye.md
deleted file mode 100644
index 3001772..0000000
--- a/ultralytics-main/docs/en/guides/vision-eye.md
+++ /dev/null
@@ -1,177 +0,0 @@
----
-comments: true
-description: VisionEye View Object Mapping using Ultralytics YOLOv8
-keywords: Ultralytics, YOLOv8, Object Detection, Object Tracking, IDetection, VisionEye, Computer Vision, Notebook, IPython Kernel, CLI, Python SDK
----
-
-# VisionEye View Object Mapping using Ultralytics YOLOv8 🚀
-
-## What is VisionEye Object Mapping?
-
-[Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics/) VisionEye offers the capability for computers to identify and pinpoint objects, simulating the observational precision of the human eye. This functionality enables computers to discern and focus on specific objects, much like the way the human eye observes details from a particular viewpoint.
-
-## Samples
-
-| VisionEye View | VisionEye View With Object Tracking | VisionEye View With Distance Calculation |
-|:------------------------------------------------------------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
-| ![VisionEye View Object Mapping using Ultralytics YOLOv8](https://github.com/RizwanMunawar/ultralytics/assets/62513924/7d593acc-2e37-41b0-ad0e-92b4ffae6647) | ![VisionEye View Object Mapping with Object Tracking using Ultralytics YOLOv8](https://github.com/RizwanMunawar/ultralytics/assets/62513924/fcd85952-390f-451e-8fb0-b82e943af89c) | ![VisionEye View with Distance Calculation using Ultralytics YOLOv8](https://github.com/RizwanMunawar/RizwanMunawar/assets/62513924/18c4dafe-a22e-4fa9-a7d4-2bb293562a95) |
-| VisionEye View Object Mapping using Ultralytics YOLOv8 | VisionEye View Object Mapping with Object Tracking using Ultralytics YOLOv8 | VisionEye View with Distance Calculation using Ultralytics YOLOv8 |
-
-!!! Example "VisionEye Object Mapping using YOLOv8"
-
- === "VisionEye Object Mapping"
-
- ```python
- import cv2
- from ultralytics import YOLO
- from ultralytics.utils.plotting import colors, Annotator
-
- model = YOLO("yolov8n.pt")
- names = model.model.names
- cap = cv2.VideoCapture("path/to/video/file.mp4")
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- out = cv2.VideoWriter('visioneye-pinpoint.avi', cv2.VideoWriter_fourcc(*'MJPG'), fps, (w, h))
-
- center_point = (-10, h)
-
- while True:
- ret, im0 = cap.read()
- if not ret:
- print("Video frame is empty or video processing has been successfully completed.")
- break
-
- results = model.predict(im0)
- boxes = results[0].boxes.xyxy.cpu()
- clss = results[0].boxes.cls.cpu().tolist()
-
- annotator = Annotator(im0, line_width=2)
-
- for box, cls in zip(boxes, clss):
- annotator.box_label(box, label=names[int(cls)], color=colors(int(cls)))
- annotator.visioneye(box, center_point)
-
- out.write(im0)
- cv2.imshow("visioneye-pinpoint", im0)
-
- if cv2.waitKey(1) & 0xFF == ord('q'):
- break
-
- out.release()
- cap.release()
- cv2.destroyAllWindows()
- ```
-
- === "VisionEye Object Mapping with Object Tracking"
-
- ```python
- import cv2
- from ultralytics import YOLO
- from ultralytics.utils.plotting import colors, Annotator
-
- model = YOLO("yolov8n.pt")
- cap = cv2.VideoCapture("path/to/video/file.mp4")
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- out = cv2.VideoWriter('visioneye-pinpoint.avi', cv2.VideoWriter_fourcc(*'MJPG'), fps, (w, h))
-
- center_point = (-10, h)
-
- while True:
- ret, im0 = cap.read()
- if not ret:
- print("Video frame is empty or video processing has been successfully completed.")
- break
-
- annotator = Annotator(im0, line_width=2)
-
- results = model.track(im0, persist=True)
- boxes = results[0].boxes.xyxy.cpu()
-
- if results[0].boxes.id is not None:
- track_ids = results[0].boxes.id.int().cpu().tolist()
-
- for box, track_id in zip(boxes, track_ids):
- annotator.box_label(box, label=str(track_id), color=colors(int(track_id)))
- annotator.visioneye(box, center_point)
-
- out.write(im0)
- cv2.imshow("visioneye-pinpoint", im0)
-
- if cv2.waitKey(1) & 0xFF == ord('q'):
- break
-
- out.release()
- cap.release()
- cv2.destroyAllWindows()
- ```
-
- === "VisionEye with Distance Calculation"
-
- ```python
- import cv2
- import math
- from ultralytics import YOLO
- from ultralytics.utils.plotting import Annotator, colors
-
- model = YOLO("yolov8s.pt")
- cap = cv2.VideoCapture("Path/to/video/file.mp4")
-
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- out = cv2.VideoWriter('visioneye-distance-calculation.avi', cv2.VideoWriter_fourcc(*'MJPG'), fps, (w, h))
-
- center_point = (0, h)
- pixel_per_meter = 10
-
- txt_color, txt_background, bbox_clr = ((0, 0, 0), (255, 255, 255), (255, 0, 255))
-
- while True:
- ret, im0 = cap.read()
- if not ret:
- print("Video frame is empty or video processing has been successfully completed.")
- break
-
- annotator = Annotator(im0, line_width=2)
-
- results = model.track(im0, persist=True)
- boxes = results[0].boxes.xyxy.cpu()
-
- if results[0].boxes.id is not None:
- track_ids = results[0].boxes.id.int().cpu().tolist()
-
- for box, track_id in zip(boxes, track_ids):
- annotator.box_label(box, label=str(track_id), color=bbox_clr)
- annotator.visioneye(box, center_point)
-
- x1, y1 = int((box[0] + box[2]) // 2), int((box[1] + box[3]) // 2) # Bounding box centroid
-
- distance = (math.sqrt((x1 - center_point[0]) ** 2 + (y1 - center_point[1]) ** 2))/pixel_per_meter
-
- text_size, _ = cv2.getTextSize(f"Distance: {distance:.2f} m", cv2.FONT_HERSHEY_SIMPLEX,1.2, 3)
- cv2.rectangle(im0, (x1, y1 - text_size[1] - 10),(x1 + text_size[0] + 10, y1), txt_background, -1)
- cv2.putText(im0, f"Distance: {distance:.2f} m",(x1, y1 - 5), cv2.FONT_HERSHEY_SIMPLEX, 1.2,txt_color, 3)
-
- out.write(im0)
- cv2.imshow("visioneye-distance-calculation", im0)
-
- if cv2.waitKey(1) & 0xFF == ord('q'):
- break
-
- out.release()
- cap.release()
- cv2.destroyAllWindows()
- ```
-
-### `visioneye` Arguments
-
-| Name | Type | Default | Description |
-|---------------|---------|------------------|--------------------------------------------------|
-| `color` | `tuple` | `(235, 219, 11)` | Line and object centroid color |
-| `pin_color` | `tuple` | `(255, 0, 255)` | VisionEye pinpoint color |
-| `thickness` | `int` | `2` | pinpoint to object line thickness |
-| `pins_radius` | `int` | `10` | Pinpoint and object centroid point circle radius |
-
-## Note
-
-For any inquiries, feel free to post your questions in the [Ultralytics Issue Section](https://github.com/ultralytics/ultralytics/issues/new/choose) or the discussion section mentioned below.
diff --git a/ultralytics-main/docs/en/guides/workouts-monitoring.md b/ultralytics-main/docs/en/guides/workouts-monitoring.md
deleted file mode 100644
index fd4d7e0..0000000
--- a/ultralytics-main/docs/en/guides/workouts-monitoring.md
+++ /dev/null
@@ -1,134 +0,0 @@
----
-comments: true
-description: Workouts Monitoring Using Ultralytics YOLOv8
-keywords: Ultralytics, YOLOv8, Object Detection, Pose Estimation, PushUps, PullUps, Ab workouts, Notebook, IPython Kernel, CLI, Python SDK
----
-
-# Workouts Monitoring using Ultralytics YOLOv8 🚀
-
-Monitoring workouts through pose estimation with [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics/) enhances exercise assessment by accurately tracking key body landmarks and joints in real-time. This technology provides instant feedback on exercise form, tracks workout routines, and measures performance metrics, optimizing training sessions for users and trainers alike.
-
-## Advantages of Workouts Monitoring?
-
-- **Optimized Performance:** Tailoring workouts based on monitoring data for better results.
-- **Goal Achievement:** Track and adjust fitness goals for measurable progress.
-- **Personalization:** Customized workout plans based on individual data for effectiveness.
-- **Health Awareness:** Early detection of patterns indicating health issues or over-training.
-- **Informed Decisions:** Data-driven decisions for adjusting routines and setting realistic goals.
-
-## Real World Applications
-
-| Workouts Monitoring | Workouts Monitoring |
-|:----------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------------------:|
-| ![PushUps Counting](https://github.com/RizwanMunawar/ultralytics/assets/62513924/cf016a41-589f-420f-8a8c-2cc8174a16de) | ![PullUps Counting](https://github.com/RizwanMunawar/ultralytics/assets/62513924/cb20f316-fac2-4330-8445-dcf5ffebe329) |
-| PushUps Counting | PullUps Counting |
-
-!!! Example "Workouts Monitoring Example"
-
- === "Workouts Monitoring"
-
- ```python
- from ultralytics import YOLO
- from ultralytics.solutions import ai_gym
- import cv2
-
- model = YOLO("yolov8n-pose.pt")
- cap = cv2.VideoCapture("path/to/video/file.mp4")
- assert cap.isOpened(), "Error reading video file"
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- gym_object = ai_gym.AIGym() # init AI GYM module
- gym_object.set_args(line_thickness=2,
- view_img=True,
- pose_type="pushup",
- kpts_to_check=[6, 8, 10])
-
- frame_count = 0
- while cap.isOpened():
- success, im0 = cap.read()
- if not success:
- print("Video frame is empty or video processing has been successfully completed.")
- break
- frame_count += 1
- results = model.predict(im0, verbose=False)
- im0 = gym_object.start_counting(im0, results, frame_count)
-
- cv2.destroyAllWindows()
- ```
-
- === "Workouts Monitoring with Save Output"
-
- ```python
- from ultralytics import YOLO
- from ultralytics.solutions import ai_gym
- import cv2
-
- model = YOLO("yolov8n-pose.pt")
- cap = cv2.VideoCapture("path/to/video/file.mp4")
- assert cap.isOpened(), "Error reading video file"
- w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))
-
- video_writer = cv2.VideoWriter("workouts.avi",
- cv2.VideoWriter_fourcc(*'mp4v'),
- fps,
- (w, h))
-
- gym_object = ai_gym.AIGym() # init AI GYM module
- gym_object.set_args(line_thickness=2,
- view_img=True,
- pose_type="pushup",
- kpts_to_check=[6, 8, 10])
-
- frame_count = 0
- while cap.isOpened():
- success, im0 = cap.read()
- if not success:
- print("Video frame is empty or video processing has been successfully completed.")
- break
- frame_count += 1
- results = model.predict(im0, verbose=False)
- im0 = gym_object.start_counting(im0, results, frame_count)
- video_writer.write(im0)
-
- cv2.destroyAllWindows()
- video_writer.release()
- ```
-
-???+ tip "Support"
-
- "pushup", "pullup" and "abworkout" supported
-
-### KeyPoints Map
-
-![keyPoints Order Ultralytics YOLOv8 Pose](https://github.com/ultralytics/ultralytics/assets/62513924/f45d8315-b59f-47b7-b9c8-c61af1ce865b)
-
-### Arguments `set_args`
-
-| Name | Type | Default | Description |
-|-------------------|--------|----------|----------------------------------------------------------------------------------------|
-| `kpts_to_check` | `list` | `None` | List of three keypoints index, for counting specific workout, followed by keypoint Map |
-| `view_img` | `bool` | `False` | Display the frame with counts |
-| `line_thickness` | `int` | `2` | Increase the thickness of count value |
-| `pose_type` | `str` | `pushup` | Pose that need to be monitored, `pullup` and `abworkout` also supported |
-| `pose_up_angle` | `int` | `145` | Pose Up Angle value |
-| `pose_down_angle` | `int` | `90` | Pose Down Angle value |
-
-### Arguments `model.predict`
-
-| Name | Type | Default | Description |
-|-----------------|----------------|------------------------|----------------------------------------------------------------------------|
-| `source` | `str` | `'ultralytics/assets'` | source directory for images or videos |
-| `conf` | `float` | `0.25` | object confidence threshold for detection |
-| `iou` | `float` | `0.7` | intersection over union (IoU) threshold for NMS |
-| `imgsz` | `int or tuple` | `640` | image size as scalar or (h, w) list, i.e. (640, 480) |
-| `half` | `bool` | `False` | use half precision (FP16) |
-| `device` | `None or str` | `None` | device to run on, i.e. cuda device=0/1/2/3 or device=cpu |
-| `max_det` | `int` | `300` | maximum number of detections per image |
-| `vid_stride` | `bool` | `False` | video frame-rate stride |
-| `stream_buffer` | `bool` | `False` | buffer all streaming frames (True) or return the most recent frame (False) |
-| `visualize` | `bool` | `False` | visualize model features |
-| `augment` | `bool` | `False` | apply image augmentation to prediction sources |
-| `agnostic_nms` | `bool` | `False` | class-agnostic NMS |
-| `classes` | `list[int]` | `None` | filter results by class, i.e. classes=0, or classes=[0,2,3] |
-| `retina_masks` | `bool` | `False` | use high-resolution segmentation masks |
-| `embed` | `list[int]` | `None` | return feature vectors/embeddings from given layers |
diff --git a/ultralytics-main/docs/en/guides/yolo-common-issues.md b/ultralytics-main/docs/en/guides/yolo-common-issues.md
deleted file mode 100644
index 71083cf..0000000
--- a/ultralytics-main/docs/en/guides/yolo-common-issues.md
+++ /dev/null
@@ -1,276 +0,0 @@
----
-comments: true
-description: A comprehensive guide to troubleshooting common issues encountered while working with YOLOv8 in the Ultralytics ecosystem.
-keywords: Troubleshooting, Ultralytics, YOLOv8, Installation Errors, Training Data, Model Performance, Hyperparameter Tuning, Deployment
----
-
-# Troubleshooting Common YOLO Issues
-
-
-
-
-
-## Introduction
-
-This guide serves as a comprehensive aid for troubleshooting common issues encountered while working with YOLOv8 on your Ultralytics projects. Navigating through these issues can be a breeze with the right guidance, ensuring your projects remain on track without unnecessary delays.
-
-## Common Issues
-
-### Installation Errors
-
-Installation errors can arise due to various reasons, such as incompatible versions, missing dependencies, or incorrect environment setups. First, check to make sure you are doing the following:
-
-- You're using Python 3.8 or later as recommended.
-
-- Ensure that you have the correct version of PyTorch (1.8 or later) installed.
-
-- Consider using virtual environments to avoid conflicts.
-
-- Follow the [official installation guide](../quickstart.md) step by step.
-
-Additionally, here are some common installation issues users have encountered, along with their respective solutions:
-
-- Import Errors or Dependency Issues - If you're getting errors during the import of YOLOv8, or you're having issues related to dependencies, consider the following troubleshooting steps:
-
- - **Fresh Installation**: Sometimes, starting with a fresh installation can resolve unexpected issues. Especially with libraries like Ultralytics, where updates might introduce changes to the file tree structure or functionalities.
-
- - **Update Regularly**: Ensure you're using the latest version of the library. Older versions might not be compatible with recent updates, leading to potential conflicts or issues.
-
- - **Check Dependencies**: Verify that all required dependencies are correctly installed and are of the compatible versions.
-
- - **Review Changes**: If you initially cloned or installed an older version, be aware that significant updates might affect the library's structure or functionalities. Always refer to the official documentation or changelogs to understand any major changes.
-
- - Remember, keeping your libraries and dependencies up-to-date is crucial for a smooth and error-free experience.
-
-- Running YOLOv8 on GPU - If you're having trouble running YOLOv8 on GPU, consider the following troubleshooting steps:
-
- - **Verify CUDA Compatibility and Installation**: Ensure your GPU is CUDA compatible and that CUDA is correctly installed. Use the `nvidia-smi` command to check the status of your NVIDIA GPU and CUDA version.
-
- - **Check PyTorch and CUDA Integration**: Ensure PyTorch can utilize CUDA by running `import torch; print(torch.cuda.is_available())` in a Python terminal. If it returns 'True', PyTorch is set up to use CUDA.
-
- - **Environment Activation**: Ensure you're in the correct environment where all necessary packages are installed.
-
- - **Update Your Packages**: Outdated packages might not be compatible with your GPU. Keep them updated.
-
- - **Program Configuration**: Check if the program or code specifies GPU usage. In YOLOv8, this might be in the settings or configuration.
-
-### Model Training Issues
-
-This section will address common issues faced while training and their respective explanations and solutions.
-
-#### Verification of Configuration Settings
-
-**Issue**: You are unsure whether the configuration settings in the `.yaml` file are being applied correctly during model training.
-
-**Solution**: The configuration settings in the `.yaml` file should be applied when using the `model.train()` function. To ensure that these settings are correctly applied, follow these steps:
-
-- Confirm that the path to your `.yaml` configuration file is correct.
-- Make sure you pass the path to your `.yaml` file as the `data` argument when calling `model.train()`, as shown below:
-
-```python
-model.train(data='/path/to/your/data.yaml', batch=4)
-```
-
-#### Accelerating Training with Multiple GPUs
-
-**Issue**: Training is slow on a single GPU, and you want to speed up the process using multiple GPUs.
-
-**Solution**: Increasing the batch size can accelerate training, but it's essential to consider GPU memory capacity. To speed up training with multiple GPUs, follow these steps:
-
-- Ensure that you have multiple GPUs available.
-
-- Modify your .yaml configuration file to specify the number of GPUs to use, e.g., gpus: 4.
-
-- Increase the batch size accordingly to fully utilize the multiple GPUs without exceeding memory limits.
-
-- Modify your training command to utilize multiple GPUs:
-
-```python
-# Adjust the batch size and other settings as needed to optimize training speed
-model.train(data='/path/to/your/data.yaml', batch=32, multi_scale=True)
-```
-
-#### Continuous Monitoring Parameters
-
-**Issue**: You want to know which parameters should be continuously monitored during training, apart from loss.
-
-**Solution**: While loss is a crucial metric to monitor, it's also essential to track other metrics for model performance optimization. Some key metrics to monitor during training include:
-
-- Precision
-- Recall
-- Mean Average Precision (mAP)
-
-You can access these metrics from the training logs or by using tools like TensorBoard or wandb for visualization. Implementing early stopping based on these metrics can help you achieve better results.
-
-#### Tools for Tracking Training Progress
-
-**Issue**: You are looking for recommendations on tools to track training progress.
-
-**Solution**: To track and visualize training progress, you can consider using the following tools:
-
-- [TensorBoard](https://www.tensorflow.org/tensorboard): TensorBoard is a popular choice for visualizing training metrics, including loss, accuracy, and more. You can integrate it with your YOLOv8 training process.
-- [Comet](https://bit.ly/yolov8-readme-comet): Comet provides an extensive toolkit for experiment tracking and comparison. It allows you to track metrics, hyperparameters, and even model weights. Integration with YOLO models is also straightforward, providing you with a complete overview of your experiment cycle.
-- [Ultralytics HUB](https://hub.ultralytics.com): Ultralytics HUB offers a specialized environment for tracking YOLO models, giving you a one-stop platform to manage metrics, datasets, and even collaborate with your team. Given its tailored focus on YOLO, it offers more customized tracking options.
-
-Each of these tools offers its own set of advantages, so you may want to consider the specific needs of your project when making a choice.
-
-#### How to Check if Training is Happening on the GPU
-
-**Issue**: The 'device' value in the training logs is 'null,' and you're unsure if training is happening on the GPU.
-
-**Solution**: The 'device' value being 'null' typically means that the training process is set to automatically use an available GPU, which is the default behavior. To ensure training occurs on a specific GPU, you can manually set the 'device' value to the GPU index (e.g., '0' for the first GPU) in your .yaml configuration file:
-
-```yaml
-device: 0
-```
-
-This will explicitly assign the training process to the specified GPU. If you wish to train on the CPU, set 'device' to 'cpu'.
-
-Keep an eye on the 'runs' folder for logs and metrics to monitor training progress effectively.
-
-#### Key Considerations for Effective Model Training
-
-Here are some things to keep in mind, if you are facing issues related to model training.
-
-**Dataset Format and Labels**
-
-- Importance: The foundation of any machine learning model lies in the quality and format of the data it is trained on.
-
-- Recommendation: Ensure that your custom dataset and its associated labels adhere to the expected format. It's crucial to verify that annotations are accurate and of high quality. Incorrect or subpar annotations can derail the model's learning process, leading to unpredictable outcomes.
-
-**Model Convergence**
-
-- Importance: Achieving model convergence ensures that the model has sufficiently learned from the training data.
-
-- Recommendation: When training a model 'from scratch', it's vital to ensure that the model reaches a satisfactory level of convergence. This might necessitate a longer training duration, with more epochs, compared to when you're fine-tuning an existing model.
-
-**Learning Rate and Batch Size**
-
-- Importance: These hyperparameters play a pivotal role in determining how the model updates its weights during training.
-
-- Recommendation: Regularly evaluate if the chosen learning rate and batch size are optimal for your specific dataset. Parameters that are not in harmony with the dataset's characteristics can hinder the model's performance.
-
-**Class Distribution**
-
-- Importance: The distribution of classes in your dataset can influence the model's prediction tendencies.
-
-- Recommendation: Regularly assess the distribution of classes within your dataset. If there's a class imbalance, there's a risk that the model will develop a bias towards the more prevalent class. This bias can be evident in the confusion matrix, where the model might predominantly predict the majority class.
-
-**Cross-Check with Pretrained Weights**
-
-- Importance: Leveraging pretrained weights can provide a solid starting point for model training, especially when data is limited.
-
-- Recommendation: As a diagnostic step, consider training your model using the same data but initializing it with pretrained weights. If this approach yields a well-formed confusion matrix, it could suggest that the 'from scratch' model might require further training or adjustments.
-
-### Issues Related to Model Predictions
-
-This section will address common issues faced during model prediction.
-
-#### Getting Bounding Box Predictions With Your YOLOv8 Custom Model
-
-**Issue**: When running predictions with a custom YOLOv8 model, there are challenges with the format and visualization of the bounding box coordinates.
-
-**Solution**:
-
-- Coordinate Format: YOLOv8 provides bounding box coordinates in absolute pixel values. To convert these to relative coordinates (ranging from 0 to 1), you need to divide by the image dimensions. For example, let’s say your image size is 640x640. Then you would do the following:
-
-```python
-# Convert absolute coordinates to relative coordinates
-x1 = x1 / 640 # Divide x-coordinates by image width
-x2 = x2 / 640
-y1 = y1 / 640 # Divide y-coordinates by image height
-y2 = y2 / 640
-```
-
-- File Name: To obtain the file name of the image you're predicting on, access the image file path directly from the result object within your prediction loop.
-
-#### Filtering Objects in YOLOv8 Predictions
-
-**Issue**: Facing issues with how to filter and display only specific objects in the prediction results when running YOLOv8 using the Ultralytics library.
-
-**Solution**: To detect specific classes use the classes argument to specify the classes you want to include in the output. For instance, to detect only cars (assuming 'cars' have class index 2):
-
-```shell
-yolo task=detect mode=segment model=yolov8n-seg.pt source='path/to/car.mp4' show=True classes=2
-```
-
-#### Understanding Precision Metrics in YOLOv8
-
-**Issue**: Confusion regarding the difference between box precision, mask precision, and confusion matrix precision in YOLOv8.
-
-**Solution**: Box precision measures the accuracy of predicted bounding boxes compared to the actual ground truth boxes using IoU (Intersection over Union) as the metric. Mask precision assesses the agreement between predicted segmentation masks and ground truth masks in pixel-wise object classification. Confusion matrix precision, on the other hand, focuses on overall classification accuracy across all classes and does not consider the geometric accuracy of predictions. It's important to note that a bounding box can be geometrically accurate (true positive) even if the class prediction is wrong, leading to differences between box precision and confusion matrix precision. These metrics evaluate distinct aspects of a model's performance, reflecting the need for different evaluation metrics in various tasks.
-
-#### Extracting Object Dimensions in YOLOv8
-
-**Issue**: Difficulty in retrieving the length and height of detected objects in YOLOv8, especially when multiple objects are detected in an image.
-
-**Solution**: To retrieve the bounding box dimensions, first use the Ultralytics YOLOv8 model to predict objects in an image. Then, extract the width and height information of bounding boxes from the prediction results.
-
-```python
-from ultralytics import YOLO
-
-# Load a pre-trained YOLOv8 model
-model = YOLO('yolov8n.pt')
-
-# Specify the source image
-source = 'https://ultralytics.com/images/bus.jpg'
-
-# Make predictions
-results = model.predict(source, save=True, imgsz=320, conf=0.5)
-
-# Extract bounding box dimensions
-boxes = results[0].boxes.xywh.cpu()
-for box in boxes:
- x, y, w, h = box
- print(f"Width of Box: {w}, Height of Box: {h}")
-```
-
-### Deployment Challenges
-
-#### GPU Deployment Issues
-
-**Issue:** Deploying models in a multi-GPU environment can sometimes lead to unexpected behaviors like unexpected memory usage, inconsistent results across GPUs, etc.
-
-**Solution:** Check for default GPU initialization. Some frameworks, like PyTorch, might initialize CUDA operations on a default GPU before transitioning to the designated GPUs. To bypass unexpected default initializations, specify the GPU directly during deployment and prediction. Then, use tools to monitor GPU utilization and memory usage to identify any anomalies in real-time. Also, ensure you're using the latest version of the framework or library.
-
-#### Model Conversion/Exporting Issues
-
-**Issue:** During the process of converting or exporting machine learning models to different formats or platforms, users might encounter errors or unexpected behaviors.
-
-**Solution:**
-
-- Compatibility Check: Ensure that you are using versions of libraries and frameworks that are compatible with each other. Mismatched versions can lead to unexpected errors during conversion.
-
-- Environment Reset: If you're using an interactive environment like Jupyter or Colab, consider restarting your environment after making significant changes or installations. A fresh start can sometimes resolve underlying issues.
-
-- Official Documentation: Always refer to the official documentation of the tool or library you are using for conversion. It often contains specific guidelines and best practices for model exporting.
-
-- Community Support: Check the library or framework's official repository for similar issues reported by other users. The maintainers or community might have provided solutions or workarounds in discussion threads.
-
-- Update Regularly: Ensure that you are using the latest version of the tool or library. Developers frequently release updates that fix known bugs or improve functionality.
-
-- Test Incrementally: Before performing a full conversion, test the process with a smaller model or dataset to identify potential issues early on.
-
-## Community and Support
-
-Engaging with a community of like-minded individuals can significantly enhance your experience and success in working with YOLOv8. Below are some channels and resources you may find helpful.
-
-### Forums and Channels for Getting Help
-
-**GitHub Issues:** The YOLOv8 repository on GitHub has an [Issues tab](https://github.com/ultralytics/ultralytics/issues) where you can ask questions, report bugs, and suggest new features. The community and maintainers are active here, and it’s a great place to get help with specific problems.
-
-**Ultralytics Discord Server:** Ultralytics has a [Discord server](https://ultralytics.com/discord/) where you can interact with other users and the developers.
-
-### Official Documentation and Resources
-
-**Ultralytics YOLOv8 Docs**: The [official documentation](../index.md) provides a comprehensive overview of YOLOv8, along with guides on installation, usage, and troubleshooting.
-
-These resources should provide a solid foundation for troubleshooting and improving your YOLOv8 projects, as well as connecting with others in the YOLOv8 community.
-
-## Conclusion
-
-Troubleshooting is an integral part of any development process, and being equipped with the right knowledge can significantly reduce the time and effort spent in resolving issues. This guide aimed to address the most common challenges faced by users of the YOLOv8 model within the Ultralytics ecosystem. By understanding and addressing these common issues, you can ensure smoother project progress and achieve better results with your computer vision tasks.
-
-Remember, the Ultralytics community is a valuable resource. Engaging with fellow developers and experts can provide additional insights and solutions that might not be covered in standard documentation. Always keep learning, experimenting, and sharing your experiences to contribute to the collective knowledge of the community.
-
-Happy troubleshooting!
diff --git a/ultralytics-main/docs/en/guides/yolo-performance-metrics.md b/ultralytics-main/docs/en/guides/yolo-performance-metrics.md
deleted file mode 100644
index a34f161..0000000
--- a/ultralytics-main/docs/en/guides/yolo-performance-metrics.md
+++ /dev/null
@@ -1,176 +0,0 @@
----
-comments: true
-description: A comprehensive guide on various performance metrics related to YOLOv8, their significance, and how to interpret them.
-keywords: YOLOv8, Performance metrics, Object detection, Intersection over Union (IoU), Average Precision (AP), Mean Average Precision (mAP), Precision, Recall, Validation mode, Ultralytics
----
-
-# Performance Metrics Deep Dive
-
-## Introduction
-
-Performance metrics are key tools to evaluate the accuracy and efficiency of object detection models. They shed light on how effectively a model can identify and localize objects within images. Additionally, they help in understanding the model's handling of false positives and false negatives. These insights are crucial for evaluating and enhancing the model's performance. In this guide, we will explore various performance metrics associated with YOLOv8, their significance, and how to interpret them.
-
-
-
-## Object Detection Metrics
-
-Let’s start by discussing some metrics that are not only important to YOLOv8 but are broadly applicable across different object detection models.
-
-- **Intersection over Union (IoU):** IoU is a measure that quantifies the overlap between a predicted bounding box and a ground truth bounding box. It plays a fundamental role in evaluating the accuracy of object localization.
-
-- **Average Precision (AP):** AP computes the area under the precision-recall curve, providing a single value that encapsulates the model's precision and recall performance.
-
-- **Mean Average Precision (mAP):** mAP extends the concept of AP by calculating the average AP values across multiple object classes. This is useful in multi-class object detection scenarios to provide a comprehensive evaluation of the model's performance.
-
-- **Precision and Recall:** Precision quantifies the proportion of true positives among all positive predictions, assessing the model's capability to avoid false positives. On the other hand, Recall calculates the proportion of true positives among all actual positives, measuring the model's ability to detect all instances of a class.
-
-- **F1 Score:** The F1 Score is the harmonic mean of precision and recall, providing a balanced assessment of a model's performance while considering both false positives and false negatives.
-
-## How to Calculate Metrics for YOLOv8 Model
-
-Now, we can explore [YOLOv8's Validation mode](../modes/val.md) that can be used to compute the above discussed evaluation metrics.
-
-Using the validation mode is simple. Once you have a trained model, you can invoke the model.val() function. This function will then process the validation dataset and return a variety of performance metrics. But what do these metrics mean? And how should you interpret them?
-
-### Interpreting the Output
-
-Let's break down the output of the model.val() function and understand each segment of the output.
-
-#### Class-wise Metrics
-
-One of the sections of the output is the class-wise breakdown of performance metrics. This granular information is useful when you are trying to understand how well the model is doing for each specific class, especially in datasets with a diverse range of object categories. For each class in the dataset the following is provided:
-
-- **Class**: This denotes the name of the object class, such as "person", "car", or "dog".
-
-- **Images**: This metric tells you the number of images in the validation set that contain the object class.
-
-- **Instances**: This provides the count of how many times the class appears across all images in the validation set.
-
-- **Box(P, R, mAP50, mAP50-95)**: This metric provides insights into the model's performance in detecting objects:
-
- - **P (Precision)**: The accuracy of the detected objects, indicating how many detections were correct.
-
- - **R (Recall)**: The ability of the model to identify all instances of objects in the images.
-
- - **mAP50**: Mean average precision calculated at an intersection over union (IoU) threshold of 0.50. It's a measure of the model's accuracy considering only the "easy" detections.
-
- - **mAP50-95**: The average of the mean average precision calculated at varying IoU thresholds, ranging from 0.50 to 0.95. It gives a comprehensive view of the model's performance across different levels of detection difficulty.
-
-#### Speed Metrics
-
-The speed of inference can be as critical as accuracy, especially in real-time object detection scenarios. This section breaks down the time taken for various stages of the validation process, from preprocessing to post-processing.
-
-#### COCO Metrics Evaluation
-
-For users validating on the COCO dataset, additional metrics are calculated using the COCO evaluation script. These metrics give insights into precision and recall at different IoU thresholds and for objects of different sizes.
-
-#### Visual Outputs
-
-The model.val() function, apart from producing numeric metrics, also yields visual outputs that can provide a more intuitive understanding of the model's performance. Here's a breakdown of the visual outputs you can expect:
-
-- **F1 Score Curve (`F1_curve.png`)**: This curve represents the F1 score across various thresholds. Interpreting this curve can offer insights into the model's balance between false positives and false negatives over different thresholds.
-
-- **Precision-Recall Curve (`PR_curve.png`)**: An integral visualization for any classification problem, this curve showcases the trade-offs between precision and recall at varied thresholds. It becomes especially significant when dealing with imbalanced classes.
-
-- **Precision Curve (`P_curve.png`)**: A graphical representation of precision values at different thresholds. This curve helps in understanding how precision varies as the threshold changes.
-
-- **Recall Curve (`R_curve.png`)**: Correspondingly, this graph illustrates how the recall values change across different thresholds.
-
-- **Confusion Matrix (`confusion_matrix.png`)**: The confusion matrix provides a detailed view of the outcomes, showcasing the counts of true positives, true negatives, false positives, and false negatives for each class.
-
-- **Normalized Confusion Matrix (`confusion_matrix_normalized.png`)**: This visualization is a normalized version of the confusion matrix. It represents the data in proportions rather than raw counts. This format makes it simpler to compare the performance across classes.
-
-- **Validation Batch Labels (`val_batchX_labels.jpg`)**: These images depict the ground truth labels for distinct batches from the validation dataset. They provide a clear picture of what the objects are and their respective locations as per the dataset.
-
-- **Validation Batch Predictions (`val_batchX_pred.jpg`)**: Contrasting the label images, these visuals display the predictions made by the YOLOv8 model for the respective batches. By comparing these to the label images, you can easily assess how well the model detects and classifies objects visually.
-
-#### Results Storage
-
-For future reference, the results are saved to a directory, typically named runs/detect/val.
-
-## Choosing the Right Metrics
-
-Choosing the right metrics to evaluate often depends on the specific application.
-
-- **mAP:** Suitable for a broad assessment of model performance.
-
-- **IoU:** Essential when precise object location is crucial.
-
-- **Precision:** Important when minimizing false detections is a priority.
-
-- **Recall:** Vital when it's important to detect every instance of an object.
-
-- **F1 Score:** Useful when a balance between precision and recall is needed.
-
-For real-time applications, speed metrics like FPS (Frames Per Second) and latency are crucial to ensure timely results.
-
-## Interpretation of Results
-
-It’s important to understand the metrics. Here's what some of the commonly observed lower scores might suggest:
-
-- **Low mAP:** Indicates the model may need general refinements.
-
-- **Low IoU:** The model might be struggling to pinpoint objects accurately. Different bounding box methods could help.
-
-- **Low Precision:** The model may be detecting too many non-existent objects. Adjusting confidence thresholds might reduce this.
-
-- **Low Recall:** The model could be missing real objects. Improving feature extraction or using more data might help.
-
-- **Imbalanced F1 Score:** There's a disparity between precision and recall.
-
-- **Class-specific AP:** Low scores here can highlight classes the model struggles with.
-
-## Case Studies
-
-Real-world examples can help clarify how these metrics work in practice.
-
-### Case 1
-
-- **Situation:** mAP and F1 Score are suboptimal, but while Recall is good, Precision isn't.
-
-- **Interpretation & Action:** There might be too many incorrect detections. Tightening confidence thresholds could reduce these, though it might also slightly decrease recall.
-
-### Case 2
-
-- **Situation:** mAP and Recall are acceptable, but IoU is lacking.
-
-- **Interpretation & Action:** The model detects objects well but might not be localizing them precisely. Refining bounding box predictions might help.
-
-### Case 3
-
-- **Situation:** Some classes have a much lower AP than others, even with a decent overall mAP.
-
-- **Interpretation & Action:** These classes might be more challenging for the model. Using more data for these classes or adjusting class weights during training could be beneficial.
-
-## Connect and Collaborate
-
-Tapping into a community of enthusiasts and experts can amplify your journey with YOLOv8. Here are some avenues that can facilitate learning, troubleshooting, and networking.
-
-### Engage with the Broader Community
-
-- **GitHub Issues:** The YOLOv8 repository on GitHub has an [Issues tab](https://github.com/ultralytics/ultralytics/issues) where you can ask questions, report bugs, and suggest new features. The community and maintainers are active here, and it’s a great place to get help with specific problems.
-
-- **Ultralytics Discord Server:** Ultralytics has a [Discord server](https://ultralytics.com/discord/) where you can interact with other users and the developers.
-
-### Official Documentation and Resources:
-
-- **Ultralytics YOLOv8 Docs:** The [official documentation](../index.md) provides a comprehensive overview of YOLOv8, along with guides on installation, usage, and troubleshooting.
-
-Using these resources will not only guide you through any challenges but also keep you updated with the latest trends and best practices in the YOLOv8 community.
-
-## Conclusion
-
-In this guide, we've taken a close look at the essential performance metrics for YOLOv8. These metrics are key to understanding how well a model is performing and are vital for anyone aiming to fine-tune their models. They offer the necessary insights for improvements and to make sure the model works effectively in real-life situations.
-
-Remember, the YOLOv8 and Ultralytics community is an invaluable asset. Engaging with fellow developers and experts can open doors to insights and solutions not found in standard documentation. As you journey through object detection, keep the spirit of learning alive, experiment with new strategies, and share your findings. By doing so, you contribute to the community's collective wisdom and ensure its growth.
-
-Happy object detecting!
diff --git a/ultralytics-main/docs/en/guides/yolo-thread-safe-inference.md b/ultralytics-main/docs/en/guides/yolo-thread-safe-inference.md
deleted file mode 100644
index abf7a36..0000000
--- a/ultralytics-main/docs/en/guides/yolo-thread-safe-inference.md
+++ /dev/null
@@ -1,108 +0,0 @@
----
-comments: true
-description: This guide provides best practices for performing thread-safe inference with YOLO models, ensuring reliable and concurrent predictions in multi-threaded applications.
-keywords: thread-safe, YOLO inference, multi-threading, concurrent predictions, YOLO models, Ultralytics, Python threading, safe YOLO usage, AI concurrency
----
-
-# Thread-Safe Inference with YOLO Models
-
-Running YOLO models in a multi-threaded environment requires careful consideration to ensure thread safety. Python's `threading` module allows you to run several threads concurrently, but when it comes to using YOLO models across these threads, there are important safety issues to be aware of. This page will guide you through creating thread-safe YOLO model inference.
-
-## Understanding Python Threading
-
-Python threads are a form of parallelism that allow your program to run multiple operations at once. However, Python's Global Interpreter Lock (GIL) means that only one thread can execute Python bytecode at a time.
-
-
-
-
-
-While this sounds like a limitation, threads can still provide concurrency, especially for I/O-bound operations or when using operations that release the GIL, like those performed by YOLO's underlying C libraries.
-
-## The Danger of Shared Model Instances
-
-Instantiating a YOLO model outside your threads and sharing this instance across multiple threads can lead to race conditions, where the internal state of the model is inconsistently modified due to concurrent accesses. This is particularly problematic when the model or its components hold state that is not designed to be thread-safe.
-
-### Non-Thread-Safe Example: Single Model Instance
-
-When using threads in Python, it's important to recognize patterns that can lead to concurrency issues. Here is what you should avoid: sharing a single YOLO model instance across multiple threads.
-
-```python
-# Unsafe: Sharing a single model instance across threads
-from ultralytics import YOLO
-from threading import Thread
-
-# Instantiate the model outside the thread
-shared_model = YOLO("yolov8n.pt")
-
-
-def predict(image_path):
- results = shared_model.predict(image_path)
- # Process results
-
-
-# Starting threads that share the same model instance
-Thread(target=predict, args=("image1.jpg",)).start()
-Thread(target=predict, args=("image2.jpg",)).start()
-```
-
-In the example above, the `shared_model` is used by multiple threads, which can lead to unpredictable results because `predict` could be executed simultaneously by multiple threads.
-
-### Non-Thread-Safe Example: Multiple Model Instances
-
-Similarly, here is an unsafe pattern with multiple YOLO model instances:
-
-```python
-# Unsafe: Sharing multiple model instances across threads can still lead to issues
-from ultralytics import YOLO
-from threading import Thread
-
-# Instantiate multiple models outside the thread
-shared_model_1 = YOLO("yolov8n_1.pt")
-shared_model_2 = YOLO("yolov8n_2.pt")
-
-
-def predict(model, image_path):
- results = model.predict(image_path)
- # Process results
-
-
-# Starting threads with individual model instances
-Thread(target=predict, args=(shared_model_1, "image1.jpg")).start()
-Thread(target=predict, args=(shared_model_2, "image2.jpg")).start()
-```
-
-Even though there are two separate model instances, the risk of concurrency issues still exists. If the internal implementation of `YOLO` is not thread-safe, using separate instances might not prevent race conditions, especially if these instances share any underlying resources or states that are not thread-local.
-
-## Thread-Safe Inference
-
-To perform thread-safe inference, you should instantiate a separate YOLO model within each thread. This ensures that each thread has its own isolated model instance, eliminating the risk of race conditions.
-
-### Thread-Safe Example
-
-Here's how to instantiate a YOLO model inside each thread for safe parallel inference:
-
-```python
-# Safe: Instantiating a single model inside each thread
-from ultralytics import YOLO
-from threading import Thread
-
-
-def thread_safe_predict(image_path):
- # Instantiate a new model inside the thread
- local_model = YOLO("yolov8n.pt")
- results = local_model.predict(image_path)
- # Process results
-
-
-# Starting threads that each have their own model instance
-Thread(target=thread_safe_predict, args=("image1.jpg",)).start()
-Thread(target=thread_safe_predict, args=("image2.jpg",)).start()
-```
-
-In this example, each thread creates its own `YOLO` instance. This prevents any thread from interfering with the model state of another, thus ensuring that each thread performs inference safely and without unexpected interactions with the other threads.
-
-## Conclusion
-
-When using YOLO models with Python's `threading`, always instantiate your models within the thread that will use them to ensure thread safety. This practice avoids race conditions and makes sure that your inference tasks run reliably.
-
-For more advanced scenarios and to further optimize your multi-threaded inference performance, consider using process-based parallelism with `multiprocessing` or leveraging a task queue with dedicated worker processes.
diff --git a/ultralytics-main/docs/en/help/CI.md b/ultralytics-main/docs/en/help/CI.md
deleted file mode 100644
index 033cf71..0000000
--- a/ultralytics-main/docs/en/help/CI.md
+++ /dev/null
@@ -1,61 +0,0 @@
----
-comments: true
-description: Learn how Ultralytics leverages Continuous Integration (CI) for maintaining high-quality code. Explore our CI tests and the status of these tests for our repositories.
-keywords: continuous integration, software development, CI tests, Ultralytics repositories, high-quality code, Docker Deployment, Broken Links, CodeQL, PyPi Publishing
----
-
-# Continuous Integration (CI)
-
-Continuous Integration (CI) is an essential aspect of software development which involves integrating changes and testing them automatically. CI allows us to maintain high-quality code by catching issues early and often in the development process. At Ultralytics, we use various CI tests to ensure the quality and integrity of our codebase.
-
-## CI Actions
-
-Here's a brief description of our CI actions:
-
-- **[CI](https://github.com/ultralytics/ultralytics/actions/workflows/ci.yaml):** This is our primary CI test that involves running unit tests, linting checks, and sometimes more comprehensive tests depending on the repository.
-- **[Docker Deployment](https://github.com/ultralytics/ultralytics/actions/workflows/docker.yaml):** This test checks the deployment of the project using Docker to ensure the Dockerfile and related scripts are working correctly.
-- **[Broken Links](https://github.com/ultralytics/ultralytics/actions/workflows/links.yml):** This test scans the codebase for any broken or dead links in our markdown or HTML files.
-- **[CodeQL](https://github.com/ultralytics/ultralytics/actions/workflows/codeql.yaml):** CodeQL is a tool from GitHub that performs semantic analysis on our code, helping to find potential security vulnerabilities and maintain high-quality code.
-- **[PyPi Publishing](https://github.com/ultralytics/ultralytics/actions/workflows/publish.yml):** This test checks if the project can be packaged and published to PyPi without any errors.
-
-### CI Results
-
-Below is the table showing the status of these CI tests for our main repositories:
-
-| Repository | CI | Docker Deployment | Broken Links | CodeQL | PyPi and Docs Publishing |
-|-----------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| [yolov3](https://github.com/ultralytics/yolov3) | [![YOLOv3 CI](https://github.com/ultralytics/yolov3/actions/workflows/ci-testing.yml/badge.svg)](https://github.com/ultralytics/yolov3/actions/workflows/ci-testing.yml) | [![Publish Docker Images](https://github.com/ultralytics/yolov3/actions/workflows/docker.yml/badge.svg)](https://github.com/ultralytics/yolov3/actions/workflows/docker.yml) | [![Check Broken links](https://github.com/ultralytics/yolov3/actions/workflows/links.yml/badge.svg)](https://github.com/ultralytics/yolov3/actions/workflows/links.yml) | [![CodeQL](https://github.com/ultralytics/yolov3/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/ultralytics/yolov3/actions/workflows/codeql-analysis.yml) | |
-| [yolov5](https://github.com/ultralytics/yolov5) | [![YOLOv5 CI](https://github.com/ultralytics/yolov5/actions/workflows/ci-testing.yml/badge.svg)](https://github.com/ultralytics/yolov5/actions/workflows/ci-testing.yml) | [![Publish Docker Images](https://github.com/ultralytics/yolov5/actions/workflows/docker.yml/badge.svg)](https://github.com/ultralytics/yolov5/actions/workflows/docker.yml) | [![Check Broken links](https://github.com/ultralytics/yolov5/actions/workflows/links.yml/badge.svg)](https://github.com/ultralytics/yolov5/actions/workflows/links.yml) | [![CodeQL](https://github.com/ultralytics/yolov5/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/ultralytics/yolov5/actions/workflows/codeql-analysis.yml) | |
-| [ultralytics](https://github.com/ultralytics/ultralytics) | [![ultralytics CI](https://github.com/ultralytics/ultralytics/actions/workflows/ci.yaml/badge.svg)](https://github.com/ultralytics/ultralytics/actions/workflows/ci.yaml) | [![Publish Docker Images](https://github.com/ultralytics/ultralytics/actions/workflows/docker.yaml/badge.svg)](https://github.com/ultralytics/ultralytics/actions/workflows/docker.yaml) | [![Check Broken links](https://github.com/ultralytics/ultralytics/actions/workflows/links.yml/badge.svg)](https://github.com/ultralytics/ultralytics/actions/workflows/links.yml) | [![CodeQL](https://github.com/ultralytics/ultralytics/actions/workflows/codeql.yaml/badge.svg)](https://github.com/ultralytics/ultralytics/actions/workflows/codeql.yaml) | [![Publish to PyPI and Deploy Docs](https://github.com/ultralytics/ultralytics/actions/workflows/publish.yml/badge.svg)](https://github.com/ultralytics/ultralytics/actions/workflows/publish.yml) |
-| [hub](https://github.com/ultralytics/hub) | [![HUB CI](https://github.com/ultralytics/hub/actions/workflows/ci.yaml/badge.svg)](https://github.com/ultralytics/hub/actions/workflows/ci.yaml) | | [![Check Broken links](https://github.com/ultralytics/hub/actions/workflows/links.yml/badge.svg)](https://github.com/ultralytics/hub/actions/workflows/links.yml) | | |
-| [docs](https://github.com/ultralytics/docs) | | | [![Check Broken links](https://github.com/ultralytics/docs/actions/workflows/links.yml/badge.svg)](https://github.com/ultralytics/docs/actions/workflows/links.yml)[![Check Domains](https://github.com/ultralytics/docs/actions/workflows/check_domains.yml/badge.svg)](https://github.com/ultralytics/docs/actions/workflows/check_domains.yml) | | [![pages-build-deployment](https://github.com/ultralytics/docs/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/ultralytics/docs/actions/workflows/pages/pages-build-deployment) |
-
-Each badge shows the status of the last run of the corresponding CI test on the `main` branch of the respective repository. If a test fails, the badge will display a "failing" status, and if it passes, it will display a "passing" status.
-
-If you notice a test failing, it would be a great help if you could report it through a GitHub issue in the respective repository.
-
-Remember, a successful CI test does not mean that everything is perfect. It is always recommended to manually review the code before deployment or merging changes.
-
-## Code Coverage
-
-Code coverage is a metric that represents the percentage of your codebase that is executed when your tests run. It provides insight into how well your tests exercise your code and can be crucial in identifying untested parts of your application. A high code coverage percentage is often associated with a lower likelihood of bugs. However, it's essential to understand that code coverage does not guarantee the absence of defects. It merely indicates which parts of the code have been executed by the tests.
-
-### Integration with [codecov.io](https://codecov.io/)
-
-At Ultralytics, we have integrated our repositories with [codecov.io](https://codecov.io/), a popular online platform for measuring and visualizing code coverage. Codecov provides detailed insights, coverage comparisons between commits, and visual overlays directly on your code, indicating which lines were covered.
-
-By integrating with Codecov, we aim to maintain and improve the quality of our code by focusing on areas that might be prone to errors or need further testing.
-
-### Coverage Results
-
-To quickly get a glimpse of the code coverage status of the `ultralytics` python package, we have included a badge and sunburst visual of the `ultralytics` coverage results. These images show the percentage of code covered by our tests, offering an at-a-glance metric of our testing efforts. For full details please see https://codecov.io/github/ultralytics/ultralytics.
-
-| Repository | Code Coverage |
-|-----------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|
-| [ultralytics](https://github.com/ultralytics/ultralytics) | [![codecov](https://codecov.io/gh/ultralytics/ultralytics/branch/main/graph/badge.svg?token=HHW7IIVFVY)](https://codecov.io/gh/ultralytics/ultralytics) |
-
-In the sunburst graphic below, the innermost circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
-
-
-
-
diff --git a/ultralytics-main/docs/en/help/CLA.md b/ultralytics-main/docs/en/help/CLA.md
deleted file mode 100644
index e24e955..0000000
--- a/ultralytics-main/docs/en/help/CLA.md
+++ /dev/null
@@ -1,28 +0,0 @@
----
-description: Understand terms governing contributions to Ultralytics projects including source code, bug fixes, documentation and more. Read our Contributor License Agreement.
-keywords: Ultralytics, Contributor License Agreement, Open Source Software, Contributions, Copyright License, Patent License, Moral Rights
----
-
-# Ultralytics Individual Contributor License Agreement
-
-Thank you for your interest in contributing to open source software projects (“Projects”) made available by Ultralytics Inc. (“Ultralytics”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to Ultralytics in respect of any Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact hello@ultralytics.com.
-
-You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
-
-**Copyright License.** You hereby grant, and agree to grant, to Ultralytics a non-exclusive, perpetual, irrevocable, worldwide, fully-paid, royalty-free, transferable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, and distribute your Contributions and such derivative works, with the right to sublicense the foregoing rights through multiple tiers of sublicensees.
-
-**Patent License.** You hereby grant, and agree to grant, to Ultralytics a non-exclusive, perpetual, irrevocable, worldwide, fully-paid, royalty-free, transferable patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer your Contributions, where such license applies only to those patent claims licensable by you that are necessarily infringed by your Contributions alone or by combination of your Contributions with the Project to which such Contributions were submitted, with the right to sublicense the foregoing rights through multiple tiers of sublicensees.
-
-**Moral Rights.** To the fullest extent permitted under applicable law, you hereby waive, and agree not to assert, all of your “moral rights” in or relating to your Contributions for the benefit of Ultralytics, its assigns, and their respective direct and indirect sublicensees.
-
-**Third Party Content/Rights.** If your Contribution includes or is based on any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that were not authored by you (“Third Party Content”) or if you are aware of any third party intellectual property or proprietary rights associated with your Contribution (“Third Party Rights”), then you agree to include with the submission of your Contribution full details respecting such Third Party Content and Third Party Rights, including, without limitation, identification of which aspects of your Contribution contain Third Party Content or are associated with Third Party Rights, the owner/author of the Third Party Content and Third Party Rights, where you obtained the Third Party Content, and any applicable third party license terms or restrictions respecting the Third Party Content and Third Party Rights. For greater certainty, the foregoing obligations respecting the identification of Third Party Content and Third Party Rights do not apply to any portion of a Project that is incorporated into your Contribution to that same Project.
-
-**Representations.** You represent that, other than the Third Party Content and Third Party Rights identified by you in accordance with this Agreement, you are the sole author of your Contributions and are legally entitled to grant the foregoing licenses and waivers in respect of your Contributions. If your Contributions were created in the course of your employment with your past or present employer(s), you represent that such employer(s) has authorized you to make your Contributions on behalf of such employer(s) or such employer(s) has waived all of their right, title or interest in or to your Contributions.
-
-**Disclaimer.** To the fullest extent permitted under applicable law, your Contributions are provided on an "asis" basis, without any warranties or conditions, express or implied, including, without limitation, any implied warranties or conditions of non-infringement, merchantability or fitness for a particular purpose. You are not required to provide support for your Contributions, except to the extent you desire to provide support.
-
-**No Obligation.** You acknowledge that Ultralytics is under no obligation to use or incorporate your Contributions into any of the Projects. The decision to use or incorporate your Contributions into any of the Projects will be made at the sole discretion of Ultralytics or its authorized delegates.
-
-**Disputes.** This Agreement shall be governed by and construed in accordance with the laws of the State of New York, United States of America, without giving effect to its principles or rules regarding conflicts of laws, other than such principles directing application of New York law. The parties hereby submit to venue in, and jurisdiction of the courts located in New York, New York for purposes relating to this Agreement. In the event that any of the provisions of this Agreement shall be held by a court or other tribunal of competent jurisdiction to be unenforceable, the remaining portions hereof shall remain in full force and effect.
-
-**Assignment.** You agree that Ultralytics may assign this Agreement, and all of its rights, obligations and licenses hereunder.
diff --git a/ultralytics-main/docs/en/help/FAQ.md b/ultralytics-main/docs/en/help/FAQ.md
deleted file mode 100644
index 8e4430a..0000000
--- a/ultralytics-main/docs/en/help/FAQ.md
+++ /dev/null
@@ -1,39 +0,0 @@
----
-comments: true
-description: Find solutions to your common Ultralytics YOLO related queries. Learn about hardware requirements, fine-tuning YOLO models, conversion to ONNX/TensorFlow, and more.
-keywords: Ultralytics, YOLO, FAQ, hardware requirements, ONNX, TensorFlow, real-time detection, YOLO accuracy
----
-
-# Ultralytics YOLO Frequently Asked Questions (FAQ)
-
-This FAQ section addresses some common questions and issues users might encounter while working with Ultralytics YOLO repositories.
-
-## 1. What are the hardware requirements for running Ultralytics YOLO?
-
-Ultralytics YOLO can be run on a variety of hardware configurations, including CPUs, GPUs, and even some edge devices. However, for optimal performance and faster training and inference, we recommend using a GPU with a minimum of 8GB of memory. NVIDIA GPUs with CUDA support are ideal for this purpose.
-
-## 2. How do I fine-tune a pre-trained YOLO model on my custom dataset?
-
-To fine-tune a pre-trained YOLO model on your custom dataset, you'll need to create a dataset configuration file (YAML) that defines the dataset's properties, such as the path to the images, the number of classes, and class names. Next, you'll need to modify the model configuration file to match the number of classes in your dataset. Finally, use the `train.py` script to start the training process with your custom dataset and the pre-trained model. You can find a detailed guide on fine-tuning YOLO in the Ultralytics documentation.
-
-## 3. How do I convert a YOLO model to ONNX or TensorFlow format?
-
-Ultralytics provides built-in support for converting YOLO models to ONNX format. You can use the `export.py` script to convert a saved model to ONNX format. If you need to convert the model to TensorFlow format, you can use the ONNX model as an intermediary and then use the ONNX-TensorFlow converter to convert the ONNX model to TensorFlow format.
-
-## 4. Can I use Ultralytics YOLO for real-time object detection?
-
-Yes, Ultralytics YOLO is designed to be efficient and fast, making it suitable for real-time object detection tasks. The actual performance will depend on your hardware configuration and the complexity of the model. Using a GPU and optimizing the model for your specific use case can help achieve real-time performance.
-
-## 5. How can I improve the accuracy of my YOLO model?
-
-Improving the accuracy of a YOLO model may involve several strategies, such as:
-
-- Fine-tuning the model on more annotated data
-- Data augmentation to increase the variety of training samples
-- Using a larger or more complex model architecture
-- Adjusting the learning rate, batch size, and other hyperparameters
-- Using techniques like transfer learning or knowledge distillation
-
-Remember that there's often a trade-off between accuracy and inference speed, so finding the right balance is crucial for your specific application.
-
-If you have any more questions or need assistance, don't hesitate to consult the Ultralytics documentation or reach out to the community through GitHub Issues or the official discussion forum.
diff --git a/ultralytics-main/docs/en/help/code_of_conduct.md b/ultralytics-main/docs/en/help/code_of_conduct.md
deleted file mode 100644
index 46313c4..0000000
--- a/ultralytics-main/docs/en/help/code_of_conduct.md
+++ /dev/null
@@ -1,85 +0,0 @@
----
-comments: true
-description: Explore Ultralytics community’s Code of Conduct, ensuring a supportive, inclusive environment for contributors & members at all levels. Find our guidelines on acceptable behavior & enforcement.
-keywords: Ultralytics, code of conduct, community, contribution, behavior guidelines, enforcement, open source contributions
----
-
-# Ultralytics Contributor Covenant Code of Conduct
-
-## Our Pledge
-
-We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socioeconomic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
-
-We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
-
-## Our Standards
-
-Examples of behavior that contributes to a positive environment for our community include:
-
-- Demonstrating empathy and kindness toward other people
-- Being respectful of differing opinions, viewpoints, and experiences
-- Giving and gracefully accepting constructive feedback
-- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
-- Focusing on what is best not just for us as individuals, but for the overall community
-
-Examples of unacceptable behavior include:
-
-- The use of sexualized language or imagery, and sexual attention or advances of any kind
-- Trolling, insulting or derogatory comments, and personal or political attacks
-- Public or private harassment
-- Publishing others' private information, such as a physical or email address, without their explicit permission
-- Other conduct which could reasonably be considered inappropriate in a professional setting
-
-## Enforcement Responsibilities
-
-Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
-
-Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
-
-## Scope
-
-This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
-
-## Enforcement
-
-Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at hello@ultralytics.com. All complaints will be reviewed and investigated promptly and fairly.
-
-All community leaders are obligated to respect the privacy and security of the reporter of any incident.
-
-## Enforcement Guidelines
-
-Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
-
-### 1. Correction
-
-**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
-
-**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
-
-### 2. Warning
-
-**Community Impact**: A violation through a single incident or series of actions.
-
-**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
-
-### 3. Temporary Ban
-
-**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
-
-**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
-
-### 4. Permanent Ban
-
-**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
-
-**Consequence**: A permanent ban from any sort of public interaction within the community.
-
-## Attribution
-
-This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
-
-Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
-
-For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
-
-[homepage]: https://www.contributor-covenant.org
diff --git a/ultralytics-main/docs/en/help/contributing.md b/ultralytics-main/docs/en/help/contributing.md
deleted file mode 100644
index 7874d48..0000000
--- a/ultralytics-main/docs/en/help/contributing.md
+++ /dev/null
@@ -1,131 +0,0 @@
----
-comments: true
-description: Learn how to contribute to Ultralytics YOLO projects – guidelines for pull requests, reporting bugs, code conduct and CLA signing.
-keywords: Ultralytics, YOLO, open-source, contribute, pull request, bug report, coding guidelines, CLA, code of conduct, GitHub
----
-
-# Contributing to Ultralytics Open-Source YOLO Repositories
-
-First of all, thank you for your interest in contributing to Ultralytics open-source YOLO repositories! Your contributions will help improve the project and benefit the community. This document provides guidelines and best practices to get you started.
-
-## Table of Contents
-
-1. [Code of Conduct](#code-of-conduct)
-2. [Contributing via Pull Requests](#contributing-via-pull-requests)
- - [CLA Signing](#cla-signing)
- - [Google-Style Docstrings](#google-style-docstrings)
- - [GitHub Actions CI Tests](#github-actions-ci-tests)
-3. [Reporting Bugs](#reporting-bugs)
-4. [License](#license)
-5. [Conclusion](#conclusion)
-
-## Code of Conduct
-
-All contributors are expected to adhere to the [Code of Conduct](code_of_conduct.md) to ensure a welcoming and inclusive environment for everyone.
-
-## Contributing via Pull Requests
-
-We welcome contributions in the form of pull requests. To make the review process smoother, please follow these guidelines:
-
-1. **[Fork the repository](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo)**: Fork the Ultralytics YOLO repository to your own GitHub account.
-
-2. **[Create a branch](https://docs.github.com/en/desktop/making-changes-in-a-branch/managing-branches-in-github-desktop)**: Create a new branch in your forked repository with a descriptive name for your changes.
-
-3. **Make your changes**: Make the changes you want to contribute. Ensure that your changes follow the coding style of the project and do not introduce new errors or warnings.
-
-4. **[Test your changes](https://github.com/ultralytics/ultralytics/tree/main/tests)**: Test your changes locally to ensure that they work as expected and do not introduce new issues.
-
-5. **[Commit your changes](https://docs.github.com/en/desktop/making-changes-in-a-branch/committing-and-reviewing-changes-to-your-project-in-github-desktop)**: Commit your changes with a descriptive commit message. Make sure to include any relevant issue numbers in your commit message.
-
-6. **[Create a pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request)**: Create a pull request from your forked repository to the main Ultralytics YOLO repository. In the pull request description, provide a clear explanation of your changes and how they improve the project.
-
-### CLA Signing
-
-Before we can accept your pull request, you need to sign a [Contributor License Agreement (CLA)](CLA.md). This is a legal document stating that you agree to the terms of contributing to the Ultralytics YOLO repositories. The CLA ensures that your contributions are properly licensed and that the project can continue to be distributed under the AGPL-3.0 license.
-
-To sign the CLA, follow the instructions provided by the CLA bot after you submit your PR and add a comment in your PR saying:
-
-```
-I have read the CLA Document and I sign the CLA
-```
-
-### Google-Style Docstrings
-
-When adding new functions or classes, please include a [Google-style docstring](https://google.github.io/styleguide/pyguide.html) to provide clear and concise documentation for other developers. This will help ensure that your contributions are easy to understand and maintain.
-
-!!! Example "Example Docstrings"
-
- === "Google-style"
-
- This example shows both Google-style docstrings. Note that both input and output `types` must always be enclosed by parentheses, i.e. `(bool)`.
- ```python
- def example_function(arg1, arg2=4):
- """
- Example function that demonstrates Google-style docstrings.
-
- Args:
- arg1 (int): The first argument.
- arg2 (int): The second argument. Default value is 4.
-
- Returns:
- (bool): True if successful, False otherwise.
-
- Examples:
- >>> result = example_function(1, 2) # returns False
- """
- if arg1 == arg2:
- return True
- return False
- ```
-
- === "Google-style with type hints"
-
- This example shows both Google-style docstrings and argument and return type hints, though both are not required, one can be used without the other.
- ```python
- def example_function(arg1: int, arg2: int = 4) -> bool:
- """
- Example function that demonstrates Google-style docstrings.
-
- Args:
- arg1: The first argument.
- arg2: The second argument. Default value is 4.
-
- Returns:
- True if successful, False otherwise.
-
- Examples:
- >>> result = example_function(1, 2) # returns False
- """
- if arg1 == arg2:
- return True
- return False
- ```
-
- === "Single-line"
-
- Smaller or simpler functions can utilize a single-line docstring. Note the docstring must use 3 double-quotes, and be a complete sentence starting with a capital letter and ending with a period.
- ```python
- def example_small_function(arg1: int, arg2: int = 4) -> bool:
- """Example function that demonstrates a single-line docstring."""
- return arg1 == arg2
- ```
-
-### GitHub Actions CI Tests
-
-Before your pull request can be merged, all GitHub Actions [Continuous Integration](CI.md) (CI) tests must pass. These tests include linting, unit tests, and other checks to ensure that your changes meet the quality standards of the project. Make sure to review the output of the GitHub Actions and fix any issues
-
-## Reporting Bugs
-
-We appreciate bug reports as they play a crucial role in maintaining the project's quality. When reporting bugs it is important to provide a [Minimum Reproducible Example](minimum_reproducible_example.md): a clear, concise code example that replicates the issue. This helps in quick identification and resolution of the bug.
-
-## License
-
-Ultralytics embraces the [GNU Affero General Public License v3.0 (AGPL-3.0)](https://github.com/ultralytics/ultralytics/blob/main/LICENSE) for its repositories, promoting openness, transparency, and collaborative enhancement in software development. This strong copyleft license ensures that all users and developers retain the freedom to use, modify, and share the software. It fosters community collaboration, ensuring that any improvements remain accessible to all.
-
-Users and developers are encouraged to familiarize themselves with the terms of AGPL-3.0 to contribute effectively and ethically to the Ultralytics open-source community.
-
-## Conclusion
-
-Thank you for your interest in contributing to [Ultralytics open-source](https://github.com/ultralytics) YOLO projects. Your participation is crucial in shaping the future of our software and fostering a community of innovation and collaboration. Whether you're improving code, reporting bugs, or suggesting features, your contributions make a significant impact.
-
-We're eager to see your ideas in action and appreciate your commitment to advancing object detection technology. Let's continue to grow and innovate together in this exciting open-source journey. Happy coding! 🚀🌟
diff --git a/ultralytics-main/docs/en/help/environmental-health-safety.md b/ultralytics-main/docs/en/help/environmental-health-safety.md
deleted file mode 100644
index 9fee240..0000000
--- a/ultralytics-main/docs/en/help/environmental-health-safety.md
+++ /dev/null
@@ -1,37 +0,0 @@
----
-comments: false
-description: Discover Ultralytics’ EHS policy principles and implementation measures. Committed to safety, environment, and continuous improvement for a sustainable future.
-keywords: Ultralytics policy, EHS, environment, health and safety, compliance, prevention, continuous improvement, risk management, emergency preparedness, resource allocation, communication
----
-
-# Ultralytics Environmental, Health and Safety (EHS) Policy
-
-At Ultralytics, we recognize that the long-term success of our company relies not only on the products and services we offer, but also the manner in which we conduct our business. We are committed to ensuring the safety and well-being of our employees, stakeholders, and the environment, and we will continuously strive to mitigate our impact on the environment while promoting health and safety.
-
-## Policy Principles
-
-1. **Compliance**: We will comply with all applicable laws, regulations, and standards related to EHS, and we will strive to exceed these standards where possible.
-
-2. **Prevention**: We will work to prevent accidents, injuries, and environmental harm by implementing risk management measures and ensuring all our operations and procedures are safe.
-
-3. **Continuous Improvement**: We will continuously improve our EHS performance by setting measurable objectives, monitoring our performance, auditing our operations, and revising our policies and procedures as needed.
-
-4. **Communication**: We will communicate openly about our EHS performance and will engage with stakeholders to understand and address their concerns and expectations.
-
-5. **Education and Training**: We will educate and train our employees and contractors in appropriate EHS procedures and practices.
-
-## Implementation Measures
-
-1. **Responsibility and Accountability**: Every employee and contractor working at or with Ultralytics is responsible for adhering to this policy. Managers and supervisors are accountable for ensuring this policy is implemented within their areas of control.
-
-2. **Risk Management**: We will identify, assess, and manage EHS risks associated with our operations and activities to prevent accidents, injuries, and environmental harm.
-
-3. **Resource Allocation**: We will allocate the necessary resources to ensure the effective implementation of our EHS policy, including the necessary equipment, personnel, and training.
-
-4. **Emergency Preparedness and Response**: We will develop, maintain, and test emergency preparedness and response plans to ensure we can respond effectively to EHS incidents.
-
-5. **Monitoring and Review**: We will monitor and review our EHS performance regularly to identify opportunities for improvement and ensure we are meeting our objectives.
-
-This policy reflects our commitment to minimizing our environmental footprint, ensuring the safety and well-being of our employees, and continuously improving our performance.
-
-Please remember that the implementation of an effective EHS policy requires the involvement and commitment of everyone working at or with Ultralytics. We encourage you to take personal responsibility for your safety and the safety of others, and to take care of the environment in which we live and work.
diff --git a/ultralytics-main/docs/en/help/index.md b/ultralytics-main/docs/en/help/index.md
deleted file mode 100644
index e8f7376..0000000
--- a/ultralytics-main/docs/en/help/index.md
+++ /dev/null
@@ -1,19 +0,0 @@
----
-comments: true
-description: Find comprehensive guides and documents on Ultralytics YOLO tasks. Includes FAQs, contributing guides, CI guide, CLA, MRE guide, code of conduct & more.
-keywords: Ultralytics, YOLO, guides, documents, FAQ, contributing, CI guide, CLA, MRE guide, code of conduct, EHS policy, security policy, privacy policy
----
-
-Welcome to the Ultralytics Help page! We are dedicated to providing you with detailed resources to enhance your experience with the Ultralytics YOLO models and repositories. This page serves as your portal to guides and documentation designed to assist you with various tasks and answer questions you may encounter while engaging with our repositories.
-
-- [Frequently Asked Questions (FAQ)](FAQ.md): Find answers to common questions and issues encountered by the community of Ultralytics YOLO users and contributors.
-- [Contributing Guide](contributing.md): Discover the protocols for making contributions, including how to submit pull requests, report bugs, and more.
-- [Continuous Integration (CI) Guide](CI.md): Gain insights into the CI processes we employ, complete with status reports for each Ultralytics repository.
-- [Contributor License Agreement (CLA)](CLA.md): Review the CLA to understand the rights and responsibilities associated with contributing to Ultralytics projects.
-- [Minimum Reproducible Example (MRE) Guide](minimum_reproducible_example.md): Learn the process for creating an MRE, which is crucial for the timely and effective resolution of bug reports.
-- [Code of Conduct](code_of_conduct.md): Our community guidelines support a respectful and open atmosphere for all collaborators.
-- [Environmental, Health and Safety (EHS) Policy](environmental-health-safety.md): Delve into our commitment to sustainability and the well-being of all our stakeholders.
-- [Security Policy](security.md): Familiarize yourself with our security protocols and the procedure for reporting vulnerabilities.
-- [Privacy Policy](privacy.md): Read our privacy policy to understand how we protect your data and respect your privacy in all our services and operations.
-
-We encourage you to review these resources for a seamless and productive experience. Our aim is to foster a helpful and friendly environment for everyone in the Ultralytics community. Should you require additional support, please feel free to reach out via GitHub Issues or our official discussion forums. Happy coding!
diff --git a/ultralytics-main/docs/en/help/minimum_reproducible_example.md b/ultralytics-main/docs/en/help/minimum_reproducible_example.md
deleted file mode 100644
index 47a0cdf..0000000
--- a/ultralytics-main/docs/en/help/minimum_reproducible_example.md
+++ /dev/null
@@ -1,78 +0,0 @@
----
-comments: true
-description: Learn how to create minimum reproducible examples (MRE) for efficient bug reporting in Ultralytics YOLO repositories with this step-by-step guide.
-keywords: Ultralytics, YOLO, minimum reproducible example, MRE, bug reports, guide, dependencies, code, troubleshooting
----
-
-# Creating a Minimum Reproducible Example for Bug Reports in Ultralytics YOLO Repositories
-
-When submitting a bug report for Ultralytics YOLO repositories, it's essential to provide a [minimum reproducible example](https://docs.ultralytics.com/help/minimum_reproducible_example/) (MRE). An MRE is a small, self-contained piece of code that demonstrates the problem you're experiencing. Providing an MRE helps maintainers and contributors understand the issue and work on a fix more efficiently. This guide explains how to create an MRE when submitting bug reports to Ultralytics YOLO repositories.
-
-## 1. Isolate the Problem
-
-The first step in creating an MRE is to isolate the problem. This means removing any unnecessary code or dependencies that are not directly related to the issue. Focus on the specific part of the code that is causing the problem and remove any irrelevant code.
-
-## 2. Use Public Models and Datasets
-
-When creating an MRE, use publicly available models and datasets to reproduce the issue. For example, use the 'yolov8n.pt' model and the 'coco8.yaml' dataset. This ensures that the maintainers and contributors can easily run your example and investigate the problem without needing access to proprietary data or custom models.
-
-## 3. Include All Necessary Dependencies
-
-Make sure to include all the necessary dependencies in your MRE. If your code relies on external libraries, specify the required packages and their versions. Ideally, provide a `requirements.txt` file or list the dependencies in your bug report.
-
-## 4. Write a Clear Description of the Issue
-
-Provide a clear and concise description of the issue you're experiencing. Explain the expected behavior and the actual behavior you're encountering. If applicable, include any relevant error messages or logs.
-
-## 5. Format Your Code Properly
-
-When submitting an MRE, format your code properly using code blocks in the issue description. This makes it easier for others to read and understand your code. In GitHub, you can create a code block by wrapping your code with triple backticks (\```) and specifying the language:
-
-
-```python
-# Your Python code goes here
-```
-
-
-## 6. Test Your MRE
-
-Before submitting your MRE, test it to ensure that it accurately reproduces the issue. Make sure that others can run your example without any issues or modifications.
-
-## Example of an MRE
-
-Here's an example of an MRE for a hypothetical bug report:
-
-**Bug description:**
-
-When running the `detect.py` script on the sample image from the 'coco8.yaml' dataset, I get an error related to the dimensions of the input tensor.
-
-**MRE:**
-
-```python
-import torch
-from ultralytics import YOLO
-
-# Load the model
-model = YOLO("yolov8n.pt")
-
-# Load a 0-channel image
-image = torch.rand(1, 0, 640, 640)
-
-# Run the model
-results = model(image)
-```
-
-**Error message:**
-
-```
-RuntimeError: Expected input[1, 0, 640, 640] to have 3 channels, but got 0 channels instead
-```
-
-**Dependencies:**
-
-- torch==2.0.0
-- ultralytics==8.0.90
-
-In this example, the MRE demonstrates the issue with a minimal amount of code, uses a public model ('yolov8n.pt'), includes all necessary dependencies, and provides a clear description of the problem along with the error message.
-
-By following these guidelines, you'll help the maintainers and contributors of Ultralytics YOLO repositories to understand and resolve your issue more efficiently.
diff --git a/ultralytics-main/docs/en/help/privacy.md b/ultralytics-main/docs/en/help/privacy.md
deleted file mode 100644
index c9bc3a5..0000000
--- a/ultralytics-main/docs/en/help/privacy.md
+++ /dev/null
@@ -1,137 +0,0 @@
----
-description: Learn about how Ultralytics collects and uses data to improve user experience, ensure software stability, and address privacy concerns, with options to opt-out.
-keywords: Ultralytics, Data Collection, User Privacy, Google Analytics, Sentry, Crash Reporting, Anonymized Data, Privacy Settings, Opt-Out
----
-
-# Data Collection for Ultralytics Python Package
-
-## Overview
-
-[Ultralytics](https://ultralytics.com) is dedicated to the continuous enhancement of the user experience and the capabilities of our Python package, including the advanced YOLO models we develop. Our approach involves the gathering of anonymized usage statistics and crash reports, helping us identify opportunities for improvement and ensuring the reliability of our software. This transparency document outlines what data we collect, its purpose, and the choice you have regarding this data collection.
-
-## Anonymized Google Analytics
-
-[Google Analytics](https://developers.google.com/analytics) is a web analytics service offered by Google that tracks and reports website traffic. It allows us to collect data about how our Python package is used, which is crucial for making informed decisions about design and functionality.
-
-### What We Collect
-
-- **Usage Metrics**: These metrics help us understand how frequently and in what ways the package is utilized, what features are favored, and the typical command-line arguments that are used.
-- **System Information**: We collect general non-identifiable information about your computing environment to ensure our package performs well across various systems.
-- **Performance Data**: Understanding the performance of our models during training, validation, and inference helps us in identifying optimization opportunities.
-
-For more information about Google Analytics and data privacy, visit [Google Analytics Privacy](https://support.google.com/analytics/answer/6004245).
-
-### How We Use This Data
-
-- **Feature Improvement**: Insights from usage metrics guide us in enhancing user satisfaction and interface design.
-- **Optimization**: Performance data assist us in fine-tuning our models for better efficiency and speed across diverse hardware and software configurations.
-- **Trend Analysis**: By studying usage trends, we can predict and respond to the evolving needs of our community.
-
-### Privacy Considerations
-
-We take several measures to ensure the privacy and security of the data you entrust to us:
-
-- **Anonymization**: We configure Google Analytics to anonymize the data collected, which means no personally identifiable information (PII) is gathered. You can use our services with the assurance that your personal details remain private.
-- **Aggregation**: Data is analyzed only in aggregate form. This practice ensures that patterns can be observed without revealing any individual user's activity.
-- **No Image Data Collection**: Ultralytics does not collect, process, or view any training or inference images.
-
-## Sentry Crash Reporting
-
-[Sentry](https://sentry.io/) is a developer-centric error tracking software that aids in identifying, diagnosing, and resolving issues in real-time, ensuring the robustness and reliability of applications. Within our package, it plays a crucial role by providing insights through crash reporting, significantly contributing to the stability and ongoing refinement of our software.
-
-!!! Note
-
- Crash reporting via Sentry is activated only if the `sentry-sdk` Python package is pre-installed on your system. This package isn't included in the `ultralytics` prerequisites and won't be installed automatically by Ultralytics.
-
-### What We Collect
-
-If the `sentry-sdk` Python package is pre-installed on your system a crash event may send the following information:
-
-- **Crash Logs**: Detailed reports on the application's condition at the time of a crash, which are vital for our debugging efforts.
-- **Error Messages**: We record error messages generated during the operation of our package to understand and resolve potential issues quickly.
-
-To learn more about how Sentry handles data, please visit [Sentry's Privacy Policy](https://sentry.io/privacy/).
-
-### How We Use This Data
-
-- **Debugging**: Analyzing crash logs and error messages enables us to swiftly identify and correct software bugs.
-- **Stability Metrics**: By constantly monitoring for crashes, we aim to improve the stability and reliability of our package.
-
-### Privacy Considerations
-
-- **Sensitive Information**: We ensure that crash logs are scrubbed of any personally identifiable or sensitive user data, safeguarding the confidentiality of your information.
-- **Controlled Collection**: Our crash reporting mechanism is meticulously calibrated to gather only what is essential for troubleshooting while respecting user privacy.
-
-By detailing the tools used for data collection and offering additional background information with URLs to their respective privacy pages, users are provided with a comprehensive view of our practices, emphasizing transparency and respect for user privacy.
-
-## Disabling Data Collection
-
-We believe in providing our users with full control over their data. By default, our package is configured to collect analytics and crash reports to help improve the experience for all users. However, we respect that some users may prefer to opt out of this data collection.
-
-To opt out of sending analytics and crash reports, you can simply set `sync=False` in your YOLO settings. This ensures that no data is transmitted from your machine to our analytics tools.
-
-### Inspecting Settings
-
-To gain insight into the current configuration of your settings, you can view them directly:
-
-!!! Example "View settings"
-
- === "Python"
- You can use Python to view your settings. Start by importing the `settings` object from the `ultralytics` module. Print and return settings using the following commands:
- ```python
- from ultralytics import settings
-
- # View all settings
- print(settings)
-
- # Return analytics and crash reporting setting
- value = settings['sync']
- ```
-
- === "CLI"
- Alternatively, the command-line interface allows you to check your settings with a simple command:
- ```bash
- yolo settings
- ```
-
-### Modifying Settings
-
-Ultralytics allows users to easily modify their settings. Changes can be performed in the following ways:
-
-!!! Example "Update settings"
-
- === "Python"
- Within the Python environment, call the `update` method on the `settings` object to change your settings:
- ```python
- from ultralytics import settings
-
- # Disable analytics and crash reporting
- settings.update({'sync': False})
-
- # Reset settings to default values
- settings.reset()
- ```
-
- === "CLI"
- If you prefer using the command-line interface, the following commands will allow you to modify your settings:
- ```bash
- # Disable analytics and crash reporting
- yolo settings sync=False
-
- # Reset settings to default values
- yolo settings reset
- ```
-
-The `sync=False` setting will prevent any data from being sent to Google Analytics or Sentry. Your settings will be respected across all sessions using the Ultralytics package and saved to disk for future sessions.
-
-## Commitment to Privacy
-
-Ultralytics takes user privacy seriously. We design our data collection practices with the following principles:
-
-- **Transparency**: We are open about the data we collect and how it is used.
-- **Control**: We give users full control over their data.
-- **Security**: We employ industry-standard security measures to protect the data we collect.
-
-## Questions or Concerns
-
-If you have any questions or concerns about our data collection practices, please reach out to us via our [contact form](https://ultralytics.com/contact) or via [support@ultralytics.com](mailto:support@ultralytics.com). We are dedicated to ensuring our users feel informed and confident in their privacy when using our package.
diff --git a/ultralytics-main/docs/en/help/security.md b/ultralytics-main/docs/en/help/security.md
deleted file mode 100644
index 01ea1f8..0000000
--- a/ultralytics-main/docs/en/help/security.md
+++ /dev/null
@@ -1,36 +0,0 @@
----
-description: Explore Ultralytics' comprehensive security strategies safeguarding user data and systems. Learn about our diverse security tools, including Snyk, GitHub CodeQL, and Dependabot Alerts.
-keywords: Ultralytics, Comprehensive Security, user data protection, Snyk, GitHub CodeQL, Dependabot, vulnerability management, coding security practices
----
-
-# Ultralytics Security Policy
-
-At [Ultralytics](https://ultralytics.com), the security of our users' data and systems is of utmost importance. To ensure the safety and security of our [open-source projects](https://github.com/ultralytics), we have implemented several measures to detect and prevent security vulnerabilities.
-
-## Snyk Scanning
-
-We utilize [Snyk](https://snyk.io/advisor/python/ultralytics) to conduct comprehensive security scans on Ultralytics repositories. Snyk's robust scanning capabilities extend beyond dependency checks; it also examines our code and Dockerfiles for various vulnerabilities. By identifying and addressing these issues proactively, we ensure a higher level of security and reliability for our users.
-
-[![ultralytics](https://snyk.io/advisor/python/ultralytics/badge.svg)](https://snyk.io/advisor/python/ultralytics)
-
-## GitHub CodeQL Scanning
-
-Our security strategy includes GitHub's [CodeQL](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning-with-codeql) scanning. CodeQL delves deep into our codebase, identifying complex vulnerabilities like SQL injection and XSS by analyzing the code's semantic structure. This advanced level of analysis ensures early detection and resolution of potential security risks.
-
-[![CodeQL](https://github.com/ultralytics/ultralytics/actions/workflows/codeql.yaml/badge.svg)](https://github.com/ultralytics/ultralytics/actions/workflows/codeql.yaml)
-
-## GitHub Dependabot Alerts
-
-[Dependabot](https://docs.github.com/en/code-security/dependabot) is integrated into our workflow to monitor dependencies for known vulnerabilities. When a vulnerability is identified in one of our dependencies, Dependabot alerts us, allowing for swift and informed remediation actions.
-
-## GitHub Secret Scanning Alerts
-
-We employ GitHub [secret scanning](https://docs.github.com/en/code-security/secret-scanning/managing-alerts-from-secret-scanning) alerts to detect sensitive data, such as credentials and private keys, accidentally pushed to our repositories. This early detection mechanism helps prevent potential security breaches and data exposures.
-
-## Private Vulnerability Reporting
-
-We enable private vulnerability reporting, allowing users to discreetly report potential security issues. This approach facilitates responsible disclosure, ensuring vulnerabilities are handled securely and efficiently.
-
-If you suspect or discover a security vulnerability in any of our repositories, please let us know immediately. You can reach out to us directly via our [contact form](https://ultralytics.com/contact) or via [security@ultralytics.com](mailto:security@ultralytics.com). Our security team will investigate and respond as soon as possible.
-
-We appreciate your help in keeping all Ultralytics open-source projects secure and safe for everyone 🙏.
diff --git a/ultralytics-main/docs/en/hub/api/index.md b/ultralytics-main/docs/en/hub/api/index.md
deleted file mode 100644
index f8d7802..0000000
--- a/ultralytics-main/docs/en/hub/api/index.md
+++ /dev/null
@@ -1,34 +0,0 @@
----
-description: Discover what's next for Ultralytics with our under-construction page, previewing new, groundbreaking AI and ML features coming soon.
-keywords: Ultralytics, coming soon, under construction, new features, AI updates, ML advancements, YOLO, technology preview
----
-
-# Under Construction 🏗️🌟
-
-Welcome to the Ultralytics "Under Construction" page! Here, we're hard at work developing the next generation of AI and ML innovations. This page serves as a teaser for the exciting updates and new features we're eager to share with you!
-
-## Exciting New Features on the Way 🎉
-
-- **Innovative Breakthroughs:** Get ready for advanced features and services that will transform your AI and ML experience.
-- **New Horizons:** Anticipate novel products that redefine AI and ML capabilities.
-- **Enhanced Services:** We're upgrading our services for greater efficiency and user-friendliness.
-
-## Stay Updated 🚧
-
-This placeholder page is your first stop for upcoming developments. Keep an eye out for:
-
-- **Newsletter:** Subscribe [here](https://ultralytics.com/#newsletter) for the latest news.
-- **Social Media:** Follow us [here](https://www.linkedin.com/company/ultralytics) for updates and teasers.
-- **Blog:** Visit our [blog](https://ultralytics.com/blog) for detailed insights.
-
-## We Value Your Input 🗣️
-
-Your feedback shapes our future releases. Share your thoughts and suggestions [here](https://ultralytics.com/contact).
-
-## Thank You, Community! 🌍
-
-Your [contributions](https://docs.ultralytics.com/help/contributing) inspire our continuous [innovation](https://github.com/ultralytics/ultralytics). Stay tuned for the big reveal of what's next in AI and ML at Ultralytics!
-
----
-
-Excited for what's coming? Bookmark this page and get ready for a transformative AI and ML journey with Ultralytics! 🛠️🤖
diff --git a/ultralytics-main/docs/en/hub/app/android.md b/ultralytics-main/docs/en/hub/app/android.md
deleted file mode 100644
index 7a80474..0000000
--- a/ultralytics-main/docs/en/hub/app/android.md
+++ /dev/null
@@ -1,100 +0,0 @@
----
-comments: true
-description: Learn about the Ultralytics Android App, enabling real-time object detection using YOLO models. Discover in-app features, quantization methods, and delegate options for optimal performance.
-keywords: Ultralytics, Android App, real-time object detection, YOLO models, TensorFlow Lite, FP16 quantization, INT8 quantization, CPU, GPU, Hexagon, NNAPI
----
-
-# Ultralytics Android App: Real-time Object Detection with YOLO Models
-
-
-
-
-
-
-The Ultralytics Android App is a powerful tool that allows you to run YOLO models directly on your Android device for real-time object detection. This app utilizes TensorFlow Lite for model optimization and various hardware delegates for acceleration, enabling fast and efficient object detection.
-
-
-
-
-
- Watch: Getting Started with the Ultralytics HUB App (IOS & Android)
-
-
-## Quantization and Acceleration
-
-To achieve real-time performance on your Android device, YOLO models are quantized to either FP16 or INT8 precision. Quantization is a process that reduces the numerical precision of the model's weights and biases, thus reducing the model's size and the amount of computation required. This results in faster inference times without significantly affecting the model's accuracy.
-
-### FP16 Quantization
-
-FP16 (or half-precision) quantization converts the model's 32-bit floating-point numbers to 16-bit floating-point numbers. This reduces the model's size by half and speeds up the inference process, while maintaining a good balance between accuracy and performance.
-
-### INT8 Quantization
-
-INT8 (or 8-bit integer) quantization further reduces the model's size and computation requirements by converting its 32-bit floating-point numbers to 8-bit integers. This quantization method can result in a significant speedup, but it may lead to a slight reduction in mean average precision (mAP) due to the lower numerical precision.
-
-!!! Tip "mAP Reduction in INT8 Models"
-
- The reduced numerical precision in INT8 models can lead to some loss of information during the quantization process, which may result in a slight decrease in mAP. However, this trade-off is often acceptable considering the substantial performance gains offered by INT8 quantization.
-
-## Delegates and Performance Variability
-
-Different delegates are available on Android devices to accelerate model inference. These delegates include CPU, [GPU](https://www.tensorflow.org/lite/android/delegates/gpu), [Hexagon](https://www.tensorflow.org/lite/android/delegates/hexagon) and [NNAPI](https://www.tensorflow.org/lite/android/delegates/nnapi). The performance of these delegates varies depending on the device's hardware vendor, product line, and specific chipsets used in the device.
-
-1. **CPU**: The default option, with reasonable performance on most devices.
-2. **GPU**: Utilizes the device's GPU for faster inference. It can provide a significant performance boost on devices with powerful GPUs.
-3. **Hexagon**: Leverages Qualcomm's Hexagon DSP for faster and more efficient processing. This option is available on devices with Qualcomm Snapdragon processors.
-4. **NNAPI**: The Android Neural Networks API (NNAPI) serves as an abstraction layer for running ML models on Android devices. NNAPI can utilize various hardware accelerators, such as CPU, GPU, and dedicated AI chips (e.g., Google's Edge TPU, or the Pixel Neural Core).
-
-Here's a table showing the primary vendors, their product lines, popular devices, and supported delegates:
-
-| Vendor | Product Lines | Popular Devices | Delegates Supported |
-|-----------------------------------------|--------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------|
-| [Qualcomm](https://www.qualcomm.com/) | [Snapdragon (e.g., 800 series)](https://www.qualcomm.com/snapdragon) | [Samsung Galaxy S21](https://www.samsung.com/global/galaxy/galaxy-s21-5g/), [OnePlus 9](https://www.oneplus.com/9), [Google Pixel 6](https://store.google.com/product/pixel_6) | CPU, GPU, Hexagon, NNAPI |
-| [Samsung](https://www.samsung.com/) | [Exynos (e.g., Exynos 2100)](https://www.samsung.com/semiconductor/minisite/exynos/) | [Samsung Galaxy S21 (Global version)](https://www.samsung.com/global/galaxy/galaxy-s21-5g/) | CPU, GPU, NNAPI |
-| [MediaTek](https://i.mediatek.com/) | [Dimensity (e.g., Dimensity 1200)](https://i.mediatek.com/dimensity-1200) | [Realme GT](https://www.realme.com/global/realme-gt), [Xiaomi Redmi Note](https://www.mi.com/en/phone/redmi/note-list) | CPU, GPU, NNAPI |
-| [HiSilicon](https://www.hisilicon.com/) | [Kirin (e.g., Kirin 990)](https://www.hisilicon.com/en/products/Kirin) | [Huawei P40 Pro](https://consumer.huawei.com/en/phones/p40-pro/), [Huawei Mate 30 Pro](https://consumer.huawei.com/en/phones/mate30-pro/) | CPU, GPU, NNAPI |
-| [NVIDIA](https://www.nvidia.com/) | [Tegra (e.g., Tegra X1)](https://developer.nvidia.com/content/tegra-x1) | [NVIDIA Shield TV](https://www.nvidia.com/en-us/shield/shield-tv/), [Nintendo Switch](https://www.nintendo.com/switch/) | CPU, GPU, NNAPI |
-
-Please note that the list of devices mentioned is not exhaustive and may vary depending on the specific chipsets and device models. Always test your models on your target devices to ensure compatibility and optimal performance.
-
-Keep in mind that the choice of delegate can affect performance and model compatibility. For example, some models may not work with certain delegates, or a delegate may not be available on a specific device. As such, it's essential to test your model and the chosen delegate on your target devices for the best results.
-
-## Getting Started with the Ultralytics Android App
-
-To get started with the Ultralytics Android App, follow these steps:
-
-1. Download the Ultralytics App from the [Google Play Store](https://play.google.com/store/apps/details?id=com.ultralytics.ultralytics_app).
-
-2. Launch the app on your Android device and sign in with your Ultralytics account. If you don't have an account yet, create one [here](https://hub.ultralytics.com/).
-
-3. Once signed in, you will see a list of your trained YOLO models. Select a model to use for object detection.
-
-4. Grant the app permission to access your device's camera.
-
-5. Point your device's camera at objects you want to detect. The app will display bounding boxes and class labels in real-time as it detects objects.
-
-6. Explore the app's settings to adjust the detection threshold, enable or disable specific object classes, and more.
-
-With the Ultralytics Android App, you now have the power of real-time object detection using YOLO models right at your fingertips. Enjoy exploring the app's features and optimizing its settings to suit your specific use cases.
diff --git a/ultralytics-main/docs/en/hub/app/index.md b/ultralytics-main/docs/en/hub/app/index.md
deleted file mode 100644
index ef962e8..0000000
--- a/ultralytics-main/docs/en/hub/app/index.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-comments: true
-description: Explore the Ultralytics HUB App, offering the ability to run YOLOv5 and YOLOv8 models on your iOS and Android devices with optimized performance.
-keywords: Ultralytics, HUB App, YOLOv5, YOLOv8, mobile AI, real-time object detection, image recognition, mobile device, hardware acceleration, Apple Neural Engine, Android GPU, NNAPI, custom model training
----
-
-# Ultralytics HUB App
-
-
-
-
-
-
-Welcome to the Ultralytics HUB App! We are excited to introduce this powerful mobile app that allows you to run YOLOv5 and YOLOv8 models directly on your [iOS](https://apps.apple.com/xk/app/ultralytics/id1583935240) and [Android](https://play.google.com/store/apps/details?id=com.ultralytics.ultralytics_app) devices. With the HUB App, you can utilize hardware acceleration features like Apple's Neural Engine (ANE) or Android GPU and Neural Network API (NNAPI) delegates to achieve impressive performance on your mobile device.
-
-## Features
-
-- **Run YOLOv5 and YOLOv8 models**: Experience the power of YOLO models on your mobile device for real-time object detection and image recognition tasks.
-- **Hardware Acceleration**: Benefit from Apple ANE on iOS devices or Android GPU and NNAPI delegates for optimized performance.
-- **Custom Model Training**: Train custom models with the Ultralytics HUB platform and preview them live using the HUB App.
-- **Mobile Compatibility**: The HUB App supports both iOS and Android devices, bringing the power of YOLO models to a wide range of users.
-
-## App Documentation
-
-- [**iOS**](ios.md): Learn about YOLO CoreML models accelerated on Apple's Neural Engine for iPhones and iPads.
-- [**Android**](android.md): Explore TFLite acceleration on Android mobile devices.
-
-Get started today by downloading the Ultralytics HUB App on your mobile device and unlock the potential of YOLOv5 and YOLOv8 models on-the-go. Don't forget to check out our comprehensive [HUB Docs](../index.md) for more information on training, deploying, and using your custom models with the Ultralytics HUB platform.
diff --git a/ultralytics-main/docs/en/hub/app/ios.md b/ultralytics-main/docs/en/hub/app/ios.md
deleted file mode 100644
index 41e4b63..0000000
--- a/ultralytics-main/docs/en/hub/app/ios.md
+++ /dev/null
@@ -1,90 +0,0 @@
----
-comments: true
-description: Execute object detection in real-time on your iOS devices utilizing YOLO models. Leverage the power of the Apple Neural Engine and Core ML for fast and efficient object detection.
-keywords: Ultralytics, iOS app, object detection, YOLO models, real time, Apple Neural Engine, Core ML, FP16, INT8, quantization
----
-
-# Ultralytics iOS App: Real-time Object Detection with YOLO Models
-
-
-
-
-
-
-The Ultralytics iOS App is a powerful tool that allows you to run YOLO models directly on your iPhone or iPad for real-time object detection. This app utilizes the Apple Neural Engine and Core ML for model optimization and acceleration, enabling fast and efficient object detection.
-
-
-
-
-
- Watch: Getting Started with the Ultralytics HUB App (IOS & Android)
-
-
-## Quantization and Acceleration
-
-To achieve real-time performance on your iOS device, YOLO models are quantized to either FP16 or INT8 precision. Quantization is a process that reduces the numerical precision of the model's weights and biases, thus reducing the model's size and the amount of computation required. This results in faster inference times without significantly affecting the model's accuracy.
-
-### FP16 Quantization
-
-FP16 (or half-precision) quantization converts the model's 32-bit floating-point numbers to 16-bit floating-point numbers. This reduces the model's size by half and speeds up the inference process, while maintaining a good balance between accuracy and performance.
-
-### INT8 Quantization
-
-INT8 (or 8-bit integer) quantization further reduces the model's size and computation requirements by converting its 32-bit floating-point numbers to 8-bit integers. This quantization method can result in a significant speedup, but it may lead to a slight reduction in accuracy.
-
-## Apple Neural Engine
-
-The Apple Neural Engine (ANE) is a dedicated hardware component integrated into Apple's A-series and M-series chips. It's designed to accelerate machine learning tasks, particularly for neural networks, allowing for faster and more efficient execution of your YOLO models.
-
-By combining quantized YOLO models with the Apple Neural Engine, the Ultralytics iOS App achieves real-time object detection on your iOS device without compromising on accuracy or performance.
-
-| Release Year | iPhone Name | Chipset Name | Node Size | ANE TOPs |
-|--------------|------------------------------------------------------|-------------------------------------------------------|-----------|----------|
-| 2017 | [iPhone X](https://en.wikipedia.org/wiki/IPhone_X) | [A11 Bionic](https://en.wikipedia.org/wiki/Apple_A11) | 10 nm | 0.6 |
-| 2018 | [iPhone XS](https://en.wikipedia.org/wiki/IPhone_XS) | [A12 Bionic](https://en.wikipedia.org/wiki/Apple_A12) | 7 nm | 5 |
-| 2019 | [iPhone 11](https://en.wikipedia.org/wiki/IPhone_11) | [A13 Bionic](https://en.wikipedia.org/wiki/Apple_A13) | 7 nm | 6 |
-| 2020 | [iPhone 12](https://en.wikipedia.org/wiki/IPhone_12) | [A14 Bionic](https://en.wikipedia.org/wiki/Apple_A14) | 5 nm | 11 |
-| 2021 | [iPhone 13](https://en.wikipedia.org/wiki/IPhone_13) | [A15 Bionic](https://en.wikipedia.org/wiki/Apple_A15) | 5 nm | 15.8 |
-| 2022 | [iPhone 14](https://en.wikipedia.org/wiki/IPhone_14) | [A16 Bionic](https://en.wikipedia.org/wiki/Apple_A16) | 4 nm | 17.0 |
-
-Please note that this list only includes iPhone models from 2017 onwards, and the ANE TOPs values are approximate.
-
-## Getting Started with the Ultralytics iOS App
-
-To get started with the Ultralytics iOS App, follow these steps:
-
-1. Download the Ultralytics App from the [App Store](https://apps.apple.com/xk/app/ultralytics/id1583935240).
-
-2. Launch the app on your iOS device and sign in with your Ultralytics account. If you don't have an account yet, create one [here](https://hub.ultralytics.com/).
-
-3. Once signed in, you will see a list of your trained YOLO models. Select a model to use for object detection.
-
-4. Grant the app permission to access your device's camera.
-
-5. Point your device's camera at objects you want to detect. The app will display bounding boxes and class labels in real-time as it detects objects.
-
-6. Explore the app's settings to adjust the detection threshold, enable or disable specific object classes, and more.
-
-With the Ultralytics iOS App, you can now leverage the power of YOLO models for real-time object detection on your iPhone or iPad, powered by the Apple Neural Engine and optimized with FP16 or INT8 quantization.
diff --git a/ultralytics-main/docs/en/hub/cloud-training.md b/ultralytics-main/docs/en/hub/cloud-training.md
deleted file mode 100644
index f774475..0000000
--- a/ultralytics-main/docs/en/hub/cloud-training.md
+++ /dev/null
@@ -1,89 +0,0 @@
----
-comments: true
-description: Learn how to use Ultralytics HUB for efficient and user-friendly AI model training in the cloud. Follow our detailed guide for easy model creation, training, evaluation, and deployment.
-keywords: Ultralytics, HUB Models, AI model training, model creation, model training, model evaluation, model deployment
----
-
-# Cloud Training
-
-[Ultralytics HUB](https://hub.ultralytics.com/) provides a powerful and user-friendly cloud platform to train custom object detection models. Easily select your dataset and the desired training method, then kick off the process with just a few clicks. Ultralytics HUB offers pre-built options and various model architectures to streamline your workflow.
-
-![cloud training cover](https://github.com/ultralytics/ultralytics/assets/19519529/cbfdb3b8-ad35-44a6-afe6-61ec0b8e8b8d)
-
-Read more about creating and other details of a Model at our [HUB Models page](models.md)
-
-
-
-
-
- Watch: New Feature 🌟 Introducing Ultralytics HUB Cloud Training
-
-
-## Selecting an Instance
-
-For details on picking a model and instances for it, please read our [Instances guide Page](models.md)
-
-## Steps to Train the Model
-
-Once the instance has been selected, training a model using Ultralytics HUB is a three-step process, as below:
-
-1. Picking a Dataset - Read more about datasets, steps to add/remove datasets from the [Dataset page](datasets.md)
-2. Picking a Model - Read more about models, steps to create/share and handle a model on the [HUB Models page](models.md)
-3. Training the Model on the Chosen Dataset
-
-Ultralytics HUB offers three training options:
-
-- **Ultralytics Cloud** - Explained in this page.
-- **Google Colab** - Train on Google's popular Colab notebooks.
-- **Bring your own agent** - Train models locally on your own hardware or on-premise GPU servers.
-
-In order to start training your model, follow the instructions presented in these steps.
-
-## Training via Ultralytics Cloud
-
-To start training your model using Ultralytics Cloud, simply select the Training Duration, Available Instances, and Payment options.
-
-**Training Duration** - Ultralytics offers two kinds of training durations:
-
-1. Training based on `Epochs`: This option allows you to train your model based on the number of times your dataset needs to go through the cycle of train, label, and test. The exact pricing based on the number of epochs is hard to determine. Hence, if the credit gets exhausted before the intended number of epochs, the training pauses, and you get a prompt to top-up and resume training.
-2. Timed Training: The timed training feature allows you to fix the time duration of the entire training process and also determines the estimated amount before the start of training.
-
-![Ultralytics cloud screenshot of training duration options](https://github.com/ultralytics/ultralytics/assets/19519529/47b96f3f-a9ea-441a-b065-cba97edc333f)
-
-When the training starts, you can click **Done** and monitor the training progress on the Model page.
-
-## Monitor Your Training
-
-Once the model and mode of training have been selected, you can monitor the training procedure on the `Train` section with the link provided in the terminal (on your agent/Google Colab) or a button from Ultralytics Cloud.
-
-![Monitor your Training](https://github.com/ultralytics/ultralytics/assets/19519529/316f8301-0d60-465e-8c99-aa3daf66433c)
-
-## Stopping and Resuming Your Training
-
-Once the training has started, you can `Stop` the training, which will also correspondingly pause the credit usage. You can then `Resume` the training from the point where it stopped.
-
-![Pausing and Resuming Training](https://github.com/ultralytics/ultralytics/assets/19519529/b2707a93-fa5c-4ee2-8443-6be9e1c2857d)
-
-## Payments and Billing Options
-
-Ultralytics HUB offers `Pay Now` as upfront and/or using `Ultralytics HUB Account` as a wallet to top up and fulfill the billing. You can choose from two types of accounts: `Free` and `Pro` user.
-
-To access your profile, click on the profile picture in the bottom left corner.
-
-![Clicking profile picture](https://github.com/ultralytics/ultralytics/assets/19519529/53e5410e-06f5-4b40-b29d-ef00b5779163)
-
-Click on the Billing tab to view your current plan and options to upgrade it.
-
-![Clicking Upgrade button](https://github.com/ultralytics/ultralytics/assets/19519529/361b43c7-a9d4-4d05-b80b-dc1fa8bce829)
-
-You will be prompted with different available plans, and you can pick from the available plans as shown below.
-
-![Picking a plan](https://github.com/ultralytics/ultralytics/assets/19519529/4326b01c-0d7d-4850-ac4f-ced2de3339ee)
-
-Navigate to the Payment page, fill in the details, and complete the payment.
-
-![Payment Page](https://github.com/ultralytics/ultralytics/assets/19519529/5deebabe-1d8a-485a-b290-e038729c849f)
diff --git a/ultralytics-main/docs/en/hub/datasets.md b/ultralytics-main/docs/en/hub/datasets.md
deleted file mode 100644
index aadc59d..0000000
--- a/ultralytics-main/docs/en/hub/datasets.md
+++ /dev/null
@@ -1,146 +0,0 @@
----
-comments: true
-description: Learn how Ultralytics HUB datasets streamline your ML workflow. Upload, format, validate, access, share, edit or delete datasets for Ultralytics YOLO model training.
-keywords: Ultralytics, HUB datasets, YOLO model training, upload datasets, dataset validation, ML workflow, share datasets
----
-
-# HUB Datasets
-
-[Ultralytics HUB](https://hub.ultralytics.com/) datasets are a practical solution for managing and leveraging your custom datasets.
-
-Once uploaded, datasets can be immediately utilized for model training. This integrated approach facilitates a seamless transition from dataset management to model training, significantly simplifying the entire process.
-
-
-
-
-
- Watch: Watch: Upload Datasets to Ultralytics HUB | Complete Walkthrough of Dataset Upload Feature
-
-
-## Upload Dataset
-
-Ultralytics HUB datasets are just like YOLOv5 and YOLOv8 🚀 datasets. They use the same structure and the same label formats to keep everything simple.
-
-Before you upload a dataset to Ultralytics HUB, make sure to **place your dataset YAML file inside the dataset root directory** and that **your dataset YAML, directory and ZIP have the same name**, as shown in the example below, and then zip the dataset directory.
-
-For example, if your dataset is called "coco8", as our [COCO8](https://docs.ultralytics.com/datasets/detect/coco8) example dataset, then you should have a `coco8.yaml` inside your `coco8/` directory, which will create a `coco8.zip` when zipped:
-
-```bash
-zip -r coco8.zip coco8
-```
-
-You can download our [COCO8](https://github.com/ultralytics/hub/blob/main/example_datasets/coco8.zip) example dataset and unzip it to see exactly how to structure your dataset.
-
-
-
-
-
-The dataset YAML is the same standard YOLOv5 and YOLOv8 YAML format.
-
-!!! Example "coco8.yaml"
-
- ```yaml
- --8<-- "ultralytics/cfg/datasets/coco8.yaml"
- ```
-
-After zipping your dataset, you should validate it before uploading it to Ultralytics HUB. Ultralytics HUB conducts the dataset validation check post-upload, so by ensuring your dataset is correctly formatted and error-free ahead of time, you can forestall any setbacks due to dataset rejection.
-
-```py
-from ultralytics.hub import check_dataset
-
-check_dataset('path/to/coco8.zip')
-```
-
-Once your dataset ZIP is ready, navigate to the [Datasets](https://hub.ultralytics.com/datasets) page by clicking on the **Datasets** button in the sidebar.
-
-![Ultralytics HUB screenshot of the Home page with an arrow pointing to the Datasets button in the sidebar](https://github.com/ultralytics/ultralytics/assets/19519529/2d9f774c-100d-4ff4-a82b-2a38ced33c21)
-
-Click on the **Upload Dataset** button on the top right of the page. This action will trigger the **Upload Dataset** dialog.
-
-![Ultralytics HUB screenshot of the Dataset page with an arrow pointing to the Upload Dataset button](https://github.com/ultralytics/ultralytics/assets/19519529/52ac10f5-ce42-483a-ac02-1d37d2cba3de)
-
-Upload your dataset in the _Dataset .zip file_ field.
-
-You have the additional option to set a custom name and description for your Ultralytics HUB dataset.
-
-When you're happy with your dataset configuration, click **Upload**.
-
-![Ultralytics HUB screenshot of the Upload Dataset dialog with an arrow pointing to the Upload button](https://github.com/ultralytics/ultralytics/assets/19519529/7d210ff6-bdb2-4535-a661-0470274bd7d6)
-
-After your dataset is uploaded and processed, you will be able to access it from the Datasets page.
-
-![Ultralytics HUB screenshot of the Datasets page with an arrow pointing to one of the datasets](https://github.com/ultralytics/ultralytics/assets/19519529/a05d9b66-f8ba-4474-b8ac-ebe0dd143831)
-
-You can view the images in your dataset grouped by splits (Train, Validation, Test).
-
-![Ultralytics HUB screenshot of the Dataset page with an arrow pointing to the Images tab](https://github.com/ultralytics/ultralytics/assets/19519529/e07468e3-6284-4334-9783-84bfb11130f8)
-
-!!! tip "Tip"
-
- Each image can be enlarged for better visualization.
-
- ![Ultralytics HUB screenshot of the Images tab inside the Dataset page with an arrow pointing to the expand icon](https://github.com/ultralytics/ultralytics/assets/19519529/26f411a0-5153-4805-a8c1-cbd379708e28)
-
- ![Ultralytics HUB screenshot of the Images tab inside the Dataset page with one of the images expanded](https://github.com/ultralytics/ultralytics/assets/19519529/7d5e0d50-85e5-4014-9f5b-464284e5b291)
-
-Also, you can analyze your dataset by click on the **Overview** tab.
-
-![Ultralytics HUB screenshot of the Dataset page with an arrow pointing to the Overview tab](https://github.com/ultralytics/ultralytics/assets/19519529/5eaacd5d-fedf-4332-9091-1418c9f333cb)
-
-Next, [train a model](https://docs.ultralytics.com/hub/models/#train-model) on your dataset.
-
-![Ultralytics HUB screenshot of the Dataset page with an arrow pointing to the Train Model button](https://github.com/ultralytics/ultralytics/assets/19519529/cb709e5f-a10b-478f-a81d-a48f61c193fe)
-
-## Share Dataset
-
-!!! Info "Info"
-
- Ultralytics HUB's sharing functionality provides a convenient way to share datasets with others. This feature is designed to accommodate both existing Ultralytics HUB users and those who have yet to create an account.
-
-!!! note "Note"
-
- You have control over the general access of your datasets.
-
- You can choose to set the general access to "Private", in which case, only you will have access to it. Alternatively, you can set the general access to "Unlisted" which grants viewing access to anyone who has the direct link to the dataset, regardless of whether they have an Ultralytics HUB account or not.
-
-Navigate to the Dataset page of the dataset you want to share, open the dataset actions dropdown and click on the **Share** option. This action will trigger the **Share Dataset** dialog.
-
-![Ultralytics HUB screenshot of the Dataset page with an arrow pointing to the Share option](https://github.com/ultralytics/ultralytics/assets/19519529/9a0e61e7-2838-42b3-8abe-a22980e6c680)
-
-!!! tip "Tip"
-
- You can also share a dataset directly from the [Datasets](https://hub.ultralytics.com/datasets) page.
-
- ![Ultralytics HUB screenshot of the Datasets page with an arrow pointing to the Share option of one of the datasets](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/datasets/hub_share_dataset_2.jpg)
-
-Set the general access to "Unlisted" and click **Save**.
-
-![Ultralytics HUB screenshot of the Share Dataset dialog with an arrow pointing to the dropdown and one to the Save button](https://github.com/ultralytics/ultralytics/assets/19519529/5818b928-19a3-48a8-892d-27ac1dc684dd)
-
-Now, anyone who has the direct link to your dataset can view it.
-
-!!! tip "Tip"
-
- You can easily click on the dataset's link shown in the **Share Dataset** dialog to copy it.
-
- ![Ultralytics HUB screenshot of the Share Dataset dialog with an arrow pointing to the dataset's link](https://github.com/ultralytics/ultralytics/assets/19519529/8ede7d20-2a68-411d-9de5-3175b5ba7038)
-
-## Edit / Delete Dataset
-
-Navigate to the Dataset page of the dataset you want to edit, open the dataset actions dropdown and click on the **Edit** option. This action will trigger the **Update Dataset** dialog.
-
-![Ultralytics HUB screenshot of the Dataset page with an arrow pointing to the Edit and Delete option](https://github.com/ultralytics/ultralytics/assets/19519529/6c248c8c-29cd-4bd5-b33d-43e90aa1d000)
-
-Apply the desired modifications to your dataset and then confirm the changes by clicking **Save**.
-
-Navigate to the Dataset page of the dataset you want to delete, open the dataset actions dropdown and click on the **Delete** option. This action will delete the dataset.
-
-!!! note "Note"
-
- If you change your mind, you can restore the dataset from the [Trash](https://hub.ultralytics.com/trash) page.
-
- ![Ultralytics HUB screenshot of the Trash page with an arrow pointing to the Restore option of one of the datasets](https://github.com/ultralytics/ultralytics/assets/19519529/56a9460c-0e06-4659-989d-715211b9d7ce)
diff --git a/ultralytics-main/docs/en/hub/index.md b/ultralytics-main/docs/en/hub/index.md
deleted file mode 100644
index 4b40240..0000000
--- a/ultralytics-main/docs/en/hub/index.md
+++ /dev/null
@@ -1,61 +0,0 @@
----
-comments: true
-description: Gain insights into training and deploying your YOLOv5 and YOLOv8 models with Ultralytics HUB. Explore pre-trained models, templates and various integrations.
-keywords: Ultralytics HUB, YOLOv5, YOLOv8, model training, model deployment, pretrained models, model integrations
----
-
-# Ultralytics HUB
-
-
-
-
-
-
-👋 Hello from the [Ultralytics](https://ultralytics.com/) Team! We've been working hard these last few months to launch [Ultralytics HUB](https://bit.ly/ultralytics_hub), a new web tool for training and deploying all your YOLOv5 and YOLOv8 🚀 models from one spot!
-
-## Introduction
-
-HUB is designed to be user-friendly and intuitive, with a drag-and-drop interface that allows users to easily upload their data and train new models quickly. It offers a range of pre-trained models and templates to choose from, making it easy for users to get started with training their own models. Once a model is trained, it can be easily deployed and used for real-time object detection, instance segmentation and classification tasks.
-
-
-
-
-
- Watch: Train Your Custom YOLO Models In A Few Clicks with Ultralytics HUB.
-
-
-We hope that the resources here will help you get the most out of HUB. Please browse the HUB Docs for details, raise an issue on GitHub for support, and join our Discord community for questions and discussions!
-
-- [**Quickstart**](quickstart.md). Start training and deploying YOLO models with HUB in seconds.
-- [**Datasets: Preparing and Uploading**](datasets.md). Learn how to prepare and upload your datasets to HUB in YOLO format.
-- [**Projects: Creating and Managing**](projects.md). Group your models into projects for improved organization.
-- [**Models: Training and Exporting**](models.md). Train YOLOv5 and YOLOv8 models on your custom datasets and export them to various formats for deployment.
-- [**Integrations: Options**](integrations.md). Explore different integration options for your trained models, such as TensorFlow, ONNX, OpenVINO, CoreML, and PaddlePaddle.
-- [**Ultralytics HUB App**](app/index.md). Learn about the Ultralytics App for iOS and Android, which allows you to run models directly on your mobile device.
- - [**iOS**](app/ios.md). Learn about YOLO CoreML models accelerated on Apple's Neural Engine on iPhones and iPads.
- - [**Android**](app/android.md). Explore TFLite acceleration on mobile devices.
-- [**Inference API**](inference-api.md). Understand how to use the Inference API for running your trained models in the cloud to generate predictions.
diff --git a/ultralytics-main/docs/en/hub/inference-api.md b/ultralytics-main/docs/en/hub/inference-api.md
deleted file mode 100644
index 869d21f..0000000
--- a/ultralytics-main/docs/en/hub/inference-api.md
+++ /dev/null
@@ -1,480 +0,0 @@
----
-comments: true
-description: Access object detection capabilities of YOLOv8 via our RESTful API. Learn how to use the YOLO Inference API with Python or cURL for swift object detection.
-keywords: Ultralytics, YOLOv8, Inference API, object detection, RESTful API, Python, cURL, Quickstart
----
-
-# YOLO Inference API
-
-The YOLO Inference API allows you to access the YOLOv8 object detection capabilities via a RESTful API. This enables you to run object detection on images without the need to install and set up the YOLOv8 environment locally.
-
-![Inference API Screenshot](https://github.com/ultralytics/ultralytics/assets/19519529/a8c00e55-1590-403b-bdee-ed456c60af4d) Screenshot of the Inference API section in the trained model Preview tab.
-
-
-
-## API URL
-
-The API URL is the address used to access the YOLO Inference API. In this case, the base URL is:
-
-```
-https://api.ultralytics.com/v1/predict
-```
-
-## Example Usage in Python
-
-To access the YOLO Inference API with the specified model and API key using Python, you can use the following code:
-
-```python
-import requests
-
-# API URL, use actual MODEL_ID
-url = f"https://api.ultralytics.com/v1/predict/MODEL_ID"
-
-# Headers, use actual API_KEY
-headers = {"x-api-key": "API_KEY"}
-
-# Inference arguments (optional)
-data = {"size": 640, "confidence": 0.25, "iou": 0.45}
-
-# Load image and send request
-with open("path/to/image.jpg", "rb") as image_file:
- files = {"image": image_file}
- response = requests.post(url, headers=headers, files=files, data=data)
-
-print(response.json())
-```
-
-In this example, replace `API_KEY` with your actual API key, `MODEL_ID` with the desired model ID, and `path/to/image.jpg` with the path to the image you want to analyze.
-
-## Example Usage with cURL
-
-You can use the YOLO Inference API with client URL (cURL) by utilizing the `curl` command. Replace `API_KEY` with your actual API key, `MODEL_ID` with the desired model ID, and `image.jpg` with the path to the image you want to analyze:
-
-```bash
-curl -X POST "https://api.ultralytics.com/v1/predict/MODEL_ID" \
- -H "x-api-key: API_KEY" \
- -F "image=@/path/to/image.jpg" \
- -F "size=640" \
- -F "confidence=0.25" \
- -F "iou=0.45"
-```
-
-## Passing Arguments
-
-This command sends a POST request to the YOLO Inference API with the specified `MODEL_ID` in the URL and the `API_KEY` in the request `headers`, along with the image file specified by `@path/to/image.jpg`.
-
-Here's an example of passing the `size`, `confidence`, and `iou` arguments via the API URL using the `requests` library in Python:
-
-```python
-import requests
-
-# API URL, use actual MODEL_ID
-url = f"https://api.ultralytics.com/v1/predict/MODEL_ID"
-
-# Headers, use actual API_KEY
-headers = {"x-api-key": "API_KEY"}
-
-# Inference arguments (optional)
-data = {"size": 640, "confidence": 0.25, "iou": 0.45}
-
-# Load image and send request
-with open("path/to/image.jpg", "rb") as image_file:
- files = {"image": image_file}
- response = requests.post(url, headers=headers, files=files, data=data)
-
-print(response.json())
-```
-
-In this example, the `data` dictionary contains the query arguments `size`, `confidence`, and `iou`, which tells the API to run inference at image size 640 with confidence and IoU thresholds of 0.25 and 0.45.
-
-This will send the query parameters along with the file in the POST request. See the table below for a full list of available inference arguments.
-
-| Inference Argument | Default | Type | Notes |
-|--------------------|---------|---------|------------------------------------------------|
-| `size` | `640` | `int` | valid range is `32` - `1280` pixels |
-| `confidence` | `0.25` | `float` | valid range is `0.01` - `1.0` |
-| `iou` | `0.45` | `float` | valid range is `0.0` - `0.95` |
-| `url` | `''` | `str` | optional image URL if not image file is passed |
-| `normalize` | `False` | `bool` | |
-
-## Return JSON format
-
-The YOLO Inference API returns a JSON list with the detection results. The format of the JSON list will be the same as the one produced locally by the `results[0].tojson()` command.
-
-The JSON list contains information about the detected objects, their coordinates, classes, and confidence scores.
-
-### Detect Model Format
-
-YOLO detection models, such as `yolov8n.pt`, can return JSON responses from local inference, cURL inference, and Python inference. All of these methods produce the same JSON response format.
-
-!!! Example "Detect Model JSON Response"
-
- === "`ultralytics`"
-
- ```python
- from ultralytics import YOLO
-
- # Load model
- model = YOLO('yolov8n.pt')
-
- # Run inference
- results = model('image.jpg')
-
- # Print image.jpg results in JSON format
- print(results[0].tojson())
- ```
-
- === "cURL"
-
- ```bash
- curl -X POST "https://api.ultralytics.com/v1/predict/MODEL_ID" \
- -H "x-api-key: API_KEY" \
- -F "image=@/path/to/image.jpg" \
- -F "size=640" \
- -F "confidence=0.25" \
- -F "iou=0.45"
- ```
-
- === "Python"
-
- ```python
- import requests
-
- # API URL, use actual MODEL_ID
- url = f"https://api.ultralytics.com/v1/predict/MODEL_ID"
-
- # Headers, use actual API_KEY
- headers = {"x-api-key": "API_KEY"}
-
- # Inference arguments (optional)
- data = {"size": 640, "confidence": 0.25, "iou": 0.45}
-
- # Load image and send request
- with open("path/to/image.jpg", "rb") as image_file:
- files = {"image": image_file}
- response = requests.post(url, headers=headers, files=files, data=data)
-
- print(response.json())
- ```
-
- === "JSON Response"
-
- ```json
- {
- "success": True,
- "message": "Inference complete.",
- "data": [
- {
- "name": "person",
- "class": 0,
- "confidence": 0.8359682559967041,
- "box": {
- "x1": 0.08974208831787109,
- "y1": 0.27418340047200523,
- "x2": 0.8706787109375,
- "y2": 0.9887352837456598
- }
- },
- {
- "name": "person",
- "class": 0,
- "confidence": 0.8189555406570435,
- "box": {
- "x1": 0.5847355842590332,
- "y1": 0.05813225640190972,
- "x2": 0.8930277824401855,
- "y2": 0.9903111775716146
- }
- },
- {
- "name": "tie",
- "class": 27,
- "confidence": 0.2909725308418274,
- "box": {
- "x1": 0.3433395862579346,
- "y1": 0.6070465511745877,
- "x2": 0.40964522361755373,
- "y2": 0.9849439832899306
- }
- }
- ]
- }
- ```
-
-### Segment Model Format
-
-YOLO segmentation models, such as `yolov8n-seg.pt`, can return JSON responses from local inference, cURL inference, and Python inference. All of these methods produce the same JSON response format.
-
-!!! Example "Segment Model JSON Response"
-
- === "`ultralytics`"
-
- ```python
- from ultralytics import YOLO
-
- # Load model
- model = YOLO('yolov8n-seg.pt')
-
- # Run inference
- results = model('image.jpg')
-
- # Print image.jpg results in JSON format
- print(results[0].tojson())
- ```
-
- === "cURL"
-
- ```bash
- curl -X POST "https://api.ultralytics.com/v1/predict/MODEL_ID" \
- -H "x-api-key: API_KEY" \
- -F "image=@/path/to/image.jpg" \
- -F "size=640" \
- -F "confidence=0.25" \
- -F "iou=0.45"
- ```
-
- === "Python"
-
- ```python
- import requests
-
- # API URL, use actual MODEL_ID
- url = f"https://api.ultralytics.com/v1/predict/MODEL_ID"
-
- # Headers, use actual API_KEY
- headers = {"x-api-key": "API_KEY"}
-
- # Inference arguments (optional)
- data = {"size": 640, "confidence": 0.25, "iou": 0.45}
-
- # Load image and send request
- with open("path/to/image.jpg", "rb") as image_file:
- files = {"image": image_file}
- response = requests.post(url, headers=headers, files=files, data=data)
-
- print(response.json())
- ```
-
- === "JSON Response"
-
- Note `segments` `x` and `y` lengths may vary from one object to another. Larger or more complex objects may have more segment points.
- ```json
- {
- "success": True,
- "message": "Inference complete.",
- "data": [
- {
- "name": "person",
- "class": 0,
- "confidence": 0.856913149356842,
- "box": {
- "x1": 0.1064866065979004,
- "y1": 0.2798851860894097,
- "x2": 0.8738358497619629,
- "y2": 0.9894873725043403
- },
- "segments": {
- "x": [
- 0.421875,
- 0.4203124940395355,
- 0.41718751192092896
- ...
- ],
- "y": [
- 0.2888889014720917,
- 0.2916666567325592,
- 0.2916666567325592
- ...
- ]
- }
- },
- {
- "name": "person",
- "class": 0,
- "confidence": 0.8512625694274902,
- "box": {
- "x1": 0.5757311820983887,
- "y1": 0.053943040635850696,
- "x2": 0.8960096359252929,
- "y2": 0.985154045952691
- },
- "segments": {
- "x": [
- 0.7515624761581421,
- 0.75,
- 0.7437499761581421
- ...
- ],
- "y": [
- 0.0555555559694767,
- 0.05833333358168602,
- 0.05833333358168602
- ...
- ]
- }
- },
- {
- "name": "tie",
- "class": 27,
- "confidence": 0.6485961675643921,
- "box": {
- "x1": 0.33911995887756347,
- "y1": 0.6057066175672743,
- "x2": 0.4081430912017822,
- "y2": 0.9916408962673611
- },
- "segments": {
- "x": [
- 0.37187498807907104,
- 0.37031251192092896,
- 0.3687500059604645
- ...
- ],
- "y": [
- 0.6111111044883728,
- 0.6138888597488403,
- 0.6138888597488403
- ...
- ]
- }
- }
- ]
- }
- ```
-
-### Pose Model Format
-
-YOLO pose models, such as `yolov8n-pose.pt`, can return JSON responses from local inference, cURL inference, and Python inference. All of these methods produce the same JSON response format.
-
-!!! Example "Pose Model JSON Response"
-
- === "`ultralytics`"
-
- ```python
- from ultralytics import YOLO
-
- # Load model
- model = YOLO('yolov8n-seg.pt')
-
- # Run inference
- results = model('image.jpg')
-
- # Print image.jpg results in JSON format
- print(results[0].tojson())
- ```
-
- === "cURL"
-
- ```bash
- curl -X POST "https://api.ultralytics.com/v1/predict/MODEL_ID" \
- -H "x-api-key: API_KEY" \
- -F "image=@/path/to/image.jpg" \
- -F "size=640" \
- -F "confidence=0.25" \
- -F "iou=0.45"
- ```
-
- === "Python"
-
- ```python
- import requests
-
- # API URL, use actual MODEL_ID
- url = f"https://api.ultralytics.com/v1/predict/MODEL_ID"
-
- # Headers, use actual API_KEY
- headers = {"x-api-key": "API_KEY"}
-
- # Inference arguments (optional)
- data = {"size": 640, "confidence": 0.25, "iou": 0.45}
-
- # Load image and send request
- with open("path/to/image.jpg", "rb") as image_file:
- files = {"image": image_file}
- response = requests.post(url, headers=headers, files=files, data=data)
-
- print(response.json())
- ```
-
- === "JSON Response"
-
- Note COCO-keypoints pretrained models will have 17 human keypoints. The `visible` part of the keypoints indicates whether a keypoint is visible or obscured. Obscured keypoints may be outside the image or may not be visible, i.e. a person's eyes facing away from the camera.
- ```json
- {
- "success": True,
- "message": "Inference complete.",
- "data": [
- {
- "name": "person",
- "class": 0,
- "confidence": 0.8439509868621826,
- "box": {
- "x1": 0.1125,
- "y1": 0.28194444444444444,
- "x2": 0.7953125,
- "y2": 0.9902777777777778
- },
- "keypoints": {
- "x": [
- 0.5058594942092896,
- 0.5103894472122192,
- 0.4920862317085266
- ...
- ],
- "y": [
- 0.48964157700538635,
- 0.4643048942089081,
- 0.4465252459049225
- ...
- ],
- "visible": [
- 0.8726999163627625,
- 0.653947651386261,
- 0.9130823612213135
- ...
- ]
- }
- },
- {
- "name": "person",
- "class": 0,
- "confidence": 0.7474289536476135,
- "box": {
- "x1": 0.58125,
- "y1": 0.0625,
- "x2": 0.8859375,
- "y2": 0.9888888888888889
- },
- "keypoints": {
- "x": [
- 0.778544008731842,
- 0.7976160049438477,
- 0.7530890107154846
- ...
- ],
- "y": [
- 0.27595141530036926,
- 0.2378823608160019,
- 0.23644638061523438
- ...
- ],
- "visible": [
- 0.8900790810585022,
- 0.789978563785553,
- 0.8974530100822449
- ...
- ]
- }
- }
- ]
- }
- ```
diff --git a/ultralytics-main/docs/en/hub/integrations.md b/ultralytics-main/docs/en/hub/integrations.md
deleted file mode 100644
index a69da48..0000000
--- a/ultralytics-main/docs/en/hub/integrations.md
+++ /dev/null
@@ -1,62 +0,0 @@
----
-comments: true
-description: Explore integration options for Ultralytics HUB. Currently featuring Roboflow for dataset integration and multiple export formats for your trained models.
-keywords: Ultralytics HUB, Integrations, Roboflow, Dataset, Export, YOLOv5, YOLOv8, ONNX, CoreML, TensorRT, TensorFlow
----
-
-# HUB Integrations
-
-🚧 **Under Construction** 🚧
-
-Welcome to the Integrations guide for [Ultralytics HUB](https://hub.ultralytics.com/)! We are in the process of expanding this section to provide you with comprehensive guidance on integrating your YOLOv5 and YOLOv8 models with various platforms and formats. Currently, Roboflow is our available dataset integration, with a wide range of export integrations for your trained models.
-
-
-
-
-
- Watch: Train Your Custom YOLO Models In A Few Clicks with Ultralytics HUB.
-
-
-## Available Integrations
-
-### Dataset Integrations
-
-- **Roboflow**: Seamlessly import your datasets for training.
-
-### Export Integrations
-
-| Format | `format` Argument | Model | Metadata | Arguments |
-|--------------------------------------------------------------------|-------------------|---------------------------|----------|-----------------------------------------------------|
-| [PyTorch](https://pytorch.org/) | - | `yolov8n.pt` | ✅ | - |
-| [TorchScript](https://pytorch.org/docs/stable/jit.html) | `torchscript` | `yolov8n.torchscript` | ✅ | `imgsz`, `optimize` |
-| [ONNX](https://onnx.ai/) | `onnx` | `yolov8n.onnx` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `opset` |
-| [OpenVINO](../integrations/openvino.md) | `openvino` | `yolov8n_openvino_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [TensorRT](https://developer.nvidia.com/tensorrt) | `engine` | `yolov8n.engine` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `workspace` |
-| [CoreML](https://github.com/apple/coremltools) | `coreml` | `yolov8n.mlpackage` | ✅ | `imgsz`, `half`, `int8`, `nms` |
-| [TF SavedModel](https://www.tensorflow.org/guide/saved_model) | `saved_model` | `yolov8n_saved_model/` | ✅ | `imgsz`, `keras`, `int8` |
-| [TF GraphDef](https://www.tensorflow.org/api_docs/python/tf/Graph) | `pb` | `yolov8n.pb` | ❌ | `imgsz` |
-| [TF Lite](https://www.tensorflow.org/lite) | `tflite` | `yolov8n.tflite` | ✅ | `imgsz`, `half`, `int8` |
-| [TF Edge TPU](https://coral.ai/docs/edgetpu/models-intro/) | `edgetpu` | `yolov8n_edgetpu.tflite` | ✅ | `imgsz` |
-| [TF.js](https://www.tensorflow.org/js) | `tfjs` | `yolov8n_web_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [PaddlePaddle](https://github.com/PaddlePaddle) | `paddle` | `yolov8n_paddle_model/` | ✅ | `imgsz` |
-| [NCNN](https://github.com/Tencent/ncnn) | `ncnn` | `yolov8n_ncnn_model/` | ✅ | `imgsz`, `half` |
-
-## Coming Soon
-
-- Additional Dataset Integrations
-- Detailed Export Integration Guides
-- Step-by-Step Tutorials for Each Integration
-
-## Need Immediate Assistance?
-
-While we're in the process of creating detailed guides:
-
-- Browse through other [HUB Docs](https://docs.ultralytics.com/hub/) for detailed guides and tutorials.
-- Raise an issue on our [GitHub](https://github.com/ultralytics/hub/) for technical support.
-- Join our [Discord Community](https://ultralytics.com/discord/) for live discussions and community support.
-
-We appreciate your patience as we work to make this section comprehensive and user-friendly. Stay tuned for updates!
diff --git a/ultralytics-main/docs/en/hub/models.md b/ultralytics-main/docs/en/hub/models.md
deleted file mode 100644
index 6a4bc3e..0000000
--- a/ultralytics-main/docs/en/hub/models.md
+++ /dev/null
@@ -1,130 +0,0 @@
----
-comments: true
-description: Learn how to efficiently train AI models using Ultralytics HUB, a streamlined solution for model creation, training, evaluation, and deployment.
-keywords: Ultralytics, HUB Models, AI model training, model creation, model training, model evaluation, model deployment
----
-
-# Ultralytics HUB Models
-
-[Ultralytics HUB](https://hub.ultralytics.com/) models provide a streamlined solution for training vision AI models on custom datasets.
-
-The process is user-friendly and efficient, involving a simple three-step creation and accelerated training powered by Ultralytics YOLOv8. Real-time updates on model metrics are available during training, allowing users to monitor progress at each step. Once training is completed, models can be previewed and easily deployed to real-world applications. Therefore, Ultralytics HUB offers a comprehensive yet straightforward system for model creation, training, evaluation, and deployment.
-
-The entire process of training a model is detailed on our [Cloud Training Page](cloud-training.md).
-
-![Preview of the Models](https://github.com/ultralytics/ultralytics/assets/19519529/a02e1441-f5f6-4935-ad75-ec18e425d8bd)
-
-## Train Model
-
-Navigate to the [Models](https://hub.ultralytics.com/models) page by clicking on the **Models** button in the sidebar.
-
-Training a model using HUB is a 4-step process:
-
-- **Execute the pre-requisites script**: Run the provided scripts to prepare the virtual environment.
-- **Provide the API and start Training**: Once the model is prepared, provide the API key as instructed and execute the code block.
-- **Check the results and Metrics**: Upon successful execution, a link is provided to the Metrics Page. This page offers comprehensive details on the trained model, including specifications, loss metrics, dataset information, and image distributions. Additionally, the 'Deploy' tab provides access to the trained model's documentation and license details.
-- **Test your model**: Ultralytics HUB offers testing using custom images, device cameras, or links to test on `iPhone` or `Android` devices.
-
-![Ultralytics HUB screenshot of the Home page](https://github.com/ultralytics/ultralytics/assets/19519529/61428720-aa93-4689-b209-ead7f06fa488)
-
-!!! tip "Tip"
-
- You can also train a model directly from the [Home](https://hub.ultralytics.com/home) page.
-
- ![Ultralytics HUB screenshot of the Home page with an arrow pointing to the Train Model card](https://github.com/ultralytics/ultralytics/assets/19519529/6f9f06f7-e663-4fa7-800c-98675bf1405b)
-
-Click on the **Train Model** button on the top right of the page to trigger the **Train Model** dialog.
-
-The **Train Model** dialog has three simple steps:
-
-### 1. Dataset
-
-Select the dataset for training and click **Continue**.
-
-![Ultralytics HUB screenshot of the Train Model dialog with an arrow pointing to a dataset and one to the Continue button](https://github.com/ultralytics/ultralytics/assets/19519529/7ff90f2a-c61e-472f-a573-f725a5bddc1c)
-
-### 2. Model
-
-Choose the project, model name, and architecture. Read more about available architectures in our [YOLOv8](https://docs.ultralytics.com/models/yolov8) (and [YOLOv5](https://docs.ultralytics.com/models/yolov5)) documentation.
-
-Click **Continue** when satisfied with the configuration.
-
-![Ultralytics HUB screenshot of the Train Model dialog with an arrow pointing to a model architecture and one to the Continue button](https://github.com/ultralytics/ultralytics/assets/19519529/a7a412b3-3e87-48de-b117-c506338f36fb)
-
-!!! note "Note"
-
- By default, your model will use a pre-trained model (trained on the [COCO](https://docs.ultralytics.com/datasets/detect/coco) dataset) to reduce training time.
-
- Advanced options are available to modify this behavior.
-
-## Preview Model
-
-Ultralytics HUB offers various ways to preview trained models.
-
-You can upload an image in the **Test** card under the **Preview** tab to preview your model.
-
-![Ultralytics HUB screenshot of the Preview tab (Test card) inside the Model page](https://github.com/ultralytics/ultralytics/assets/19519529/a732d13a-8da9-40a8-9f5e-c766bec3fbe9)
-
-Use our Ultralytics Cloud API to effortlessly [run inference](inference-api.md) with your custom model.
-
-![Ultralytics HUB screenshot of the Preview tab (Ultralytics Cloud API card) inside the Model page](https://github.com/ultralytics/ultralytics/assets/19519529/77ae0f6c-d89e-433c-b404-77f71c06def5)
-
-Preview your model in real-time on your [iOS](https://apps.apple.com/xk/app/ultralytics/id1583935240) or [Android](https://play.google.com/store/apps/details?id=com.ultralytics.ultralytics_app) device by [downloading](https://ultralytics.com/app_install) our [Ultralytics HUB Mobile Application](app/index.md).
-
-![Ultralytics HUB screenshot of the Deploy tab inside the Model page with an arrow pointing to the Real-Time Preview card](https://github.com/ultralytics/ultralytics/assets/19519529/8d711052-5ab1-43bc-bc25-a8802a24b301)
-
-## Train the model
-
-Ultralytics HUB offers three training options:
-
-- **Ultralytics Cloud** - Learn more about training via the Ultralytics [Cloud Training Page](cloud-training.md)
-- **Google Colab**
-- **Bring your own agent**
-
-## Training the Model on Google Colab
-
-To start training using Google Colab, follow the instructions on the Google Colab notebook.
-
-
-
-
-
-![Google Colab Screenshot](https://github.com/ultralytics/ultralytics/assets/19519529/f19d2e04-d33c-446b-91f9-80396e02b68f)
-
-## Bring your own Agent
-
-Create an API endpoint through Ultralytics HUB to train the Model locally. Follow the provided steps, and access training details via the link generated on the Agent terminal.
-
-![Bring your own agent screenshot](https://github.com/ultralytics/ultralytics/assets/19519529/7d8dcd7a-19ec-4ada-87bf-1a1ba1d01ceb)
-
-## Deploy Model
-
-Export your model to 13 different formats, including ONNX, OpenVINO, CoreML, TensorFlow, Paddle, and more.
-
-![Ultralytics HUB screenshot of the Deploy tab inside the Model page with all formats exported](https://github.com/ultralytics/ultralytics/assets/19519529/083a929d-2bbd-45f8-9dec-2767949caaba)
-
-## Share Model
-
-Ultralytics HUB's sharing functionality provides a convenient way to share models. Control the general access of your models, setting them to "Private" or "Unlisted".
-
-Navigate to the Model page, open the model actions dropdown, and click on the **Share** option.
-
-![Ultralytics HUB screenshot of the Model page with an arrow pointing to the Share option](https://github.com/ultralytics/ultralytics/assets/19519529/ac98724e-9267-4557-a792-33073c47bbff)
-
-Set the general access and click **Save**.
-
-![Ultralytics HUB screenshot of the Share Model dialog with an arrow pointing to the dropdown and one to the Save button](https://github.com/ultralytics/ultralytics/assets/19519529/65afcd99-1f9e-4be8-b287-096a7c74fc0e)
-
-Now, anyone with the direct link can view your model.
-
-!!! tip "Tip"
-
- Easily copy the model's link shown in the **Share Model** dialog by clicking on it.
-
- ![Ultralytics HUB screenshot of the Share Model dialog with an arrow pointing to the model's link](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/models/hub_share_model_4.jpg)
-
-## Edit and Delete Model
-
-Navigate to the Model page, open the model actions dropdown, and click on the **Edit** option to update the model. To delete the model, select the **Delete** option.
-
-![Ultralytics HUB screenshot of the Model page with an arrow pointing to the Edit option](https://github.com/ultralytics/ultralytics/assets/19519529/5c2db731-45dc-4f04-ac0f-9ad600c140a1)
diff --git a/ultralytics-main/docs/en/hub/on-premise/index.md b/ultralytics-main/docs/en/hub/on-premise/index.md
deleted file mode 100644
index f8d7802..0000000
--- a/ultralytics-main/docs/en/hub/on-premise/index.md
+++ /dev/null
@@ -1,34 +0,0 @@
----
-description: Discover what's next for Ultralytics with our under-construction page, previewing new, groundbreaking AI and ML features coming soon.
-keywords: Ultralytics, coming soon, under construction, new features, AI updates, ML advancements, YOLO, technology preview
----
-
-# Under Construction 🏗️🌟
-
-Welcome to the Ultralytics "Under Construction" page! Here, we're hard at work developing the next generation of AI and ML innovations. This page serves as a teaser for the exciting updates and new features we're eager to share with you!
-
-## Exciting New Features on the Way 🎉
-
-- **Innovative Breakthroughs:** Get ready for advanced features and services that will transform your AI and ML experience.
-- **New Horizons:** Anticipate novel products that redefine AI and ML capabilities.
-- **Enhanced Services:** We're upgrading our services for greater efficiency and user-friendliness.
-
-## Stay Updated 🚧
-
-This placeholder page is your first stop for upcoming developments. Keep an eye out for:
-
-- **Newsletter:** Subscribe [here](https://ultralytics.com/#newsletter) for the latest news.
-- **Social Media:** Follow us [here](https://www.linkedin.com/company/ultralytics) for updates and teasers.
-- **Blog:** Visit our [blog](https://ultralytics.com/blog) for detailed insights.
-
-## We Value Your Input 🗣️
-
-Your feedback shapes our future releases. Share your thoughts and suggestions [here](https://ultralytics.com/contact).
-
-## Thank You, Community! 🌍
-
-Your [contributions](https://docs.ultralytics.com/help/contributing) inspire our continuous [innovation](https://github.com/ultralytics/ultralytics). Stay tuned for the big reveal of what's next in AI and ML at Ultralytics!
-
----
-
-Excited for what's coming? Bookmark this page and get ready for a transformative AI and ML journey with Ultralytics! 🛠️🤖
diff --git a/ultralytics-main/docs/en/hub/projects.md b/ultralytics-main/docs/en/hub/projects.md
deleted file mode 100644
index a512331..0000000
--- a/ultralytics-main/docs/en/hub/projects.md
+++ /dev/null
@@ -1,180 +0,0 @@
----
-comments: true
-description: Learn how to manage Ultralytics HUB projects. Understand effective strategies to create, share, edit, delete, and compare models in an organized workspace.
-keywords: Ultralytics, HUB projects, Create project, Edit project, Share project, Delete project, Compare Models, Model Management
----
-
-# Ultralytics HUB Projects
-
-[Ultralytics HUB](https://hub.ultralytics.com/) projects provide an effective solution for consolidating and managing your models. If you are working with several models that perform similar tasks or have related purposes, Ultralytics HUB projects allow you to group these models together.
-
-This creates a unified and organized workspace that facilitates easier model management, comparison and development. Having similar models or various iterations together can facilitate rapid benchmarking, as you can compare their effectiveness. This can lead to faster, more insightful iterative development and refinement of your models.
-
-
-
-
-
- Watch: Train YOLOv8 Pose Model on Tiger-Pose Dataset Using Ultralytics HUB
-
-
-## Create Project
-
-Navigate to the [Projects](https://hub.ultralytics.com/projects) page by clicking on the **Projects** button in the sidebar.
-
-![Ultralytics HUB screenshot of the Home page with an arrow pointing to the Projects button in the sidebar](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_create_project_1.jpg)
-
-??? tip "Tip"
-
- You can also create a project directly from the [Home](https://hub.ultralytics.com/home) page.
-
- ![Ultralytics HUB screenshot of the Home page with an arrow pointing to the Create Project card](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_create_project_2.jpg)
-
-Click on the **Create Project** button on the top right of the page. This action will trigger the **Create Project** dialog, opening up a suite of options for tailoring your project to your needs.
-
-![Ultralytics HUB screenshot of the Projects page with an arrow pointing to the Create Project button](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_create_project_3.jpg)
-
-Type the name of your project in the _Project name_ field or keep the default name and finalize the project creation with a single click.
-
-You have the additional option to enrich your project with a description and a unique image, enhancing its recognizability on the Projects page.
-
-When you're happy with your project configuration, click **Create**.
-
-![Ultralytics HUB screenshot of the Create Project dialog with an arrow pointing to the Create button](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_create_project_4.jpg)
-
-After your project is created, you will be able to access it from the Projects page.
-
-![Ultralytics HUB screenshot of the Projects page with an arrow pointing to one of the projects](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_create_project_5.jpg)
-
-Next, [train a model](https://docs.ultralytics.com/hub/models/#train-model) inside your project.
-
-![Ultralytics HUB screenshot of the Project page with an arrow pointing to the Train Model button](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_create_project_6.jpg)
-
-## Share Project
-
-!!! Info "Info"
-
- Ultralytics HUB's sharing functionality provides a convenient way to share projects with others. This feature is designed to accommodate both existing Ultralytics HUB users and those who have yet to create an account.
-
-??? note "Note"
-
- You have control over the general access of your projects.
-
- You can choose to set the general access to "Private", in which case, only you will have access to it. Alternatively, you can set the general access to "Unlisted" which grants viewing access to anyone who has the direct link to the project, regardless of whether they have an Ultralytics HUB account or not.
-
-Navigate to the Project page of the project you want to share, open the project actions dropdown and click on the **Share** option. This action will trigger the **Share Project** dialog.
-
-![Ultralytics HUB screenshot of the Project page with an arrow pointing to the Share option](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_share_project_1.jpg)
-
-??? tip "Tip"
-
- You can also share a project directly from the [Projects](https://hub.ultralytics.com/projects) page.
-
- ![Ultralytics HUB screenshot of the Projects page with an arrow pointing to the Share option of one of the projects](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_share_project_2.jpg)
-
-Set the general access to "Unlisted" and click **Save**.
-
-![Ultralytics HUB screenshot of the Share Project dialog with an arrow pointing to the dropdown and one to the Save button](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_share_project_3.jpg)
-
-!!! Warning "Warning"
-
- When changing the general access of a project, the general access of the models inside the project will be changed as well.
-
-Now, anyone who has the direct link to your project can view it.
-
-??? tip "Tip"
-
- You can easily click on the project's link shown in the **Share Project** dialog to copy it.
-
- ![Ultralytics HUB screenshot of the Share Project dialog with an arrow pointing to the project's link](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_share_project_4.jpg)
-
-## Edit Project
-
-Navigate to the Project page of the project you want to edit, open the project actions dropdown and click on the **Edit** option. This action will trigger the **Update Project** dialog.
-
-![Ultralytics HUB screenshot of the Project page with an arrow pointing to the Edit option](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_edit_project_1.jpg)
-
-??? tip "Tip"
-
- You can also edit a project directly from the [Projects](https://hub.ultralytics.com/projects) page.
-
- ![Ultralytics HUB screenshot of the Projects page with an arrow pointing to the Edit option of one of the projects](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_edit_project_2.jpg)
-
-Apply the desired modifications to your project and then confirm the changes by clicking **Save**.
-
-![Ultralytics HUB screenshot of the Update Project dialog with an arrow pointing to the Save button](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_edit_project_3.jpg)
-
-## Delete Project
-
-Navigate to the Project page of the project you want to delete, open the project actions dropdown and click on the **Delete** option. This action will delete the project.
-
-![Ultralytics HUB screenshot of the Project page with an arrow pointing to the Delete option](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_delete_project_1.jpg)
-
-??? tip "Tip"
-
- You can also delete a project directly from the [Projects](https://hub.ultralytics.com/projects) page.
-
- ![Ultralytics HUB screenshot of the Projects page with an arrow pointing to the Delete option of one of the projects](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_delete_project_2.jpg)
-
-!!! Warning "Warning"
-
- When deleting a project, the models inside the project will be deleted as well.
-
-??? note "Note"
-
- If you change your mind, you can restore the project from the [Trash](https://hub.ultralytics.com/trash) page.
-
- ![Ultralytics HUB screenshot of the Trash page with an arrow pointing to the Restore option of one of the projects](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_delete_project_3.jpg)
-
-## Compare Models
-
-Navigate to the Project page of the project where the models you want to compare are located. To use the model comparison feature, click on the **Charts** tab.
-
-![Ultralytics HUB screenshot of the Project page with an arrow pointing to the Charts tab](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_compare_models_1.jpg)
-
-This will display all the relevant charts. Each chart corresponds to a different metric and contains the performance of each model for that metric. The models are represented by different colors, and you can hover over each data point to get more information.
-
-![Ultralytics HUB screenshot of the Charts tab inside the Project page](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_compare_models_2.jpg)
-
-??? tip "Tip"
-
- Each chart can be enlarged for better visualization.
-
- ![Ultralytics HUB screenshot of the Charts tab inside the Project page with an arrow pointing to the expand icon](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_compare_models_3.jpg)
-
- ![Ultralytics HUB screenshot of the Charts tab inside the Project page with one of the charts expanded](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_compare_models_4.jpg)
-
-??? tip "Tip"
-
- You have the flexibility to customize your view by selectively hiding certain models. This feature allows you to concentrate on the models of interest.
-
- ![Ultralytics HUB screenshot of the Charts tab inside the Project page with an arrow pointing to the hide/unhide icon of one of the model](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_compare_models_5.jpg)
-
-## Reorder Models
-
-??? note "Note"
-
- Ultralytics HUB's reordering functionality works only inside projects you own.
-
-Navigate to the Project page of the project where the models you want to reorder are located. Click on the designated reorder icon of the model you want to move and drag it to the desired location.
-
-![Ultralytics HUB screenshot of the Project page with an arrow pointing to the reorder icon](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_reorder_models_1.jpg)
-
-## Transfer Models
-
-Navigate to the Project page of the project where the model you want to mode is located, open the project actions dropdown and click on the **Transfer** option. This action will trigger the **Transfer Model** dialog.
-
-![Ultralytics HUB screenshot of the Project page with an arrow pointing to the Transfer option of one of the models](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_transfer_models_1.jpg)
-
-??? tip "Tip"
-
- You can also transfer a model directly from the [Models](https://hub.ultralytics.com/models) page.
-
- ![Ultralytics HUB screenshot of the Models page with an arrow pointing to the Transfer option of one of the models](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_transfer_models_2.jpg)
-
-Select the project you want to transfer the model to and click **Save**.
-
-![Ultralytics HUB screenshot of the Transfer Model dialog with an arrow pointing to the dropdown and one to the Save button](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/projects/hub_transfer_models_3.jpg)
diff --git a/ultralytics-main/docs/en/hub/quickstart.md b/ultralytics-main/docs/en/hub/quickstart.md
deleted file mode 100644
index 7f7253a..0000000
--- a/ultralytics-main/docs/en/hub/quickstart.md
+++ /dev/null
@@ -1,58 +0,0 @@
----
-comments: true
-description: Kickstart your journey with Ultralytics HUB. Learn how to train and deploy YOLOv5 and YOLOv8 models in seconds with our Quickstart guide.
-keywords: Ultralytics HUB, Quickstart, YOLOv5, YOLOv8, model training, quick deployment, drag-and-drop interface, real-time object detection
----
-
-# Quickstart Guide for Ultralytics HUB
-
-HUB is designed to be user-friendly and intuitive, with a drag-and-drop interface that allows users to easily upload their data and train new models quickly. It offers a range of pre-trained models and templates to choose from, making it easy for users to get started with training their own models. Once a model is trained, it can be easily deployed and used for real-time object detection, instance segmentation and classification tasks.
-
-
-
-
-
- Watch: Train Your Custom YOLO Models In A Few Clicks with Ultralytics HUB.
-
-
-## Creating an Account
-
-[Ultralytics HUB](https://hub.ultralytics.com/) offers multiple easy account creation options. Users can register and sign in using Google, Apple, GitHub accounts, or a work email address.
-
-![Creating an Account](https://github.com/ultralytics/ultralytics/assets/19519529/1dcf454a-68ab-4821-9779-ee33a6e300cf)
-
-## The Dashboard
-
-Upon logging in, users are directed to the HUB dashboard, providing a comprehensive overview. The left pane conveniently offers links for tasks such as Uploading Datasets, Creating Projects, Training Models, Integrating Third-party Applications, Accessing Support, and Managing Trash.
-
-![HUB Dashboard](https://github.com/ultralytics/ultralytics/assets/19519529/108de60e-1b21-4f07-8d46-ed51d8439f67)
-
-## Selecting the Model
-
-Choose a Dataset and train the model by selecting the Project name, Model name, and Architecture. Ultralytics offers a range of YOLOv8, YOLOv5, and YOLOv5u6 Architectures, including pre-trained and custom options.
-
-Read more about Models on the [HUB Models page](models.md).
-
-## Training the Model
-
-There are three ways to train your model: using Google Colab, training locally, or through Ultralytics Cloud. Learn more about training options on the [Cloud Training Page](cloud-training.md).
-
-## Integrating the Model
-
-Integrate your trained model with third-party applications or connect HUB from an external agent. Ultralytics HUB currently supports simple one-click API Integration with Roboflow. Read more about integration on the [Integration Page](integrations.md).
-
-## Need Help?
-
-If you encounter any issues or have questions, we're here to assist you. You can report a bug, request a feature, or ask a question.
-
-![Support Page](https://github.com/ultralytics/ultralytics/assets/19519529/c29bf5c5-72d8-4be4-9f3f-b504968d0bef)
-
-## Data Management
-
-Manage your datasets efficiently with options to restore or permanently delete them from the Trash section in the left column.
-
-![Trash Page](https://github.com/ultralytics/ultralytics/assets/19519529/c3d46107-aa58-4b05-a7a8-44db1ad61bb2)
diff --git a/ultralytics-main/docs/en/index.md b/ultralytics-main/docs/en/index.md
deleted file mode 100644
index 484f51b..0000000
--- a/ultralytics-main/docs/en/index.md
+++ /dev/null
@@ -1,81 +0,0 @@
----
-comments: true
-description: Explore a complete guide to Ultralytics YOLOv8, a high-speed, high-accuracy object detection & image segmentation model. Installation, prediction, training tutorials and more.
-keywords: Ultralytics, YOLOv8, object detection, image segmentation, machine learning, deep learning, computer vision, YOLOv8 installation, YOLOv8 prediction, YOLOv8 training, YOLO history, YOLO licenses
----
-
-
-
-Introducing [Ultralytics](https://ultralytics.com) [YOLOv8](https://github.com/ultralytics/ultralytics), the latest version of the acclaimed real-time object detection and image segmentation model. YOLOv8 is built on cutting-edge advancements in deep learning and computer vision, offering unparalleled performance in terms of speed and accuracy. Its streamlined design makes it suitable for various applications and easily adaptable to different hardware platforms, from edge devices to cloud APIs.
-
-Explore the YOLOv8 Docs, a comprehensive resource designed to help you understand and utilize its features and capabilities. Whether you are a seasoned machine learning practitioner or new to the field, this hub aims to maximize YOLOv8's potential in your projects
-
-## Where to Start
-
-- **Install** `ultralytics` with pip and get up and running in minutes [:material-clock-fast: Get Started](quickstart.md){ .md-button }
-- **Predict** new images and videos with YOLOv8 [:octicons-image-16: Predict on Images](modes/predict.md){ .md-button }
-- **Train** a new YOLOv8 model on your own custom dataset [:fontawesome-solid-brain: Train a Model](modes/train.md){ .md-button }
-- **Tasks** YOLOv8 tasks like segment, classify, pose and track [:material-magnify-expand: Explore Tasks](tasks/index.md){ .md-button }
-- **NEW 🚀 Explore** datasets with advanced semantic and SQL search [:material-magnify-expand: Explore a Dataset](datasets/explorer/index.md){ .md-button }
-
-
-
-
-
- Watch: How to Train a YOLOv8 model on Your Custom Dataset in Google Colab.
-
-
-## YOLO: A Brief History
-
-[YOLO](https://arxiv.org/abs/1506.02640) (You Only Look Once), a popular object detection and image segmentation model, was developed by Joseph Redmon and Ali Farhadi at the University of Washington. Launched in 2015, YOLO quickly gained popularity for its high speed and accuracy.
-
-- [YOLOv2](https://arxiv.org/abs/1612.08242), released in 2016, improved the original model by incorporating batch normalization, anchor boxes, and dimension clusters.
-- [YOLOv3](https://pjreddie.com/media/files/papers/YOLOv3.pdf), launched in 2018, further enhanced the model's performance using a more efficient backbone network, multiple anchors and spatial pyramid pooling.
-- [YOLOv4](https://arxiv.org/abs/2004.10934) was released in 2020, introducing innovations like Mosaic data augmentation, a new anchor-free detection head, and a new loss function.
-- [YOLOv5](https://github.com/ultralytics/yolov5) further improved the model's performance and added new features such as hyperparameter optimization, integrated experiment tracking and automatic export to popular export formats.
-- [YOLOv6](https://github.com/meituan/YOLOv6) was open-sourced by [Meituan](https://about.meituan.com/) in 2022 and is in use in many of the company's autonomous delivery robots.
-- [YOLOv7](https://github.com/WongKinYiu/yolov7) added additional tasks such as pose estimation on the COCO keypoints dataset.
-- [YOLOv8](https://github.com/ultralytics/ultralytics) is the latest version of YOLO by Ultralytics. As a cutting-edge, state-of-the-art (SOTA) model, YOLOv8 builds on the success of previous versions, introducing new features and improvements for enhanced performance, flexibility, and efficiency. YOLOv8 supports a full range of vision AI tasks, including [detection](tasks/detect.md), [segmentation](tasks/segment.md), [pose estimation](tasks/pose.md), [tracking](modes/track.md), and [classification](tasks/classify.md). This versatility allows users to leverage YOLOv8's capabilities across diverse applications and domains.
-- [YOLOv9](models/yolov9.md) Introduces innovative methods like Programmable Gradient Information (PGI) and the Generalized Efficient Layer Aggregation Network (GELAN).
-
-## YOLO Licenses: How is Ultralytics YOLO licensed?
-
-Ultralytics offers two licensing options to accommodate diverse use cases:
-
-- **AGPL-3.0 License**: This [OSI-approved](https://opensource.org/licenses/) open-source license is ideal for students and enthusiasts, promoting open collaboration and knowledge sharing. See the [LICENSE](https://github.com/ultralytics/ultralytics/blob/main/LICENSE) file for more details.
-- **Enterprise License**: Designed for commercial use, this license permits seamless integration of Ultralytics software and AI models into commercial goods and services, bypassing the open-source requirements of AGPL-3.0. If your scenario involves embedding our solutions into a commercial offering, reach out through [Ultralytics Licensing](https://ultralytics.com/license).
-
-Our licensing strategy is designed to ensure that any improvements to our open-source projects are returned to the community. We hold the principles of open source close to our hearts ❤️, and our mission is to guarantee that our contributions can be utilized and expanded upon in ways that are beneficial to all.
diff --git a/ultralytics-main/docs/en/integrations/amazon-sagemaker.md b/ultralytics-main/docs/en/integrations/amazon-sagemaker.md
deleted file mode 100644
index f57fc2e..0000000
--- a/ultralytics-main/docs/en/integrations/amazon-sagemaker.md
+++ /dev/null
@@ -1,169 +0,0 @@
----
-comments: true
-Description: Learn how to deploy YOLOv8 models on Amazon SageMaker Endpoints. This guide covers the essentials of AWS environment setup, model preparation, and deployment using AWS CloudFormation and the AWS Cloud Development Kit (CDK).
-keywords: YOLOv8, Ultralytics, Amazon SageMaker, AWS, CloudFormation, AWS CDK, PyTorch, Model Deployment, Machine Learning, Computer Vision
----
-
-# A Guide to Deploying YOLOv8 on Amazon SageMaker Endpoints
-
-Deploying advanced computer vision models like [Ultralytics’ YOLOv8](https://github.com/ultralytics/ultralytics) on Amazon SageMaker Endpoints opens up a wide range of possibilities for various machine learning applications. The key to effectively using these models lies in understanding their setup, configuration, and deployment processes. YOLOv8 becomes even more powerful when integrated seamlessly with Amazon SageMaker, a robust and scalable machine learning service by AWS.
-
-This guide will take you through the process of deploying YOLOv8 PyTorch models on Amazon SageMaker Endpoints step by step. You'll learn the essentials of preparing your AWS environment, configuring the model appropriately, and using tools like AWS CloudFormation and the AWS Cloud Development Kit (CDK) for deployment.
-
-## Amazon SageMaker
-
-
-
-
-
-[Amazon SageMaker](https://aws.amazon.com/sagemaker/) is a machine learning service from Amazon Web Services (AWS) that simplifies the process of building, training, and deploying machine learning models. It provides a broad range of tools for handling various aspects of machine learning workflows. This includes automated features for tuning models, options for training models at scale, and straightforward methods for deploying models into production. SageMaker supports popular machine learning frameworks, offering the flexibility needed for diverse projects. Its features also cover data labeling, workflow management, and performance analysis.
-
-## Deploying YOLOv8 on Amazon SageMaker Endpoints
-
-Deploying YOLOv8 on Amazon SageMaker lets you use its managed environment for real-time inference and take advantage of features like autoscaling. Take a look at the AWS architecture below.
-
-
-
-
-
-### Step 1: Setup Your AWS Environment
-
-First, ensure you have the following prerequisites in place:
-
-- An AWS Account: If you don't already have one, sign up for an AWS account.
-
-- Configured IAM Roles: You’ll need an IAM role with the necessary permissions for Amazon SageMaker, AWS CloudFormation, and Amazon S3. This role should have policies that allow it to access these services.
-
-- AWS CLI: If not already installed, download and install the AWS Command Line Interface (CLI) and configure it with your account details. Follow [the AWS CLI instructions](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) for installation.
-
-- AWS CDK: If not already installed, install the AWS Cloud Development Kit (CDK), which will be used for scripting the deployment. Follow [the AWS CDK instructions](https://docs.aws.amazon.com/cdk/v2/guide/getting_started.html#getting_started_install) for installation.
-
-- Adequate Service Quota: Confirm that you have sufficient quotas for two separate resources in Amazon SageMaker: one for `ml.m5.4xlarge` for endpoint usage and another for `ml.m5.4xlarge` for notebook instance usage. Each of these requires a minimum of one quota value. If your current quotas are below this requirement, it's important to request an increase for each. You can request a quota increase by following the detailed instructions in the [AWS Service Quotas documentation](https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html#quota-console-increase).
-
-### Step 2: Clone the YOLOv8 SageMaker Repository
-
-The next step is to clone the specific AWS repository that contains the resources for deploying YOLOv8 on SageMaker. This repository, hosted on GitHub, includes the necessary CDK scripts and configuration files.
-
-- Clone the GitHub Repository: Execute the following command in your terminal to clone the host-yolov8-on-sagemaker-endpoint repository:
-
-```bash
-git clone https://github.com/aws-samples/host-yolov8-on-sagemaker-endpoint.git
-```
-
-- Navigate to the Cloned Directory: Change your directory to the cloned repository:
-
-```bash
-cd host-yolov8-on-sagemaker-endpoint/yolov8-pytorch-cdk
-```
-
-### Step 3: Set Up the CDK Environment
-
-Now that you have the necessary code, set up your environment for deploying with AWS CDK.
-
-- Create a Python Virtual Environment: This isolates your Python environment and dependencies. Run:
-
-```bash
-python3 -m venv .venv
-```
-
-- Activate the Virtual Environment:
-
-```bash
-source .venv/bin/activate
-```
-
-- Install Dependencies: Install the required Python dependencies for the project:
-
-```bash
-pip3 install -r requirements.txt
-```
-
-- Upgrade AWS CDK Library: Ensure you have the latest version of the AWS CDK library:
-
-```bash
-pip install --upgrade aws-cdk-lib
-```
-
-### Step 4: Create the AWS CloudFormation Stack
-
-- Synthesize the CDK Application: Generate the AWS CloudFormation template from your CDK code:
-
-```bash
-cdk synth
-```
-
-- Bootstrap the CDK Application: Prepare your AWS environment for CDK deployment:
-
-```bash
-cdk bootstrap
-```
-
-- Deploy the Stack: This will create the necessary AWS resources and deploy your model:
-
-```bash
-cdk deploy
-```
-
-### Step 5: Deploy the YOLOv8 Model
-
-Before diving into the deployment instructions, be sure to check out the range of [YOLOv8 models offered by Ultralytics](../models/index.md). This will help you choose the most appropriate model for your project requirements.
-
-After creating the AWS CloudFormation Stack, the next step is to deploy YOLOv8.
-
-- Open the Notebook Instance: Go to the AWS Console and navigate to the Amazon SageMaker service. Select "Notebook Instances" from the dashboard, then locate the notebook instance that was created by your CDK deployment script. Open the notebook instance to access the Jupyter environment.
-
-- Access and Modify inference.py: After opening the SageMaker notebook instance in Jupyter, locate the inference.py file. Edit the output_fn function in inference.py as shown below and save your changes to the script, ensuring that there are no syntax errors.
-
-```python
-import json
-
-def output_fn(prediction_output, content_type):
- print("Executing output_fn from inference.py ...")
- infer = {}
- for result in prediction_output:
- if result.boxes is not None:
- infer['boxes'] = result.boxes.numpy().data.tolist()
- if result.masks is not None:
- infer['masks'] = result.masks.numpy().data.tolist()
- if result.keypoints is not None:
- infer['keypoints'] = result.keypoints.numpy().data.tolist()
- if result.obb is not None:
- infer['obb'] = result.obb.numpy().data.tolist()
- if result.probs is not None:
- infer['probs'] = result.probs.numpy().data.tolist()
- return json.dumps(infer)
-```
-
-- Deploy the Endpoint Using 1_DeployEndpoint.ipynb: In the Jupyter environment, open the 1_DeployEndpoint.ipynb notebook located in the sm-notebook directory. Follow the instructions in the notebook and run the cells to download the YOLOv8 model, package it with the updated inference code, and upload it to an Amazon S3 bucket. The notebook will guide you through creating and deploying a SageMaker endpoint for the YOLOv8 model.
-
-### Step 6: Testing Your Deployment
-
-Now that your YOLOv8 model is deployed, it's important to test its performance and functionality.
-
-- Open the Test Notebook: In the same Jupyter environment, locate and open the 2_TestEndpoint.ipynb notebook, also in the sm-notebook directory.
-
-- Run the Test Notebook: Follow the instructions within the notebook to test the deployed SageMaker endpoint. This includes sending an image to the endpoint and running inferences. Then, you’ll plot the output to visualize the model’s performance and accuracy, as shown below.
-
-
-
-
-
-- Clean-Up Resources: The test notebook will also guide you through the process of cleaning up the endpoint and the hosted model. This is an important step to manage costs and resources effectively, especially if you do not plan to use the deployed model immediately.
-
-### Step 7: Monitoring and Management
-
-After testing, continuous monitoring and management of your deployed model are essential.
-
-- Monitor with Amazon CloudWatch: Regularly check the performance and health of your SageMaker endpoint using [Amazon CloudWatch](https://aws.amazon.com/cloudwatch/).
-
-- Manage the Endpoint: Use the SageMaker console for ongoing management of the endpoint. This includes scaling, updating, or redeploying the model as required.
-
-By completing these steps, you will have successfully deployed and tested a YOLOv8 model on Amazon SageMaker Endpoints. This process not only equips you with practical experience in using AWS services for machine learning deployment but also lays the foundation for deploying other advanced models in the future.
-
-## Summary
-
-This guide took you step by step through deploying YOLOv8 on Amazon SageMaker Endpoints using AWS CloudFormation and the AWS Cloud Development Kit (CDK). The process includes cloning the necessary GitHub repository, setting up the CDK environment, deploying the model using AWS services, and testing its performance on SageMaker.
-
-For more technical details, refer to [this article](https://aws.amazon.com/blogs/machine-learning/hosting-yolov8-pytorch-model-on-amazon-sagemaker-endpoints/) on the AWS Machine Learning Blog. You can also check out the official [Amazon SageMaker Documentation](https://docs.aws.amazon.com/sagemaker/latest/dg/realtime-endpoints.html) for more insights into various features and functionalities.
-
-Are you interested in learning more about different YOLOv8 integrations? Visit the [Ultralytics integrations guide page](../integrations/index.md) to discover additional tools and capabilities that can enhance your machine-learning projects.
diff --git a/ultralytics-main/docs/en/integrations/clearml.md b/ultralytics-main/docs/en/integrations/clearml.md
deleted file mode 100644
index 92b069a..0000000
--- a/ultralytics-main/docs/en/integrations/clearml.md
+++ /dev/null
@@ -1,189 +0,0 @@
----
-comments: true
-description: Learn how to streamline and optimize your YOLOv8 model training with ClearML. This guide provides insights into integrating ClearML's MLOps tools for efficient model training, from initial setup to advanced experiment tracking and model management.
-keywords: Ultralytics, YOLOv8, Object Detection, ClearML, Model Training, MLOps, Experiment Tracking, Workflow Optimization
----
-
-# Training YOLOv8 with ClearML: Streamlining Your MLOps Workflow
-
-MLOps bridges the gap between creating and deploying machine learning models in real-world settings. It focuses on efficient deployment, scalability, and ongoing management to ensure models perform well in practical applications.
-
-[Ultralytics YOLOv8](https://ultralytics.com) effortlessly integrates with ClearML, streamlining and enhancing your object detection model's training and management. This guide will walk you through the integration process, detailing how to set up ClearML, manage experiments, automate model management, and collaborate effectively.
-
-## ClearML
-
-
-
-
-
-[ClearML](https://clear.ml/) is an innovative open-source MLOps platform that is skillfully designed to automate, monitor, and orchestrate machine learning workflows. Its key features include automated logging of all training and inference data for full experiment reproducibility, an intuitive web UI for easy data visualization and analysis, advanced hyperparameter optimization algorithms, and robust model management for efficient deployment across various platforms.
-
-## YOLOv8 Training with ClearML
-
-You can bring automation and efficiency to your machine learning workflow by improving your training process by integrating YOLOv8 with ClearML.
-
-## Installation
-
-To install the required packages, run:
-
-!!! Tip "Installation"
-
- === "CLI"
-
- ```bash
- # Install the required packages for YOLOv8 and ClearML
- pip install ultralytics clearml
- ```
-
-For detailed instructions and best practices related to the installation process, be sure to check our [YOLOv8 Installation guide](../quickstart.md). While installing the required packages for YOLOv8, if you encounter any difficulties, consult our [Common Issues guide](../guides/yolo-common-issues.md) for solutions and tips.
-
-## Configuring ClearML
-
-Once you have installed the necessary packages, the next step is to initialize and configure your ClearML SDK. This involves setting up your ClearML account and obtaining the necessary credentials for a seamless connection between your development environment and the ClearML server.
-
-Begin by initializing the ClearML SDK in your environment. The ‘clearml-init’ command starts the setup process and prompts you for the necessary credentials.
-
-!!! Tip "Initial SDK Setup"
-
- === "CLI"
-
- ```bash
- # Initialize your ClearML SDK setup process
- clearml-init
- ```
-
-After executing this command, visit the [ClearML Settings page](https://app.clear.ml/settings/workspace-configuration). Navigate to the top right corner and select "Settings." Go to the "Workspace" section and click on "Create new credentials." Use the credentials provided in the "Create Credentials" pop-up to complete the setup as instructed, depending on whether you are configuring ClearML in a Jupyter Notebook or a local Python environment.
-
-## Usage
-
-Before diving into the usage instructions, be sure to check out the range of [YOLOv8 models offered by Ultralytics](../models/index.md). This will help you choose the most appropriate model for your project requirements.
-
-!!! Example "Usage"
-
- === "Python"
-
- ```python
- from clearml import Task
- from ultralytics import YOLO
-
- # Step 1: Creating a ClearML Task
- task = Task.init(
- project_name="my_project",
- task_name="my_yolov8_task"
- )
-
- # Step 2: Selecting the YOLOv8 Model
- model_variant = "yolov8n"
- task.set_parameter("model_variant", model_variant)
-
- # Step 3: Loading the YOLOv8 Model
- model = YOLO(f'{model_variant}.pt')
-
- # Step 4: Setting Up Training Arguments
- args = dict(data="coco128.yaml", epochs=16)
- task.connect(args)
-
- # Step 5: Initiating Model Training
- results = model.train(**args)
- ```
-
-### Understanding the Code
-
-Let’s understand the steps showcased in the usage code snippet above.
-
-**Step 1: Creating a ClearML Task**: A new task is initialized in ClearML, specifying your project and task names. This task will track and manage your model's training.
-
-**Step 2: Selecting the YOLOv8 Model**: The `model_variant` variable is set to 'yolov8n', one of the YOLOv8 models. This variant is then logged in ClearML for tracking.
-
-**Step 3: Loading the YOLOv8 Model**: The selected YOLOv8 model is loaded using Ultralytics' YOLO class, preparing it for training.
-
-**Step 4: Setting Up Training Arguments**: Key training arguments like the dataset (`coco128.yaml`) and the number of epochs (`16`) are organized in a dictionary and connected to the ClearML task. This allows for tracking and potential modification via the ClearML UI. For a detailed understanding of the model training process and best practices, refer to our [YOLOv8 Model Training guide](../modes/train.md).
-
-**Step 5: Initiating Model Training**: The model training is started with the specified arguments. The results of the training process are captured in the `results` variable.
-
-### Understanding the Output
-
-Upon running the usage code snippet above, you can expect the following output:
-
-- A confirmation message indicating the creation of a new ClearML task, along with its unique ID.
-- An informational message about the script code being stored, indicating that the code execution is being tracked by ClearML.
-- A URL link to the ClearML results page where you can monitor the training progress and view detailed logs.
-- Download progress for the YOLOv8 model and the specified dataset, followed by a summary of the model architecture and training configuration.
-- Initialization messages for various training components like TensorBoard, Automatic Mixed Precision (AMP), and dataset preparation.
-- Finally, the training process starts, with progress updates as the model trains on the specified dataset. For an in-depth understanding of the performance metrics used during training, read [our guide on performance metrics](../guides/yolo-performance-metrics.md).
-
-### Viewing the ClearML Results Page
-
-By clicking on the URL link to the ClearML results page in the output of the usage code snippet, you can access a comprehensive view of your model's training process.
-
-#### Key Features of the ClearML Results Page
-
-- **Real-Time Metrics Tracking**
-
- - Track critical metrics like loss, accuracy, and validation scores as they occur.
- - Provides immediate feedback for timely model performance adjustments.
-
-- **Experiment Comparison**
-
- - Compare different training runs side-by-side.
- - Essential for hyperparameter tuning and identifying the most effective models.
-
-- **Detailed Logs and Outputs**
-
- - Access comprehensive logs, graphical representations of metrics, and console outputs.
- - Gain a deeper understanding of model behavior and issue resolution.
-
-- **Resource Utilization Monitoring**
-
- - Monitor the utilization of computational resources, including CPU, GPU, and memory.
- - Key to optimizing training efficiency and costs.
-
-- **Model Artifacts Management**
-
- - View, download, and share model artifacts like trained models and checkpoints.
- - Enhances collaboration and streamlines model deployment and sharing.
-
-For a visual walkthrough of what the ClearML Results Page looks like, watch the video below:
-
-
-
-### Advanced Features in ClearML
-
-ClearML offers several advanced features to enhance your MLOps experience.
-
-#### Remote Execution
-
-ClearML's remote execution feature facilitates the reproduction and manipulation of experiments on different machines. It logs essential details like installed packages and uncommitted changes. When a task is enqueued, the ClearML Agent pulls it, recreates the environment, and runs the experiment, reporting back with detailed results.
-
-Deploying a ClearML Agent is straightforward and can be done on various machines using the following command:
-
-```bash
-clearml-agent daemon --queue [--docker]
-```
-
-This setup is applicable to cloud VMs, local GPUs, or laptops. ClearML Autoscalers help manage cloud workloads on platforms like AWS, GCP, and Azure, automating the deployment of agents and adjusting resources based on your resource budget.
-
-### Cloning, Editing, and Enqueuing
-
-ClearML's user-friendly interface allows easy cloning, editing, and enqueuing of tasks. Users can clone an existing experiment, adjust parameters or other details through the UI, and enqueue the task for execution. This streamlined process ensures that the ClearML Agent executing the task uses updated configurations, making it ideal for iterative experimentation and model fine-tuning.
-
-
-
-
-
-## Summary
-
-This guide has led you through the process of integrating ClearML with Ultralytics' YOLOv8. Covering everything from initial setup to advanced model management, you've discovered how to leverage ClearML for efficient training, experiment tracking, and workflow optimization in your machine learning projects.
-
-For further details on usage, visit [ClearML's official documentation](https://clear.ml/docs/latest/docs/integrations/yolov8/).
-
-Additionally, explore more integrations and capabilities of Ultralytics by visiting the [Ultralytics integration guide page](../integrations/index.md), which is a treasure trove of resources and insights.
diff --git a/ultralytics-main/docs/en/integrations/comet.md b/ultralytics-main/docs/en/integrations/comet.md
deleted file mode 100644
index 95ada28..0000000
--- a/ultralytics-main/docs/en/integrations/comet.md
+++ /dev/null
@@ -1,178 +0,0 @@
----
-comments: true
-description: Discover how to track and enhance YOLOv8 model training with Comet ML's logging tools, from setup to monitoring key metrics and managing experiments for in-depth analysis.
-keywords: Ultralytics, YOLOv8, Object Detection, Comet ML, Model Training, Model Metrics Logging, Experiment Tracking, Offline Experiment Management
----
-
-# Elevating YOLOv8 Training: Simplify Your Logging Process with Comet ML
-
-Logging key training details such as parameters, metrics, image predictions, and model checkpoints is essential in machine learning—it keeps your project transparent, your progress measurable, and your results repeatable.
-
-[Ultralytics YOLOv8](https://ultralytics.com) seamlessly integrates with Comet ML, efficiently capturing and optimizing every aspect of your YOLOv8 object detection model's training process. In this guide, we'll cover the installation process, Comet ML setup, real-time insights, custom logging, and offline usage, ensuring that your YOLOv8 training is thoroughly documented and fine-tuned for outstanding results.
-
-## Comet ML
-
-
-
-
-
-[Comet ML](https://www.comet.ml/) is a platform for tracking, comparing, explaining, and optimizing machine learning models and experiments. It allows you to log metrics, parameters, media, and more during your model training and monitor your experiments through an aesthetically pleasing web interface. Comet ML helps data scientists iterate more rapidly, enhances transparency and reproducibility, and aids in the development of production models.
-
-## Harnessing the Power of YOLOv8 and Comet ML
-
-By combining Ultralytics YOLOv8 with Comet ML, you unlock a range of benefits. These include simplified experiment management, real-time insights for quick adjustments, flexible and tailored logging options, and the ability to log experiments offline when internet access is limited. This integration empowers you to make data-driven decisions, analyze performance metrics, and achieve exceptional results.
-
-## Installation
-
-To install the required packages, run:
-
-!!! Tip "Installation"
-
- === "CLI"
-
- ```bash
- # Install the required packages for YOLOv8 and Comet ML
- pip install ultralytics comet_ml torch torchvision
- ```
-
-## Configuring Comet ML
-
-After installing the required packages, you’ll need to sign up, get a [Comet API Key](https://www.comet.com/signup), and configure it.
-
-!!! Tip "Configuring Comet ML"
-
- === "CLI"
-
- ```bash
- # Set your Comet Api Key
- export COMET_API_KEY=
- ```
-
-Then, you can initialize your Comet project. Comet will automatically detect the API key and proceed with the setup.
-
-```python
-import comet_ml
-
-comet_ml.init(project_name="comet-example-yolov8-coco128")
-```
-
-If you are using a Google Colab notebook, the code above will prompt you to enter your API key for initialization.
-
-## Usage
-
-Before diving into the usage instructions, be sure to check out the range of [YOLOv8 models offered by Ultralytics](../models/index.md). This will help you choose the most appropriate model for your project requirements.
-
-!!! Example "Usage"
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO("yolov8n.pt")
-
- # train the model
- results = model.train(
- data="coco128.yaml",
- project="comet-example-yolov8-coco128",
- batch=32,
- save_period=1,
- save_json=True,
- epochs=3
- )
- ```
-
-After running the training code, Comet ML will create an experiment in your Comet workspace to track the run automatically. You will then be provided with a link to view the detailed logging of your [YOLOv8 model's training](../modes/train.md) process.
-
-Comet automatically logs the following data with no additional configuration: metrics such as mAP and loss, hyperparameters, model checkpoints, interactive confusion matrix, and image bounding box predictions.
-
-## Understanding Your Model's Performance with Comet ML Visualizations
-
-Let's dive into what you'll see on the Comet ML dashboard once your YOLOv8 model begins training. The dashboard is where all the action happens, presenting a range of automatically logged information through visuals and statistics. Here’s a quick tour:
-
-**Experiment Panels**
-
-The experiment panels section of the Comet ML dashboard organize and present the different runs and their metrics, such as segment mask loss, class loss, precision, and mean average precision.
-
-
-
-
-
-**Metrics**
-
-In the metrics section, you have the option to examine the metrics in a tabular format as well, which is displayed in a dedicated pane as illustrated here.
-
-
-
-
-
-**Interactive Confusion Matrix**
-
-The confusion matrix, found in the Confusion Matrix tab, provides an interactive way to assess the model's classification accuracy. It details the correct and incorrect predictions, allowing you to understand the model's strengths and weaknesses.
-
-
-
-
-
-**System Metrics**
-
-Comet ML logs system metrics to help identify any bottlenecks in the training process. It includes metrics such as GPU utilization, GPU memory usage, CPU utilization, and RAM usage. These are essential for monitoring the efficiency of resource usage during model training.
-
-
-
-
-
-## Customizing Comet ML Logging
-
-Comet ML offers the flexibility to customize its logging behavior by setting environment variables. These configurations allow you to tailor Comet ML to your specific needs and preferences. Here are some helpful customization options:
-
-### Logging Image Predictions
-
-You can control the number of image predictions that Comet ML logs during your experiments. By default, Comet ML logs 100 image predictions from the validation set. However, you can change this number to better suit your requirements. For example, to log 200 image predictions, use the following code:
-
-```python
-import os
-
-os.environ["COMET_MAX_IMAGE_PREDICTIONS"] = "200"
-```
-
-### Batch Logging Interval
-
-Comet ML allows you to specify how often batches of image predictions are logged. The `COMET_EVAL_BATCH_LOGGING_INTERVAL` environment variable controls this frequency. The default setting is 1, which logs predictions from every validation batch. You can adjust this value to log predictions at a different interval. For instance, setting it to 4 will log predictions from every fourth batch.
-
-```python
-import os
-
-os.environ['COMET_EVAL_BATCH_LOGGING_INTERVAL'] = "4"
-```
-
-### Disabling Confusion Matrix Logging
-
-In some cases, you may not want to log the confusion matrix from your validation set after every epoch. You can disable this feature by setting the `COMET_EVAL_LOG_CONFUSION_MATRIX` environment variable to "false." The confusion matrix will only be logged once, after the training is completed.
-
-```python
-import os
-
-os.environ["COMET_EVAL_LOG_CONFUSION_MATRIX"] = "false"
-```
-
-### Offline Logging
-
-If you find yourself in a situation where internet access is limited, Comet ML provides an offline logging option. You can set the `COMET_MODE` environment variable to "offline" to enable this feature. Your experiment data will be saved locally in a directory that you can later upload to Comet ML when internet connectivity is available.
-
-```python
-import os
-
-os.environ["COMET_MODE"] = "offline"
-```
-
-## Summary
-
-This guide has walked you through integrating Comet ML with Ultralytics' YOLOv8. From installation to customization, you've learned to streamline experiment management, gain real-time insights, and adapt logging to your project's needs.
-
-Explore [Comet ML's official documentation](https://www.comet.com/docs/v2/integrations/third-party-tools/yolov8/) for more insights on integrating with YOLOv8.
-
-Furthermore, if you're looking to dive deeper into the practical applications of YOLOv8, specifically for image segmentation tasks, this detailed guide on [fine-tuning YOLOv8 with Comet ML](https://www.comet.com/site/blog/fine-tuning-yolov8-for-image-segmentation-with-comet/) offers valuable insights and step-by-step instructions to enhance your model's performance.
-
-Additionally, to explore other exciting integrations with Ultralytics, check out the [integration guide page](../integrations/index.md), which offers a wealth of resources and information.
diff --git a/ultralytics-main/docs/en/integrations/coreml.md b/ultralytics-main/docs/en/integrations/coreml.md
deleted file mode 100644
index 5533da5..0000000
--- a/ultralytics-main/docs/en/integrations/coreml.md
+++ /dev/null
@@ -1,126 +0,0 @@
----
-comments: true
-description: Explore the process of exporting Ultralytics YOLOv8 models to CoreML format, enabling efficient object detection capabilities for iOS and macOS applications on Apple devices.
-keywords: Ultralytics, YOLOv8, CoreML Export, Model Deployment, Apple Devices, Object Detection, Machine Learning
----
-
-# CoreML Export for YOLOv8 Models
-
-Deploying computer vision models on Apple devices like iPhones and Macs requires a format that ensures seamless performance.
-
-The CoreML export format allows you to optimize your [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics) models for efficient object detection in iOS and macOS applications. In this guide, we'll walk you through the steps for converting your models to the CoreML format, making it easier for your models to perform well on Apple devices.
-
-## CoreML
-
-
-
-
-
-[CoreML](https://developer.apple.com/documentation/coreml) is Apple's foundational machine learning framework that builds upon Accelerate, BNNS, and Metal Performance Shaders. It provides a machine-learning model format that seamlessly integrates into iOS applications and supports tasks such as image analysis, natural language processing, audio-to-text conversion, and sound analysis.
-
-Applications can take advantage of Core ML without the need to have a network connection or API calls because the Core ML framework works using on-device computing. This means model inference can be performed locally on the user's device.
-
-## Key Features of CoreML Models
-
-Apple's CoreML framework offers robust features for on-device machine learning. Here are the key features that make CoreML a powerful tool for developers:
-
-- **Comprehensive Model Support**: Converts and runs models from popular frameworks like TensorFlow, PyTorch, scikit-learn, XGBoost, and LibSVM.
-
-
-
-
-
-- **On-device Machine Learning**: Ensures data privacy and swift processing by executing models directly on the user's device, eliminating the need for network connectivity.
-
-- **Performance and Optimization**: Uses the device's CPU, GPU, and Neural Engine for optimal performance with minimal power and memory usage. Offers tools for model compression and optimization while maintaining accuracy.
-
-- **Ease of Integration**: Provides a unified format for various model types and a user-friendly API for seamless integration into apps. Supports domain-specific tasks through frameworks like Vision and Natural Language.
-
-- **Advanced Features**: Includes on-device training capabilities for personalized experiences, asynchronous predictions for interactive ML experiences, and model inspection and validation tools.
-
-## CoreML Deployment Options
-
-Before we look at the code for exporting YOLOv8 models to the CoreML format, let’s understand where CoreML models are usually used.
-
-CoreML offers various deployment options for machine learning models, including:
-
-- **On-Device Deployment**: This method directly integrates CoreML models into your iOS app. It's particularly advantageous for ensuring low latency, enhanced privacy (since data remains on the device), and offline functionality. This approach, however, may be limited by the device's hardware capabilities, especially for larger and more complex models. On-device deployment can be executed in the following two ways.
-
- - **Embedded Models**: These models are included in the app bundle and are immediately accessible. They are ideal for small models that do not require frequent updates.
-
- - **Downloaded Models**: These models are fetched from a server as needed. This approach is suitable for larger models or those needing regular updates. It helps keep the app bundle size smaller.
-
-- **Cloud-Based Deployment**: CoreML models are hosted on servers and accessed by the iOS app through API requests. This scalable and flexible option enables easy model updates without app revisions. It’s ideal for complex models or large-scale apps requiring regular updates. However, it does require an internet connection and may pose latency and security issues.
-
-## Exporting YOLOv8 Models to CoreML
-
-Exporting YOLOv8 to CoreML enables optimized, on-device machine learning performance within Apple's ecosystem, offering benefits in terms of efficiency, security, and seamless integration with iOS, macOS, watchOS, and tvOS platforms.
-
-### Installation
-
-To install the required package, run:
-
-!!! Tip "Installation"
-
- === "CLI"
-
- ```bash
- # Install the required package for YOLOv8
- pip install ultralytics
- ```
-
-For detailed instructions and best practices related to the installation process, check our [YOLOv8 Installation guide](../quickstart.md). While installing the required packages for YOLOv8, if you encounter any difficulties, consult our [Common Issues guide](../guides/yolo-common-issues.md) for solutions and tips.
-
-### Usage
-
-Before diving into the usage instructions, be sure to check out the range of [YOLOv8 models offered by Ultralytics](../models/index.md). This will help you choose the most appropriate model for your project requirements.
-
-!!! Example "Usage"
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load the YOLOv8 model
- model = YOLO('yolov8n.pt')
-
- # Export the model to CoreML format
- model.export(format='coreml') # creates 'yolov8n.mlpackage'
-
- # Load the exported CoreML model
- coreml_model = YOLO('yolov8n.mlpackage')
-
- # Run inference
- results = coreml_model('https://ultralytics.com/images/bus.jpg')
- ```
-
- === "CLI"
-
- ```bash
- # Export a YOLOv8n PyTorch model to CoreML format
- yolo export model=yolov8n.pt format=coreml # creates 'yolov8n.mlpackage''
-
- # Run inference with the exported model
- yolo predict model=yolov8n.mlpackage source='https://ultralytics.com/images/bus.jpg'
- ```
-
-For more details about the export process, visit the [Ultralytics documentation page on exporting](../modes/export.md).
-
-## Deploying Exported YOLOv8 CoreML Models
-
-Having successfully exported your Ultralytics YOLOv8 models to CoreML, the next critical phase is deploying these models effectively. For detailed guidance on deploying CoreML models in various environments, check out these resources:
-
-- **[CoreML Tools](https://apple.github.io/coremltools/docs-guides/)**: This guide includes instructions and examples to convert models from TensorFlow, PyTorch, and other libraries to Core ML.
-
-- **[ML and Vision](https://developer.apple.com/videos/ml-vision)**: A collection of comprehensive videos that cover various aspects of using and implementing CoreML models.
-
-- **[Integrating a Core ML Model into Your App](https://developer.apple.com/documentation/coreml/integrating_a_core_ml_model_into_your_app)**: A comprehensive guide on integrating a CoreML model into an iOS application, detailing steps from preparing the model to implementing it in the app for various functionalities.
-
-## Summary
-
-In this guide, we went over how to export Ultralytics YOLOv8 models to CoreML format. By following the steps outlined in this guide, you can ensure maximum compatibility and performance when exporting YOLOv8 models to CoreML.
-
-For further details on usage, visit the [CoreML official documentation](https://developer.apple.com/documentation/coreml).
-
-Also, if you’d like to know more about other Ultralytics YOLOv8 integrations, visit our [integration guide page](../integrations/index.md). You'll find plenty of valuable resources and insights there.
diff --git a/ultralytics-main/docs/en/integrations/dvc.md b/ultralytics-main/docs/en/integrations/dvc.md
deleted file mode 100644
index 542a91a..0000000
--- a/ultralytics-main/docs/en/integrations/dvc.md
+++ /dev/null
@@ -1,171 +0,0 @@
----
-comments: true
-description: This guide provides a step-by-step approach to integrating DVCLive with Ultralytics YOLOv8 for advanced experiment tracking. Learn how to set up your environment, run experiments with varied configurations, and analyze results using DVCLive's powerful tracking and visualization tools.
-keywords: DVCLive, Ultralytics, YOLOv8, Machine Learning, Experiment Tracking, Data Version Control, ML Workflows, Model Training, Hyperparameter Tuning
----
-
-# Advanced YOLOv8 Experiment Tracking with DVCLive
-
-Experiment tracking in machine learning is critical to model development and evaluation. It involves recording and analyzing various parameters, metrics, and outcomes from numerous training runs. This process is essential for understanding model performance and making data-driven decisions to refine and optimize models.
-
-Integrating DVCLive with [Ultralytics YOLOv8](https://ultralytics.com) transforms the way experiments are tracked and managed. This integration offers a seamless solution for automatically logging key experiment details, comparing results across different runs, and visualizing data for in-depth analysis. In this guide, we'll understand how DVCLive can be used to streamline the process.
-
-## DVCLive
-
-
-
-
-
-[DVCLive](https://dvc.org/doc/dvclive), developed by DVC, is an innovative open-source tool for experiment tracking in machine learning. Integrating seamlessly with Git and DVC, it automates the logging of crucial experiment data like model parameters and training metrics. Designed for simplicity, DVCLive enables effortless comparison and analysis of multiple runs, enhancing the efficiency of machine learning projects with intuitive data visualization and analysis tools.
-
-## YOLOv8 Training with DVCLive
-
-YOLOv8 training sessions can be effectively monitored with DVCLive. Additionally, DVC provides integral features for visualizing these experiments, including the generation of a report that enables the comparison of metric plots across all tracked experiments, offering a comprehensive view of the training process.
-
-## Installation
-
-To install the required packages, run:
-
-!!! Tip "Installation"
-
- === "CLI"
-
- ```bash
- # Install the required packages for YOLOv8 and DVCLive
- pip install ultralytics dvclive
- ```
-
-For detailed instructions and best practices related to the installation process, be sure to check our [YOLOv8 Installation guide](../quickstart.md). While installing the required packages for YOLOv8, if you encounter any difficulties, consult our [Common Issues guide](../guides/yolo-common-issues.md) for solutions and tips.
-
-## Configuring DVCLive
-
-Once you have installed the necessary packages, the next step is to set up and configure your environment with the necessary credentials. This setup ensures a smooth integration of DVCLive into your existing workflow.
-
-Begin by initializing a Git repository, as Git plays a crucial role in version control for both your code and DVCLive configurations.
-
-!!! Tip "Initial Environment Setup"
-
- === "CLI"
-
- ```bash
- # Initialize a Git repository
- git init -q
-
- # Configure Git with your details
- git config --local user.email "you@example.com"
- git config --local user.name "Your Name"
-
- # Initialize DVCLive in your project
- dvc init -q
-
- # Commit the DVCLive setup to your Git repository
- git commit -m "DVC init"
- ```
-
-In these commands, ensure to replace "you@example.com" with the email address associated with your Git account, and "Your Name" with your Git account username.
-
-## Usage
-
-Before diving into the usage instructions, be sure to check out the range of [YOLOv8 models offered by Ultralytics](../models/index.md). This will help you choose the most appropriate model for your project requirements.
-
-### Training YOLOv8 Models with DVCLive
-
-Start by running your YOLOv8 training sessions. You can use different model configurations and training parameters to suit your project needs. For instance:
-
-```bash
-# Example training commands for YOLOv8 with varying configurations
-yolo train model=yolov8n.pt data=coco8.yaml epochs=5 imgsz=512
-yolo train model=yolov8n.pt data=coco8.yaml epochs=5 imgsz=640
-```
-
-Adjust the model, data, epochs, and imgsz parameters according to your specific requirements. For a detailed understanding of the model training process and best practices, refer to our [YOLOv8 Model Training guide](../modes/train.md).
-
-### Monitoring Experiments with DVCLive
-
-DVCLive enhances the training process by enabling the tracking and visualization of key metrics. When installed, Ultralytics YOLOv8 automatically integrates with DVCLive for experiment tracking, which you can later analyze for performance insights. For a comprehensive understanding of the specific performance metrics used during training, be sure to explore [our detailed guide on performance metrics](../guides/yolo-performance-metrics.md).
-
-### Analyzing Results
-
-After your YOLOv8 training sessions are complete, you can leverage DVCLive's powerful visualization tools for in-depth analysis of the results. DVCLive's integration ensures that all training metrics are systematically logged, facilitating a comprehensive evaluation of your model's performance.
-
-To start the analysis, you can extract the experiment data using DVC's API and process it with Pandas for easier handling and visualization:
-
-```python
-import dvc.api
-import pandas as pd
-
-# Define the columns of interest
-columns = ["Experiment", "epochs", "imgsz", "model", "metrics.mAP50-95(B)"]
-
-# Retrieve experiment data
-df = pd.DataFrame(dvc.api.exp_show(), columns=columns)
-
-# Clean the data
-df.dropna(inplace=True)
-df.reset_index(drop=True, inplace=True)
-
-# Display the DataFrame
-print(df)
-```
-
-The output of the code snippet above provides a clear tabular view of the different experiments conducted with YOLOv8 models. Each row represents a different training run, detailing the experiment's name, the number of epochs, image size (imgsz), the specific model used, and the mAP50-95(B) metric. This metric is crucial for evaluating the model's accuracy, with higher values indicating better performance.
-
-#### Visualizing Results with Plotly
-
-For a more interactive and visual analysis of your experiment results, you can use Plotly's parallel coordinates plot. This type of plot is particularly useful for understanding the relationships and trade-offs between different parameters and metrics.
-
-```python
-from plotly.express import parallel_coordinates
-
-# Create a parallel coordinates plot
-fig = parallel_coordinates(df, columns, color="metrics.mAP50-95(B)")
-
-# Display the plot
-fig.show()
-```
-
-The output of the code snippet above generates a plot that will visually represent the relationships between epochs, image size, model type, and their corresponding mAP50-95(B) scores, enabling you to spot trends and patterns in your experiment data.
-
-#### Generating Comparative Visualizations with DVC
-
-DVC provides a useful command to generate comparative plots for your experiments. This can be especially helpful to compare the performance of different models over various training runs.
-
-```bash
-# Generate DVC comparative plots
-dvc plots diff $(dvc exp list --names-only)
-```
-
-After executing this command, DVC generates plots comparing the metrics across different experiments, which are saved as HTML files. Below is an example image illustrating typical plots generated by this process. The image showcases various graphs, including those representing mAP, recall, precision, loss values, and more, providing a visual overview of key performance metrics:
-
-
-
-
-
-### Displaying DVC Plots
-
-If you are using a Jupyter Notebook and you want to display the generated DVC plots, you can use the IPython display functionality.
-
-```python
-from IPython.display import HTML
-
-# Display the DVC plots as HTML
-HTML(filename='./dvc_plots/index.html')
-```
-
-This code will render the HTML file containing the DVC plots directly in your Jupyter Notebook, providing an easy and convenient way to analyze the visualized experiment data.
-
-### Making Data-Driven Decisions
-
-Use the insights gained from these visualizations to make informed decisions about model optimizations, hyperparameter tuning, and other modifications to enhance your model's performance.
-
-### Iterating on Experiments
-
-Based on your analysis, iterate on your experiments. Adjust model configurations, training parameters, or even the data inputs, and repeat the training and analysis process. This iterative approach is key to refining your model for the best possible performance.
-
-## Summary
-
-This guide has led you through the process of integrating DVCLive with Ultralytics' YOLOv8. You have learned how to harness the power of DVCLive for detailed experiment monitoring, effective visualization, and insightful analysis in your machine learning endeavors.
-
-For further details on usage, visit [DVCLive’s official documentation](https://dvc.org/doc/dvclive/ml-frameworks/yolo).
-
-Additionally, explore more integrations and capabilities of Ultralytics by visiting the [Ultralytics integration guide page](../integrations/index.md), which is a collection of great resources and insights.
diff --git a/ultralytics-main/docs/en/integrations/edge-tpu.md b/ultralytics-main/docs/en/integrations/edge-tpu.md
deleted file mode 100644
index aa83c44..0000000
--- a/ultralytics-main/docs/en/integrations/edge-tpu.md
+++ /dev/null
@@ -1,118 +0,0 @@
----
-comments: true
-description: Discover how to uplift your Ultralytics YOLOv8 model's overall performance with the TFLite Edge TPU export format, which is perfect for mobile and embedded devices.
-keywords: Ultralytics, YOLOv8, TFLite edge TPU format, Export YOLOv8, Model Deployment, Flexible Deployment
----
-
-# Learn to Export to TFLite Edge TPU Format From YOLOv8 Model
-
-Deploying computer vision models on devices with limited computational power, such as mobile or embedded systems, can be tricky. Using a model format that is optimized for faster performance simplifies the process. The [TensorFlow Lite](https://www.tensorflow.org/lite) [Edge TPU](https://coral.ai/docs/edgetpu/models-intro/) or TFLite Edge TPU model format is designed to use minimal power while delivering fast performance for neural networks.
-
-The export to TFLite Edge TPU format feature allows you to optimize your [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics) models for high-speed and low-power inferencing. In this guide, we'll walk you through converting your models to the TFLite Edge TPU format, making it easier for your models to perform well on various mobile and embedded devices.
-
-## Why Should You Export to TFLite Edge TPU?
-
-Exporting models to TensorFlow Edge TPU makes machine learning tasks fast and efficient. This technology suits applications with limited power, computing resources, and connectivity. The Edge TPU is a hardware accelerator by Google. It speeds up TensorFlow Lite models on edge devices. The image below shows an example of the process involved.
-
-
-
-
-
-The Edge TPU works with quantized models. Quantization makes models smaller and faster without losing much accuracy. It is ideal for the limited resources of edge computing, allowing applications to respond quickly by reducing latency and allowing for quick data processing locally, without cloud dependency. Local processing also keeps user data private and secure since it's not sent to a remote server.
-
-## Key Features of TFLite Edge TPU
-
-Here are the key features that make TFLite Edge TPU a great model format choice for developers:
-
-- **Optimized Performance on Edge Devices**: The TFLite Edge TPU achieves high-speed neural networking performance through quantization, model optimization, hardware acceleration, and compiler optimization. Its minimalistic architecture contributes to its smaller size and cost-efficiency.
-
-- **High Computational Throughput**: TFLite Edge TPU combines specialized hardware acceleration and efficient runtime execution to achieve high computational throughput. It is well-suited for deploying machine learning models with stringent performance requirements on edge devices.
-
-- **Efficient Matrix Computations**: The TensorFlow Edge TPU is optimized for matrix operations, which are crucial for neural network computations. This efficiency is key in machine learning models, particularly those requiring numerous and complex matrix multiplications and transformations.
-
-## Deployment Options with TFLite Edge TPU
-
-Before we jump into how to export YOLOv8 models to the TFLite Edge TPU format, let’s understand where TFLite Edge TPU models are usually used.
-
-TFLite Edge TPU offers various deployment options for machine learning models, including:
-
-- **On-Device Deployment**: TensorFlow Edge TPU models can be directly deployed on mobile and embedded devices. On-device deployment allows the models to execute directly on the hardware, eliminating the need for cloud connectivity.
-
-- **Edge Computing with Cloud TensorFlow TPUs**: In scenarios where edge devices have limited processing capabilities, TensorFlow Edge TPUs can offload inference tasks to cloud servers equipped with TPUs.
-
-- **Hybrid Deployment**: A hybrid approach combines on-device and cloud deployment and offers a versatile and scalable solution for deploying machine learning models. Advantages include on-device processing for quick responses and cloud computing for more complex computations.
-
-## Exporting YOLOv8 Models to TFLite Edge TPU
-
-You can expand model compatibility and deployment flexibility by converting YOLOv8 models to TensorFlow Edge TPU.
-
-### Installation
-
-To install the required package, run:
-
-!!! Tip "Installation"
-
- === "CLI"
-
- ```bash
- # Install the required package for YOLOv8
- pip install ultralytics
- ```
-
-For detailed instructions and best practices related to the installation process, check our [Ultralytics Installation guide](../quickstart.md). While installing the required packages for YOLOv8, if you encounter any difficulties, consult our [Common Issues guide](../guides/yolo-common-issues.md) for solutions and tips.
-
-### Usage
-
-Before diving into the usage instructions, it's important to note that while all [Ultralytics YOLOv8 models](../models/index.md) are available for exporting, you can ensure that the model you select supports export functionality [here](../modes/export.md).
-
-!!! Example "Usage"
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load the YOLOv8 model
- model = YOLO('yolov8n.pt')
-
- # Export the model to TFLite Edge TPU format
- model.export(format='edgetpu') # creates 'yolov8n_full_integer_quant_edgetpu.tflite’
-
- # Load the exported TFLite Edge TPU model
- edgetpu_model = YOLO('yolov8n_full_integer_quant_edgetpu.tflite')
-
- # Run inference
- results = edgetpu_model('https://ultralytics.com/images/bus.jpg')
- ```
-
- === "CLI"
-
- ```bash
- # Export a YOLOv8n PyTorch model to TFLite Edge TPU format
- yolo export model=yolov8n.pt format=edgetpu # creates 'yolov8n_full_integer_quant_edgetpu.tflite'
-
- # Run inference with the exported model
- yolo predict model=yolov8n_full_integer_quant_edgetpu.tflite source='https://ultralytics.com/images/bus.jpg'
- ```
-
-For more details about supported export options, visit the [Ultralytics documentation page on deployment options](../guides/model-deployment-options.md).
-
-## Deploying Exported YOLOv8 TFLite Edge TPU Models
-
-After successfully exporting your Ultralytics YOLOv8 models to TFLite Edge TPU format, you can now deploy them. The primary and recommended first step for running a TFLite Edge TPU model is to use the YOLO("model_edgetpu.tflite") method, as outlined in the previous usage code snippet.
-
-However, for in-depth instructions on deploying your TFLite Edge TPU models, take a look at the following resources:
-
-- **[Coral Edge TPU on a Raspberry Pi with Ultralytics YOLOv8](../guides/coral-edge-tpu-on-raspberry-pi.md)**: Discover how to integrate Coral Edge TPUs with Raspberry Pi for enhanced machine learning capabilities.
-
-- **[Code Examples](https://coral.ai/docs/edgetpu/compiler/)**: Access practical TensorFlow Edge TPU deployment examples to kickstart your projects.
-
-- **[Run Inference on the Edge TPU with Python](https://coral.ai/docs/edgetpu/tflite-python/#overview)**: Explore how to use the TensorFlow Lite Python API for Edge TPU applications, including setup and usage guidelines.
-
-## Summary
-
-In this guide, we’ve learned how to export Ultralytics YOLOv8 models to TFLite Edge TPU format. By following the steps mentioned above, you can increase the speed and power of your computer vision applications.
-
-For further details on usage, visit the [Edge TPU official website](https://cloud.google.com/edge-tpu).
-
-Also, for more information on other Ultralytics YOLOv8 integrations, please visit our [integration guide page](index.md). There, you'll discover valuable resources and insights.
diff --git a/ultralytics-main/docs/en/integrations/gradio.md b/ultralytics-main/docs/en/integrations/gradio.md
deleted file mode 100644
index 3845b4f..0000000
--- a/ultralytics-main/docs/en/integrations/gradio.md
+++ /dev/null
@@ -1,106 +0,0 @@
----
-comments: true
-description: Learn to use Gradio and Ultralytics YOLOv8 for interactive object detection. Upload images and adjust detection parameters in real-time.
-keywords: Gradio, Ultralytics YOLOv8, object detection, interactive AI, Python
----
-
-# Interactive Object Detection: Gradio & Ultralytics YOLOv8 🚀
-
-## Introduction to Interactive Object Detection
-
-This Gradio interface provides an easy and interactive way to perform object detection using the [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics/) model. Users can upload images and adjust parameters like confidence threshold and intersection-over-union (IoU) threshold to get real-time detection results.
-
-## Why Use Gradio for Object Detection?
-
-* **User-Friendly Interface:** Gradio offers a straightforward platform for users to upload images and visualize detection results without any coding requirement.
-* **Real-Time Adjustments:** Parameters such as confidence and IoU thresholds can be adjusted on the fly, allowing for immediate feedback and optimization of detection results.
-* **Broad Accessibility:** The Gradio web interface can be accessed by anyone, making it an excellent tool for demonstrations, educational purposes, and quick experiments.
-
-
-
-
-
-## How to Install the Gradio
-
-```bash
-pip install gradio
-```
-
-## How to Use the Interface
-
-1. **Upload Image:** Click on 'Upload Image' to choose an image file for object detection.
-2. **Adjust Parameters:**
- * **Confidence Threshold:** Slider to set the minimum confidence level for detecting objects.
- * **IoU Threshold:** Slider to set the IoU threshold for distinguishing different objects.
-3. **View Results:** The processed image with detected objects and their labels will be displayed.
-
-## Example Use Cases
-
-* **Sample Image 1:** Bus detection with default thresholds.
-* **Sample Image 2:** Detection on a sports image with default thresholds.
-
-## Usage Example
-
-This section provides the Python code used to create the Gradio interface with the Ultralytics YOLOv8 model. Supports classification tasks, detection tasks, segmentation tasks, and key point tasks.
-
-```python
-import PIL.Image as Image
-import gradio as gr
-
-from ultralytics import ASSETS, YOLO
-
-model = YOLO("yolov8n.pt")
-
-
-def predict_image(img, conf_threshold, iou_threshold):
- results = model.predict(
- source=img,
- conf=conf_threshold,
- iou=iou_threshold,
- show_labels=True,
- show_conf=True,
- imgsz=640,
- )
-
- for r in results:
- im_array = r.plot()
- im = Image.fromarray(im_array[..., ::-1])
-
- return im
-
-
-iface = gr.Interface(
- fn=predict_image,
- inputs=[
- gr.Image(type="pil", label="Upload Image"),
- gr.Slider(minimum=0, maximum=1, value=0.25, label="Confidence threshold"),
- gr.Slider(minimum=0, maximum=1, value=0.45, label="IoU threshold")
- ],
- outputs=gr.Image(type="pil", label="Result"),
- title="Ultralytics Gradio",
- description="Upload images for inference. The Ultralytics YOLOv8n model is used by default.",
- examples=[
- [ASSETS / "bus.jpg", 0.25, 0.45],
- [ASSETS / "zidane.jpg", 0.25, 0.45],
- ]
-)
-
-if __name__ == '__main__':
- iface.launch()
-```
-
-## Parameters Explanation
-
-| Parameter Name | Type | Description |
-|------------------|---------|----------------------------------------------------------|
-| `img` | `Image` | The image on which object detection will be performed. |
-| `conf_threshold` | `float` | Confidence threshold for detecting objects. |
-| `iou_threshold` | `float` | Intersection-over-union threshold for object separation. |
-
-### Gradio Interface Components
-
-| Component | Description |
-|--------------|------------------------------------------|
-| Image Input | To upload the image for detection. |
-| Sliders | To adjust confidence and IoU thresholds. |
-| Image Output | To display the detection results. |
diff --git a/ultralytics-main/docs/en/integrations/index.md b/ultralytics-main/docs/en/integrations/index.md
deleted file mode 100644
index 6195f54..0000000
--- a/ultralytics-main/docs/en/integrations/index.md
+++ /dev/null
@@ -1,104 +0,0 @@
----
-comments: true
-description: Explore Ultralytics integrations with tools for dataset management, model optimization, ML workflows automation, experiment tracking, version control, and more. Learn about our support for various model export formats for deployment.
-keywords: Ultralytics integrations, Roboflow, Neural Magic, ClearML, Comet ML, DVC, Ultralytics HUB, MLFlow, Neptune, Ray Tune, TensorBoard, W&B, model export formats, PyTorch, TorchScript, ONNX, OpenVINO, TensorRT, CoreML, TF SavedModel, TF GraphDef, TF Lite, TF Edge TPU, TF.js, PaddlePaddle, NCNN
----
-
-# Ultralytics Integrations
-
-Welcome to the Ultralytics Integrations page! This page provides an overview of our partnerships with various tools and platforms, designed to streamline your machine learning workflows, enhance dataset management, simplify model training, and facilitate efficient deployment.
-
-
-
-
-
-## Datasets Integrations
-
-- [Roboflow](roboflow.md): Facilitate seamless dataset management for Ultralytics models, offering robust annotation, preprocessing, and augmentation capabilities.
-
-## Training Integrations
-
-- [ClearML](clearml.md): Automate your Ultralytics ML workflows, monitor experiments, and foster team collaboration.
-
-- [Comet ML](comet.md): Enhance your model development with Ultralytics by tracking, comparing, and optimizing your machine learning experiments.
-
-- [DVC](dvc.md): Implement version control for your Ultralytics machine learning projects, synchronizing data, code, and models effectively.
-
-- [MLFlow](mlflow.md): Streamline the entire ML lifecycle of Ultralytics models, from experimentation and reproducibility to deployment.
-
-- [Ultralytics HUB](https://hub.ultralytics.com): Access and contribute to a community of pre-trained Ultralytics models.
-
-- [Neptune](https://neptune.ai/): Maintain a comprehensive log of your ML experiments with Ultralytics in this metadata store designed for MLOps.
-
-- [Ray Tune](ray-tune.md): Optimize the hyperparameters of your Ultralytics models at any scale.
-
-- [TensorBoard](tensorboard.md): Visualize your Ultralytics ML workflows, monitor model metrics, and foster team collaboration.
-
-- [Weights & Biases (W&B)](weights-biases.md): Monitor experiments, visualize metrics, and foster reproducibility and collaboration on Ultralytics projects.
-
-- [Amazon SageMaker](amazon-sagemaker.md): Leverage Amazon SageMaker to efficiently build, train, and deploy Ultralytics models, providing an all-in-one platform for the ML lifecycle.
-
-## Deployment Integrations
-
-- [Neural Magic](neural-magic.md): Leverage Quantization Aware Training (QAT) and pruning techniques to optimize Ultralytics models for superior performance and leaner size.
-
-- [Gradio](gradio.md) 🚀 NEW: Deploy Ultralytics models with Gradio for real-time, interactive object detection demos.
-
-- [TorchScript](torchscript.md): Developed as part of the [PyTorch](https://pytorch.org/) framework, TorchScript enables efficient execution and deployment of machine learning models in various production environments without the need for Python dependencies.
-
-- [ONNX](onnx.md): An open-source format created by [Microsoft](https://www.microsoft.com) for facilitating the transfer of AI models between various frameworks, enhancing the versatility and deployment flexibility of Ultralytics models.
-
-- [OpenVINO](openvino.md): Intel's toolkit for optimizing and deploying computer vision models efficiently across various Intel CPU and GPU platforms.
-
-- [TensorRT](tensorrt.md): Developed by [NVIDIA](https://www.nvidia.com/), this high-performance deep learning inference framework and model format optimizes AI models for accelerated speed and efficiency on NVIDIA GPUs, ensuring streamlined deployment.
-
-- [CoreML](coreml.md): CoreML, developed by [Apple](https://www.apple.com/), is a framework designed for efficiently integrating machine learning models into applications across iOS, macOS, watchOS, and tvOS, using Apple's hardware for effective and secure model deployment.
-
-- [TFLite](tflite.md): Developed by [Google](https://www.google.com), TFLite is a lightweight framework for deploying machine learning models on mobile and edge devices, ensuring fast, efficient inference with minimal memory footprint.
-
-- [TFLite Edge TPU](edge-tpu.md): Developed by [Google](https://www.google.com) for optimizing TensorFlow Lite models on Edge TPUs, this model format ensures high-speed, efficient edge computing.
-
-- [PaddlePaddle](paddlepaddle.md): An open-source deep learning platform by [Baidu](https://www.baidu.com/), PaddlePaddle enables the efficient deployment of AI models and focuses on the scalability of industrial applications.
-
-- [NCNN](ncnn.md): Developed by [Tencent](http://www.tencent.com/), NCNN is an efficient neural network inference framework tailored for mobile devices. It enables direct deployment of AI models into apps, optimizing performance across various mobile platforms.
-
-### Export Formats
-
-We also support a variety of model export formats for deployment in different environments. Here are the available formats:
-
-| Format | `format` Argument | Model | Metadata | Arguments |
-|--------------------------------------------------------------------|-------------------|---------------------------|----------|-----------------------------------------------------|
-| [PyTorch](https://pytorch.org/) | - | `yolov8n.pt` | ✅ | - |
-| [TorchScript](https://pytorch.org/docs/stable/jit.html) | `torchscript` | `yolov8n.torchscript` | ✅ | `imgsz`, `optimize` |
-| [ONNX](onnx.md) | `onnx` | `yolov8n.onnx` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `opset` |
-| [OpenVINO](openvino.md) | `openvino` | `yolov8n_openvino_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [TensorRT](https://developer.nvidia.com/tensorrt) | `engine` | `yolov8n.engine` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `workspace` |
-| [CoreML](https://github.com/apple/coremltools) | `coreml` | `yolov8n.mlpackage` | ✅ | `imgsz`, `half`, `int8`, `nms` |
-| [TF SavedModel](https://www.tensorflow.org/guide/saved_model) | `saved_model` | `yolov8n_saved_model/` | ✅ | `imgsz`, `keras`, `int8` |
-| [TF GraphDef](https://www.tensorflow.org/api_docs/python/tf/Graph) | `pb` | `yolov8n.pb` | ❌ | `imgsz` |
-| [TF Lite](https://www.tensorflow.org/lite) | `tflite` | `yolov8n.tflite` | ✅ | `imgsz`, `half`, `int8` |
-| [TF Edge TPU](https://coral.ai/docs/edgetpu/models-intro/) | `edgetpu` | `yolov8n_edgetpu.tflite` | ✅ | `imgsz` |
-| [TF.js](https://www.tensorflow.org/js) | `tfjs` | `yolov8n_web_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [PaddlePaddle](https://github.com/PaddlePaddle) | `paddle` | `yolov8n_paddle_model/` | ✅ | `imgsz` |
-| [NCNN](https://github.com/Tencent/ncnn) | `ncnn` | `yolov8n_ncnn_model/` | ✅ | `imgsz`, `half` |
-
-Explore the links to learn more about each integration and how to get the most out of them with Ultralytics.
-
-## Contribute to Our Integrations
-
-We're always excited to see how the community integrates Ultralytics YOLO with other technologies, tools, and platforms! If you have successfully integrated YOLO with a new system or have valuable insights to share, consider contributing to our Integrations Docs.
-
-By writing a guide or tutorial, you can help expand our documentation and provide real-world examples that benefit the community. It's an excellent way to contribute to the growing ecosystem around Ultralytics YOLO.
-
-To contribute, please check out our [Contributing Guide](https://docs.ultralytics.com/help/contributing) for instructions on how to submit a Pull Request (PR) 🛠️. We eagerly await your contributions!
-
-Let's collaborate to make the Ultralytics YOLO ecosystem more expansive and feature-rich 🙏!
diff --git a/ultralytics-main/docs/en/integrations/mlflow.md b/ultralytics-main/docs/en/integrations/mlflow.md
deleted file mode 100644
index 0dcf4da..0000000
--- a/ultralytics-main/docs/en/integrations/mlflow.md
+++ /dev/null
@@ -1,117 +0,0 @@
----
-comments: true
-description: Uncover the utility of MLflow for effective experiment logging in your Ultralytics YOLO projects.
-keywords: ultralytics docs, YOLO, MLflow, experiment logging, metrics tracking, parameter logging, artifact logging
----
-
-# MLflow Integration for Ultralytics YOLO
-
-
-
-## Introduction
-
-Experiment logging is a crucial aspect of machine learning workflows that enables tracking of various metrics, parameters, and artifacts. It helps to enhance model reproducibility, debug issues, and improve model performance. [Ultralytics](https://ultralytics.com) YOLO, known for its real-time object detection capabilities, now offers integration with [MLflow](https://mlflow.org/), an open-source platform for complete machine learning lifecycle management.
-
-This documentation page is a comprehensive guide to setting up and utilizing the MLflow logging capabilities for your Ultralytics YOLO project.
-
-## What is MLflow?
-
-[MLflow](https://mlflow.org/) is an open-source platform developed by [Databricks](https://www.databricks.com/) for managing the end-to-end machine learning lifecycle. It includes tools for tracking experiments, packaging code into reproducible runs, and sharing and deploying models. MLflow is designed to work with any machine learning library and programming language.
-
-## Features
-
-- **Metrics Logging**: Logs metrics at the end of each epoch and at the end of the training.
-- **Parameter Logging**: Logs all the parameters used in the training.
-- **Artifacts Logging**: Logs model artifacts, including weights and configuration files, at the end of the training.
-
-## Setup and Prerequisites
-
-Ensure MLflow is installed. If not, install it using pip:
-
-```bash
-pip install mlflow
-```
-
-Make sure that MLflow logging is enabled in Ultralytics settings. Usually, this is controlled by the settings `mflow` key. See the [settings](https://docs.ultralytics.com/quickstart/#ultralytics-settings) page for more info.
-
-!!! Example "Update Ultralytics MLflow Settings"
-
- === "Python"
- Within the Python environment, call the `update` method on the `settings` object to change your settings:
- ```python
- from ultralytics import settings
-
- # Update a setting
- settings.update({'mlflow': True})
-
- # Reset settings to default values
- settings.reset()
- ```
-
- === "CLI"
- If you prefer using the command-line interface, the following commands will allow you to modify your settings:
- ```bash
- # Update a setting
- yolo settings runs_dir='/path/to/runs'
-
- # Reset settings to default values
- yolo settings reset
- ```
-
-## How to Use
-
-### Commands
-
-1. **Set a Project Name**: You can set the project name via an environment variable:
-
- ```bash
- export MLFLOW_EXPERIMENT_NAME=
- ```
-
- Or use the `project=` argument when training a YOLO model, i.e. `yolo train project=my_project`.
-
-2. **Set a Run Name**: Similar to setting a project name, you can set the run name via an environment variable:
-
- ```bash
- export MLFLOW_RUN=
- ```
-
- Or use the `name=` argument when training a YOLO model, i.e. `yolo train project=my_project name=my_name`.
-
-3. **Start Local MLflow Server**: To start tracking, use:
-
- ```bash
- mlflow server --backend-store-uri runs/mlflow'
- ```
-
- This will start a local server at http://127.0.0.1:5000 by default and save all mlflow logs to the 'runs/mlflow' directory. To specify a different URI, set the `MLFLOW_TRACKING_URI` environment variable.
-
-4. **Kill MLflow Server Instances**: To stop all running MLflow instances, run:
-
- ```bash
- ps aux | grep 'mlflow' | grep -v 'grep' | awk '{print $2}' | xargs kill -9
- ```
-
-### Logging
-
-The logging is taken care of by the `on_pretrain_routine_end`, `on_fit_epoch_end`, and `on_train_end` callback functions. These functions are automatically called during the respective stages of the training process, and they handle the logging of parameters, metrics, and artifacts.
-
-## Examples
-
-1. **Logging Custom Metrics**: You can add custom metrics to be logged by modifying the `trainer.metrics` dictionary before `on_fit_epoch_end` is called.
-
-2. **View Experiment**: To view your logs, navigate to your MLflow server (usually http://127.0.0.1:5000) and select your experiment and run.
-
-3. **View Run**: Runs are individual models inside an experiment. Click on a Run and see the Run details, including uploaded artifacts and model weights.
-
-## Disabling MLflow
-
-To turn off MLflow logging:
-
-```bash
-yolo settings mlflow=False
-```
-
-## Conclusion
-
-MLflow logging integration with Ultralytics YOLO offers a streamlined way to keep track of your machine learning experiments. It empowers you to monitor performance metrics and manage artifacts effectively, thus aiding in robust model development and deployment. For further details please visit the MLflow [official documentation](https://mlflow.org/docs/latest/index.html).
diff --git a/ultralytics-main/docs/en/integrations/ncnn.md b/ultralytics-main/docs/en/integrations/ncnn.md
deleted file mode 100644
index 835f8fc..0000000
--- a/ultralytics-main/docs/en/integrations/ncnn.md
+++ /dev/null
@@ -1,120 +0,0 @@
----
-comments: true
-description: Uncover how to improve your Ultralytics YOLOv8 model's performance using the NCNN export format that is suitable for devices with limited computation resources.
-keywords: Ultralytics, YOLOv8, NCNN Export, Export YOLOv8, Model Deployment
----
-
-# How to Export to NCNN from YOLOv8 for Smooth Deployment
-
-Deploying computer vision models on devices with limited computational power, such as mobile or embedded systems, can be tricky. You need to make sure you use a format optimized for optimal performance. This makes sure that even devices with limited processing power can handle advanced computer vision tasks well.
-
-The export to NCNN format feature allows you to optimize your [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics) models for lightweight device-based applications. In this guide, we'll walk you through how to convert your models to the NCNN format, making it easier for your models to perform well on various mobile and embedded devices.
-
-## Why should you export to NCNN?
-
-
-
-
-
-The [NCNN](https://github.com/Tencent/ncnn) framework, developed by Tencent, is a high-performance neural network inference computing framework optimized specifically for mobile platforms, including mobile phones, embedded devices, and IoT devices. NCNN is compatible with a wide range of platforms, including Linux, Android, iOS, and macOS.
-
-NCNN is known for its fast processing speed on mobile CPUs and enables rapid deployment of deep learning models to mobile platforms. This makes it easier to build smart apps, putting the power of AI right at your fingertips.
-
-## Key Features of NCNN Models
-
-NCNN models offer a wide range of key features that enable on-device machine learning by helping developers run their models on mobile, embedded, and edge devices:
-
-- **Efficient and High-Performance**: NCNN models are made to be efficient and lightweight, optimized for running on mobile and embedded devices like Raspberry Pi with limited resources. They can also achieve high performance with high accuracy on various computer vision-based tasks.
-
-- **Quantization**: NCNN models often support quantization which is a technique that reduces the precision of the model's weights and activations. This leads to further improvements in performance and reduces memory footprint.
-
-- **Compatibility**: NCNN models are compatible with popular deep learning frameworks like [TensorFlow](https://www.tensorflow.org/), [Caffe](https://caffe.berkeleyvision.org/), and [ONNX](https://onnx.ai/). This compatibility allows developers to use existing models and workflows easily.
-
-- **Easy to Use**: NCNN models are designed for easy integration into various applications, thanks to their compatibility with popular deep learning frameworks. Additionally, NCNN offers user-friendly tools for converting models between different formats, ensuring smooth interoperability across the development landscape.
-
-## Deployment Options with NCNN
-
-Before we look at the code for exporting YOLOv8 models to the NCNN format, let’s understand how NCNN models are normally used.
-
-NCNN models, designed for efficiency and performance, are compatible with a variety of deployment platforms:
-
-- **Mobile Deployment**: Specifically optimized for Android and iOS, allowing for seamless integration into mobile applications for efficient on-device inference.
-
-- **Embedded Systems and IoT Devices**: If you find that running inference on a Raspberry Pi with the [Ultralytics Guide](../guides/raspberry-pi.md) isn't fast enough, switching to an NCNN exported model could help speed things up. NCNN is great for devices like Raspberry Pi and NVIDIA Jetson, especially in situations where you need quick processing right on the device.
-
-- **Desktop and Server Deployment**: Capable of being deployed in desktop and server environments across Linux, Windows, and macOS, supporting development, training, and evaluation with higher computational capacities.
-
-## Export to NCNN: Converting Your YOLOv8 Model
-
-You can expand model compatibility and deployment flexibility by converting YOLOv8 models to NCNN format.
-
-### Installation
-
-To install the required packages, run:
-
-!!! Tip "Installation"
-
- === "CLI"
-
- ```bash
- # Install the required package for YOLOv8
- pip install ultralytics
- ```
-
-For detailed instructions and best practices related to the installation process, check our [Ultralytics Installation guide](../quickstart.md). While installing the required packages for YOLOv8, if you encounter any difficulties, consult our [Common Issues guide](../guides/yolo-common-issues.md) for solutions and tips.
-
-### Usage
-
-Before diving into the usage instructions, it's important to note that while all [Ultralytics YOLOv8 models](../models/index.md) are available for exporting, you can ensure that the model you select supports export functionality [here](../modes/export.md).
-
-!!! Example "Usage"
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load the YOLOv8 model
- model = YOLO('yolov8n.pt')
-
- # Export the model to NCNN format
- model.export(format='ncnn') # creates '/yolov8n_ncnn_model'
-
- # Load the exported NCNN model
- ncnn_model = YOLO('./yolov8n_ncnn_model')
-
- # Run inference
- results = ncnn_model('https://ultralytics.com/images/bus.jpg')
- ```
-
- === "CLI"
-
- ```bash
- # Export a YOLOv8n PyTorch model to NCNN format
- yolo export model=yolov8n.pt format=ncnn # creates '/yolov8n_ncnn_model'
-
- # Run inference with the exported model
- yolo predict model='./yolov8n_ncnn_model' source='https://ultralytics.com/images/bus.jpg'
- ```
-
-For more details about supported export options, visit the [Ultralytics documentation page on deployment options](../guides/model-deployment-options.md).
-
-## Deploying Exported YOLOv8 NCNN Models
-
-After successfully exporting your Ultralytics YOLOv8 models to NCNN format, you can now deploy them. The primary and recommended first step for running a NCNN model is to utilize the YOLO("./model_ncnn_model") method, as outlined in the previous usage code snippet. However, for in-depth instructions on deploying your NCNN models in various other settings, take a look at the following resources:
-
-- **[Android](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-android)**: This blog explains how to use NCNN models for performing tasks like object detection through Android applications.
-
-- **[macOS](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-macos)**: Understand how to use NCNN models for performing tasks through macOS.
-
-- **[Linux](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-linux)**: Explore this page to learn how to deploy NCNN models on limited resource devices like Raspberry Pi and other similar devices.
-
-- **[Windows x64 using VS2017](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-windows-x64-using-visual-studio-community-2017)**: Explore this blog to learn how to deploy NCNN models on windows x64 using Visual Studio Community 2017.
-
-## Summary
-
-In this guide, we've gone over exporting Ultralytics YOLOv8 models to the NCNN format. This conversion step is crucial for improving the efficiency and speed of YOLOv8 models, making them more effective and suitable for limited-resource computing environments.
-
-For detailed instructions on usage, please refer to the [official NCNN documentation](https://ncnn.readthedocs.io/en/latest/index.html).
-
-Also, if you're interested in exploring other integration options for Ultralytics YOLOv8, be sure to visit our [integration guide page](index.md) for further insights and information.
diff --git a/ultralytics-main/docs/en/integrations/neural-magic.md b/ultralytics-main/docs/en/integrations/neural-magic.md
deleted file mode 100644
index 293c199..0000000
--- a/ultralytics-main/docs/en/integrations/neural-magic.md
+++ /dev/null
@@ -1,165 +0,0 @@
----
-comments: true
-description: Learn how to deploy your YOLOv8 models rapidly using Neural Magic’s DeepSparse. This guide focuses on integrating Ultralytics YOLOv8 with the DeepSparse Engine for high-speed, CPU-based inference, leveraging advanced neural network sparsity techniques.
-keywords: YOLOv8, DeepSparse Engine, Ultralytics, CPU Inference, Neural Network Sparsity, Object Detection, Model Optimization
----
-
-# Optimizing YOLOv8 Inferences with Neural Magic’s DeepSparse Engine
-
-When deploying object detection models like [Ultralytics YOLOv8](https://ultralytics.com) on various hardware, you can bump into unique issues like optimization. This is where YOLOv8’s integration with Neural Magic’s DeepSparse Engine steps in. It transforms the way YOLOv8 models are executed and enables GPU-level performance directly on CPUs.
-
-This guide shows you how to deploy YOLOv8 using Neural Magic's DeepSparse, how to run inferences, and also how to benchmark performance to ensure it is optimized.
-
-## Neural Magic’s DeepSparse
-
-
-
-
-
-[Neural Magic’s DeepSparse](https://neuralmagic.com/deepsparse/) is an inference run-time designed to optimize the execution of neural networks on CPUs. It applies advanced techniques like sparsity, pruning, and quantization to dramatically reduce computational demands while maintaining accuracy. DeepSparse offers an agile solution for efficient and scalable neural network execution across various devices.
-
-## Benefits of Integrating Neural Magic’s DeepSparse with YOLOv8
-
-Before diving into how to deploy YOLOV8 using DeepSparse, let’s understand the benefits of using DeepSparse. Some key advantages include:
-
-- **Enhanced Inference Speed**: Achieves up to 525 FPS (on YOLOv8n), significantly speeding up YOLOv8's inference capabilities compared to traditional methods.
-
-
-
-
-
-- **Optimized Model Efficiency**: Uses pruning and quantization to enhance YOLOv8's efficiency, reducing model size and computational requirements while maintaining accuracy.
-
-
-
-
-
-- **High Performance on Standard CPUs**: Delivers GPU-like performance on CPUs, providing a more accessible and cost-effective option for various applications.
-
-- **Streamlined Integration and Deployment**: Offers user-friendly tools for easy integration of YOLOv8 into applications, including image and video annotation features.
-
-- **Support for Various Model Types**: Compatible with both standard and sparsity-optimized YOLOv8 models, adding deployment flexibility.
-
-- **Cost-Effective and Scalable Solution**: Reduces operational expenses and offers scalable deployment of advanced object detection models.
-
-## How Does Neural Magic's DeepSparse Technology Works?
-
-Neural Magic’s Deep Sparse technology is inspired by the human brain’s efficiency in neural network computation. It adopts two key principles from the brain as follows:
-
-- **Sparsity**: The process of sparsification involves pruning redundant information from deep learning networks, leading to smaller and faster models without compromising accuracy. This technique reduces the network's size and computational needs significantly.
-
-- **Locality of Reference**: DeepSparse uses a unique execution method, breaking the network into Tensor Columns. These columns are executed depth-wise, fitting entirely within the CPU's cache. This approach mimics the brain's efficiency, minimizing data movement and maximizing the CPU's cache use.
-
-
-
-
-
-For more details on how Neural Magic's DeepSparse technology work, check out [their blog post](https://neuralmagic.com/blog/how-neural-magics-deep-sparse-technology-works/).
-
-## Creating A Sparse Version of YOLOv8 Trained on a Custom Dataset
-
-SparseZoo, an open-source model repository by Neural Magic, offers [a collection of pre-sparsified YOLOv8 model checkpoints](https://sparsezoo.neuralmagic.com/?modelSet=computer_vision&searchModels=yolo). With SparseML, seamlessly integrated with Ultralytics, users can effortlessly fine-tune these sparse checkpoints on their specific datasets using a straightforward command-line interface.
-
-Checkout [Neural Magic's SparseML YOLOv8 documentation](https://github.com/neuralmagic/sparseml/tree/main/integrations/ultralytics-yolov8) for more details.
-
-## Usage: Deploying YOLOV8 using DeepSparse
-
-Deploying YOLOv8 with Neural Magic's DeepSparse involves a few straightforward steps. Before diving into the usage instructions, be sure to check out the range of [YOLOv8 models offered by Ultralytics](../models/index.md). This will help you choose the most appropriate model for your project requirements. Here's how you can get started.
-
-### Step 1: Installation
-
-To install the required packages, run:
-
-!!! Tip "Installation"
-
- === "CLI"
-
- ```bash
- # Install the required packages
- pip install deepsparse[yolov8]
- ```
-
-### Step 2: Exporting YOLOv8 to ONNX Format
-
-DeepSparse Engine requires YOLOv8 models in ONNX format. Exporting your model to this format is essential for compatibility with DeepSparse. Use the following command to export YOLOv8 models:
-
-!!! Tip "Model Export"
-
- === "CLI"
-
- ```bash
- # Export YOLOv8 model to ONNX format
- yolo task=detect mode=export model=yolov8n.pt format=onnx opset=13
- ```
-
-This command will save the `yolov8n.onnx` model to your disk.
-
-### Step 3: Deploying and Running Inferences
-
-With your YOLOv8 model in ONNX format, you can deploy and run inferences using DeepSparse. This can be done easily with their intuitive Python API:
-
-!!! Tip "Deploying and Running Inferences"
-
- === "Python"
-
- ```python
- from deepsparse import Pipeline
-
- # Specify the path to your YOLOv8 ONNX model
- model_path = "path/to/yolov8n.onnx"
-
- # Set up the DeepSparse Pipeline
- yolo_pipeline = Pipeline.create(
- task="yolov8",
- model_path=model_path
- )
-
- # Run the model on your images
- images = ["path/to/image.jpg"]
- pipeline_outputs = yolo_pipeline(images=images)
- ```
-
-### Step 4: Benchmarking Performance
-
-It's important to check that your YOLOv8 model is performing optimally on DeepSparse. You can benchmark your model's performance to analyze throughput and latency:
-
-!!! Tip "Benchmarking"
-
- === "CLI"
-
- ```bash
- # Benchmark performance
- deepsparse.benchmark model_path="path/to/yolov8n.onnx" --scenario=sync --input_shapes="[1,3,640,640]"
- ```
-
-### Step 5: Additional Features
-
-DeepSparse provides additional features for practical integration of YOLOv8 in applications, such as image annotation and dataset evaluation.
-
-!!! Tip "Additional Features"
-
- === "CLI"
-
- ```bash
- # For image annotation
- deepsparse.yolov8.annotate --source "path/to/image.jpg" --model_filepath "path/to/yolov8n.onnx"
-
- # For evaluating model performance on a dataset
- deepsparse.yolov8.eval --model_path "path/to/yolov8n.onnx"
- ```
-
-Running the annotate command processes your specified image, detecting objects, and saving the annotated image with bounding boxes and classifications. The annotated image will be stored in an annotation-results folder. This helps provide a visual representation of the model's detection capabilities.
-
-
-
-
-
-After running the eval command, you will receive detailed output metrics such as precision, recall, and mAP (mean Average Precision). This provides a comprehensive view of your model's performance on the dataset. This functionality is particularly useful for fine-tuning and optimizing your YOLOv8 models for specific use cases, ensuring high accuracy and efficiency.
-
-## Summary
-
-This guide explored integrating Ultralytics’ YOLOv8 with Neural Magic's DeepSparse Engine. It highlighted how this integration enhances YOLOv8's performance on CPU platforms, offering GPU-level efficiency and advanced neural network sparsity techniques.
-
-For more detailed information and advanced usage, visit [Neural Magic’s DeepSparse documentation](https://docs.neuralmagic.com/products/deepsparse/). Also, check out Neural Magic’s documentation on the integration with YOLOv8 [here](https://github.com/neuralmagic/deepsparse/tree/main/src/deepsparse/yolov8#yolov8-inference-pipelines) and watch a great session on it [here](https://www.youtube.com/watch?v=qtJ7bdt52x8).
-
-Additionally, for a broader understanding of various YOLOv8 integrations, visit the [Ultralytics integration guide page](../integrations/index.md), where you can discover a range of other exciting integration possibilities.
diff --git a/ultralytics-main/docs/en/integrations/onnx.md b/ultralytics-main/docs/en/integrations/onnx.md
deleted file mode 100644
index b869b04..0000000
--- a/ultralytics-main/docs/en/integrations/onnx.md
+++ /dev/null
@@ -1,134 +0,0 @@
----
-comments: true
-description: Explore how to improve your Ultralytics YOLOv8 model's performance and interoperability using the ONNX (Open Neural Network Exchange) export format that is suitable for diverse hardware and software environments.
-keywords: Ultralytics, YOLOv8, ONNX Format, Export YOLOv8, CUDA Support, Model Deployment
----
-
-# ONNX Export for YOLOv8 Models
-
-Often, when deploying computer vision models, you’ll need a model format that's both flexible and compatible with multiple platforms.
-
-Exporting [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics) models to ONNX format streamlines deployment and ensures optimal performance across various environments. This guide will show you how to easily convert your YOLOv8 models to ONNX and enhance their scalability and effectiveness in real-world applications.
-
-## ONNX and ONNX Runtime
-
-[ONNX](https://onnx.ai/), which stands for Open Neural Network Exchange, is a community project that Facebook and Microsoft initially developed. The ongoing development of ONNX is a collaborative effort supported by various organizations like IBM, Amazon (through AWS), and Google. The project aims to create an open file format designed to represent machine learning models in a way that allows them to be used across different AI frameworks and hardware.
-
-ONNX models can be used to transition between different frameworks seamlessly. For instance, a deep learning model trained in PyTorch can be exported to ONNX format and then easily imported into TensorFlow.
-
-
-
-
-
-Alternatively, ONNX models can be used with ONNX Runtime. [ONNX Runtime](https://onnxruntime.ai/) is a versatile cross-platform accelerator for machine learning models that is compatible with frameworks like PyTorch, TensorFlow, TFLite, scikit-learn, etc.
-
-ONNX Runtime optimizes the execution of ONNX models by leveraging hardware-specific capabilities. This optimization allows the models to run efficiently and with high performance on various hardware platforms, including CPUs, GPUs, and specialized accelerators.
-
-
-
-
-
-Whether used independently or in tandem with ONNX Runtime, ONNX provides a flexible solution for machine learning model deployment and compatibility.
-
-## Key Features of ONNX Models
-
-The ability of ONNX to handle various formats can be attributed to the following key features:
-
-- **Common Model Representation**: ONNX defines a common set of operators (like convolutions, layers, etc.) and a standard data format. When a model is converted to ONNX format, its architecture and weights are translated into this common representation. This uniformity ensures that the model can be understood by any framework that supports ONNX.
-
-- **Versioning and Backward Compatibility**: ONNX maintains a versioning system for its operators. This ensures that even as the standard evolves, models created in older versions remain usable. Backward compatibility is a crucial feature that prevents models from becoming obsolete quickly.
-
-- **Graph-based Model Representation**: ONNX represents models as computational graphs. This graph-based structure is a universal way of representing machine learning models, where nodes represent operations or computations, and edges represent the tensors flowing between them. This format is easily adaptable to various frameworks which also represent models as graphs.
-
-- **Tools and Ecosystem**: There is a rich ecosystem of tools around ONNX that assist in model conversion, visualization, and optimization. These tools make it easier for developers to work with ONNX models and to convert models between different frameworks seamlessly.
-
-## Common Usage of ONNX
-
-Before we jump into how to export YOLOv8 models to the ONNX format, let’s take a look at where ONNX models are usually used.
-
-### CPU Deployment
-
-ONNX models are often deployed on CPUs due to their compatibility with ONNX Runtime. This runtime is optimized for CPU execution. It significantly improves inference speed and makes real-time CPU deployments feasible.
-
-### Supported Deployment Options
-
-While ONNX models are commonly used on CPUs, they can also be deployed on the following platforms:
-
-- **GPU Acceleration**: ONNX fully supports GPU acceleration, particularly NVIDIA CUDA. This enables efficient execution on NVIDIA GPUs for tasks that demand high computational power.
-
-- **Edge and Mobile Devices**: ONNX extends to edge and mobile devices, perfect for on-device and real-time inference scenarios. It's lightweight and compatible with edge hardware.
-
-- **Web Browsers**: ONNX can run directly in web browsers, powering interactive and dynamic web-based AI applications.
-
-## Exporting YOLOv8 Models to ONNX
-
-You can expand model compatibility and deployment flexibility by converting YOLOv8 models to ONNX format.
-
-### Installation
-
-To install the required package, run:
-
-!!! Tip "Installation"
-
- === "CLI"
-
- ```bash
- # Install the required package for YOLOv8
- pip install ultralytics
- ```
-
-For detailed instructions and best practices related to the installation process, check our [YOLOv8 Installation guide](../quickstart.md). While installing the required packages for YOLOv8, if you encounter any difficulties, consult our [Common Issues guide](../guides/yolo-common-issues.md) for solutions and tips.
-
-### Usage
-
-Before diving into the usage instructions, be sure to check out the range of [YOLOv8 models offered by Ultralytics](../models/index.md). This will help you choose the most appropriate model for your project requirements.
-
-!!! Example "Usage"
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load the YOLOv8 model
- model = YOLO('yolov8n.pt')
-
- # Export the model to ONNX format
- model.export(format='onnx') # creates 'yolov8n.onnx'
-
- # Load the exported ONNX model
- onnx_model = YOLO('yolov8n.onnx')
-
- # Run inference
- results = onnx_model('https://ultralytics.com/images/bus.jpg')
- ```
-
- === "CLI"
-
- ```bash
- # Export a YOLOv8n PyTorch model to ONNX format
- yolo export model=yolov8n.pt format=onnx # creates 'yolov8n.onnx'
-
- # Run inference with the exported model
- yolo predict model=yolov8n.onnx source='https://ultralytics.com/images/bus.jpg'
- ```
-
-For more details about the export process, visit the [Ultralytics documentation page on exporting](../modes/export.md).
-
-## Deploying Exported YOLOv8 ONNX Models
-
-Once you've successfully exported your Ultralytics YOLOv8 models to ONNX format, the next step is deploying these models in various environments. For detailed instructions on deploying your ONNX models, take a look at the following resources:
-
-- **[ONNX Runtime Python API Documentation](https://onnxruntime.ai/docs/api/python/api_summary.html)**: This guide provides essential information for loading and running ONNX models using ONNX Runtime.
-
-- **[Deploying on Edge Devices](https://onnxruntime.ai/docs/tutorials/iot-edge/)**: Check out this docs page for different examples of deploying ONNX models on edge.
-
-- **[ONNX Tutorials on GitHub](https://github.com/onnx/tutorials)**: A collection of comprehensive tutorials that cover various aspects of using and implementing ONNX models in different scenarios.
-
-## Summary
-
-In this guide, you've learned how to export Ultralytics YOLOv8 models to ONNX format to increase their interoperability and performance across various platforms. You were also introduced to the ONNX Runtime and ONNX deployment options.
-
-For further details on usage, visit the [ONNX official documentation](https://onnx.ai/onnx/intro/).
-
-Also, if you’d like to know more about other Ultralytics YOLOv8 integrations, visit our [integration guide page](../integrations/index.md). You'll find plenty of useful resources and insights there.
diff --git a/ultralytics-main/docs/en/integrations/openvino.md b/ultralytics-main/docs/en/integrations/openvino.md
deleted file mode 100644
index 4234d78..0000000
--- a/ultralytics-main/docs/en/integrations/openvino.md
+++ /dev/null
@@ -1,284 +0,0 @@
----
-comments: true
-description: Discover the power of deploying your Ultralytics YOLOv8 model using OpenVINO format for up to 10x speedup vs PyTorch.
-keywords: ultralytics docs, YOLOv8, export YOLOv8, YOLOv8 model deployment, exporting YOLOv8, OpenVINO, OpenVINO format
----
-
-# Intel OpenVINO Export
-
-
-
-In this guide, we cover exporting YOLOv8 models to the [OpenVINO](https://docs.openvino.ai/) format, which can provide up to 3x [CPU](https://docs.openvino.ai/2024/openvino-workflow/running-inference/inference-devices-and-modes/cpu-device.html) speedup, as well as accelerating YOLO inference on Intel [GPU](https://docs.openvino.ai/2024/openvino-workflow/running-inference/inference-devices-and-modes/gpu-device.html) and [NPU](https://docs.openvino.ai/2024/openvino-workflow/running-inference/inference-devices-and-modes/npu-device.html) hardware.
-
-OpenVINO, short for Open Visual Inference & Neural Network Optimization toolkit, is a comprehensive toolkit for optimizing and deploying AI inference models. Even though the name contains Visual, OpenVINO also supports various additional tasks including language, audio, time series, etc.
-
-
-
-
-
- Watch: How To Export and Optimize an Ultralytics YOLOv8 Model for Inference with OpenVINO.
-
-
-## Usage Examples
-
-Export a YOLOv8n model to OpenVINO format and run inference with the exported model.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a YOLOv8n PyTorch model
- model = YOLO('yolov8n.pt')
-
- # Export the model
- model.export(format='openvino') # creates 'yolov8n_openvino_model/'
-
- # Load the exported OpenVINO model
- ov_model = YOLO('yolov8n_openvino_model/')
-
- # Run inference
- results = ov_model('https://ultralytics.com/images/bus.jpg')
- ```
- === "CLI"
-
- ```bash
- # Export a YOLOv8n PyTorch model to OpenVINO format
- yolo export model=yolov8n.pt format=openvino # creates 'yolov8n_openvino_model/'
-
- # Run inference with the exported model
- yolo predict model=yolov8n_openvino_model source='https://ultralytics.com/images/bus.jpg'
- ```
-
-## Arguments
-
-| Key | Value | Description |
-|----------|--------------|------------------------------------------------------|
-| `format` | `'openvino'` | format to export to |
-| `imgsz` | `640` | image size as scalar or (h, w) list, i.e. (640, 480) |
-| `half` | `False` | FP16 quantization |
-
-## Benefits of OpenVINO
-
-1. **Performance**: OpenVINO delivers high-performance inference by utilizing the power of Intel CPUs, integrated and discrete GPUs, and FPGAs.
-2. **Support for Heterogeneous Execution**: OpenVINO provides an API to write once and deploy on any supported Intel hardware (CPU, GPU, FPGA, VPU, etc.).
-3. **Model Optimizer**: OpenVINO provides a Model Optimizer that imports, converts, and optimizes models from popular deep learning frameworks such as PyTorch, TensorFlow, TensorFlow Lite, Keras, ONNX, PaddlePaddle, and Caffe.
-4. **Ease of Use**: The toolkit comes with more than [80 tutorial notebooks](https://github.com/openvinotoolkit/openvino_notebooks) (including [YOLOv8 optimization](https://github.com/openvinotoolkit/openvino_notebooks/tree/main/notebooks/230-yolov8-optimization)) teaching different aspects of the toolkit.
-
-## OpenVINO Export Structure
-
-When you export a model to OpenVINO format, it results in a directory containing the following:
-
-1. **XML file**: Describes the network topology.
-2. **BIN file**: Contains the weights and biases binary data.
-3. **Mapping file**: Holds mapping of original model output tensors to OpenVINO tensor names.
-
-You can use these files to run inference with the OpenVINO Inference Engine.
-
-## Using OpenVINO Export in Deployment
-
-Once you have the OpenVINO files, you can use the OpenVINO Runtime to run the model. The Runtime provides a unified API to inference across all supported Intel hardware. It also provides advanced capabilities like load balancing across Intel hardware and asynchronous execution. For more information on running the inference, refer to the [Inference with OpenVINO Runtime Guide](https://docs.openvino.ai/2024/openvino-workflow/running-inference.html).
-
-Remember, you'll need the XML and BIN files as well as any application-specific settings like input size, scale factor for normalization, etc., to correctly set up and use the model with the Runtime.
-
-In your deployment application, you would typically do the following steps:
-
-1. Initialize OpenVINO by creating `core = Core()`.
-2. Load the model using the `core.read_model()` method.
-3. Compile the model using the `core.compile_model()` function.
-4. Prepare the input (image, text, audio, etc.).
-5. Run inference using `compiled_model(input_data)`.
-
-For more detailed steps and code snippets, refer to the [OpenVINO documentation](https://docs.openvino.ai/) or [API tutorial](https://github.com/openvinotoolkit/openvino_notebooks/blob/main/notebooks/002-openvino-api/002-openvino-api.ipynb).
-
-## OpenVINO YOLOv8 Benchmarks
-
-YOLOv8 benchmarks below were run by the Ultralytics team on 4 different model formats measuring speed and accuracy: PyTorch, TorchScript, ONNX and OpenVINO. Benchmarks were run on Intel Flex and Arc GPUs, and on Intel Xeon CPUs at FP32 precision (with the `half=False` argument).
-
-!!! Note
-
- The benchmarking results below are for reference and might vary based on the exact hardware and software configuration of a system, as well as the current workload of the system at the time the benchmarks are run.
-
- All benchmarks run with `openvino` Python package version [2023.0.1](https://pypi.org/project/openvino/2023.0.1/).
-
-### Intel Flex GPU
-
-The Intel® Data Center GPU Flex Series is a versatile and robust solution designed for the intelligent visual cloud. This GPU supports a wide array of workloads including media streaming, cloud gaming, AI visual inference, and virtual desktop Infrastructure workloads. It stands out for its open architecture and built-in support for the AV1 encode, providing a standards-based software stack for high-performance, cross-architecture applications. The Flex Series GPU is optimized for density and quality, offering high reliability, availability, and scalability.
-
-Benchmarks below run on Intel® Data Center GPU Flex 170 at FP32 precision.
-
-
-
-
-
-| Model | Format | Status | Size (MB) | mAP50-95(B) | Inference time (ms/im) |
-|---------|-------------|--------|-----------|-------------|------------------------|
-| YOLOv8n | PyTorch | ✅ | 6.2 | 0.3709 | 21.79 |
-| YOLOv8n | TorchScript | ✅ | 12.4 | 0.3704 | 23.24 |
-| YOLOv8n | ONNX | ✅ | 12.2 | 0.3704 | 37.22 |
-| YOLOv8n | OpenVINO | ✅ | 12.3 | 0.3703 | 3.29 |
-| YOLOv8s | PyTorch | ✅ | 21.5 | 0.4471 | 31.89 |
-| YOLOv8s | TorchScript | ✅ | 42.9 | 0.4472 | 32.71 |
-| YOLOv8s | ONNX | ✅ | 42.8 | 0.4472 | 43.42 |
-| YOLOv8s | OpenVINO | ✅ | 42.9 | 0.4470 | 3.92 |
-| YOLOv8m | PyTorch | ✅ | 49.7 | 0.5013 | 50.75 |
-| YOLOv8m | TorchScript | ✅ | 99.2 | 0.4999 | 47.90 |
-| YOLOv8m | ONNX | ✅ | 99.0 | 0.4999 | 63.16 |
-| YOLOv8m | OpenVINO | ✅ | 49.8 | 0.4997 | 7.11 |
-| YOLOv8l | PyTorch | ✅ | 83.7 | 0.5293 | 77.45 |
-| YOLOv8l | TorchScript | ✅ | 167.2 | 0.5268 | 85.71 |
-| YOLOv8l | ONNX | ✅ | 166.8 | 0.5268 | 88.94 |
-| YOLOv8l | OpenVINO | ✅ | 167.0 | 0.5264 | 9.37 |
-| YOLOv8x | PyTorch | ✅ | 130.5 | 0.5404 | 100.09 |
-| YOLOv8x | TorchScript | ✅ | 260.7 | 0.5371 | 114.64 |
-| YOLOv8x | ONNX | ✅ | 260.4 | 0.5371 | 110.32 |
-| YOLOv8x | OpenVINO | ✅ | 260.6 | 0.5367 | 15.02 |
-
-This table represents the benchmark results for five different models (YOLOv8n, YOLOv8s, YOLOv8m, YOLOv8l, YOLOv8x) across four different formats (PyTorch, TorchScript, ONNX, OpenVINO), giving us the status, size, mAP50-95(B) metric, and inference time for each combination.
-
-### Intel Arc GPU
-
-Intel® Arc™ represents Intel's foray into the dedicated GPU market. The Arc™ series, designed to compete with leading GPU manufacturers like AMD and Nvidia, caters to both the laptop and desktop markets. The series includes mobile versions for compact devices like laptops, and larger, more powerful versions for desktop computers.
-
-The Arc™ series is divided into three categories: Arc™ 3, Arc™ 5, and Arc™ 7, with each number indicating the performance level. Each category includes several models, and the 'M' in the GPU model name signifies a mobile, integrated variant.
-
-Early reviews have praised the Arc™ series, particularly the integrated A770M GPU, for its impressive graphics performance. The availability of the Arc™ series varies by region, and additional models are expected to be released soon. Intel® Arc™ GPUs offer high-performance solutions for a range of computing needs, from gaming to content creation.
-
-Benchmarks below run on Intel® Arc 770 GPU at FP32 precision.
-
-
-
-
-
-| Model | Format | Status | Size (MB) | metrics/mAP50-95(B) | Inference time (ms/im) |
-|---------|-------------|--------|-----------|---------------------|------------------------|
-| YOLOv8n | PyTorch | ✅ | 6.2 | 0.3709 | 88.79 |
-| YOLOv8n | TorchScript | ✅ | 12.4 | 0.3704 | 102.66 |
-| YOLOv8n | ONNX | ✅ | 12.2 | 0.3704 | 57.98 |
-| YOLOv8n | OpenVINO | ✅ | 12.3 | 0.3703 | 8.52 |
-| YOLOv8s | PyTorch | ✅ | 21.5 | 0.4471 | 189.83 |
-| YOLOv8s | TorchScript | ✅ | 42.9 | 0.4472 | 227.58 |
-| YOLOv8s | ONNX | ✅ | 42.7 | 0.4472 | 142.03 |
-| YOLOv8s | OpenVINO | ✅ | 42.9 | 0.4469 | 9.19 |
-| YOLOv8m | PyTorch | ✅ | 49.7 | 0.5013 | 411.64 |
-| YOLOv8m | TorchScript | ✅ | 99.2 | 0.4999 | 517.12 |
-| YOLOv8m | ONNX | ✅ | 98.9 | 0.4999 | 298.68 |
-| YOLOv8m | OpenVINO | ✅ | 99.1 | 0.4996 | 12.55 |
-| YOLOv8l | PyTorch | ✅ | 83.7 | 0.5293 | 725.73 |
-| YOLOv8l | TorchScript | ✅ | 167.1 | 0.5268 | 892.83 |
-| YOLOv8l | ONNX | ✅ | 166.8 | 0.5268 | 576.11 |
-| YOLOv8l | OpenVINO | ✅ | 167.0 | 0.5262 | 17.62 |
-| YOLOv8x | PyTorch | ✅ | 130.5 | 0.5404 | 988.92 |
-| YOLOv8x | TorchScript | ✅ | 260.7 | 0.5371 | 1186.42 |
-| YOLOv8x | ONNX | ✅ | 260.4 | 0.5371 | 768.90 |
-| YOLOv8x | OpenVINO | ✅ | 260.6 | 0.5367 | 19 |
-
-### Intel Xeon CPU
-
-The Intel® Xeon® CPU is a high-performance, server-grade processor designed for complex and demanding workloads. From high-end cloud computing and virtualization to artificial intelligence and machine learning applications, Xeon® CPUs provide the power, reliability, and flexibility required for today's data centers.
-
-Notably, Xeon® CPUs deliver high compute density and scalability, making them ideal for both small businesses and large enterprises. By choosing Intel® Xeon® CPUs, organizations can confidently handle their most demanding computing tasks and foster innovation while maintaining cost-effectiveness and operational efficiency.
-
-Benchmarks below run on 4th Gen Intel® Xeon® Scalable CPU at FP32 precision.
-
-
-
-| Model | Format | Status | Size (MB) | metrics/mAP50-95(B) | Inference time (ms/im) |
-|---------|-------------|--------|-----------|---------------------|------------------------|
-| YOLOv8n | PyTorch | ✅ | 6.2 | 0.4478 | 104.61 |
-| YOLOv8n | TorchScript | ✅ | 12.4 | 0.4525 | 112.39 |
-| YOLOv8n | ONNX | ✅ | 12.2 | 0.4525 | 28.02 |
-| YOLOv8n | OpenVINO | ✅ | 12.3 | 0.4504 | 23.53 |
-| YOLOv8s | PyTorch | ✅ | 21.5 | 0.5885 | 194.83 |
-| YOLOv8s | TorchScript | ✅ | 43.0 | 0.5962 | 202.01 |
-| YOLOv8s | ONNX | ✅ | 42.8 | 0.5962 | 65.74 |
-| YOLOv8s | OpenVINO | ✅ | 42.9 | 0.5966 | 38.66 |
-| YOLOv8m | PyTorch | ✅ | 49.7 | 0.6101 | 355.23 |
-| YOLOv8m | TorchScript | ✅ | 99.2 | 0.6120 | 424.78 |
-| YOLOv8m | ONNX | ✅ | 99.0 | 0.6120 | 173.39 |
-| YOLOv8m | OpenVINO | ✅ | 99.1 | 0.6091 | 69.80 |
-| YOLOv8l | PyTorch | ✅ | 83.7 | 0.6591 | 593.00 |
-| YOLOv8l | TorchScript | ✅ | 167.2 | 0.6580 | 697.54 |
-| YOLOv8l | ONNX | ✅ | 166.8 | 0.6580 | 342.15 |
-| YOLOv8l | OpenVINO | ✅ | 167.0 | 0.0708 | 117.69 |
-| YOLOv8x | PyTorch | ✅ | 130.5 | 0.6651 | 804.65 |
-| YOLOv8x | TorchScript | ✅ | 260.8 | 0.6650 | 921.46 |
-| YOLOv8x | ONNX | ✅ | 260.4 | 0.6650 | 526.66 |
-| YOLOv8x | OpenVINO | ✅ | 260.6 | 0.6619 | 158.73 |
-
-## Reproduce Our Results
-
-To reproduce the Ultralytics benchmarks above on all export [formats](../modes/export.md) run this code:
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a YOLOv8n PyTorch model
- model = YOLO('yolov8n.pt')
-
- # Benchmark YOLOv8n speed and accuracy on the COCO128 dataset for all all export formats
- results= model.benchmarks(data='coco128.yaml')
- ```
- === "CLI"
-
- ```bash
- # Benchmark YOLOv8n speed and accuracy on the COCO128 dataset for all all export formats
- yolo benchmark model=yolov8n.pt data=coco128.yaml
- ```
-
- Note that benchmarking results might vary based on the exact hardware and software configuration of a system, as well as the current workload of the system at the time the benchmarks are run. For the most reliable results use a dataset with a large number of images, i.e. `data='coco128.yaml' (128 val images), or `data='coco.yaml'` (5000 val images).
-
-## Conclusion
-
-The benchmarking results clearly demonstrate the benefits of exporting the YOLOv8 model to the OpenVINO format. Across different models and hardware platforms, the OpenVINO format consistently outperforms other formats in terms of inference speed while maintaining comparable accuracy.
-
-For the Intel® Data Center GPU Flex Series, the OpenVINO format was able to deliver inference speeds almost 10 times faster than the original PyTorch format. On the Xeon CPU, the OpenVINO format was twice as fast as the PyTorch format. The accuracy of the models remained nearly identical across the different formats.
-
-The benchmarks underline the effectiveness of OpenVINO as a tool for deploying deep learning models. By converting models to the OpenVINO format, developers can achieve significant performance improvements, making it easier to deploy these models in real-world applications.
-
-For more detailed information and instructions on using OpenVINO, refer to the [official OpenVINO documentation](https://docs.openvino.ai/).
diff --git a/ultralytics-main/docs/en/integrations/paddlepaddle.md b/ultralytics-main/docs/en/integrations/paddlepaddle.md
deleted file mode 100644
index f41116f..0000000
--- a/ultralytics-main/docs/en/integrations/paddlepaddle.md
+++ /dev/null
@@ -1,122 +0,0 @@
----
-comments: true
-description: This guide explains how to export Ultralytics YOLOv8 models to the PaddlePaddle format for wide device support and harnessing the power of Baidu's ML framework.
-keywords: Ultralytics, YOLOv8, PaddlePaddle Export, Model Deployment, Flexible Deployment, Industrial-Grade Deep Learning, Baidu, Cross-Platform Compatibility
----
-
-# How to Export to PaddlePaddle Format from YOLOv8 Models
-
-Bridging the gap between developing and deploying computer vision models in real-world scenarios with varying conditions can be difficult. PaddlePaddle makes this process easier with its focus on flexibility, performance, and its capability for parallel processing in distributed environments. This means you can use your YOLOv8 computer vision models on a wide variety of devices and platforms, from smartphones to cloud-based servers.
-
-The ability to export to PaddlePaddle model format allows you to optimize your [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics) models for use within the PaddlePaddle framework. PaddlePaddle is known for facilitating industrial deployments and is a good choice for deploying computer vision applications in real-world settings across various domains.
-
-## Why should you export to PaddlePaddle?
-
-
-
-
-
-Developed by Baidu, [PaddlePaddle](https://www.paddlepaddle.org.cn/en) (**PA**rallel **D**istributed **D**eep **LE**arning) is China's first open-source deep learning platform. Unlike some frameworks built mainly for research, PaddlePaddle prioritizes ease of use and smooth integration across industries.
-
-It offers tools and resources similar to popular frameworks like TensorFlow and PyTorch, making it accessible for developers of all experience levels. From farming and factories to service businesses, PaddlePaddle's large developer community of over 4.77 million is helping create and deploy AI applications.
-
-By exporting your Ultralytics YOLOv8 models to PaddlePaddle format, you can tap into PaddlePaddle’s strengths in performance optimization. PaddlePaddle prioritizes efficient model execution and reduced memory usage. As a result, your YOLOv8 models can potentially achieve even better performance, delivering top-notch results in practical scenarios.
-
-## Key Features of PaddlePaddle Models
-
-PaddlePaddle models offer a range of key features that contribute to their flexibility, performance, and scalability across diverse deployment scenarios:
-
- - **Dynamic-to-Static Graph**: PaddlePaddle supports [dynamic-to-static compilation](https://www.paddlepaddle.org.cn/documentation/docs/en/guides/jit/index_en.html), where models can be translated into a static computational graph. This enables optimizations that reduce runtime overhead and boost inference performance.
-
- - **Operator Fusion**: PaddlePaddle, like TensorRT, uses [operator fusion](https://developer.nvidia.com/gtc/2020/video/s21436-vid) to streamline computation and reduce overhead. The framework minimizes memory transfers and computational steps by merging compatible operations, resulting in faster inference.
-
- - **Quantization**: PaddlePaddle supports [quantization techniques](https://www.paddlepaddle.org.cn/documentation/docs/en/api/paddle/quantization/PTQ_en.html), including post-training quantization and quantization-aware training. These techniques allow for the use of lower-precision data representations, effectively boosting performance and reducing model size.
-
-## Deployment Options in PaddlePaddle
-
-Before diving into the code for exporting YOLOv8 models to PaddlePaddle, let's take a look at the different deployment scenarios in which PaddlePaddle models excel.
-
-PaddlePaddle provides a range of options, each offering a distinct balance of ease of use, flexibility, and performance:
-
-- **Paddle Serving**: This framework simplifies the deployment of PaddlePaddle models as high-performance RESTful APIs. Paddle Serving is ideal for production environments, providing features like model versioning, online A/B testing, and scalability for handling large volumes of requests.
-
-- **Paddle Inference API**: The Paddle Inference API gives you low-level control over model execution. This option is well-suited for scenarios where you need to integrate the model tightly within a custom application or optimize performance for specific hardware.
-
-- **Paddle Lite**: Paddle Lite is designed for deployment on mobile and embedded devices where resources are limited. It optimizes models for smaller sizes and faster inference on ARM CPUs, GPUs, and other specialized hardware.
-
-- **Paddle.js**: Paddle.js enables you to deploy PaddlePaddle models directly within web browsers. Paddle.js can either load a pre-trained model or transform a model from [paddle-hub](https://github.com/PaddlePaddle/PaddleHub) with model transforming tools provided by Paddle.js. It can run in browsers that support WebGL/WebGPU/WebAssembly.
-
-## Export to PaddlePaddle: Converting Your YOLOv8 Model
-
-Converting YOLOv8 models to the PaddlePaddle format can improve execution flexibility and optimize performance for various deployment scenarios.
-
-### Installation
-
-To install the required package, run:
-
-!!! Tip "Installation"
-
- === "CLI"
-
- ```bash
- # Install the required package for YOLOv8
- pip install ultralytics
- ```
-
-For detailed instructions and best practices related to the installation process, check our [Ultralytics Installation guide](../quickstart.md). While installing the required packages for YOLOv8, if you encounter any difficulties, consult our [Common Issues guide](../guides/yolo-common-issues.md) for solutions and tips.
-
-### Usage
-
-Before diving into the usage instructions, it's important to note that while all [Ultralytics YOLOv8 models](../models/index.md) are available for exporting, you can ensure that the model you select supports export functionality [here](../modes/export.md).
-
-!!! Example "Usage"
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load the YOLOv8 model
- model = YOLO('yolov8n.pt')
-
- # Export the model to PaddlePaddle format
- model.export(format='paddle') # creates '/yolov8n_paddle_model'
-
- # Load the exported PaddlePaddle model
- paddle_model = YOLO('./yolov8n_paddle_model')
-
- # Run inference
- results = paddle_model('https://ultralytics.com/images/bus.jpg')
- ```
-
- === "CLI"
-
- ```bash
- # Export a YOLOv8n PyTorch model to PaddlePaddle format
- yolo export model=yolov8n.pt format=paddle # creates '/yolov8n_paddle_model'
-
- # Run inference with the exported model
- yolo predict model='./yolov8n_paddle_model' source='https://ultralytics.com/images/bus.jpg'
- ```
-
-For more details about supported export options, visit the [Ultralytics documentation page on deployment options](../guides/model-deployment-options.md).
-
-## Deploying Exported YOLOv8 PaddlePaddle Models
-
-After successfully exporting your Ultralytics YOLOv8 models to PaddlePaddle format, you can now deploy them. The primary and recommended first step for running a PaddlePaddle model is to use the YOLO("./model_paddle_model") method, as outlined in the previous usage code snippet.
-
-However, for in-depth instructions on deploying your PaddlePaddle models in various other settings, take a look at the following resources:
-
-- **[Paddle Serving](https://github.com/PaddlePaddle/Serving/blob/v0.9.0/README_CN.md)**: Learn how to deploy your PaddlePaddle models as performant services using Paddle Serving.
-
-- **[Paddle Lite](https://github.com/PaddlePaddle/Paddle-Lite/blob/develop/README_en.md)**: Explore how to optimize and deploy models on mobile and embedded devices using Paddle Lite.
-
-- **[Paddle.js](https://github.com/PaddlePaddle/Paddle.js)**: Discover how to run PaddlePaddle models in web browsers for client-side AI using Paddle.js.
-
-## Summary
-
-In this guide, we explored the process of exporting Ultralytics YOLOv8 models to the PaddlePaddle format. By following these steps, you can leverage PaddlePaddle's strengths in diverse deployment scenarios, optimizing your models for different hardware and software environments.
-
-For further details on usage, visit the [PaddlePaddle official documentation](https://www.paddlepaddle.org.cn/documentation/docs/en/guides/index_en.html)
-
-Want to explore more ways to integrate your Ultralytics YOLOv8 models? Our [integration guide page](index.md) explores various options, equipping you with valuable resources and insights.
diff --git a/ultralytics-main/docs/en/integrations/ray-tune.md b/ultralytics-main/docs/en/integrations/ray-tune.md
deleted file mode 100644
index 3825cf7..0000000
--- a/ultralytics-main/docs/en/integrations/ray-tune.md
+++ /dev/null
@@ -1,179 +0,0 @@
----
-comments: true
-description: Discover how to streamline hyperparameter tuning for YOLOv8 models with Ray Tune. Learn to accelerate tuning, integrate with Weights & Biases, and analyze results.
-keywords: Ultralytics, YOLOv8, Ray Tune, hyperparameter tuning, machine learning optimization, Weights & Biases integration, result analysis
----
-
-# Efficient Hyperparameter Tuning with Ray Tune and YOLOv8
-
-Hyperparameter tuning is vital in achieving peak model performance by discovering the optimal set of hyperparameters. This involves running trials with different hyperparameters and evaluating each trial’s performance.
-
-## Accelerate Tuning with Ultralytics YOLOv8 and Ray Tune
-
-[Ultralytics YOLOv8](https://ultralytics.com) incorporates Ray Tune for hyperparameter tuning, streamlining the optimization of YOLOv8 model hyperparameters. With Ray Tune, you can utilize advanced search strategies, parallelism, and early stopping to expedite the tuning process.
-
-### Ray Tune
-
-
-
-
-
-[Ray Tune](https://docs.ray.io/en/latest/tune/index.html) is a hyperparameter tuning library designed for efficiency and flexibility. It supports various search strategies, parallelism, and early stopping strategies, and seamlessly integrates with popular machine learning frameworks, including Ultralytics YOLOv8.
-
-### Integration with Weights & Biases
-
-YOLOv8 also allows optional integration with [Weights & Biases](https://wandb.ai/site) for monitoring the tuning process.
-
-## Installation
-
-To install the required packages, run:
-
-!!! Tip "Installation"
-
- === "CLI"
-
- ```bash
- # Install and update Ultralytics and Ray Tune packages
- pip install -U ultralytics "ray[tune]"
-
- # Optionally install W&B for logging
- pip install wandb
- ```
-
-## Usage
-
-!!! Example "Usage"
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Start tuning hyperparameters for YOLOv8n training on the COCO8 dataset
- result_grid = model.tune(data='coco8.yaml', use_ray=True)
- ```
-
-## `tune()` Method Parameters
-
-The `tune()` method in YOLOv8 provides an easy-to-use interface for hyperparameter tuning with Ray Tune. It accepts several arguments that allow you to customize the tuning process. Below is a detailed explanation of each parameter:
-
-| Parameter | Type | Description | Default Value |
-|-----------------|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|
-| `data` | `str` | The dataset configuration file (in YAML format) to run the tuner on. This file should specify the training and validation data paths, as well as other dataset-specific settings. | |
-| `space` | `dict, optional` | A dictionary defining the hyperparameter search space for Ray Tune. Each key corresponds to a hyperparameter name, and the value specifies the range of values to explore during tuning. If not provided, YOLOv8 uses a default search space with various hyperparameters. | |
-| `grace_period` | `int, optional` | The grace period in epochs for the [ASHA scheduler](https://docs.ray.io/en/latest/tune/api/schedulers.html) in Ray Tune. The scheduler will not terminate any trial before this number of epochs, allowing the model to have some minimum training before making a decision on early stopping. | 10 |
-| `gpu_per_trial` | `int, optional` | The number of GPUs to allocate per trial during tuning. This helps manage GPU usage, particularly in multi-GPU environments. If not provided, the tuner will use all available GPUs. | None |
-| `iterations` | `int, optional` | The maximum number of trials to run during tuning. This parameter helps control the total number of hyperparameter combinations tested, ensuring the tuning process does not run indefinitely. | 10 |
-| `**train_args` | `dict, optional` | Additional arguments to pass to the `train()` method during tuning. These arguments can include settings like the number of training epochs, batch size, and other training-specific configurations. | {} |
-
-By customizing these parameters, you can fine-tune the hyperparameter optimization process to suit your specific needs and available computational resources.
-
-## Default Search Space Description
-
-The following table lists the default search space parameters for hyperparameter tuning in YOLOv8 with Ray Tune. Each parameter has a specific value range defined by `tune.uniform()`.
-
-| Parameter | Value Range | Description |
-|-------------------|----------------------------|------------------------------------------|
-| `lr0` | `tune.uniform(1e-5, 1e-1)` | Initial learning rate |
-| `lrf` | `tune.uniform(0.01, 1.0)` | Final learning rate factor |
-| `momentum` | `tune.uniform(0.6, 0.98)` | Momentum |
-| `weight_decay` | `tune.uniform(0.0, 0.001)` | Weight decay |
-| `warmup_epochs` | `tune.uniform(0.0, 5.0)` | Warmup epochs |
-| `warmup_momentum` | `tune.uniform(0.0, 0.95)` | Warmup momentum |
-| `box` | `tune.uniform(0.02, 0.2)` | Box loss weight |
-| `cls` | `tune.uniform(0.2, 4.0)` | Class loss weight |
-| `hsv_h` | `tune.uniform(0.0, 0.1)` | Hue augmentation range |
-| `hsv_s` | `tune.uniform(0.0, 0.9)` | Saturation augmentation range |
-| `hsv_v` | `tune.uniform(0.0, 0.9)` | Value (brightness) augmentation range |
-| `degrees` | `tune.uniform(0.0, 45.0)` | Rotation augmentation range (degrees) |
-| `translate` | `tune.uniform(0.0, 0.9)` | Translation augmentation range |
-| `scale` | `tune.uniform(0.0, 0.9)` | Scaling augmentation range |
-| `shear` | `tune.uniform(0.0, 10.0)` | Shear augmentation range (degrees) |
-| `perspective` | `tune.uniform(0.0, 0.001)` | Perspective augmentation range |
-| `flipud` | `tune.uniform(0.0, 1.0)` | Vertical flip augmentation probability |
-| `fliplr` | `tune.uniform(0.0, 1.0)` | Horizontal flip augmentation probability |
-| `mosaic` | `tune.uniform(0.0, 1.0)` | Mosaic augmentation probability |
-| `mixup` | `tune.uniform(0.0, 1.0)` | Mixup augmentation probability |
-| `copy_paste` | `tune.uniform(0.0, 1.0)` | Copy-paste augmentation probability |
-
-## Custom Search Space Example
-
-In this example, we demonstrate how to use a custom search space for hyperparameter tuning with Ray Tune and YOLOv8. By providing a custom search space, you can focus the tuning process on specific hyperparameters of interest.
-
-!!! Example "Usage"
-
- ```python
- from ultralytics import YOLO
-
- # Define a YOLO model
- model = YOLO("yolov8n.pt")
-
- # Run Ray Tune on the model
- result_grid = model.tune(data="coco128.yaml",
- space={"lr0": tune.uniform(1e-5, 1e-1)},
- epochs=50,
- use_ray=True)
- ```
-
-In the code snippet above, we create a YOLO model with the "yolov8n.pt" pretrained weights. Then, we call the `tune()` method, specifying the dataset configuration with "coco128.yaml". We provide a custom search space for the initial learning rate `lr0` using a dictionary with the key "lr0" and the value `tune.uniform(1e-5, 1e-1)`. Finally, we pass additional training arguments, such as the number of epochs directly to the tune method as `epochs=50`.
-
-## Processing Ray Tune Results
-
-After running a hyperparameter tuning experiment with Ray Tune, you might want to perform various analyses on the obtained results. This guide will take you through common workflows for processing and analyzing these results.
-
-### Loading Tune Experiment Results from a Directory
-
-After running the tuning experiment with `tuner.fit()`, you can load the results from a directory. This is useful, especially if you're performing the analysis after the initial training script has exited.
-
-```python
-experiment_path = f"{storage_path}/{exp_name}"
-print(f"Loading results from {experiment_path}...")
-
-restored_tuner = tune.Tuner.restore(experiment_path, trainable=train_mnist)
-result_grid = restored_tuner.get_results()
-```
-
-### Basic Experiment-Level Analysis
-
-Get an overview of how trials performed. You can quickly check if there were any errors during the trials.
-
-```python
-if result_grid.errors:
- print("One or more trials failed!")
-else:
- print("No errors!")
-```
-
-### Basic Trial-Level Analysis
-
-Access individual trial hyperparameter configurations and the last reported metrics.
-
-```python
-for i, result in enumerate(result_grid):
- print(f"Trial #{i}: Configuration: {result.config}, Last Reported Metrics: {result.metrics}")
-```
-
-### Plotting the Entire History of Reported Metrics for a Trial
-
-You can plot the history of reported metrics for each trial to see how the metrics evolved over time.
-
-```python
-import matplotlib.pyplot as plt
-
-for result in result_grid:
- plt.plot(result.metrics_dataframe["training_iteration"], result.metrics_dataframe["mean_accuracy"], label=f"Trial {i}")
-
-plt.xlabel('Training Iterations')
-plt.ylabel('Mean Accuracy')
-plt.legend()
-plt.show()
-```
-
-## Summary
-
-In this documentation, we covered common workflows to analyze the results of experiments run with Ray Tune using Ultralytics. The key steps include loading the experiment results from a directory, performing basic experiment-level and trial-level analysis and plotting metrics.
-
-Explore further by looking into Ray Tune’s [Analyze Results](https://docs.ray.io/en/latest/tune/examples/tune_analyze_results.html) docs page to get the most out of your hyperparameter tuning experiments.
diff --git a/ultralytics-main/docs/en/integrations/roboflow.md b/ultralytics-main/docs/en/integrations/roboflow.md
deleted file mode 100644
index 9d19c8f..0000000
--- a/ultralytics-main/docs/en/integrations/roboflow.md
+++ /dev/null
@@ -1,243 +0,0 @@
----
-comments: true
-description: Learn how to use Roboflow with Ultralytics for labeling and managing images for use in training, and for evaluating model performance.
-keywords: Ultralytics, YOLOv8, Roboflow, vector analysis, confusion matrix, data management, image labeling
----
-
-# Roboflow
-
-[Roboflow](https://roboflow.com/?ref=ultralytics) has everything you need to build and deploy computer vision models. Connect Roboflow at any step in your pipeline with APIs and SDKs, or use the end-to-end interface to automate the entire process from image to inference. Whether you’re in need of [data labeling](https://roboflow.com/annotate?ref=ultralytics), [model training](https://roboflow.com/train?ref=ultralytics), or [model deployment](https://roboflow.com/deploy?ref=ultralytics), Roboflow gives you building blocks to bring custom computer vision solutions to your project.
-
-!!! Question "Licensing"
-
- Ultralytics offers two licensing options:
-
- - The [AGPL-3.0 License](https://github.com/ultralytics/ultralytics/blob/main/LICENSE), an [OSI-approved](https://opensource.org/licenses/) open-source license ideal for students and enthusiasts.
- - The [Enterprise License](https://ultralytics.com/license) for businesses seeking to incorporate our AI models into their products and services.
-
- For more details see [Ultralytics Licensing](https://ultralytics.com/license).
-
-In this guide, we are going to showcase how to find, label, and organize data for use in training a custom Ultralytics YOLOv8 model. Use the table of contents below to jump directly to a specific section:
-
-- Gather data for training a custom YOLOv8 model
-- Upload, convert and label data for YOLOv8 format
-- Pre-process and augment data for model robustness
-- Dataset management for [YOLOv8](https://docs.ultralytics.com/models/yolov8/)
-- Export data in 40+ formats for model training
-- Upload custom YOLOv8 model weights for testing and deployment
-- Gather Data for Training a Custom YOLOv8 Model
-
-Roboflow provides two services that can help you collect data for YOLOv8 models: [Universe](https://universe.roboflow.com/?ref=ultralytics) and [Collect](https://roboflow.com/collect?ref=ultralytics).
-
-Universe is an online repository with over 250,000 vision datasets totalling over 100 million images.
-
-
-
-
-
-With a [free Roboflow account](https://app.roboflow.com/?ref=ultralytics), you can export any dataset available on Universe. To export a dataset, click the "Download this Dataset" button on any dataset.
-
-
-
-
-
-For YOLOv8, select "YOLOv8" as the export format:
-
-
-
-
-
-Universe also has a page that aggregates all [public fine-tuned YOLOv8 models uploaded to Roboflow](https://universe.roboflow.com/search?q=model:yolov8). You can use this page to explore pre-trained models you can use for testing or [for automated data labeling](https://docs.roboflow.com/annotate/use-roboflow-annotate/model-assisted-labeling) or to prototype with [Roboflow inference](https://roboflow.com/inference?ref=ultralytics).
-
-If you want to gather images yourself, try [Collect](https://github.com/roboflow/roboflow-collect), an open source project that allows you to automatically gather images using a webcam on the edge. You can use text or image prompts with Collect to instruct what data should be collected, allowing you to capture only the useful data you need to build your vision model.
-
-## Upload, Convert and Label Data for YOLOv8 Format
-
-[Roboflow Annotate](https://docs.roboflow.com/annotate/use-roboflow-annotate) is an online annotation tool for use in labeling images for object detection, classification, and segmentation.
-
-To label data for a YOLOv8 object detection, instance segmentation, or classification model, first create a project in Roboflow.
-
-
-
-
-
-Next, upload your images, and any pre-existing annotations you have from other tools ([using one of the 40+ supported import formats](https://roboflow.com/formats?ref=ultralytics)), into Roboflow.
-
-
-
-
-
-Select the batch of images you have uploaded on the Annotate page to which you are taken after uploading images. Then, click "Start Annotating" to label images.
-
-To label with bounding boxes, press the `B` key on your keyboard or click the box icon in the sidebar. Click on a point where you want to start your bounding box, then drag to create the box:
-
-
-
-
-
-A pop-up will appear asking you to select a class for your annotation once you have created an annotation.
-
-To label with polygons, press the `P` key on your keyboard, or the polygon icon in the sidebar. With the polygon annotation tool enabled, click on individual points in the image to draw a polygon.
-
-Roboflow offers a SAM-based label assistant with which you can label images faster than ever. SAM (Segment Anything Model) is a state-of-the-art computer vision model that can precisely label images. With SAM, you can significantly speed up the image labeling process. Annotating images with polygons becomes as simple as a few clicks, rather than the tedious process of precisely clicking points around an object.
-
-To use the label assistant, click the cursor icon in the sidebar, SAM will be loaded for use in your project.
-
-
-
-
-
-Hover over any object in the image and SAM will recommend an annotation. You can hover to find the right place to annotate, then click to create your annotation. To amend your annotation to be more or less specific, you can click inside or outside the annotation SAM has created on the document.
-
-You can also add tags to images from the Tags panel in the sidebar. You can apply tags to data from a particular area, taken from a specific camera, and more. You can then use these tags to search through data for images matching a tag and generate versions of a dataset with images that contain a particular tag or set of tags.
-
-
-
-
-
-Models hosted on Roboflow can be used with Label Assist, an automated annotation tool that uses your YOLOv8 model to recommend annotations. To use Label Assist, first upload a YOLOv8 model to Roboflow (see instructions later in the guide). Then, click the magic wand icon in the left sidebar and select your model for use in Label Assist.
-
-Choose a model, then click "Continue" to enable Label Assist:
-
-
-
-
-
-When you open new images for annotation, Label Assist will trigger and recommend annotations.
-
-
-
-
-
-## Dataset Management for YOLOv8
-
-Roboflow provides a suite of tools for understanding computer vision datasets.
-
-First, you can use dataset search to find images that meet a semantic text description (i.e. find all images that contain people), or that meet a specified label (i.e. the image is associated with a specific tag). To use dataset search, click "Dataset" in the sidebar. Then, input a search query using the search bar and associated filters at the top of the page.
-
-For example, the following text query finds images that contain people in a dataset:
-
-
-
-
-
-You can narrow your search to images with a particular tag using the "Tags" selector:
-
-
-
-
-
-Before you start training a model with your dataset, we recommend using Roboflow [Health Check](https://docs.roboflow.com/datasets/dataset-health-check), a web tool that provides an insight into your dataset and how you can improve the dataset prior to training a vision model.
-
-To use Health Check, click the "Health Check" sidebar link. A list of statistics will appear that show the average size of images in your dataset, class balance, a heatmap of where annotations are in your images, and more.
-
-
-
-
-
-Health Check may recommend changes to help enhance dataset performance. For example, the class balance feature may show that there is an imbalance in labels that, if solved, may boost performance or your model.
-
-## Export Data in 40+ Formats for Model Training
-
-To export your data, you will need a dataset version. A version is a state of your dataset frozen-in-time. To create a version, first click "Versions" in the sidebar. Then, click the "Create New Version" button. On this page, you will be able to choose augmentations and preprocessing steps to apply to your dataset:
-
-
-
-
-
-For each augmentation you select, a pop-up will appear allowing you to tune the augmentation to your needs. Here is an example of tuning a brightness augmentation within specified parameters:
-
-
-
-
-
-When your dataset version has been generated, you can export your data into a range of formats. Click the "Export Dataset" button on your dataset version page to export your data:
-
-
-
-
-
-You are now ready to train YOLOv8 on a custom dataset. Follow this [written guide](https://blog.roboflow.com/how-to-train-yolov8-on-a-custom-dataset/) and [YouTube video](https://www.youtube.com/watch?v=wuZtUMEiKWY) for step-by-step instructions or refer to the [Ultralytics documentation](https://docs.ultralytics.com/modes/train/).
-
-## Upload Custom YOLOv8 Model Weights for Testing and Deployment
-
-Roboflow offers an infinitely scalable API for deployed models and SDKs for use with NVIDIA Jetsons, Luxonis OAKs, Raspberry Pis, GPU-based devices, and more.
-
-You can deploy YOLOv8 models by uploading YOLOv8 weights to Roboflow. You can do this in a few lines of Python code. Create a new Python file and add the following code:
-
-```python
-import roboflow # install with 'pip install roboflow'
-
-roboflow.login()
-
-rf = roboflow.Roboflow()
-
-project = rf.workspace(WORKSPACE_ID).project("football-players-detection-3zvbc")
-dataset = project.version(VERSION).download("yolov8")
-
-project.version(dataset.version).deploy(model_type="yolov8", model_path=f"{HOME}/runs/detect/train/")
-```
-
-In this code, replace the project ID and version ID with the values for your account and project. [Learn how to retrieve your Roboflow API key](https://docs.roboflow.com/api-reference/authentication#retrieve-an-api-key).
-
-When you run the code above, you will be asked to authenticate. Then, your model will be uploaded and an API will be created for your project. This process can take up to 30 minutes to complete.
-
-To test your model and find deployment instructions for supported SDKs, go to the "Deploy" tab in the Roboflow sidebar. At the top of this page, a widget will appear with which you can test your model. You can use your webcam for live testing or upload images or videos.
-
-
-
-
-
-You can also use your uploaded model as a [labeling assistant](https://docs.roboflow.com/annotate/use-roboflow-annotate/model-assisted-labeling). This feature uses your trained model to recommend annotations on images uploaded to Roboflow.
-
-## How to Evaluate YOLOv8 Models
-
-Roboflow provides a range of features for use in evaluating models.
-
-Once you have uploaded a model to Roboflow, you can access our model evaluation tool, which provides a confusion matrix showing the performance of your model as well as an interactive vector analysis plot. These features can help you find opportunities to improve your model.
-
-To access a confusion matrix, go to your model page on the Roboflow dashboard, then click "View Detailed Evaluation":
-
-
-
-
-
-A pop-up will appear showing a confusion matrix:
-
-
-
-
-
-Hover over a box on the confusion matrix to see the value associated with the box. Click on a box to see images in the respective category. Click on an image to view the model predictions and ground truth data associated with that image.
-
-For more insights, click Vector Analysis. This will show a scatter plot of the images in your dataset, calculated using CLIP. The closer images are in the plot, the more similar they are, semantically. Each image is represented as a dot with a color between white and red. The more red the dot, the worse the model performed.
-
-
-
-
-
-You can use Vector Analysis to:
-
-- Find clusters of images;
-- Identify clusters where the model performs poorly, and;
-- Visualize commonalities between images on which the model performs poorly.
-
-## Learning Resources
-
-Want to learn more about using Roboflow for creating YOLOv8 models? The following resources may be helpful in your work.
-
-- [Train YOLOv8 on a Custom Dataset](https://github.com/roboflow/notebooks/blob/main/notebooks/train-yolov8-object-detection-on-custom-dataset.ipynb): Follow our interactive notebook that shows you how to train a YOLOv8 model on a custom dataset.
-- [Autodistill](https://autodistill.github.io/autodistill/): Use large foundation vision models to label data for specific models. You can label images for use in training YOLOv8 classification, detection, and segmentation models with Autodistill.
-- [Supervision](https://roboflow.github.io/supervision/): A Python package with helpful utilities for use in working with computer vision models. You can use supervision to filter detections, compute confusion matrices, and more, all in a few lines of Python code.
-- [Roboflow Blog](https://blog.roboflow.com/): The Roboflow Blog features over 500 articles on computer vision, covering topics from how to train a YOLOv8 model to annotation best practices.
-- [Roboflow YouTube channel](https://www.youtube.com/@Roboflow): Browse dozens of in-depth computer vision guides on our YouTube channel, covering topics from training YOLOv8 models to automated image labeling.
-
-## Project Showcase
-
-Below are a few of the many pieces of feedback we have received for using YOLOv8 and Roboflow together to create computer vision models.
-
-
-
-
-
-
diff --git a/ultralytics-main/docs/en/integrations/tensorboard.md b/ultralytics-main/docs/en/integrations/tensorboard.md
deleted file mode 100644
index 5e0cbf1..0000000
--- a/ultralytics-main/docs/en/integrations/tensorboard.md
+++ /dev/null
@@ -1,153 +0,0 @@
----
-comments: true
-description: Walk through the integration of YOLOv8 with TensorBoard to be able to use TensorFlow's visualization toolkit for enhanced model training analysis, offering capabilities like metric tracking, model graph visualization, and more.
-keywords: TensorBoard, YOLOv8, Visualization, TensorFlow, Training Analysis, Metric Tracking, Model Graphs, Experimentation, Ultralytics
----
-
-# Gain Visual Insights with YOLOv8’s Integration with TensorBoard
-
-Understanding and fine-tuning computer vision models like [Ultralytics’ YOLOv8](https://ultralytics.com) becomes more straightforward when you take a closer look at their training processes. Model training visualization helps with getting insights into the model's learning patterns, performance metrics, and overall behavior. YOLOv8's integration with TensorBoard makes this process of visualization and analysis easier and enables more efficient and informed adjustments to the model.
-
-This guide covers how to use TensorBoard with YOLOv8. You'll learn about various visualizations, from tracking metrics to analyzing model graphs. These tools will help you understand your YOLOv8 model's performance better.
-
-## TensorBoard
-
-
-
-
-
-[TensorBoard](https://www.tensorflow.org/tensorboard), TensorFlow's visualization toolkit, is essential for machine learning experimentation. TensorBoard features a range of visualization tools, crucial for monitoring machine learning models. These tools include tracking key metrics like loss and accuracy, visualizing model graphs, and viewing histograms of weights and biases over time. It also provides capabilities for projecting embeddings to lower-dimensional spaces and displaying multimedia data.
-
-## YOLOv8 Training with TensorBoard
-
-Using TensorBoard while training YOLOv8 models is straightforward and offers significant benefits.
-
-## Installation
-
-To install the required package, run:
-
-!!! Tip "Installation"
-
- === "CLI"
-
- ```bash
- # Install the required package for YOLOv8 and Tensorboard
- pip install ultralytics
- ```
-
-TensorBoard is conveniently pre-installed with YOLOv8, eliminating the need for additional setup for visualization purposes.
-
-For detailed instructions and best practices related to the installation process, be sure to check our [YOLOv8 Installation guide](../quickstart.md). While installing the required packages for YOLOv8, if you encounter any difficulties, consult our [Common Issues guide](../guides/yolo-common-issues.md) for solutions and tips.
-
-## Configuring TensorBoard for Google Collab
-
-When using Google Colab, it's important to set up TensorBoard before starting your training code:
-
-!!! Example "Configure TensorBoard for Google Collab"
-
- === "Python"
-
- ```python
- %load_ext tensorboard
- %tensorboard --logdir path/to/runs
- ```
-
-## Usage
-
-Before diving into the usage instructions, be sure to check out the range of [YOLOv8 models offered by Ultralytics](../models/index.md). This will help you choose the most appropriate model for your project requirements.
-
-!!! Example "Usage"
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a pre-trained model
- model = YOLO('yolov8n.pt')
-
- # Train the model
- results = model.train(data='coco128.yaml', epochs=100, imgsz=640)
- ```
-
-Upon running the usage code snippet above, you can expect the following output:
-
-```plaintext
-TensorBoard: Start with 'tensorboard --logdir path_to_your_tensorboard_logs', view at http://localhost:6006/
-```
-
-This output indicates that TensorBoard is now actively monitoring your YOLOv8 training session. You can access the TensorBoard dashboard by visiting the provided URL (http://localhost:6006/) to view real-time training metrics and model performance. For users working in Google Colab, the TensorBoard will be displayed in the same cell where you executed the TensorBoard configuration commands.
-
-For more information related to the model training process, be sure to check our [YOLOv8 Model Training guide](../modes/train.md). If you are interested in learning more about logging, checkpoints, plotting, and file management, read our [usage guide on configuration](../usage/cfg.md).
-
-## Understanding Your TensorBoard for YOLOv8 Training
-
-Now, let’s focus on understanding the various features and components of TensorBoard in the context of YOLOv8 training. The three key sections of the TensorBoard are Time Series, Scalars, and Graphs.
-
-### Time Series
-
-The Time Series feature in the TensorBoard offers a dynamic and detailed perspective of various training metrics over time for YOLOv8 models. It focuses on the progression and trends of metrics across training epochs. Here's an example of what you can expect to see.
-
-![image](https://github.com/ultralytics/ultralytics/assets/25847604/20b3e038-0356-465e-a37e-1ea232c68354)
-
-#### Key Features of Time Series in TensorBoard
-
-- **Filter Tags and Pinned Cards**: This functionality allows users to filter specific metrics and pin cards for quick comparison and access. It's particularly useful for focusing on specific aspects of the training process.
-
-- **Detailed Metric Cards**: Time Series divides metrics into different categories like learning rate (lr), training (train), and validation (val) metrics, each represented by individual cards.
-
-- **Graphical Display**: Each card in the Time Series section shows a detailed graph of a specific metric over the course of training. This visual representation aids in identifying trends, patterns, or anomalies in the training process.
-
-- **In-Depth Analysis**: Time Series provides an in-depth analysis of each metric. For instance, different learning rate segments are shown, offering insights into how adjustments in learning rate impact the model's learning curve.
-
-#### Importance of Time Series in YOLOv8 Training
-
-The Time Series section is essential for a thorough analysis of the YOLOv8 model's training progress. It lets you track the metrics in real time to promptly identify and solve issues. It also offers a detailed view of each metric's progression, which is crucial for fine-tuning the model and enhancing its performance.
-
-### Scalars
-
-Scalars in the TensorBoard are crucial for plotting and analyzing simple metrics like loss and accuracy during the training of YOLOv8 models. They offer a clear and concise view of how these metrics evolve with each training epoch, providing insights into the model's learning effectiveness and stability. Here's an example of what you can expect to see.
-
-![image](https://github.com/ultralytics/ultralytics/assets/25847604/f9228193-13e9-4768-9edf-8fa15ecd24fa)
-
-#### Key Features of Scalars in TensorBoard
-
-- **Learning Rate (lr) Tags**: These tags show the variations in the learning rate across different segments (e.g., `pg0`, `pg1`, `pg2`). This helps us understand the impact of learning rate adjustments on the training process.
-
-- **Metrics Tags**: Scalars include performance indicators such as:
-
- - `mAP50 (B)`: Mean Average Precision at 50% Intersection over Union (IoU), crucial for assessing object detection accuracy.
-
- - `mAP50-95 (B)`: Mean Average Precision calculated over a range of IoU thresholds, offering a more comprehensive evaluation of accuracy.
-
- - `Precision (B)`: Indicates the ratio of correctly predicted positive observations, key to understanding prediction accuracy.
-
- - `Recall (B)`: Important for models where missing a detection is significant, this metric measures the ability to detect all relevant instances.
-
- - To learn more about the different metrics, read our guide on [performance metrics](../guides/yolo-performance-metrics.md).
-
-- **Training and Validation Tags (`train`, `val`)**: These tags display metrics specifically for the training and validation datasets, allowing for a comparative analysis of model performance across different data sets.
-
-#### Importance of Monitoring Scalars
-
-Observing scalar metrics is crucial for fine-tuning the YOLOv8 model. Variations in these metrics, such as spikes or irregular patterns in loss graphs, can highlight potential issues such as overfitting, underfitting, or inappropriate learning rate settings. By closely monitoring these scalars, you can make informed decisions to optimize the training process, ensuring that the model learns effectively and achieves the desired performance.
-
-### Difference Between Scalars and Time Series
-
-While both Scalars and Time Series in TensorBoard are used for tracking metrics, they serve slightly different purposes. Scalars focus on plotting simple metrics such as loss and accuracy as scalar values. They provide a high-level overview of how these metrics change with each training epoch. While, the time-series section of the TensorBoard offers a more detailed timeline view of various metrics. It is particularly useful for monitoring the progression and trends of metrics over time, providing a deeper dive into the specifics of the training process.
-
-### Graphs
-
-The Graphs section of the TensorBoard visualizes the computational graph of the YOLOv8 model, showing how operations and data flow within the model. It's a powerful tool for understanding the model's structure, ensuring that all layers are connected correctly, and for identifying any potential bottlenecks in data flow. Here's an example of what you can expect to see.
-
-![image](https://github.com/ultralytics/ultralytics/assets/25847604/039028e0-4ab3-4170-bfa8-f93ce483f615)
-
-Graphs are particularly useful for debugging the model, especially in complex architectures typical in deep learning models like YOLOv8. They help in verifying layer connections and the overall design of the model.
-
-## Summary
-
-This guide aims to help you use TensorBoard with YOLOv8 for visualization and analysis of machine learning model training. It focuses on explaining how key TensorBoard features can provide insights into training metrics and model performance during YOLOv8 training sessions.
-
-For a more detailed exploration of these features and effective utilization strategies, you can refer to TensorFlow’s official [TensorBoard documentation](https://www.tensorflow.org/tensorboard/get_started) and their [GitHub repository](https://github.com/tensorflow/tensorboard).
-
-Want to learn more about the various integrations of Ultralytics? Check out the [Ultralytics integrations guide page](../integrations/index.md) to see what other exciting capabilities are waiting to be discovered!
diff --git a/ultralytics-main/docs/en/integrations/tensorrt.md b/ultralytics-main/docs/en/integrations/tensorrt.md
deleted file mode 100644
index aa89675..0000000
--- a/ultralytics-main/docs/en/integrations/tensorrt.md
+++ /dev/null
@@ -1,128 +0,0 @@
----
-comments: true
-description: Discover the power and flexibility of exporting Ultralytics YOLOv8 models to TensorRT format for enhanced performance and efficiency on NVIDIA GPUs.
-keywords: Ultralytics, YOLOv8, TensorRT Export, Model Deployment, GPU Acceleration, NVIDIA Support, CUDA Deployment
----
-
-# TensorRT Export for YOLOv8 Models
-
-Deploying computer vision models in high-performance environments can require a format that maximizes speed and efficiency. This is especially true when you are deploying your model on NVIDIA GPUs.
-
-By using the TensorRT export format, you can enhance your [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics) models for swift and efficient inference on NVIDIA hardware. This guide will give you easy-to-follow steps for the conversion process and help you make the most of NVIDIA's advanced technology in your deep learning projects.
-
-## TensorRT
-
-
-
-
-
-[TensorRT](https://developer.nvidia.com/tensorrt), developed by NVIDIA, is an advanced software development kit (SDK) designed for high-speed deep learning inference. It’s well-suited for real-time applications like object detection.
-
-This toolkit optimizes deep learning models for NVIDIA GPUs and results in faster and more efficient operations. TensorRT models undergo TensorRT optimization, which includes techniques like layer fusion, precision calibration (INT8 and FP16), dynamic tensor memory management, and kernel auto-tuning. Converting deep learning models into the TensorRT format allows developers to realize the potential of NVIDIA GPUs fully.
-
-TensorRT is known for its compatibility with various model formats, including TensorFlow, PyTorch, and ONNX, providing developers with a flexible solution for integrating and optimizing models from different frameworks. This versatility enables efficient model deployment across diverse hardware and software environments.
-
-## Key Features of TensorRT Models
-
-TensorRT models offer a range of key features that contribute to their efficiency and effectiveness in high-speed deep learning inference:
-
-- **Precision Calibration**: TensorRT supports precision calibration, allowing models to be fine-tuned for specific accuracy requirements. This includes support for reduced precision formats like INT8 and FP16, which can further boost inference speed while maintaining acceptable accuracy levels.
-
-- **Layer Fusion**: The TensorRT optimization process includes layer fusion, where multiple layers of a neural network are combined into a single operation. This reduces computational overhead and improves inference speed by minimizing memory access and computation.
-
-
-
-
-
-- **Dynamic Tensor Memory Management**: TensorRT efficiently manages tensor memory usage during inference, reducing memory overhead and optimizing memory allocation. This results in more efficient GPU memory utilization.
-
-- **Automatic Kernel Tuning**: TensorRT applies automatic kernel tuning to select the most optimized GPU kernel for each layer of the model. This adaptive approach ensures that the model takes full advantage of the GPU's computational power.
-
-## Deployment Options in TensorRT
-
-Before we look at the code for exporting YOLOv8 models to the TensorRT format, let’s understand where TensorRT models are normally used.
-
-TensorRT offers several deployment options, and each option balances ease of integration, performance optimization, and flexibility differently:
-
-- **Deploying within TensorFlow**: This method integrates TensorRT into TensorFlow, allowing optimized models to run in a familiar TensorFlow environment. It's useful for models with a mix of supported and unsupported layers, as TF-TRT can handle these efficiently.
-
-
-
-
-
-- **Standalone TensorRT Runtime API**: Offers granular control, ideal for performance-critical applications. It's more complex but allows for custom implementation of unsupported operators.
-
-- **NVIDIA Triton Inference Server**: An option that supports models from various frameworks. Particularly suited for cloud or edge inference, it provides features like concurrent model execution and model analysis.
-
-## Exporting YOLOv8 Models to TensorRT
-
-You can improve execution efficiency and optimize performance by converting YOLOv8 models to TensorRT format.
-
-### Installation
-
-To install the required package, run:
-
-!!! Tip "Installation"
-
- === "CLI"
-
- ```bash
- # Install the required package for YOLOv8
- pip install ultralytics
- ```
-
-For detailed instructions and best practices related to the installation process, check our [YOLOv8 Installation guide](../quickstart.md). While installing the required packages for YOLOv8, if you encounter any difficulties, consult our [Common Issues guide](../guides/yolo-common-issues.md) for solutions and tips.
-
-### Usage
-
-Before diving into the usage instructions, be sure to check out the range of [YOLOv8 models offered by Ultralytics](../models/index.md). This will help you choose the most appropriate model for your project requirements.
-
-!!! Example "Usage"
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load the YOLOv8 model
- model = YOLO('yolov8n.pt')
-
- # Export the model to TensorRT format
- model.export(format='engine') # creates 'yolov8n.engine'
-
- # Load the exported TensorRT model
- tensorrt_model = YOLO('yolov8n.engine')
-
- # Run inference
- results = tensorrt_model('https://ultralytics.com/images/bus.jpg')
- ```
-
- === "CLI"
-
- ```bash
- # Export a YOLOv8n PyTorch model to TensorRT format
- yolo export model=yolov8n.pt format=engine # creates 'yolov8n.engine''
-
- # Run inference with the exported model
- yolo predict model=yolov8n.engine source='https://ultralytics.com/images/bus.jpg'
- ```
-
-For more details about the export process, visit the [Ultralytics documentation page on exporting](../modes/export.md).
-
-## Deploying Exported YOLOv8 TensorRT Models
-
-Having successfully exported your Ultralytics YOLOv8 models to TensorRT format, you're now ready to deploy them. For in-depth instructions on deploying your TensorRT models in various settings, take a look at the following resources:
-
-- **[Deploying Deep Neural Networks with NVIDIA TensorRT](https://developer.nvidia.com/blog/deploying-deep-learning-nvidia-tensorrt/)**: This article explains how to use NVIDIA TensorRT to deploy deep neural networks on GPU-based deployment platforms efficiently.
-
-- **[End-to-End AI for NVIDIA-Based PCs: NVIDIA TensorRT Deployment](https://developer.nvidia.com/blog/end-to-end-ai-for-nvidia-based-pcs-nvidia-tensorrt-deployment/)**: This blog post explains the use of NVIDIA TensorRT for optimizing and deploying AI models on NVIDIA-based PCs.
-
-- **[GitHub Repository for NVIDIA TensorRT:](https://github.com/NVIDIA/TensorRT)**: This is the official GitHub repository that contains the source code and documentation for NVIDIA TensorRT.
-
-## Summary
-
-In this guide, we focused on converting Ultralytics YOLOv8 models to NVIDIA's TensorRT model format. This conversion step is crucial for improving the efficiency and speed of YOLOv8 models, making them more effective and suitable for diverse deployment environments.
-
-For more information on usage details, take a look at the [TensorRT official documentation](https://docs.nvidia.com/deeplearning/tensorrt/).
-
-If you're curious about additional Ultralytics YOLOv8 integrations, our [integration guide page](../integrations/index.md) provides an extensive selection of informative resources and insights.
diff --git a/ultralytics-main/docs/en/integrations/tflite.md b/ultralytics-main/docs/en/integrations/tflite.md
deleted file mode 100644
index 03fe156..0000000
--- a/ultralytics-main/docs/en/integrations/tflite.md
+++ /dev/null
@@ -1,122 +0,0 @@
----
-comments: true
-description: Explore how to improve your Ultralytics YOLOv8 model's performance and interoperability using the TFLite export format suitable for edge computing environments.
-keywords: Ultralytics, YOLOv8, TFLite Export, Export YOLOv8, Model Deployment
----
-
-# A Guide on YOLOv8 Model Export to TFLite for Deployment
-
-
-
-
-
-Deploying computer vision models on edge devices or embedded devices requires a format that can ensure seamless performance.
-
-The TensorFlow Lite or TFLite export format allows you to optimize your [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics) models for tasks like object detection and image classification in edge device-based applications. In this guide, we'll walk through the steps for converting your models to the TFLite format, making it easier for your models to perform well on various edge devices.
-
-## Why should you export to TFLite?
-
-Introduced by Google in May 2017 as part of their TensorFlow framework, [TensorFlow Lite](https://www.tensorflow.org/lite/guide), or TFLite for short, is an open-source deep learning framework designed for on-device inference, also known as edge computing. It gives developers the necessary tools to execute their trained models on mobile, embedded, and IoT devices, as well as traditional computers.
-
-TensorFlow Lite is compatible with a wide range of platforms, including embedded Linux, Android, iOS, and MCU. Exporting your model to TFLite makes your applications faster, more reliable, and capable of running offline.
-
-## Key Features of TFLite Models
-
-TFLite models offer a wide range of key features that enable on-device machine learning by helping developers run their models on mobile, embedded, and edge devices:
-
-- **On-device Optimization**: TFLite optimizes for on-device ML, reducing latency by processing data locally, enhancing privacy by not transmitting personal data, and minimizing model size to save space.
-
-- **Multiple Platform Support**: TFLite offers extensive platform compatibility, supporting Android, iOS, embedded Linux, and microcontrollers.
-
-- **Diverse Language Support**: TFLite is compatible with various programming languages, including Java, Swift, Objective-C, C++, and Python.
-
-- **High Performance**: Achieves superior performance through hardware acceleration and model optimization.
-
-## Deployment Options in TFLite
-
-Before we look at the code for exporting YOLOv8 models to the TFLite format, let’s understand how TFLite models are normally used.
-
-TFLite offers various on-device deployment options for machine learning models, including:
-
-- **Deploying with Android and iOS**: Both Android and iOS applications with TFLite can analyze edge-based camera feeds and sensors to detect and identify objects. TFLite also offers native iOS libraries written in [Swift](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/swift) and [Objective-C](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/objc). The architecture diagram below shows the process of deploying a trained model onto Android and iOS platforms using TensorFlow Lite.
-
-
-
-
-
-- **Implementing with Embedded Linux**: If running inferences on a [Raspberry Pi](https://www.raspberrypi.org/) using the [Ultralytics Guide](../guides/raspberry-pi.md) does not meet the speed requirements for your use case, you can use an exported TFLite model to accelerate inference times. Additionally, it's possible to further improve performance by utilizing a [Coral Edge TPU device](https://coral.withgoogle.com/).
-
-- **Deploying with Microcontrollers**: TFLite models can also be deployed on microcontrollers and other devices with only a few kilobytes of memory. The core runtime just fits in 16 KB on an Arm Cortex M3 and can run many basic models. It doesn't require operating system support, any standard C or C++ libraries, or dynamic memory allocation.
-
-## Export to TFLite: Converting Your YOLOv8 Model
-
-You can improve on-device model execution efficiency and optimize performance by converting them to TFLite format.
-
-### Installation
-
-To install the required packages, run:
-
-!!! Tip "Installation"
-
- === "CLI"
-
- ```bash
- # Install the required package for YOLOv8
- pip install ultralytics
- ```
-
-For detailed instructions and best practices related to the installation process, check our [Ultralytics Installation guide](../quickstart.md). While installing the required packages for YOLOv8, if you encounter any difficulties, consult our [Common Issues guide](../guides/yolo-common-issues.md) for solutions and tips.
-
-### Usage
-
-Before diving into the usage instructions, it's important to note that while all [Ultralytics YOLOv8 models](../models/index.md) are available for exporting, you can ensure that the model you select supports export functionality [here](../modes/export.md).
-
-!!! Example "Usage"
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load the YOLOv8 model
- model = YOLO('yolov8n.pt')
-
- # Export the model to TFLite format
- model.export(format='tflite') # creates 'yolov8n_float32.tflite'
-
- # Load the exported TFLite model
- tflite_model = YOLO('yolov8n_float32.tflite')
-
- # Run inference
- results = tflite_model('https://ultralytics.com/images/bus.jpg')
- ```
-
- === "CLI"
-
- ```bash
- # Export a YOLOv8n PyTorch model to TFLite format
- yolo export model=yolov8n.pt format=tflite # creates 'yolov8n_float32.tflite'
-
- # Run inference with the exported model
- yolo predict model='yolov8n_float32.tflite' source='https://ultralytics.com/images/bus.jpg'
- ```
-
-For more details about the export process, visit the [Ultralytics documentation page on exporting](../modes/export.md).
-
-## Deploying Exported YOLOv8 TFLite Models
-
-After successfully exporting your Ultralytics YOLOv8 models to TFLite format, you can now deploy them. The primary and recommended first step for running a TFLite model is to utilize the YOLO("model.tflite") method, as outlined in the previous usage code snippet. However, for in-depth instructions on deploying your TFLite models in various other settings, take a look at the following resources:
-
-- **[Android](https://www.tensorflow.org/lite/android/quickstart)**: A quick start guide for integrating TensorFlow Lite into Android applications, providing easy-to-follow steps for setting up and running machine learning models.
-
-- **[iOS](https://www.tensorflow.org/lite/guide/ios)**: Check out this detailed guide for developers on integrating and deploying TensorFlow Lite models in iOS applications, offering step-by-step instructions and resources.
-
-- **[End-To-End Examples](https://www.tensorflow.org/lite/examples)**: This page provides an overview of various TensorFlow Lite examples, showcasing practical applications and tutorials designed to help developers implement TensorFlow Lite in their machine learning projects on mobile and edge devices.
-
-## Summary
-
-In this guide, we focused on how to export to TFLite format. By converting your Ultralytics YOLOv8 models to TFLite model format, you can improve the efficiency and speed of YOLOv8 models, making them more effective and suitable for edge computing environments.
-
-For further details on usage, visit [TFLite’s official documentation](https://www.tensorflow.org/lite/guide).
-
-Also, if you're curious about other Ultralytics YOLOv8 integrations, make sure to check out our [integration guide page](../integrations/index.md). You'll find tons of helpful info and insights waiting for you there.
diff --git a/ultralytics-main/docs/en/integrations/torchscript.md b/ultralytics-main/docs/en/integrations/torchscript.md
deleted file mode 100644
index f050986..0000000
--- a/ultralytics-main/docs/en/integrations/torchscript.md
+++ /dev/null
@@ -1,126 +0,0 @@
----
-comments: true
-description: Learn to export your Ultralytics YOLOv8 models to TorchScript format for deployment through platforms like embedded systems, web browsers, and C++ applications.
-keywords: Ultralytics, YOLOv8, Export to Torchscript, Model Optimization, Deployment, PyTorch, C++, Faster Inference
----
-
-# YOLOv8 Model Export to TorchScript for Quick Deployment
-
-Deploying computer vision models across different environments, including embedded systems, web browsers, or platforms with limited Python support, requires a flexible and portable solution. TorchScript focuses on portability and the ability to run models in environments where the entire Python framework is unavailable. This makes it ideal for scenarios where you need to deploy your computer vision capabilities across various devices or platforms.
-
-Export to Torchscript to serialize your [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics) models for cross-platform compatibility and streamlined deployment. In this guide, we'll show you how to export your YOLOv8 models to the TorchScript format, making it easier for you to use them across a wider range of applications.
-
-## Why should you export to TorchScript?
-
-![Torchscript Overview](https://github.com/ultralytics/ultralytics/assets/26833433/6873349d-c2f6-4620-b3cc-7b26b0698d0b)
-
-Developed by the creators of PyTorch, TorchScript is a powerful tool for optimizing and deploying PyTorch models across a variety of platforms. Exporting YOLOv8 models to [TorchScript](https://pytorch.org/docs/stable/jit.html) is crucial for moving from research to real-world applications. TorchScript, part of the PyTorch framework, helps make this transition smoother by allowing PyTorch models to be used in environments that don't support Python.
-
-The process involves two techniques: tracing and scripting. Tracing records operations during model execution, while scripting allows for the definition of models using a subset of Python. These techniques ensure that models like YOLOv8 can still work their magic even outside their usual Python environment.
-
-![TorchScript Script and Trace](https://github.com/ultralytics/ultralytics/assets/26833433/ea9ea24f-a3a9-44bb-aca7-9c358d7490d7)
-
-TorchScript models can also be optimized through techniques such as operator fusion and refinements in memory usage, ensuring efficient execution. Another advantage of exporting to TorchScript is its potential to accelerate model execution across various hardware platforms. It creates a standalone, production-ready representation of your PyTorch model that can be integrated into C++ environments, embedded systems, or deployed in web or mobile applications.
-
-## Key Features of TorchScript Models
-
-TorchScript, a key part of the PyTorch ecosystem, provides powerful features for optimizing and deploying deep learning models.
-
-![TorchScript Features](https://github.com/ultralytics/ultralytics/assets/26833433/44c7c5e3-1146-42db-952a-9060f070fead)
-
-Here are the key features that make TorchScript a valuable tool for developers:
-
-- **Static Graph Execution**: TorchScript uses a static graph representation of the model’s computation, which is different from PyTorch’s dynamic graph execution. In static graph execution, the computational graph is defined and compiled once before the actual execution, resulting in improved performance during inference.
-
-- **Model Serialization**: TorchScript allows you to serialize PyTorch models into a platform-independent format. Serialized models can be loaded without requiring the original Python code, enabling deployment in different runtime environments.
-
-- **JIT Compilation**: TorchScript uses Just-In-Time (JIT) compilation to convert PyTorch models into an optimized intermediate representation. JIT compiles the model’s computational graph, enabling efficient execution on target devices.
-
-- **Cross-Language Integration**: With TorchScript, you can export PyTorch models to other languages such as C++, Java, and JavaScript. This makes it easier to integrate PyTorch models into existing software systems written in different languages.
-
-- **Gradual Conversion**: TorchScript provides a gradual conversion approach, allowing you to incrementally convert parts of your PyTorch model into TorchScript. This flexibility is particularly useful when dealing with complex models or when you want to optimize specific portions of the code.
-
-## Deployment Options in TorchScript
-
-Before we look at the code for exporting YOLOv8 models to the TorchScript format, let’s understand where TorchScript models are normally used.
-
-TorchScript offers various deployment options for machine learning models, such as:
-
-- **C++ API**: The most common use case for TorchScript is its C++ API, which allows you to load and execute optimized TorchScript models directly within C++ applications. This is ideal for production environments where Python may not be suitable or available. The C++ API offers low-overhead and efficient execution of TorchScript models, maximizing performance potential.
-
-- **Mobile Deployment**: TorchScript offers tools for converting models into formats readily deployable on mobile devices. PyTorch Mobile provides a runtime for executing these models within iOS and Android apps. This enables low-latency, offline inference capabilities, enhancing user experience and data privacy.
-
-- **Cloud Deployment**: TorchScript models can be deployed to cloud-based servers using solutions like TorchServe. It provides features like model versioning, batching, and metrics monitoring for scalable deployment in production environments. Cloud deployment with TorchScript can make your models accessible via APIs or other web services.
-
-## Export to TorchScript: Converting Your YOLOv8 Model
-
-Exporting YOLOv8 models to TorchScript makes it easier to use them in different places and helps them run faster and more efficiently. This is great for anyone looking to use deep learning models more effectively in real-world applications.
-
-### Installation
-
-To install the required package, run:
-
-!!! Tip "Installation"
-
- === "CLI"
-
- ```bash
- # Install the required package for YOLOv8
- pip install ultralytics
- ```
-
-For detailed instructions and best practices related to the installation process, check our [Ultralytics Installation guide](../quickstart.md). While installing the required packages for YOLOv8, if you encounter any difficulties, consult our [Common Issues guide](../guides/yolo-common-issues.md) for solutions and tips.
-
-### Usage
-
-Before diving into the usage instructions, it's important to note that while all [Ultralytics YOLOv8 models](../models/index.md) are available for exporting, you can ensure that the model you select supports export functionality [here](../modes/export.md).
-
-!!! Example "Usage"
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load the YOLOv8 model
- model = YOLO('yolov8n.pt')
-
- # Export the model to TorchScript format
- model.export(format='torchscript') # creates 'yolov8n.torchscript'
-
- # Load the exported TorchScript model
- torchscript_model = YOLO('yolov8n.torchscript')
-
- # Run inference
- results = torchscript_model('https://ultralytics.com/images/bus.jpg')
- ```
-
- === "CLI"
-
- ```bash
- # Export a YOLOv8n PyTorch model to TorchScript format
- yolo export model=yolov8n.pt format=torchscript # creates 'yolov8n.torchscript'
-
- # Run inference with the exported model
- yolo predict model=yolov8n.torchscript source='https://ultralytics.com/images/bus.jpg'
- ```
-
-For more details about the export process, visit the [Ultralytics documentation page on exporting](../modes/export.md).
-
-## Deploying Exported YOLOv8 TorchScript Models
-
-After successfully exporting your Ultralytics YOLOv8 models to TorchScript format, you can now deploy them. The primary and recommended first step for running a TorchScript model is to utilize the YOLO("model.torchscript") method, as outlined in the previous usage code snippet. However, for in-depth instructions on deploying your TorchScript models in various other settings, take a look at the following resources:
-
-- **[Explore Mobile Deployment](https://pytorch.org/mobile/home/)**: The PyTorch Mobile Documentation provides comprehensive guidelines for deploying models on mobile devices, ensuring your applications are efficient and responsive.
-
-- **[Master Server-Side Deployment](https://pytorch.org/serve/getting_started.html)**: Learn how to deploy models server-side with TorchServe, offering a step-by-step tutorial for scalable, efficient model serving.
-
-- **[Implement C++ Deployment](https://pytorch.org/tutorials/advanced/cpp_export.html)**: Dive into the Tutorial on Loading a TorchScript Model in C++, facilitating the integration of your TorchScript models into C++ applications for enhanced performance and versatility.
-
-## Summary
-
-In this guide, we explored the process of exporting Ultralytics YOLOv8 models to the TorchScript format. By following the provided instructions, you can optimize YOLOv8 models for performance and gain the flexibility to deploy them across various platforms and environments.
-
-For further details on usage, visit [TorchScript’s official documentation](https://pytorch.org/docs/stable/jit.html).
-
-Also, if you’d like to know more about other Ultralytics YOLOv8 integrations, visit our [integration guide page](../integrations/index.md). You'll find plenty of useful resources and insights there.
diff --git a/ultralytics-main/docs/en/integrations/weights-biases.md b/ultralytics-main/docs/en/integrations/weights-biases.md
deleted file mode 100644
index 6a69a18..0000000
--- a/ultralytics-main/docs/en/integrations/weights-biases.md
+++ /dev/null
@@ -1,156 +0,0 @@
----
-comments: true
-description: Discover how to train your YOLOv8 models efficiently with Weights & Biases. This guide walks through integrating Weights & Biases with YOLOv8 to enable seamless experiment tracking, result visualization, and model explainability.
-keywords: Ultralytics, YOLOv8, Object Detection, Weights & Biases, Model Training, Experiment Tracking, Visualizing Results
----
-
-# Enhancing YOLOv8 Experiment Tracking and Visualization with Weights & Biases
-
-Object detection models like [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics) have become integral to many computer vision applications. However, training, evaluating, and deploying these complex models introduces several challenges. Tracking key training metrics, comparing model variants, analyzing model behavior, and detecting issues require substantial instrumentation and experiment management.
-
-This guide showcases Ultralytics YOLOv8 integration with Weights & Biases’ for enhanced experiment tracking, model-checkpointing, and visualization of model performance. It also includes instructions for setting up the integration, training, fine-tuning, and visualizing results using Weights & Biases’ interactive features.
-
-## Weights & Biases
-
-
-
-
-
-[Weights & Biases](https://wandb.ai/site) is a cutting-edge MLOps platform designed for tracking, visualizing, and managing machine learning experiments. It features automatic logging of training metrics for full experiment reproducibility, an interactive UI for streamlined data analysis, and efficient model management tools for deploying across various environments.
-
-## YOLOv8 Training with Weights & Biases
-
-You can use Weights & Biases to bring efficiency and automation to your YOLOv8 training process.
-
-## Installation
-
-To install the required packages, run:
-
-!!! Tip "Installation"
-
- === "CLI"
-
- ```bash
- # Install the required packages for YOLOv8 and Weights & Biases
- pip install --upgrade ultralytics==8.0.186 wandb
- ```
-
-For detailed instructions and best practices related to the installation process, be sure to check our [YOLOv8 Installation guide](../quickstart.md). While installing the required packages for YOLOv8, if you encounter any difficulties, consult our [Common Issues guide](../guides/yolo-common-issues.md) for solutions and tips.
-
-## Configuring Weights & Biases
-
-After installing the necessary packages, the next step is to set up your Weights & Biases environment. This includes creating a Weights & Biases account and obtaining the necessary API key for a smooth connection between your development environment and the W&B platform.
-
-Start by initializing the Weights & Biases environment in your workspace. You can do this by running the following command and following the prompted instructions.
-
-!!! Tip "Initial SDK Setup"
-
- === "CLI"
-
- ```bash
- # Initialize your Weights & Biases environment
- import wandb
- wandb.login()
- ```
-
-Navigate to the Weights & Biases authorization page to create and retrieve your API key. Use this key to authenticate your environment with W&B.
-
-## Usage: Training YOLOv8 with Weights & Biases
-
-Before diving into the usage instructions for YOLOv8 model training with Weights & Biases, be sure to check out the range of [YOLOv8 models offered by Ultralytics](../models/index.md). This will help you choose the most appropriate model for your project requirements.
-
-!!! Example "Usage: Training YOLOv8 with Weights & Biases"
-
- === "Python"
- ```python
- from ultralytics import YOLO
- from wandb.integration.ultralytics import add_wandb_callback
- import wandb
-
- # Step 1: Initialize a Weights & Biases run
- wandb.init(project="ultralytics", job_type="training")
-
- # Step 2: Define the YOLOv8 Model and Dataset
- model_name = "yolov8n"
- dataset_name = "coco128.yaml"
- model = YOLO(f"{model_name}.pt")
-
- # Step 3: Add W&B Callback for Ultralytics
- add_wandb_callback(model, enable_model_checkpointing=True)
-
- # Step 4: Train and Fine-Tune the Model
- model.train(project="ultralytics", data=dataset_name, epochs=5, imgsz=640)
-
- # Step 5: Validate the Model
- model.val()
-
- # Step 6: Perform Inference and Log Results
- model(["path/to/image1", "path/to/image2"])
-
- # Step 7: Finalize the W&B Run
- wandb.finish()
- ```
-
-### Understanding the Code
-
-Let’s understand the steps showcased in the usage code snippet above.
-
-- **Step 1: Initialize a Weights & Biases Run**: Start by initializing a Weights & Biases run, specifying the project name and the job type. This run will track and manage the training and validation processes of your model.
-
-- **Step 2: Define the YOLOv8 Model and Dataset**: Specify the model variant and the dataset you wish to use. The YOLO model is then initialized with the specified model file.
-
-- **Step 3: Add Weights & Biases Callback for Ultralytics**: This step is crucial as it enables the automatic logging of training metrics and validation results to Weights & Biases, providing a detailed view of the model's performance.
-
-- **Step 4: Train and Fine-Tune the Model**: Begin training the model with the specified dataset, number of epochs, and image size. The training process includes logging of metrics and predictions at the end of each epoch, offering a comprehensive view of the model's learning progress.
-
-- **Step 5: Validate the Model**: After training, the model is validated. This step is crucial for assessing the model's performance on unseen data and ensuring its generalizability.
-
-- **Step 6: Perform Inference and Log Results**: The model performs predictions on specified images. These predictions, along with visual overlays and insights, are automatically logged in a W&B Table for interactive exploration.
-
-- **Step 7: Finalize the W&B Run**: This step marks the end of data logging and saves the final state of your model's training and validation process in the W&B dashboard.
-
-### Understanding the Output
-
-Upon running the usage code snippet above, you can expect the following key outputs:
-
-- The setup of a new run with its unique ID, indicating the start of the training process.
-- A concise summary of the model’s structure, including the number of layers and parameters.
-- Regular updates on important metrics such as box loss, cls loss, dfl loss, precision, recall, and mAP scores during each training epoch.
-- At the end of training, detailed metrics including the model's inference speed, and overall accuracy metrics are displayed.
-- Links to the Weights & Biases dashboard for in-depth analysis and visualization of the training process, along with information on local log file locations.
-
-### Viewing the Weights & Biases Dashboard
-
-After running the usage code snippet, you can access the Weights & Biases (W&B) dashboard through the provided link in the output. This dashboard offers a comprehensive view of your model's training process with YOLOv8.
-
-## Key Features of the Weights & Biases Dashboard
-
-- **Real-Time Metrics Tracking**: Observe metrics like loss, accuracy, and validation scores as they evolve during the training, offering immediate insights for model tuning.
-
-
-
-- **Hyperparameter Optimization**: Weights & Biases aids in fine-tuning critical parameters such as learning rate, batch size, and more, enhancing the performance of YOLOv8.
-
-- **Comparative Analysis**: The platform allows side-by-side comparisons of different training runs, essential for assessing the impact of various model configurations.
-
-- **Visualization of Training Progress**: Graphical representations of key metrics provide an intuitive understanding of the model's performance across epochs.
-
-
-
-- **Resource Monitoring**: Keep track of CPU, GPU, and memory usage to optimize the efficiency of the training process.
-
-- **Model Artifacts Management**: Access and share model checkpoints, facilitating easy deployment and collaboration.
-
-- **Viewing Inference Results with Image Overlay**: Visualize the prediction results on images using interactive overlays in Weights & Biases, providing a clear and detailed view of model performance on real-world data. For more detailed information on Weights & Biases’ image overlay capabilities, check out this [link](https://docs.wandb.ai/guides/track/log/media#image-overlays).
-
-
-
-By using these features, you can effectively track, analyze, and optimize your YOLOv8 model's training, ensuring the best possible performance and efficiency.
-
-## Summary
-
-This guide helped you explore Ultralytics’ YOLOv8 integration with Weights & Biases. It illustrates the ability of this integration to efficiently track and visualize model training and prediction results.
-
-For further details on usage, visit [Weights & Biases' official documentation](https://docs.wandb.ai/guides/integrations/ultralytics).
-
-Also, be sure to check out the [Ultralytics integration guide page](../integrations/index.md), to learn more about different exciting integrations.
diff --git a/ultralytics-main/docs/en/models/fast-sam.md b/ultralytics-main/docs/en/models/fast-sam.md
deleted file mode 100644
index e358992..0000000
--- a/ultralytics-main/docs/en/models/fast-sam.md
+++ /dev/null
@@ -1,203 +0,0 @@
----
-comments: true
-description: Explore FastSAM, a CNN-based solution for real-time object segmentation in images. Enhanced user interaction, computational efficiency and adaptable across vision tasks.
-keywords: FastSAM, machine learning, CNN-based solution, object segmentation, real-time solution, Ultralytics, vision tasks, image processing, industrial applications, user interaction
----
-
-# Fast Segment Anything Model (FastSAM)
-
-The Fast Segment Anything Model (FastSAM) is a novel, real-time CNN-based solution for the Segment Anything task. This task is designed to segment any object within an image based on various possible user interaction prompts. FastSAM significantly reduces computational demands while maintaining competitive performance, making it a practical choice for a variety of vision tasks.
-
-![Fast Segment Anything Model (FastSAM) architecture overview](https://user-images.githubusercontent.com/26833433/248551984-d98f0f6d-7535-45d0-b380-2e1440b52ad7.jpg)
-
-## Overview
-
-FastSAM is designed to address the limitations of the [Segment Anything Model (SAM)](sam.md), a heavy Transformer model with substantial computational resource requirements. The FastSAM decouples the segment anything task into two sequential stages: all-instance segmentation and prompt-guided selection. The first stage uses [YOLOv8-seg](../tasks/segment.md) to produce the segmentation masks of all instances in the image. In the second stage, it outputs the region-of-interest corresponding to the prompt.
-
-## Key Features
-
-1. **Real-time Solution:** By leveraging the computational efficiency of CNNs, FastSAM provides a real-time solution for the segment anything task, making it valuable for industrial applications that require quick results.
-
-2. **Efficiency and Performance:** FastSAM offers a significant reduction in computational and resource demands without compromising on performance quality. It achieves comparable performance to SAM but with drastically reduced computational resources, enabling real-time application.
-
-3. **Prompt-guided Segmentation:** FastSAM can segment any object within an image guided by various possible user interaction prompts, providing flexibility and adaptability in different scenarios.
-
-4. **Based on YOLOv8-seg:** FastSAM is based on [YOLOv8-seg](../tasks/segment.md), an object detector equipped with an instance segmentation branch. This allows it to effectively produce the segmentation masks of all instances in an image.
-
-5. **Competitive Results on Benchmarks:** On the object proposal task on MS COCO, FastSAM achieves high scores at a significantly faster speed than [SAM](sam.md) on a single NVIDIA RTX 3090, demonstrating its efficiency and capability.
-
-6. **Practical Applications:** The proposed approach provides a new, practical solution for a large number of vision tasks at a really high speed, tens or hundreds of times faster than current methods.
-
-7. **Model Compression Feasibility:** FastSAM demonstrates the feasibility of a path that can significantly reduce the computational effort by introducing an artificial prior to the structure, thus opening new possibilities for large model architecture for general vision tasks.
-
-## Available Models, Supported Tasks, and Operating Modes
-
-This table presents the available models with their specific pre-trained weights, the tasks they support, and their compatibility with different operating modes like [Inference](../modes/predict.md), [Validation](../modes/val.md), [Training](../modes/train.md), and [Export](../modes/export.md), indicated by ✅ emojis for supported modes and ❌ emojis for unsupported modes.
-
-| Model Type | Pre-trained Weights | Tasks Supported | Inference | Validation | Training | Export |
-|------------|---------------------------------------------------------------------------------------------|----------------------------------------------|-----------|------------|----------|--------|
-| FastSAM-s | [FastSAM-s.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/FastSAM-s.pt) | [Instance Segmentation](../tasks/segment.md) | ✅ | ❌ | ❌ | ✅ |
-| FastSAM-x | [FastSAM-x.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/FastSAM-x.pt) | [Instance Segmentation](../tasks/segment.md) | ✅ | ❌ | ❌ | ✅ |
-
-## Usage Examples
-
-The FastSAM models are easy to integrate into your Python applications. Ultralytics provides user-friendly Python API and CLI commands to streamline development.
-
-### Predict Usage
-
-To perform object detection on an image, use the `predict` method as shown below:
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import FastSAM
- from ultralytics.models.fastsam import FastSAMPrompt
-
- # Define an inference source
- source = 'path/to/bus.jpg'
-
- # Create a FastSAM model
- model = FastSAM('FastSAM-s.pt') # or FastSAM-x.pt
-
- # Run inference on an image
- everything_results = model(source, device='cpu', retina_masks=True, imgsz=1024, conf=0.4, iou=0.9)
-
- # Prepare a Prompt Process object
- prompt_process = FastSAMPrompt(source, everything_results, device='cpu')
-
- # Everything prompt
- ann = prompt_process.everything_prompt()
-
- # Bbox default shape [0,0,0,0] -> [x1,y1,x2,y2]
- ann = prompt_process.box_prompt(bbox=[200, 200, 300, 300])
-
- # Text prompt
- ann = prompt_process.text_prompt(text='a photo of a dog')
-
- # Point prompt
- # points default [[0,0]] [[x1,y1],[x2,y2]]
- # point_label default [0] [1,0] 0:background, 1:foreground
- ann = prompt_process.point_prompt(points=[[200, 200]], pointlabel=[1])
- prompt_process.plot(annotations=ann, output='./')
- ```
-
- === "CLI"
-
- ```bash
- # Load a FastSAM model and segment everything with it
- yolo segment predict model=FastSAM-s.pt source=path/to/bus.jpg imgsz=640
- ```
-
-This snippet demonstrates the simplicity of loading a pre-trained model and running a prediction on an image.
-
-### Val Usage
-
-Validation of the model on a dataset can be done as follows:
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import FastSAM
-
- # Create a FastSAM model
- model = FastSAM('FastSAM-s.pt') # or FastSAM-x.pt
-
- # Validate the model
- results = model.val(data='coco8-seg.yaml')
- ```
-
- === "CLI"
-
- ```bash
- # Load a FastSAM model and validate it on the COCO8 example dataset at image size 640
- yolo segment val model=FastSAM-s.pt data=coco8.yaml imgsz=640
- ```
-
-Please note that FastSAM only supports detection and segmentation of a single class of object. This means it will recognize and segment all objects as the same class. Therefore, when preparing the dataset, you need to convert all object category IDs to 0.
-
-## FastSAM official Usage
-
-FastSAM is also available directly from the [https://github.com/CASIA-IVA-Lab/FastSAM](https://github.com/CASIA-IVA-Lab/FastSAM) repository. Here is a brief overview of the typical steps you might take to use FastSAM:
-
-### Installation
-
-1. Clone the FastSAM repository:
-
- ```shell
- git clone https://github.com/CASIA-IVA-Lab/FastSAM.git
- ```
-
-2. Create and activate a Conda environment with Python 3.9:
-
- ```shell
- conda create -n FastSAM python=3.9
- conda activate FastSAM
- ```
-
-3. Navigate to the cloned repository and install the required packages:
-
- ```shell
- cd FastSAM
- pip install -r requirements.txt
- ```
-
-4. Install the CLIP model:
- ```shell
- pip install git+https://github.com/openai/CLIP.git
- ```
-
-### Example Usage
-
-1. Download a [model checkpoint](https://drive.google.com/file/d/1m1sjY4ihXBU1fZXdQ-Xdj-mDltW-2Rqv/view?usp=sharing).
-
-2. Use FastSAM for inference. Example commands:
-
- - Segment everything in an image:
-
- ```shell
- python Inference.py --model_path ./weights/FastSAM.pt --img_path ./images/dogs.jpg
- ```
-
- - Segment specific objects using text prompt:
-
- ```shell
- python Inference.py --model_path ./weights/FastSAM.pt --img_path ./images/dogs.jpg --text_prompt "the yellow dog"
- ```
-
- - Segment objects within a bounding box (provide box coordinates in xywh format):
-
- ```shell
- python Inference.py --model_path ./weights/FastSAM.pt --img_path ./images/dogs.jpg --box_prompt "[570,200,230,400]"
- ```
-
- - Segment objects near specific points:
- ```shell
- python Inference.py --model_path ./weights/FastSAM.pt --img_path ./images/dogs.jpg --point_prompt "[[520,360],[620,300]]" --point_label "[1,0]"
- ```
-
-Additionally, you can try FastSAM through a [Colab demo](https://colab.research.google.com/drive/1oX14f6IneGGw612WgVlAiy91UHwFAvr9?usp=sharing) or on the [HuggingFace web demo](https://huggingface.co/spaces/An-619/FastSAM) for a visual experience.
-
-## Citations and Acknowledgements
-
-We would like to acknowledge the FastSAM authors for their significant contributions in the field of real-time instance segmentation:
-
-!!! Quote ""
-
- === "BibTeX"
-
- ```bibtex
- @misc{zhao2023fast,
- title={Fast Segment Anything},
- author={Xu Zhao and Wenchao Ding and Yongqi An and Yinglong Du and Tao Yu and Min Li and Ming Tang and Jinqiao Wang},
- year={2023},
- eprint={2306.12156},
- archivePrefix={arXiv},
- primaryClass={cs.CV}
- }
- ```
-
-The original FastSAM paper can be found on [arXiv](https://arxiv.org/abs/2306.12156). The authors have made their work publicly available, and the codebase can be accessed on [GitHub](https://github.com/CASIA-IVA-Lab/FastSAM). We appreciate their efforts in advancing the field and making their work accessible to the broader community.
diff --git a/ultralytics-main/docs/en/models/index.md b/ultralytics-main/docs/en/models/index.md
deleted file mode 100644
index 70a70ef..0000000
--- a/ultralytics-main/docs/en/models/index.md
+++ /dev/null
@@ -1,96 +0,0 @@
----
-comments: true
-description: Explore the diverse range of YOLO family, SAM, MobileSAM, FastSAM, YOLO-NAS, YOLO-World and RT-DETR models supported by Ultralytics. Get started with examples for both CLI and Python usage.
-keywords: Ultralytics, documentation, YOLO, SAM, MobileSAM, FastSAM, YOLO-NAS, RT-DETR, YOLO-World, models, architectures, Python, CLI
----
-
-# Models Supported by Ultralytics
-
-Welcome to Ultralytics' model documentation! We offer support for a wide range of models, each tailored to specific tasks like [object detection](../tasks/detect.md), [instance segmentation](../tasks/segment.md), [image classification](../tasks/classify.md), [pose estimation](../tasks/pose.md), and [multi-object tracking](../modes/track.md). If you're interested in contributing your model architecture to Ultralytics, check out our [Contributing Guide](../help/contributing.md).
-
-## Featured Models
-
-Here are some of the key models supported:
-
-1. **[YOLOv3](yolov3.md)**: The third iteration of the YOLO model family, originally by Joseph Redmon, known for its efficient real-time object detection capabilities.
-2. **[YOLOv4](yolov4.md)**: A darknet-native update to YOLOv3, released by Alexey Bochkovskiy in 2020.
-3. **[YOLOv5](yolov5.md)**: An improved version of the YOLO architecture by Ultralytics, offering better performance and speed trade-offs compared to previous versions.
-4. **[YOLOv6](yolov6.md)**: Released by [Meituan](https://about.meituan.com/) in 2022, and in use in many of the company's autonomous delivery robots.
-5. **[YOLOv7](yolov7.md)**: Updated YOLO models released in 2022 by the authors of YOLOv4.
-6. **[YOLOv8](yolov8.md) NEW 🚀**: The latest version of the YOLO family, featuring enhanced capabilities such as instance segmentation, pose/keypoints estimation, and classification.
-7. **[YOLOv9](yolov9.md)**: An experimental model trained on the Ultralytics [YOLOv5](yolov5.md) codebase implementing Programmable Gradient Information (PGI).
-8. **[Segment Anything Model (SAM)](sam.md)**: Meta's Segment Anything Model (SAM).
-9. **[Mobile Segment Anything Model (MobileSAM)](mobile-sam.md)**: MobileSAM for mobile applications, by Kyung Hee University.
-10. **[Fast Segment Anything Model (FastSAM)](fast-sam.md)**: FastSAM by Image & Video Analysis Group, Institute of Automation, Chinese Academy of Sciences.
-11. **[YOLO-NAS](yolo-nas.md)**: YOLO Neural Architecture Search (NAS) Models.
-12. **[Realtime Detection Transformers (RT-DETR)](rtdetr.md)**: Baidu's PaddlePaddle Realtime Detection Transformer (RT-DETR) models.
-13. **[YOLO-World](yolo-world.md)**: Real-time Open Vocabulary Object Detection models from Tencent AI Lab.
-
-
-
-
-
- Watch: Run Ultralytics YOLO models in just a few lines of code.
-
-
-## Getting Started: Usage Examples
-
-This example provides simple YOLO training and inference examples. For full documentation on these and other [modes](../modes/index.md) see the [Predict](../modes/predict.md), [Train](../modes/train.md), [Val](../modes/val.md) and [Export](../modes/export.md) docs pages.
-
-Note the below example is for YOLOv8 [Detect](../tasks/detect.md) models for object detection. For additional supported tasks see the [Segment](../tasks/segment.md), [Classify](../tasks/classify.md) and [Pose](../tasks/pose.md) docs.
-
-!!! Example
-
- === "Python"
-
- PyTorch pretrained `*.pt` models as well as configuration `*.yaml` files can be passed to the `YOLO()`, `SAM()`, `NAS()` and `RTDETR()` classes to create a model instance in Python:
-
- ```python
- from ultralytics import YOLO
-
- # Load a COCO-pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Display model information (optional)
- model.info()
-
- # Train the model on the COCO8 example dataset for 100 epochs
- results = model.train(data='coco8.yaml', epochs=100, imgsz=640)
-
- # Run inference with the YOLOv8n model on the 'bus.jpg' image
- results = model('path/to/bus.jpg')
- ```
-
- === "CLI"
-
- CLI commands are available to directly run the models:
-
- ```bash
- # Load a COCO-pretrained YOLOv8n model and train it on the COCO8 example dataset for 100 epochs
- yolo train model=yolov8n.pt data=coco8.yaml epochs=100 imgsz=640
-
- # Load a COCO-pretrained YOLOv8n model and run inference on the 'bus.jpg' image
- yolo predict model=yolov8n.pt source=path/to/bus.jpg
- ```
-
-## Contributing New Models
-
-Interested in contributing your model to Ultralytics? Great! We're always open to expanding our model portfolio.
-
-1. **Fork the Repository**: Start by forking the [Ultralytics GitHub repository](https://github.com/ultralytics/ultralytics).
-
-2. **Clone Your Fork**: Clone your fork to your local machine and create a new branch to work on.
-
-3. **Implement Your Model**: Add your model following the coding standards and guidelines provided in our [Contributing Guide](../help/contributing.md).
-
-4. **Test Thoroughly**: Make sure to test your model rigorously, both in isolation and as part of the pipeline.
-
-5. **Create a Pull Request**: Once you're satisfied with your model, create a pull request to the main repository for review.
-
-6. **Code Review & Merging**: After review, if your model meets our criteria, it will be merged into the main repository.
-
-For detailed steps, consult our [Contributing Guide](../help/contributing.md).
diff --git a/ultralytics-main/docs/en/models/mobile-sam.md b/ultralytics-main/docs/en/models/mobile-sam.md
deleted file mode 100644
index bd97e03..0000000
--- a/ultralytics-main/docs/en/models/mobile-sam.md
+++ /dev/null
@@ -1,119 +0,0 @@
----
-comments: true
-description: Learn more about MobileSAM, its implementation, comparison with the original SAM, and how to download and test it in the Ultralytics framework. Improve your mobile applications today.
-keywords: MobileSAM, Ultralytics, SAM, mobile applications, Arxiv, GPU, API, image encoder, mask decoder, model download, testing method
----
-
-![MobileSAM Logo](https://github.com/ChaoningZhang/MobileSAM/blob/master/assets/logo2.png?raw=true)
-
-# Mobile Segment Anything (MobileSAM)
-
-The MobileSAM paper is now available on [arXiv](https://arxiv.org/pdf/2306.14289.pdf).
-
-A demonstration of MobileSAM running on a CPU can be accessed at this [demo link](https://huggingface.co/spaces/dhkim2810/MobileSAM). The performance on a Mac i5 CPU takes approximately 3 seconds. On the Hugging Face demo, the interface and lower-performance CPUs contribute to a slower response, but it continues to function effectively.
-
-MobileSAM is implemented in various projects including [Grounding-SAM](https://github.com/IDEA-Research/Grounded-Segment-Anything), [AnyLabeling](https://github.com/vietanhdev/anylabeling), and [Segment Anything in 3D](https://github.com/Jumpat/SegmentAnythingin3D).
-
-MobileSAM is trained on a single GPU with a 100k dataset (1% of the original images) in less than a day. The code for this training will be made available in the future.
-
-## Available Models, Supported Tasks, and Operating Modes
-
-This table presents the available models with their specific pre-trained weights, the tasks they support, and their compatibility with different operating modes like [Inference](../modes/predict.md), [Validation](../modes/val.md), [Training](../modes/train.md), and [Export](../modes/export.md), indicated by ✅ emojis for supported modes and ❌ emojis for unsupported modes.
-
-| Model Type | Pre-trained Weights | Tasks Supported | Inference | Validation | Training | Export |
-|------------|-----------------------------------------------------------------------------------------------|----------------------------------------------|-----------|------------|----------|--------|
-| MobileSAM | [mobile_sam.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/mobile_sam.pt) | [Instance Segmentation](../tasks/segment.md) | ✅ | ❌ | ❌ | ❌ |
-
-## Adapting from SAM to MobileSAM
-
-Since MobileSAM retains the same pipeline as the original SAM, we have incorporated the original's pre-processing, post-processing, and all other interfaces. Consequently, those currently using the original SAM can transition to MobileSAM with minimal effort.
-
-MobileSAM performs comparably to the original SAM and retains the same pipeline except for a change in the image encoder. Specifically, we replace the original heavyweight ViT-H encoder (632M) with a smaller Tiny-ViT (5M). On a single GPU, MobileSAM operates at about 12ms per image: 8ms on the image encoder and 4ms on the mask decoder.
-
-The following table provides a comparison of ViT-based image encoders:
-
-| Image Encoder | Original SAM | MobileSAM |
-|---------------|--------------|-----------|
-| Parameters | 611M | 5M |
-| Speed | 452ms | 8ms |
-
-Both the original SAM and MobileSAM utilize the same prompt-guided mask decoder:
-
-| Mask Decoder | Original SAM | MobileSAM |
-|--------------|--------------|-----------|
-| Parameters | 3.876M | 3.876M |
-| Speed | 4ms | 4ms |
-
-Here is the comparison of the whole pipeline:
-
-| Whole Pipeline (Enc+Dec) | Original SAM | MobileSAM |
-|--------------------------|--------------|-----------|
-| Parameters | 615M | 9.66M |
-| Speed | 456ms | 12ms |
-
-The performance of MobileSAM and the original SAM are demonstrated using both a point and a box as prompts.
-
-![Image with Point as Prompt](https://raw.githubusercontent.com/ChaoningZhang/MobileSAM/master/assets/mask_box.jpg?raw=true)
-
-![Image with Box as Prompt](https://raw.githubusercontent.com/ChaoningZhang/MobileSAM/master/assets/mask_box.jpg?raw=true)
-
-With its superior performance, MobileSAM is approximately 5 times smaller and 7 times faster than the current FastSAM. More details are available at the [MobileSAM project page](https://github.com/ChaoningZhang/MobileSAM).
-
-## Testing MobileSAM in Ultralytics
-
-Just like the original SAM, we offer a straightforward testing method in Ultralytics, including modes for both Point and Box prompts.
-
-### Model Download
-
-You can download the model [here](https://github.com/ChaoningZhang/MobileSAM/blob/master/weights/mobile_sam.pt).
-
-### Point Prompt
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import SAM
-
- # Load the model
- model = SAM('mobile_sam.pt')
-
- # Predict a segment based on a point prompt
- model.predict('ultralytics/assets/zidane.jpg', points=[900, 370], labels=[1])
- ```
-
-### Box Prompt
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import SAM
-
- # Load the model
- model = SAM('mobile_sam.pt')
-
- # Predict a segment based on a box prompt
- model.predict('ultralytics/assets/zidane.jpg', bboxes=[439, 437, 524, 709])
- ```
-
-We have implemented `MobileSAM` and `SAM` using the same API. For more usage information, please see the [SAM page](sam.md).
-
-## Citations and Acknowledgements
-
-If you find MobileSAM useful in your research or development work, please consider citing our paper:
-
-!!! Quote ""
-
- === "BibTeX"
-
- ```bibtex
- @article{mobile_sam,
- title={Faster Segment Anything: Towards Lightweight SAM for Mobile Applications},
- author={Zhang, Chaoning and Han, Dongshen and Qiao, Yu and Kim, Jung Uk and Bae, Sung Ho and Lee, Seungkyu and Hong, Choong Seon},
- journal={arXiv preprint arXiv:2306.14289},
- year={2023}
- }
- ```
diff --git a/ultralytics-main/docs/en/models/rtdetr.md b/ultralytics-main/docs/en/models/rtdetr.md
deleted file mode 100644
index 844356e..0000000
--- a/ultralytics-main/docs/en/models/rtdetr.md
+++ /dev/null
@@ -1,92 +0,0 @@
----
-comments: true
-description: Discover the features and benefits of RT-DETR, Baidu’s efficient and adaptable real-time object detector powered by Vision Transformers, including pre-trained models.
-keywords: RT-DETR, Baidu, Vision Transformers, object detection, real-time performance, CUDA, TensorRT, IoU-aware query selection, Ultralytics, Python API, PaddlePaddle
----
-
-# Baidu's RT-DETR: A Vision Transformer-Based Real-Time Object Detector
-
-## Overview
-
-Real-Time Detection Transformer (RT-DETR), developed by Baidu, is a cutting-edge end-to-end object detector that provides real-time performance while maintaining high accuracy. It leverages the power of Vision Transformers (ViT) to efficiently process multiscale features by decoupling intra-scale interaction and cross-scale fusion. RT-DETR is highly adaptable, supporting flexible adjustment of inference speed using different decoder layers without retraining. The model excels on accelerated backends like CUDA with TensorRT, outperforming many other real-time object detectors.
-
-![Model example image](https://user-images.githubusercontent.com/26833433/238963168-90e8483f-90aa-4eb6-a5e1-0d408b23dd33.png) **Overview of Baidu's RT-DETR.** The RT-DETR model architecture diagram shows the last three stages of the backbone {S3, S4, S5} as the input to the encoder. The efficient hybrid encoder transforms multiscale features into a sequence of image features through intrascale feature interaction (AIFI) and cross-scale feature-fusion module (CCFM). The IoU-aware query selection is employed to select a fixed number of image features to serve as initial object queries for the decoder. Finally, the decoder with auxiliary prediction heads iteratively optimizes object queries to generate boxes and confidence scores ([source](https://arxiv.org/pdf/2304.08069.pdf)).
-
-### Key Features
-
-- **Efficient Hybrid Encoder:** Baidu's RT-DETR uses an efficient hybrid encoder that processes multiscale features by decoupling intra-scale interaction and cross-scale fusion. This unique Vision Transformers-based design reduces computational costs and allows for real-time object detection.
-- **IoU-aware Query Selection:** Baidu's RT-DETR improves object query initialization by utilizing IoU-aware query selection. This allows the model to focus on the most relevant objects in the scene, enhancing the detection accuracy.
-- **Adaptable Inference Speed:** Baidu's RT-DETR supports flexible adjustments of inference speed by using different decoder layers without the need for retraining. This adaptability facilitates practical application in various real-time object detection scenarios.
-
-## Pre-trained Models
-
-The Ultralytics Python API provides pre-trained PaddlePaddle RT-DETR models with different scales:
-
-- RT-DETR-L: 53.0% AP on COCO val2017, 114 FPS on T4 GPU
-- RT-DETR-X: 54.8% AP on COCO val2017, 74 FPS on T4 GPU
-
-## Usage Examples
-
-This example provides simple RT-DETR training and inference examples. For full documentation on these and other [modes](../modes/index.md) see the [Predict](../modes/predict.md), [Train](../modes/train.md), [Val](../modes/val.md) and [Export](../modes/export.md) docs pages.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import RTDETR
-
- # Load a COCO-pretrained RT-DETR-l model
- model = RTDETR('rtdetr-l.pt')
-
- # Display model information (optional)
- model.info()
-
- # Train the model on the COCO8 example dataset for 100 epochs
- results = model.train(data='coco8.yaml', epochs=100, imgsz=640)
-
- # Run inference with the RT-DETR-l model on the 'bus.jpg' image
- results = model('path/to/bus.jpg')
- ```
-
- === "CLI"
-
- ```bash
- # Load a COCO-pretrained RT-DETR-l model and train it on the COCO8 example dataset for 100 epochs
- yolo train model=rtdetr-l.pt data=coco8.yaml epochs=100 imgsz=640
-
- # Load a COCO-pretrained RT-DETR-l model and run inference on the 'bus.jpg' image
- yolo predict model=rtdetr-l.pt source=path/to/bus.jpg
- ```
-
-## Supported Tasks and Modes
-
-This table presents the model types, the specific pre-trained weights, the tasks supported by each model, and the various modes ([Train](../modes/train.md) , [Val](../modes/val.md), [Predict](../modes/predict.md), [Export](../modes/export.md)) that are supported, indicated by ✅ emojis.
-
-| Model Type | Pre-trained Weights | Tasks Supported | Inference | Validation | Training | Export |
-|---------------------|-------------------------------------------------------------------------------------------|----------------------------------------|-----------|------------|----------|--------|
-| RT-DETR Large | [rtdetr-l.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/rtdetr-l.pt) | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ✅ | ✅ |
-| RT-DETR Extra-Large | [rtdetr-x.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/rtdetr-x.pt) | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ✅ | ✅ |
-
-## Citations and Acknowledgements
-
-If you use Baidu's RT-DETR in your research or development work, please cite the [original paper](https://arxiv.org/abs/2304.08069):
-
-!!! Quote ""
-
- === "BibTeX"
-
- ```bibtex
- @misc{lv2023detrs,
- title={DETRs Beat YOLOs on Real-time Object Detection},
- author={Wenyu Lv and Shangliang Xu and Yian Zhao and Guanzhong Wang and Jinman Wei and Cheng Cui and Yuning Du and Qingqing Dang and Yi Liu},
- year={2023},
- eprint={2304.08069},
- archivePrefix={arXiv},
- primaryClass={cs.CV}
- }
- ```
-
-We would like to acknowledge Baidu and the [PaddlePaddle](https://github.com/PaddlePaddle/PaddleDetection) team for creating and maintaining this valuable resource for the computer vision community. Their contribution to the field with the development of the Vision Transformers-based real-time object detector, RT-DETR, is greatly appreciated.
-
-_Keywords: RT-DETR, Transformer, ViT, Vision Transformers, Baidu RT-DETR, PaddlePaddle, Paddle Paddle RT-DETR, real-time object detection, Vision Transformers-based object detection, pre-trained PaddlePaddle RT-DETR models, Baidu's RT-DETR usage, Ultralytics Python API_
diff --git a/ultralytics-main/docs/en/models/sam.md b/ultralytics-main/docs/en/models/sam.md
deleted file mode 100644
index e931b9e..0000000
--- a/ultralytics-main/docs/en/models/sam.md
+++ /dev/null
@@ -1,227 +0,0 @@
----
-comments: true
-description: Explore the cutting-edge Segment Anything Model (SAM) from Ultralytics that allows real-time image segmentation. Learn about its promptable segmentation, zero-shot performance, and how to use it.
-keywords: Ultralytics, image segmentation, Segment Anything Model, SAM, SA-1B dataset, real-time performance, zero-shot transfer, object detection, image analysis, machine learning
----
-
-# Segment Anything Model (SAM)
-
-Welcome to the frontier of image segmentation with the Segment Anything Model, or SAM. This revolutionary model has changed the game by introducing promptable image segmentation with real-time performance, setting new standards in the field.
-
-## Introduction to SAM: The Segment Anything Model
-
-The Segment Anything Model, or SAM, is a cutting-edge image segmentation model that allows for promptable segmentation, providing unparalleled versatility in image analysis tasks. SAM forms the heart of the Segment Anything initiative, a groundbreaking project that introduces a novel model, task, and dataset for image segmentation.
-
-SAM's advanced design allows it to adapt to new image distributions and tasks without prior knowledge, a feature known as zero-shot transfer. Trained on the expansive [SA-1B dataset](https://ai.facebook.com/datasets/segment-anything/), which contains more than 1 billion masks spread over 11 million carefully curated images, SAM has displayed impressive zero-shot performance, surpassing previous fully supervised results in many cases.
-
-![Dataset sample image](https://user-images.githubusercontent.com/26833433/238056229-0e8ffbeb-f81a-477e-a490-aff3d82fd8ce.jpg) **SA-1B Example images.** Dataset images overlaid masks from the newly introduced SA-1B dataset. SA-1B contains 11M diverse, high-resolution, licensed, and privacy protecting images and 1.1B high-quality segmentation masks. These masks were annotated fully automatically by SAM, and as verified by human ratings and numerous experiments, are of high quality and diversity. Images are grouped by number of masks per image for visualization (there are ∼100 masks per image on average).
-
-## Key Features of the Segment Anything Model (SAM)
-
-- **Promptable Segmentation Task:** SAM was designed with a promptable segmentation task in mind, allowing it to generate valid segmentation masks from any given prompt, such as spatial or text clues identifying an object.
-- **Advanced Architecture:** The Segment Anything Model employs a powerful image encoder, a prompt encoder, and a lightweight mask decoder. This unique architecture enables flexible prompting, real-time mask computation, and ambiguity awareness in segmentation tasks.
-- **The SA-1B Dataset:** Introduced by the Segment Anything project, the SA-1B dataset features over 1 billion masks on 11 million images. As the largest segmentation dataset to date, it provides SAM with a diverse and large-scale training data source.
-- **Zero-Shot Performance:** SAM displays outstanding zero-shot performance across various segmentation tasks, making it a ready-to-use tool for diverse applications with minimal need for prompt engineering.
-
-For an in-depth look at the Segment Anything Model and the SA-1B dataset, please visit the [Segment Anything website](https://segment-anything.com) and check out the research paper [Segment Anything](https://arxiv.org/abs/2304.02643).
-
-## Available Models, Supported Tasks, and Operating Modes
-
-This table presents the available models with their specific pre-trained weights, the tasks they support, and their compatibility with different operating modes like [Inference](../modes/predict.md), [Validation](../modes/val.md), [Training](../modes/train.md), and [Export](../modes/export.md), indicated by ✅ emojis for supported modes and ❌ emojis for unsupported modes.
-
-| Model Type | Pre-trained Weights | Tasks Supported | Inference | Validation | Training | Export |
-|------------|-------------------------------------------------------------------------------------|----------------------------------------------|-----------|------------|----------|--------|
-| SAM base | [sam_b.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/sam_b.pt) | [Instance Segmentation](../tasks/segment.md) | ✅ | ❌ | ❌ | ❌ |
-| SAM large | [sam_l.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/sam_l.pt) | [Instance Segmentation](../tasks/segment.md) | ✅ | ❌ | ❌ | ❌ |
-
-## How to Use SAM: Versatility and Power in Image Segmentation
-
-The Segment Anything Model can be employed for a multitude of downstream tasks that go beyond its training data. This includes edge detection, object proposal generation, instance segmentation, and preliminary text-to-mask prediction. With prompt engineering, SAM can swiftly adapt to new tasks and data distributions in a zero-shot manner, establishing it as a versatile and potent tool for all your image segmentation needs.
-
-### SAM prediction example
-
-!!! Example "Segment with prompts"
-
- Segment image with given prompts.
-
- === "Python"
-
- ```python
- from ultralytics import SAM
-
- # Load a model
- model = SAM('sam_b.pt')
-
- # Display model information (optional)
- model.info()
-
- # Run inference with bboxes prompt
- model('ultralytics/assets/zidane.jpg', bboxes=[439, 437, 524, 709])
-
- # Run inference with points prompt
- model('ultralytics/assets/zidane.jpg', points=[900, 370], labels=[1])
- ```
-
-!!! Example "Segment everything"
-
- Segment the whole image.
-
- === "Python"
-
- ```python
- from ultralytics import SAM
-
- # Load a model
- model = SAM('sam_b.pt')
-
- # Display model information (optional)
- model.info()
-
- # Run inference
- model('path/to/image.jpg')
- ```
-
- === "CLI"
-
- ```bash
- # Run inference with a SAM model
- yolo predict model=sam_b.pt source=path/to/image.jpg
- ```
-
-- The logic here is to segment the whole image if you don't pass any prompts(bboxes/points/masks).
-
-!!! Example "SAMPredictor example"
-
- This way you can set image once and run prompts inference multiple times without running image encoder multiple times.
-
- === "Prompt inference"
-
- ```python
- from ultralytics.models.sam import Predictor as SAMPredictor
-
- # Create SAMPredictor
- overrides = dict(conf=0.25, task='segment', mode='predict', imgsz=1024, model="mobile_sam.pt")
- predictor = SAMPredictor(overrides=overrides)
-
- # Set image
- predictor.set_image("ultralytics/assets/zidane.jpg") # set with image file
- predictor.set_image(cv2.imread("ultralytics/assets/zidane.jpg")) # set with np.ndarray
- results = predictor(bboxes=[439, 437, 524, 709])
- results = predictor(points=[900, 370], labels=[1])
-
- # Reset image
- predictor.reset_image()
- ```
-
- Segment everything with additional args.
-
- === "Segment everything"
-
- ```python
- from ultralytics.models.sam import Predictor as SAMPredictor
-
- # Create SAMPredictor
- overrides = dict(conf=0.25, task='segment', mode='predict', imgsz=1024, model="mobile_sam.pt")
- predictor = SAMPredictor(overrides=overrides)
-
- # Segment with additional args
- results = predictor(source="ultralytics/assets/zidane.jpg", crop_n_layers=1, points_stride=64)
- ```
-
-- More additional args for `Segment everything` see [`Predictor/generate` Reference](../reference/models/sam/predict.md).
-
-## SAM comparison vs YOLOv8
-
-Here we compare Meta's smallest SAM model, SAM-b, with Ultralytics smallest segmentation model, [YOLOv8n-seg](../tasks/segment.md):
-
-| Model | Size | Parameters | Speed (CPU) |
-|------------------------------------------------|----------------------------|------------------------|----------------------------|
-| Meta's SAM-b | 358 MB | 94.7 M | 51096 ms/im |
-| [MobileSAM](mobile-sam.md) | 40.7 MB | 10.1 M | 46122 ms/im |
-| [FastSAM-s](fast-sam.md) with YOLOv8 backbone | 23.7 MB | 11.8 M | 115 ms/im |
-| Ultralytics [YOLOv8n-seg](../tasks/segment.md) | **6.7 MB** (53.4x smaller) | **3.4 M** (27.9x less) | **59 ms/im** (866x faster) |
-
-This comparison shows the order-of-magnitude differences in the model sizes and speeds between models. Whereas SAM presents unique capabilities for automatic segmenting, it is not a direct competitor to YOLOv8 segment models, which are smaller, faster and more efficient.
-
-Tests run on a 2023 Apple M2 Macbook with 16GB of RAM. To reproduce this test:
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import FastSAM, SAM, YOLO
-
- # Profile SAM-b
- model = SAM('sam_b.pt')
- model.info()
- model('ultralytics/assets')
-
- # Profile MobileSAM
- model = SAM('mobile_sam.pt')
- model.info()
- model('ultralytics/assets')
-
- # Profile FastSAM-s
- model = FastSAM('FastSAM-s.pt')
- model.info()
- model('ultralytics/assets')
-
- # Profile YOLOv8n-seg
- model = YOLO('yolov8n-seg.pt')
- model.info()
- model('ultralytics/assets')
- ```
-
-## Auto-Annotation: A Quick Path to Segmentation Datasets
-
-Auto-annotation is a key feature of SAM, allowing users to generate a [segmentation dataset](https://docs.ultralytics.com/datasets/segment) using a pre-trained detection model. This feature enables rapid and accurate annotation of a large number of images, bypassing the need for time-consuming manual labeling.
-
-### Generate Your Segmentation Dataset Using a Detection Model
-
-To auto-annotate your dataset with the Ultralytics framework, use the `auto_annotate` function as shown below:
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics.data.annotator import auto_annotate
-
- auto_annotate(data="path/to/images", det_model="yolov8x.pt", sam_model='sam_b.pt')
- ```
-
-| Argument | Type | Description | Default |
-|------------|---------------------|---------------------------------------------------------------------------------------------------------|--------------|
-| data | str | Path to a folder containing images to be annotated. | |
-| det_model | str, optional | Pre-trained YOLO detection model. Defaults to 'yolov8x.pt'. | 'yolov8x.pt' |
-| sam_model | str, optional | Pre-trained SAM segmentation model. Defaults to 'sam_b.pt'. | 'sam_b.pt' |
-| device | str, optional | Device to run the models on. Defaults to an empty string (CPU or GPU, if available). | |
-| output_dir | str, None, optional | Directory to save the annotated results. Defaults to a 'labels' folder in the same directory as 'data'. | None |
-
-The `auto_annotate` function takes the path to your images, with optional arguments for specifying the pre-trained detection and SAM segmentation models, the device to run the models on, and the output directory for saving the annotated results.
-
-Auto-annotation with pre-trained models can dramatically cut down the time and effort required for creating high-quality segmentation datasets. This feature is especially beneficial for researchers and developers dealing with large image collections, as it allows them to focus on model development and evaluation rather than manual annotation.
-
-## Citations and Acknowledgements
-
-If you find SAM useful in your research or development work, please consider citing our paper:
-
-!!! Quote ""
-
- === "BibTeX"
-
- ```bibtex
- @misc{kirillov2023segment,
- title={Segment Anything},
- author={Alexander Kirillov and Eric Mintun and Nikhila Ravi and Hanzi Mao and Chloe Rolland and Laura Gustafson and Tete Xiao and Spencer Whitehead and Alexander C. Berg and Wan-Yen Lo and Piotr Dollár and Ross Girshick},
- year={2023},
- eprint={2304.02643},
- archivePrefix={arXiv},
- primaryClass={cs.CV}
- }
- ```
-
-We would like to express our gratitude to Meta AI for creating and maintaining this valuable resource for the computer vision community.
-
-_keywords: Segment Anything, Segment Anything Model, SAM, Meta SAM, image segmentation, promptable segmentation, zero-shot performance, SA-1B dataset, advanced architecture, auto-annotation, Ultralytics, pre-trained models, SAM base, SAM large, instance segmentation, computer vision, AI, artificial intelligence, machine learning, data annotation, segmentation masks, detection model, YOLO detection model, bibtex, Meta AI._
diff --git a/ultralytics-main/docs/en/models/yolo-nas.md b/ultralytics-main/docs/en/models/yolo-nas.md
deleted file mode 100644
index cc041e7..0000000
--- a/ultralytics-main/docs/en/models/yolo-nas.md
+++ /dev/null
@@ -1,120 +0,0 @@
----
-comments: true
-description: Explore detailed documentation of YOLO-NAS, a superior object detection model. Learn about its features, pre-trained models, usage with Ultralytics Python API, and more.
-keywords: YOLO-NAS, Deci AI, object detection, deep learning, neural architecture search, Ultralytics Python API, YOLO model, pre-trained models, quantization, optimization, COCO, Objects365, Roboflow 100
----
-
-# YOLO-NAS
-
-## Overview
-
-Developed by Deci AI, YOLO-NAS is a groundbreaking object detection foundational model. It is the product of advanced Neural Architecture Search technology, meticulously designed to address the limitations of previous YOLO models. With significant improvements in quantization support and accuracy-latency trade-offs, YOLO-NAS represents a major leap in object detection.
-
-![Model example image](https://learnopencv.com/wp-content/uploads/2023/05/yolo-nas_COCO_map_metrics.png) **Overview of YOLO-NAS.** YOLO-NAS employs quantization-aware blocks and selective quantization for optimal performance. The model, when converted to its INT8 quantized version, experiences a minimal precision drop, a significant improvement over other models. These advancements culminate in a superior architecture with unprecedented object detection capabilities and outstanding performance.
-
-### Key Features
-
-- **Quantization-Friendly Basic Block:** YOLO-NAS introduces a new basic block that is friendly to quantization, addressing one of the significant limitations of previous YOLO models.
-- **Sophisticated Training and Quantization:** YOLO-NAS leverages advanced training schemes and post-training quantization to enhance performance.
-- **AutoNAC Optimization and Pre-training:** YOLO-NAS utilizes AutoNAC optimization and is pre-trained on prominent datasets such as COCO, Objects365, and Roboflow 100. This pre-training makes it extremely suitable for downstream object detection tasks in production environments.
-
-## Pre-trained Models
-
-Experience the power of next-generation object detection with the pre-trained YOLO-NAS models provided by Ultralytics. These models are designed to deliver top-notch performance in terms of both speed and accuracy. Choose from a variety of options tailored to your specific needs:
-
-| Model | mAP | Latency (ms) |
-|------------------|-------|--------------|
-| YOLO-NAS S | 47.5 | 3.21 |
-| YOLO-NAS M | 51.55 | 5.85 |
-| YOLO-NAS L | 52.22 | 7.87 |
-| YOLO-NAS S INT-8 | 47.03 | 2.36 |
-| YOLO-NAS M INT-8 | 51.0 | 3.78 |
-| YOLO-NAS L INT-8 | 52.1 | 4.78 |
-
-Each model variant is designed to offer a balance between Mean Average Precision (mAP) and latency, helping you optimize your object detection tasks for both performance and speed.
-
-## Usage Examples
-
-Ultralytics has made YOLO-NAS models easy to integrate into your Python applications via our `ultralytics` python package. The package provides a user-friendly Python API to streamline the process.
-
-The following examples show how to use YOLO-NAS models with the `ultralytics` package for inference and validation:
-
-### Inference and Validation Examples
-
-In this example we validate YOLO-NAS-s on the COCO8 dataset.
-
-!!! Example
-
- This example provides simple inference and validation code for YOLO-NAS. For handling inference results see [Predict](../modes/predict.md) mode. For using YOLO-NAS with additional modes see [Val](../modes/val.md) and [Export](../modes/export.md). YOLO-NAS on the `ultralytics` package does not support training.
-
- === "Python"
-
- PyTorch pretrained `*.pt` models files can be passed to the `NAS()` class to create a model instance in python:
-
- ```python
- from ultralytics import NAS
-
- # Load a COCO-pretrained YOLO-NAS-s model
- model = NAS('yolo_nas_s.pt')
-
- # Display model information (optional)
- model.info()
-
- # Validate the model on the COCO8 example dataset
- results = model.val(data='coco8.yaml')
-
- # Run inference with the YOLO-NAS-s model on the 'bus.jpg' image
- results = model('path/to/bus.jpg')
- ```
-
- === "CLI"
-
- CLI commands are available to directly run the models:
-
- ```bash
- # Load a COCO-pretrained YOLO-NAS-s model and validate it's performance on the COCO8 example dataset
- yolo val model=yolo_nas_s.pt data=coco8.yaml
-
- # Load a COCO-pretrained YOLO-NAS-s model and run inference on the 'bus.jpg' image
- yolo predict model=yolo_nas_s.pt source=path/to/bus.jpg
- ```
-
-## Supported Tasks and Modes
-
-We offer three variants of the YOLO-NAS models: Small (s), Medium (m), and Large (l). Each variant is designed to cater to different computational and performance needs:
-
-- **YOLO-NAS-s**: Optimized for environments where computational resources are limited but efficiency is key.
-- **YOLO-NAS-m**: Offers a balanced approach, suitable for general-purpose object detection with higher accuracy.
-- **YOLO-NAS-l**: Tailored for scenarios requiring the highest accuracy, where computational resources are less of a constraint.
-
-Below is a detailed overview of each model, including links to their pre-trained weights, the tasks they support, and their compatibility with different operating modes.
-
-| Model Type | Pre-trained Weights | Tasks Supported | Inference | Validation | Training | Export |
-|------------|-----------------------------------------------------------------------------------------------|----------------------------------------|-----------|------------|----------|--------|
-| YOLO-NAS-s | [yolo_nas_s.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolo_nas_s.pt) | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ❌ | ✅ |
-| YOLO-NAS-m | [yolo_nas_m.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolo_nas_m.pt) | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ❌ | ✅ |
-| YOLO-NAS-l | [yolo_nas_l.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolo_nas_l.pt) | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ❌ | ✅ |
-
-## Citations and Acknowledgements
-
-If you employ YOLO-NAS in your research or development work, please cite SuperGradients:
-
-!!! Quote ""
-
- === "BibTeX"
-
- ```bibtex
- @misc{supergradients,
- doi = {10.5281/ZENODO.7789328},
- url = {https://zenodo.org/record/7789328},
- author = {Aharon, Shay and {Louis-Dupont} and {Ofri Masad} and Yurkova, Kate and {Lotem Fridman} and {Lkdci} and Khvedchenya, Eugene and Rubin, Ran and Bagrov, Natan and Tymchenko, Borys and Keren, Tomer and Zhilko, Alexander and {Eran-Deci}},
- title = {Super-Gradients},
- publisher = {GitHub},
- journal = {GitHub repository},
- year = {2021},
- }
- ```
-
-We express our gratitude to Deci AI's [SuperGradients](https://github.com/Deci-AI/super-gradients/) team for their efforts in creating and maintaining this valuable resource for the computer vision community. We believe YOLO-NAS, with its innovative architecture and superior object detection capabilities, will become a critical tool for developers and researchers alike.
-
-_Keywords: YOLO-NAS, Deci AI, object detection, deep learning, neural architecture search, Ultralytics Python API, YOLO model, SuperGradients, pre-trained models, quantization-friendly basic block, advanced training schemes, post-training quantization, AutoNAC optimization, COCO, Objects365, Roboflow 100_
diff --git a/ultralytics-main/docs/en/models/yolo-world.md b/ultralytics-main/docs/en/models/yolo-world.md
deleted file mode 100644
index 116d62d..0000000
--- a/ultralytics-main/docs/en/models/yolo-world.md
+++ /dev/null
@@ -1,216 +0,0 @@
----
-comments: true
-description: Discover YOLO-World, a YOLOv8-based framework for real-time open-vocabulary object detection in images. It enhances user interaction, boosts computational efficiency, and adapts across various vision tasks.
-keywords: YOLO-World, YOLOv8, machine learning, CNN-based framework, object detection, real-time detection, Ultralytics, vision tasks, image processing, industrial applications, user interaction
----
-
-# YOLO-World Model
-
-The YOLO-World Model introduces an advanced, real-time [Ultralytics](https://ultralytics.com) [YOLOv8](yolov8.md)-based approach for Open-Vocabulary Detection tasks. This innovation enables the detection of any object within an image based on descriptive texts. By significantly lowering computational demands while preserving competitive performance, YOLO-World emerges as a versatile tool for numerous vision-based applications.
-
-![YOLO-World Model architecture overview](https://github.com/ultralytics/ultralytics/assets/26833433/31105058-78c1-43ef-9573-4f41b06df531)
-
-## Overview
-
-YOLO-World tackles the challenges faced by traditional Open-Vocabulary detection models, which often rely on cumbersome Transformer models requiring extensive computational resources. These models' dependence on pre-defined object categories also restricts their utility in dynamic scenarios. YOLO-World revitalizes the YOLOv8 framework with open-vocabulary detection capabilities, employing vision-language modeling and pre-training on expansive datasets to excel at identifying a broad array of objects in zero-shot scenarios with unmatched efficiency.
-
-## Key Features
-
-1. **Real-time Solution:** Harnessing the computational speed of CNNs, YOLO-World delivers a swift open-vocabulary detection solution, catering to industries in need of immediate results.
-
-2. **Efficiency and Performance:** YOLO-World slashes computational and resource requirements without sacrificing performance, offering a robust alternative to models like SAM but at a fraction of the computational cost, enabling real-time applications.
-
-3. **Inference with Offline Vocabulary:** YOLO-World introduces a "prompt-then-detect" strategy, employing an offline vocabulary to enhance efficiency further. This approach enables the use of custom prompts computed apriori, including captions or categories, to be encoded and stored as offline vocabulary embeddings, streamlining the detection process.
-
-4. **Powered by YOLOv8:** Built upon [Ultralytics YOLOv8](yolov8.md), YOLO-World leverages the latest advancements in real-time object detection to facilitate open-vocabulary detection with unparalleled accuracy and speed.
-
-5. **Benchmark Excellence:** YOLO-World outperforms existing open-vocabulary detectors, including MDETR and GLIP series, in terms of speed and efficiency on standard benchmarks, showcasing YOLOv8's superior capability on a single NVIDIA V100 GPU.
-
-6. **Versatile Applications:** YOLO-World's innovative approach unlocks new possibilities for a multitude of vision tasks, delivering speed improvements by orders of magnitude over existing methods.
-
-## Available Models, Supported Tasks, and Operating Modes
-
-This section details the models available with their specific pre-trained weights, the tasks they support, and their compatibility with various operating modes such as [Inference](../modes/predict.md), [Validation](../modes/val.md), [Training](../modes/train.md), and [Export](../modes/export.md), denoted by ✅ for supported modes and ❌ for unsupported modes.
-
-!!! Note
-
- All the YOLOv8-World weights have been directly migrated from the official [YOLO-World](https://github.com/AILab-CVC/YOLO-World) repository, highlighting their excellent contributions.
-
-| Model Type | Pre-trained Weights | Tasks Supported | Inference | Validation | Training | Export |
-|-----------------|-------------------------------------------------------------------------------------------------------|----------------------------------------|-----------|------------|----------|--------|
-| YOLOv8s-world | [yolov8s-world.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8s-world.pt) | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ❌ | ❌ |
-| YOLOv8s-worldv2 | [yolov8s-worldv2.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8s-worldv2.pt) | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ❌ | ✅ |
-| YOLOv8m-world | [yolov8m-world.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8m-world.pt) | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ❌ | ❌ |
-| YOLOv8m-worldv2 | [yolov8m-worldv2.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8m-worldv2.pt) | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ❌ | ✅ |
-| YOLOv8l-world | [yolov8l-world.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8l-world.pt) | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ❌ | ❌ |
-| YOLOv8l-worldv2 | [yolov8l-worldv2.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8l-worldv2.pt) | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ❌ | ✅ |
-| YOLOv8x-world | [yolov8x-world.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8x-world.pt) | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ❌ | ❌ |
-| YOLOv8x-worldv2 | [yolov8x-worldv2.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8x-worldv2.pt) | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ❌ | ✅ |
-
-## Zero-shot Transfer on COCO Dataset
-
-| Model Type | mAP | mAP50 | mAP75 |
-|-----------------|------|-------|-------|
-| yolov8s-world | 37.4 | 52.0 | 40.6 |
-| yolov8s-worldv2 | 37.7 | 52.2 | 41.0 |
-| yolov8m-world | 42.0 | 57.0 | 45.6 |
-| yolov8m-worldv2 | 43.0 | 58.4 | 46.8 |
-| yolov8l-world | 45.7 | 61.3 | 49.8 |
-| yolov8l-worldv2 | 45.8 | 61.3 | 49.8 |
-| yolov8x-world | 47.0 | 63.0 | 51.2 |
-| yolov8x-worldv2 | 47.1 | 62.8 | 51.4 |
-
-## Usage Examples
-
-The YOLO-World models are easy to integrate into your Python applications. Ultralytics provides user-friendly Python API and CLI commands to streamline development.
-
-### Predict Usage
-
-Object detection is straightforward with the `predict` method, as illustrated below:
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLOWorld
-
- # Initialize a YOLO-World model
- model = YOLOWorld('yolov8s-world.pt') # or select yolov8m/l-world.pt for different sizes
-
- # Execute inference with the YOLOv8s-world model on the specified image
- results = model.predict('path/to/image.jpg')
-
- # Show results
- results[0].show()
- ```
-
- === "CLI"
-
- ```bash
- # Perform object detection using a YOLO-World model
- yolo predict model=yolov8s-world.pt source=path/to/image.jpg imgsz=640
- ```
-
-This snippet demonstrates the simplicity of loading a pre-trained model and running a prediction on an image.
-
-### Val Usage
-
-Model validation on a dataset is streamlined as follows:
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Create a YOLO-World model
- model = YOLO('yolov8s-world.pt') # or select yolov8m/l-world.pt for different sizes
-
- # Conduct model validation on the COCO8 example dataset
- metrics = model.val(data='coco8.yaml')
- ```
-
- === "CLI"
-
- ```bash
- # Validate a YOLO-World model on the COCO8 dataset with a specified image size
- yolo val model=yolov8s-world.pt data=coco8.yaml imgsz=640
- ```
-
-!!! Note
-
- The YOLO-World models provided by Ultralytics come pre-configured with [COCO dataset](../datasets/detect/coco.md) categories as part of their offline vocabulary, enhancing efficiency for immediate application. This integration allows the YOLOv8-World models to directly recognize and predict the 80 standard categories defined in the COCO dataset without requiring additional setup or customization.
-
-### Set prompts
-
-![YOLO-World prompt class names overview](https://github.com/ultralytics/ultralytics/assets/26833433/4f609ec0-ae6d-4a85-a034-c1c1c30968ff)
-
-The YOLO-World framework allows for the dynamic specification of classes through custom prompts, empowering users to tailor the model to their specific needs **without retraining**. This feature is particularly useful for adapting the model to new domains or specific tasks that were not originally part of the training data. By setting custom prompts, users can essentially guide the model's focus towards objects of interest, enhancing the relevance and accuracy of the detection results.
-
-For instance, if your application only requires detecting 'person' and 'bus' objects, you can specify these classes directly:
-
-!!! Example
-
- === "Custom Inference Prompts"
-
- ```python
- from ultralytics import YOLO
-
- # Initialize a YOLO-World model
- model = YOLO('yolov8s-world.pt') # or choose yolov8m/l-world.pt
-
- # Define custom classes
- model.set_classes(["person", "bus"])
-
- # Execute prediction for specified categories on an image
- results = model.predict('path/to/image.jpg')
-
- # Show results
- results[0].show()
- ```
-
-You can also save a model after setting custom classes. By doing this you create a version of the YOLO-World model that is specialized for your specific use case. This process embeds your custom class definitions directly into the model file, making the model ready to use with your specified classes without further adjustments. Follow these steps to save and load your custom YOLOv8 model:
-
-!!! Example
-
- === "Persisting Models with Custom Vocabulary"
-
- First load a YOLO-World model, set custom classes for it and save it:
-
- ```python
- from ultralytics import YOLO
-
- # Initialize a YOLO-World model
- model = YOLO('yolov8s-world.pt') # or select yolov8m/l-world.pt
-
- # Define custom classes
- model.set_classes(["person", "bus"])
-
- # Save the model with the defined offline vocabulary
- model.save("custom_yolov8s.pt")
- ```
-
- After saving, the custom_yolov8s.pt model behaves like any other pre-trained YOLOv8 model but with a key difference: it is now optimized to detect only the classes you have defined. This customization can significantly improve detection performance and efficiency for your specific application scenarios.
-
- ```python
- from ultralytics import YOLO
-
- # Load your custom model
- model = YOLO('custom_yolov8s.pt')
-
- # Run inference to detect your custom classes
- results = model.predict('path/to/image.jpg')
-
- # Show results
- results[0].show()
- ```
-
-### Benefits of Saving with Custom Vocabulary
-
-- **Efficiency**: Streamlines the detection process by focusing on relevant objects, reducing computational overhead and speeding up inference.
-- **Flexibility**: Allows for easy adaptation of the model to new or niche detection tasks without the need for extensive retraining or data collection.
-- **Simplicity**: Simplifies deployment by eliminating the need to repeatedly specify custom classes at runtime, making the model directly usable with its embedded vocabulary.
-- **Performance**: Enhances detection accuracy for specified classes by focusing the model's attention and resources on recognizing the defined objects.
-
-This approach provides a powerful means of customizing state-of-the-art object detection models for specific tasks, making advanced AI more accessible and applicable to a broader range of practical applications.
-
-## Citations and Acknowledgements
-
-We extend our gratitude to the [Tencent AILab Computer Vision Center](https://ai.tencent.com/) for their pioneering work in real-time open-vocabulary object detection with YOLO-World:
-
-!!! Quote ""
-
- === "BibTeX"
-
- ```bibtex
- @article{cheng2024yolow,
- title={YOLO-World: Real-Time Open-Vocabulary Object Detection},
- author={Cheng, Tianheng and Song, Lin and Ge, Yixiao and Liu, Wenyu and Wang, Xinggang and Shan, Ying},
- journal={arXiv preprint arXiv:2401.17270},
- year={2024}
- }
- ```
-
-For further reading, the original YOLO-World paper is available on [arXiv](https://arxiv.org/pdf/2401.17270v2.pdf). The project's source code and additional resources can be accessed via their [GitHub repository](https://github.com/AILab-CVC/YOLO-World). We appreciate their commitment to advancing the field and sharing their valuable insights with the community.
diff --git a/ultralytics-main/docs/en/models/yolov3.md b/ultralytics-main/docs/en/models/yolov3.md
deleted file mode 100644
index f24562f..0000000
--- a/ultralytics-main/docs/en/models/yolov3.md
+++ /dev/null
@@ -1,98 +0,0 @@
----
-comments: true
-description: Get an overview of YOLOv3, YOLOv3-Ultralytics and YOLOv3u. Learn about their key features, usage, and supported tasks for object detection.
-keywords: YOLOv3, YOLOv3-Ultralytics, YOLOv3u, Object Detection, Inference, Training, Ultralytics
----
-
-# YOLOv3, YOLOv3-Ultralytics, and YOLOv3u
-
-## Overview
-
-This document presents an overview of three closely related object detection models, namely [YOLOv3](https://pjreddie.com/darknet/yolo/), [YOLOv3-Ultralytics](https://github.com/ultralytics/yolov3), and [YOLOv3u](https://github.com/ultralytics/ultralytics).
-
-1. **YOLOv3:** This is the third version of the You Only Look Once (YOLO) object detection algorithm. Originally developed by Joseph Redmon, YOLOv3 improved on its predecessors by introducing features such as multiscale predictions and three different sizes of detection kernels.
-
-2. **YOLOv3-Ultralytics:** This is Ultralytics' implementation of the YOLOv3 model. It reproduces the original YOLOv3 architecture and offers additional functionalities, such as support for more pre-trained models and easier customization options.
-
-3. **YOLOv3u:** This is an updated version of YOLOv3-Ultralytics that incorporates the anchor-free, objectness-free split head used in YOLOv8 models. YOLOv3u maintains the same backbone and neck architecture as YOLOv3 but with the updated detection head from YOLOv8.
-
-![Ultralytics YOLOv3](https://raw.githubusercontent.com/ultralytics/assets/main/yolov3/banner-yolov3.png)
-
-## Key Features
-
-- **YOLOv3:** Introduced the use of three different scales for detection, leveraging three different sizes of detection kernels: 13x13, 26x26, and 52x52. This significantly improved detection accuracy for objects of different sizes. Additionally, YOLOv3 added features such as multi-label predictions for each bounding box and a better feature extractor network.
-
-- **YOLOv3-Ultralytics:** Ultralytics' implementation of YOLOv3 provides the same performance as the original model but comes with added support for more pre-trained models, additional training methods, and easier customization options. This makes it more versatile and user-friendly for practical applications.
-
-- **YOLOv3u:** This updated model incorporates the anchor-free, objectness-free split head from YOLOv8. By eliminating the need for pre-defined anchor boxes and objectness scores, this detection head design can improve the model's ability to detect objects of varying sizes and shapes. This makes YOLOv3u more robust and accurate for object detection tasks.
-
-## Supported Tasks and Modes
-
-The YOLOv3 series, including YOLOv3, YOLOv3-Ultralytics, and YOLOv3u, are designed specifically for object detection tasks. These models are renowned for their effectiveness in various real-world scenarios, balancing accuracy and speed. Each variant offers unique features and optimizations, making them suitable for a range of applications.
-
-All three models support a comprehensive set of modes, ensuring versatility in various stages of model deployment and development. These modes include [Inference](../modes/predict.md), [Validation](../modes/val.md), [Training](../modes/train.md), and [Export](../modes/export.md), providing users with a complete toolkit for effective object detection.
-
-| Model Type | Tasks Supported | Inference | Validation | Training | Export |
-|--------------------|----------------------------------------|-----------|------------|----------|--------|
-| YOLOv3 | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ✅ | ✅ |
-| YOLOv3-Ultralytics | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ✅ | ✅ |
-| YOLOv3u | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ✅ | ✅ |
-
-This table provides an at-a-glance view of the capabilities of each YOLOv3 variant, highlighting their versatility and suitability for various tasks and operational modes in object detection workflows.
-
-## Usage Examples
-
-This example provides simple YOLOv3 training and inference examples. For full documentation on these and other [modes](../modes/index.md) see the [Predict](../modes/predict.md), [Train](../modes/train.md), [Val](../modes/val.md) and [Export](../modes/export.md) docs pages.
-
-!!! Example
-
- === "Python"
-
- PyTorch pretrained `*.pt` models as well as configuration `*.yaml` files can be passed to the `YOLO()` class to create a model instance in python:
-
- ```python
- from ultralytics import YOLO
-
- # Load a COCO-pretrained YOLOv3n model
- model = YOLO('yolov3n.pt')
-
- # Display model information (optional)
- model.info()
-
- # Train the model on the COCO8 example dataset for 100 epochs
- results = model.train(data='coco8.yaml', epochs=100, imgsz=640)
-
- # Run inference with the YOLOv3n model on the 'bus.jpg' image
- results = model('path/to/bus.jpg')
- ```
-
- === "CLI"
-
- CLI commands are available to directly run the models:
-
- ```bash
- # Load a COCO-pretrained YOLOv3n model and train it on the COCO8 example dataset for 100 epochs
- yolo train model=yolov3n.pt data=coco8.yaml epochs=100 imgsz=640
-
- # Load a COCO-pretrained YOLOv3n model and run inference on the 'bus.jpg' image
- yolo predict model=yolov3n.pt source=path/to/bus.jpg
- ```
-
-## Citations and Acknowledgements
-
-If you use YOLOv3 in your research, please cite the original YOLO papers and the Ultralytics YOLOv3 repository:
-
-!!! Quote ""
-
- === "BibTeX"
-
- ```bibtex
- @article{redmon2018yolov3,
- title={YOLOv3: An Incremental Improvement},
- author={Redmon, Joseph and Farhadi, Ali},
- journal={arXiv preprint arXiv:1804.02767},
- year={2018}
- }
- ```
-
-Thank you to Joseph Redmon and Ali Farhadi for developing the original YOLOv3.
diff --git a/ultralytics-main/docs/en/models/yolov4.md b/ultralytics-main/docs/en/models/yolov4.md
deleted file mode 100644
index bcc55b0..0000000
--- a/ultralytics-main/docs/en/models/yolov4.md
+++ /dev/null
@@ -1,70 +0,0 @@
----
-comments: true
-description: Explore our detailed guide on YOLOv4, a state-of-the-art real-time object detector. Understand its architectural highlights, innovative features, and application examples.
-keywords: ultralytics, YOLOv4, object detection, neural network, real-time detection, object detector, machine learning
----
-
-# YOLOv4: High-Speed and Precise Object Detection
-
-Welcome to the Ultralytics documentation page for YOLOv4, a state-of-the-art, real-time object detector launched in 2020 by Alexey Bochkovskiy at [https://github.com/AlexeyAB/darknet](https://github.com/AlexeyAB/darknet). YOLOv4 is designed to provide the optimal balance between speed and accuracy, making it an excellent choice for many applications.
-
-![YOLOv4 architecture diagram](https://user-images.githubusercontent.com/26833433/246185689-530b7fe8-737b-4bb0-b5dd-de10ef5aface.png) **YOLOv4 architecture diagram**. Showcasing the intricate network design of YOLOv4, including the backbone, neck, and head components, and their interconnected layers for optimal real-time object detection.
-
-## Introduction
-
-YOLOv4 stands for You Only Look Once version 4. It is a real-time object detection model developed to address the limitations of previous YOLO versions like [YOLOv3](yolov3.md) and other object detection models. Unlike other convolutional neural network (CNN) based object detectors, YOLOv4 is not only applicable for recommendation systems but also for standalone process management and human input reduction. Its operation on conventional graphics processing units (GPUs) allows for mass usage at an affordable price, and it is designed to work in real-time on a conventional GPU while requiring only one such GPU for training.
-
-## Architecture
-
-YOLOv4 makes use of several innovative features that work together to optimize its performance. These include Weighted-Residual-Connections (WRC), Cross-Stage-Partial-connections (CSP), Cross mini-Batch Normalization (CmBN), Self-adversarial-training (SAT), Mish-activation, Mosaic data augmentation, DropBlock regularization, and CIoU loss. These features are combined to achieve state-of-the-art results.
-
-A typical object detector is composed of several parts including the input, the backbone, the neck, and the head. The backbone of YOLOv4 is pre-trained on ImageNet and is used to predict classes and bounding boxes of objects. The backbone could be from several models including VGG, ResNet, ResNeXt, or DenseNet. The neck part of the detector is used to collect feature maps from different stages and usually includes several bottom-up paths and several top-down paths. The head part is what is used to make the final object detections and classifications.
-
-## Bag of Freebies
-
-YOLOv4 also makes use of methods known as "bag of freebies," which are techniques that improve the accuracy of the model during training without increasing the cost of inference. Data augmentation is a common bag of freebies technique used in object detection, which increases the variability of the input images to improve the robustness of the model. Some examples of data augmentation include photometric distortions (adjusting the brightness, contrast, hue, saturation, and noise of an image) and geometric distortions (adding random scaling, cropping, flipping, and rotating). These techniques help the model to generalize better to different types of images.
-
-## Features and Performance
-
-YOLOv4 is designed for optimal speed and accuracy in object detection. The architecture of YOLOv4 includes CSPDarknet53 as the backbone, PANet as the neck, and YOLOv3 as the detection head. This design allows YOLOv4 to perform object detection at an impressive speed, making it suitable for real-time applications. YOLOv4 also excels in accuracy, achieving state-of-the-art results in object detection benchmarks.
-
-## Usage Examples
-
-As of the time of writing, Ultralytics does not currently support YOLOv4 models. Therefore, any users interested in using YOLOv4 will need to refer directly to the YOLOv4 GitHub repository for installation and usage instructions.
-
-Here is a brief overview of the typical steps you might take to use YOLOv4:
-
-1. Visit the YOLOv4 GitHub repository: [https://github.com/AlexeyAB/darknet](https://github.com/AlexeyAB/darknet).
-
-2. Follow the instructions provided in the README file for installation. This typically involves cloning the repository, installing necessary dependencies, and setting up any necessary environment variables.
-
-3. Once installation is complete, you can train and use the model as per the usage instructions provided in the repository. This usually involves preparing your dataset, configuring the model parameters, training the model, and then using the trained model to perform object detection.
-
-Please note that the specific steps may vary depending on your specific use case and the current state of the YOLOv4 repository. Therefore, it is strongly recommended to refer directly to the instructions provided in the YOLOv4 GitHub repository.
-
-We regret any inconvenience this may cause and will strive to update this document with usage examples for Ultralytics once support for YOLOv4 is implemented.
-
-## Conclusion
-
-YOLOv4 is a powerful and efficient object detection model that strikes a balance between speed and accuracy. Its use of unique features and bag of freebies techniques during training allows it to perform excellently in real-time object detection tasks. YOLOv4 can be trained and used by anyone with a conventional GPU, making it accessible and practical for a wide range of applications.
-
-## Citations and Acknowledgements
-
-We would like to acknowledge the YOLOv4 authors for their significant contributions in the field of real-time object detection:
-
-!!! Quote ""
-
- === "BibTeX"
-
- ```bibtex
- @misc{bochkovskiy2020yolov4,
- title={YOLOv4: Optimal Speed and Accuracy of Object Detection},
- author={Alexey Bochkovskiy and Chien-Yao Wang and Hong-Yuan Mark Liao},
- year={2020},
- eprint={2004.10934},
- archivePrefix={arXiv},
- primaryClass={cs.CV}
- }
- ```
-
-The original YOLOv4 paper can be found on [arXiv](https://arxiv.org/abs/2004.10934). The authors have made their work publicly available, and the codebase can be accessed on [GitHub](https://github.com/AlexeyAB/darknet). We appreciate their efforts in advancing the field and making their work accessible to the broader community.
diff --git a/ultralytics-main/docs/en/models/yolov5.md b/ultralytics-main/docs/en/models/yolov5.md
deleted file mode 100644
index af43d32..0000000
--- a/ultralytics-main/docs/en/models/yolov5.md
+++ /dev/null
@@ -1,114 +0,0 @@
----
-comments: true
-description: Discover YOLOv5u, a boosted version of the YOLOv5 model featuring an improved accuracy-speed tradeoff and numerous pre-trained models for various object detection tasks.
-keywords: YOLOv5u, object detection, pre-trained models, Ultralytics, Inference, Validation, YOLOv5, YOLOv8, anchor-free, objectness-free, real-time applications, machine learning
----
-
-# YOLOv5
-
-## Overview
-
-YOLOv5u represents an advancement in object detection methodologies. Originating from the foundational architecture of the [YOLOv5](https://github.com/ultralytics/yolov5) model developed by Ultralytics, YOLOv5u integrates the anchor-free, objectness-free split head, a feature previously introduced in the [YOLOv8](yolov8.md) models. This adaptation refines the model's architecture, leading to an improved accuracy-speed tradeoff in object detection tasks. Given the empirical results and its derived features, YOLOv5u provides an efficient alternative for those seeking robust solutions in both research and practical applications.
-
-![Ultralytics YOLOv5](https://raw.githubusercontent.com/ultralytics/assets/main/yolov5/v70/splash.png)
-
-## Key Features
-
-- **Anchor-free Split Ultralytics Head:** Traditional object detection models rely on predefined anchor boxes to predict object locations. However, YOLOv5u modernizes this approach. By adopting an anchor-free split Ultralytics head, it ensures a more flexible and adaptive detection mechanism, consequently enhancing the performance in diverse scenarios.
-
-- **Optimized Accuracy-Speed Tradeoff:** Speed and accuracy often pull in opposite directions. But YOLOv5u challenges this tradeoff. It offers a calibrated balance, ensuring real-time detections without compromising on accuracy. This feature is particularly invaluable for applications that demand swift responses, such as autonomous vehicles, robotics, and real-time video analytics.
-
-- **Variety of Pre-trained Models:** Understanding that different tasks require different toolsets, YOLOv5u provides a plethora of pre-trained models. Whether you're focusing on Inference, Validation, or Training, there's a tailor-made model awaiting you. This variety ensures you're not just using a one-size-fits-all solution, but a model specifically fine-tuned for your unique challenge.
-
-## Supported Tasks and Modes
-
-The YOLOv5u models, with various pre-trained weights, excel in [Object Detection](../tasks/detect.md) tasks. They support a comprehensive range of modes, making them suitable for diverse applications, from development to deployment.
-
-| Model Type | Pre-trained Weights | Task | Inference | Validation | Training | Export |
-|------------|-----------------------------------------------------------------------------------------------------------------------------|----------------------------------------|-----------|------------|----------|--------|
-| YOLOv5u | `yolov5nu`, `yolov5su`, `yolov5mu`, `yolov5lu`, `yolov5xu`, `yolov5n6u`, `yolov5s6u`, `yolov5m6u`, `yolov5l6u`, `yolov5x6u` | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ✅ | ✅ |
-
-This table provides a detailed overview of the YOLOv5u model variants, highlighting their applicability in object detection tasks and support for various operational modes such as [Inference](../modes/predict.md), [Validation](../modes/val.md), [Training](../modes/train.md), and [Export](../modes/export.md). This comprehensive support ensures that users can fully leverage the capabilities of YOLOv5u models in a wide range of object detection scenarios.
-
-## Performance Metrics
-
-!!! Performance
-
- === "Detection"
-
- See [Detection Docs](https://docs.ultralytics.com/tasks/detect/) for usage examples with these models trained on [COCO](https://docs.ultralytics.com/datasets/detect/coco/), which include 80 pre-trained classes.
-
- | Model | YAML | size (pixels) | mAPval 50-95 | Speed CPU ONNX (ms) | Speed A100 TensorRT (ms) | params (M) | FLOPs (B) |
- |---------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|-----------------------|----------------------|--------------------------------|-------------------------------------|--------------------|-------------------|
- | [yolov5nu.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov5nu.pt) | [yolov5n.yaml](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/models/v5/yolov5.yaml) | 640 | 34.3 | 73.6 | 1.06 | 2.6 | 7.7 |
- | [yolov5su.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov5su.pt) | [yolov5s.yaml](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/models/v5/yolov5.yaml) | 640 | 43.0 | 120.7 | 1.27 | 9.1 | 24.0 |
- | [yolov5mu.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov5mu.pt) | [yolov5m.yaml](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/models/v5/yolov5.yaml) | 640 | 49.0 | 233.9 | 1.86 | 25.1 | 64.2 |
- | [yolov5lu.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov5lu.pt) | [yolov5l.yaml](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/models/v5/yolov5.yaml) | 640 | 52.2 | 408.4 | 2.50 | 53.2 | 135.0 |
- | [yolov5xu.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov5xu.pt) | [yolov5x.yaml](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/models/v5/yolov5.yaml) | 640 | 53.2 | 763.2 | 3.81 | 97.2 | 246.4 |
- | | | | | | | | |
- | [yolov5n6u.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov5n6u.pt) | [yolov5n6.yaml](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/models/v5/yolov5-p6.yaml) | 1280 | 42.1 | 211.0 | 1.83 | 4.3 | 7.8 |
- | [yolov5s6u.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov5s6u.pt) | [yolov5s6.yaml](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/models/v5/yolov5-p6.yaml) | 1280 | 48.6 | 422.6 | 2.34 | 15.3 | 24.6 |
- | [yolov5m6u.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov5m6u.pt) | [yolov5m6.yaml](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/models/v5/yolov5-p6.yaml) | 1280 | 53.6 | 810.9 | 4.36 | 41.2 | 65.7 |
- | [yolov5l6u.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov5l6u.pt) | [yolov5l6.yaml](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/models/v5/yolov5-p6.yaml) | 1280 | 55.7 | 1470.9 | 5.47 | 86.1 | 137.4 |
- | [yolov5x6u.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov5x6u.pt) | [yolov5x6.yaml](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/models/v5/yolov5-p6.yaml) | 1280 | 56.8 | 2436.5 | 8.98 | 155.4 | 250.7 |
-
-## Usage Examples
-
-This example provides simple YOLOv5 training and inference examples. For full documentation on these and other [modes](../modes/index.md) see the [Predict](../modes/predict.md), [Train](../modes/train.md), [Val](../modes/val.md) and [Export](../modes/export.md) docs pages.
-
-!!! Example
-
- === "Python"
-
- PyTorch pretrained `*.pt` models as well as configuration `*.yaml` files can be passed to the `YOLO()` class to create a model instance in python:
-
- ```python
- from ultralytics import YOLO
-
- # Load a COCO-pretrained YOLOv5n model
- model = YOLO('yolov5n.pt')
-
- # Display model information (optional)
- model.info()
-
- # Train the model on the COCO8 example dataset for 100 epochs
- results = model.train(data='coco8.yaml', epochs=100, imgsz=640)
-
- # Run inference with the YOLOv5n model on the 'bus.jpg' image
- results = model('path/to/bus.jpg')
- ```
-
- === "CLI"
-
- CLI commands are available to directly run the models:
-
- ```bash
- # Load a COCO-pretrained YOLOv5n model and train it on the COCO8 example dataset for 100 epochs
- yolo train model=yolov5n.pt data=coco8.yaml epochs=100 imgsz=640
-
- # Load a COCO-pretrained YOLOv5n model and run inference on the 'bus.jpg' image
- yolo predict model=yolov5n.pt source=path/to/bus.jpg
- ```
-
-## Citations and Acknowledgements
-
-If you use YOLOv5 or YOLOv5u in your research, please cite the Ultralytics YOLOv5 repository as follows:
-
-!!! Quote ""
-
- === "BibTeX"
-
- ```bibtex
- @software{yolov5,
- title = {Ultralytics YOLOv5},
- author = {Glenn Jocher},
- year = {2020},
- version = {7.0},
- license = {AGPL-3.0},
- url = {https://github.com/ultralytics/yolov5},
- doi = {10.5281/zenodo.3908559},
- orcid = {0000-0001-5950-6979}
- }
- ```
-
-Please note that YOLOv5 models are provided under [AGPL-3.0](https://github.com/ultralytics/ultralytics/blob/main/LICENSE) and [Enterprise](https://ultralytics.com/license) licenses.
diff --git a/ultralytics-main/docs/en/models/yolov6.md b/ultralytics-main/docs/en/models/yolov6.md
deleted file mode 100644
index 3607917..0000000
--- a/ultralytics-main/docs/en/models/yolov6.md
+++ /dev/null
@@ -1,106 +0,0 @@
----
-comments: true
-description: Explore Meituan YOLOv6, a state-of-the-art object detection model striking a balance between speed and accuracy. Dive into features, pre-trained models, and Python usage.
-keywords: Meituan YOLOv6, object detection, Ultralytics, YOLOv6 docs, Bi-directional Concatenation, Anchor-Aided Training, pretrained models, real-time applications
----
-
-# Meituan YOLOv6
-
-## Overview
-
-[Meituan](https://about.meituan.com/) YOLOv6 is a cutting-edge object detector that offers remarkable balance between speed and accuracy, making it a popular choice for real-time applications. This model introduces several notable enhancements on its architecture and training scheme, including the implementation of a Bi-directional Concatenation (BiC) module, an anchor-aided training (AAT) strategy, and an improved backbone and neck design for state-of-the-art accuracy on the COCO dataset.
-
-![Meituan YOLOv6](https://user-images.githubusercontent.com/26833433/240750495-4da954ce-8b3b-41c4-8afd-ddb74361d3c2.png)
-![Model example image](https://user-images.githubusercontent.com/26833433/240750557-3e9ec4f0-0598-49a8-83ea-f33c91eb6d68.png) **Overview of YOLOv6.** Model architecture diagram showing the redesigned network components and training strategies that have led to significant performance improvements. (a) The neck of YOLOv6 (N and S are shown). Note for M/L, RepBlocks is replaced with CSPStackRep. (b) The structure of a BiC module. (c) A SimCSPSPPF block. ([source](https://arxiv.org/pdf/2301.05586.pdf)).
-
-### Key Features
-
-- **Bidirectional Concatenation (BiC) Module:** YOLOv6 introduces a BiC module in the neck of the detector, enhancing localization signals and delivering performance gains with negligible speed degradation.
-- **Anchor-Aided Training (AAT) Strategy:** This model proposes AAT to enjoy the benefits of both anchor-based and anchor-free paradigms without compromising inference efficiency.
-- **Enhanced Backbone and Neck Design:** By deepening YOLOv6 to include another stage in the backbone and neck, this model achieves state-of-the-art performance on the COCO dataset at high-resolution input.
-- **Self-Distillation Strategy:** A new self-distillation strategy is implemented to boost the performance of smaller models of YOLOv6, enhancing the auxiliary regression branch during training and removing it at inference to avoid a marked speed decline.
-
-## Performance Metrics
-
-YOLOv6 provides various pre-trained models with different scales:
-
-- YOLOv6-N: 37.5% AP on COCO val2017 at 1187 FPS with NVIDIA Tesla T4 GPU.
-- YOLOv6-S: 45.0% AP at 484 FPS.
-- YOLOv6-M: 50.0% AP at 226 FPS.
-- YOLOv6-L: 52.8% AP at 116 FPS.
-- YOLOv6-L6: State-of-the-art accuracy in real-time.
-
-YOLOv6 also provides quantized models for different precisions and models optimized for mobile platforms.
-
-## Usage Examples
-
-This example provides simple YOLOv6 training and inference examples. For full documentation on these and other [modes](../modes/index.md) see the [Predict](../modes/predict.md), [Train](../modes/train.md), [Val](../modes/val.md) and [Export](../modes/export.md) docs pages.
-
-!!! Example
-
- === "Python"
-
- PyTorch pretrained `*.pt` models as well as configuration `*.yaml` files can be passed to the `YOLO()` class to create a model instance in python:
-
- ```python
- from ultralytics import YOLO
-
- # Build a YOLOv6n model from scratch
- model = YOLO('yolov6n.yaml')
-
- # Display model information (optional)
- model.info()
-
- # Train the model on the COCO8 example dataset for 100 epochs
- results = model.train(data='coco8.yaml', epochs=100, imgsz=640)
-
- # Run inference with the YOLOv6n model on the 'bus.jpg' image
- results = model('path/to/bus.jpg')
- ```
-
- === "CLI"
-
- CLI commands are available to directly run the models:
-
- ```bash
- # Build a YOLOv6n model from scratch and train it on the COCO8 example dataset for 100 epochs
- yolo train model=yolov6n.yaml data=coco8.yaml epochs=100 imgsz=640
-
- # Build a YOLOv6n model from scratch and run inference on the 'bus.jpg' image
- yolo predict model=yolov6n.yaml source=path/to/bus.jpg
- ```
-
-## Supported Tasks and Modes
-
-The YOLOv6 series offers a range of models, each optimized for high-performance [Object Detection](../tasks/detect.md). These models cater to varying computational needs and accuracy requirements, making them versatile for a wide array of applications.
-
-| Model Type | Pre-trained Weights | Tasks Supported | Inference | Validation | Training | Export |
-|------------|---------------------|----------------------------------------|-----------|------------|----------|--------|
-| YOLOv6-N | `yolov6-n.pt` | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ✅ | ✅ |
-| YOLOv6-S | `yolov6-s.pt` | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ✅ | ✅ |
-| YOLOv6-M | `yolov6-m.pt` | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ✅ | ✅ |
-| YOLOv6-L | `yolov6-l.pt` | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ✅ | ✅ |
-| YOLOv6-L6 | `yolov6-l6.pt` | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ✅ | ✅ |
-
-This table provides a detailed overview of the YOLOv6 model variants, highlighting their capabilities in object detection tasks and their compatibility with various operational modes such as [Inference](../modes/predict.md), [Validation](../modes/val.md), [Training](../modes/train.md), and [Export](../modes/export.md). This comprehensive support ensures that users can fully leverage the capabilities of YOLOv6 models in a broad range of object detection scenarios.
-
-## Citations and Acknowledgements
-
-We would like to acknowledge the authors for their significant contributions in the field of real-time object detection:
-
-!!! Quote ""
-
- === "BibTeX"
-
- ```bibtex
- @misc{li2023yolov6,
- title={YOLOv6 v3.0: A Full-Scale Reloading},
- author={Chuyi Li and Lulu Li and Yifei Geng and Hongliang Jiang and Meng Cheng and Bo Zhang and Zaidan Ke and Xiaoming Xu and Xiangxiang Chu},
- year={2023},
- eprint={2301.05586},
- archivePrefix={arXiv},
- primaryClass={cs.CV}
- }
- ```
-
-The original YOLOv6 paper can be found on [arXiv](https://arxiv.org/abs/2301.05586). The authors have made their work publicly available, and the codebase can be accessed on [GitHub](https://github.com/meituan/YOLOv6). We appreciate their efforts in advancing the field and making their work accessible to the broader community.
diff --git a/ultralytics-main/docs/en/models/yolov7.md b/ultralytics-main/docs/en/models/yolov7.md
deleted file mode 100644
index f3d99d5..0000000
--- a/ultralytics-main/docs/en/models/yolov7.md
+++ /dev/null
@@ -1,65 +0,0 @@
----
-comments: true
-description: Explore the YOLOv7, a real-time object detector. Understand its superior speed, impressive accuracy, and unique trainable bag-of-freebies optimization focus.
-keywords: YOLOv7, real-time object detector, state-of-the-art, Ultralytics, MS COCO dataset, model re-parameterization, dynamic label assignment, extended scaling, compound scaling
----
-
-# YOLOv7: Trainable Bag-of-Freebies
-
-YOLOv7 is a state-of-the-art real-time object detector that surpasses all known object detectors in both speed and accuracy in the range from 5 FPS to 160 FPS. It has the highest accuracy (56.8% AP) among all known real-time object detectors with 30 FPS or higher on GPU V100. Moreover, YOLOv7 outperforms other object detectors such as YOLOR, YOLOX, Scaled-YOLOv4, YOLOv5, and many others in speed and accuracy. The model is trained on the MS COCO dataset from scratch without using any other datasets or pre-trained weights. Source code for YOLOv7 is available on GitHub.
-
-![YOLOv7 comparison with SOTA object detectors](https://github.com/ultralytics/ultralytics/assets/26833433/5e1e0420-8122-4c79-b8d0-2860aa79af92)
-**Comparison of state-of-the-art object detectors.** From the results in Table 2 we know that the proposed method has the best speed-accuracy trade-off comprehensively. If we compare YOLOv7-tiny-SiLU with YOLOv5-N (r6.1), our method is 127 fps faster and 10.7% more accurate on AP. In addition, YOLOv7 has 51.4% AP at frame rate of 161 fps, while PPYOLOE-L with the same AP has only 78 fps frame rate. In terms of parameter usage, YOLOv7 is 41% less than PPYOLOE-L. If we compare YOLOv7-X with 114 fps inference speed to YOLOv5-L (r6.1) with 99 fps inference speed, YOLOv7-X can improve AP by 3.9%. If YOLOv7-X is compared with YOLOv5-X (r6.1) of similar scale, the inference speed of YOLOv7-X is 31 fps faster. In addition, in terms the amount of parameters and computation, YOLOv7-X reduces 22% of parameters and 8% of computation compared to YOLOv5-X (r6.1), but improves AP by 2.2% ([Source](https://arxiv.org/pdf/2207.02696.pdf)).
-
-## Overview
-
-Real-time object detection is an important component in many computer vision systems, including multi-object tracking, autonomous driving, robotics, and medical image analysis. In recent years, real-time object detection development has focused on designing efficient architectures and improving the inference speed of various CPUs, GPUs, and neural processing units (NPUs). YOLOv7 supports both mobile GPU and GPU devices, from the edge to the cloud.
-
-Unlike traditional real-time object detectors that focus on architecture optimization, YOLOv7 introduces a focus on the optimization of the training process. This includes modules and optimization methods designed to improve the accuracy of object detection without increasing the inference cost, a concept known as the "trainable bag-of-freebies".
-
-## Key Features
-
-YOLOv7 introduces several key features:
-
-1. **Model Re-parameterization**: YOLOv7 proposes a planned re-parameterized model, which is a strategy applicable to layers in different networks with the concept of gradient propagation path.
-
-2. **Dynamic Label Assignment**: The training of the model with multiple output layers presents a new issue: "How to assign dynamic targets for the outputs of different branches?" To solve this problem, YOLOv7 introduces a new label assignment method called coarse-to-fine lead guided label assignment.
-
-3. **Extended and Compound Scaling**: YOLOv7 proposes "extend" and "compound scaling" methods for the real-time object detector that can effectively utilize parameters and computation.
-
-4. **Efficiency**: The method proposed by YOLOv7 can effectively reduce about 40% parameters and 50% computation of state-of-the-art real-time object detector, and has faster inference speed and higher detection accuracy.
-
-## Usage Examples
-
-As of the time of writing, Ultralytics does not currently support YOLOv7 models. Therefore, any users interested in using YOLOv7 will need to refer directly to the YOLOv7 GitHub repository for installation and usage instructions.
-
-Here is a brief overview of the typical steps you might take to use YOLOv7:
-
-1. Visit the YOLOv7 GitHub repository: [https://github.com/WongKinYiu/yolov7](https://github.com/WongKinYiu/yolov7).
-
-2. Follow the instructions provided in the README file for installation. This typically involves cloning the repository, installing necessary dependencies, and setting up any necessary environment variables.
-
-3. Once installation is complete, you can train and use the model as per the usage instructions provided in the repository. This usually involves preparing your dataset, configuring the model parameters, training the model, and then using the trained model to perform object detection.
-
-Please note that the specific steps may vary depending on your specific use case and the current state of the YOLOv7 repository. Therefore, it is strongly recommended to refer directly to the instructions provided in the YOLOv7 GitHub repository.
-
-We regret any inconvenience this may cause and will strive to update this document with usage examples for Ultralytics once support for YOLOv7 is implemented.
-
-## Citations and Acknowledgements
-
-We would like to acknowledge the YOLOv7 authors for their significant contributions in the field of real-time object detection:
-
-!!! Quote ""
-
- === "BibTeX"
-
- ```bibtex
- @article{wang2022yolov7,
- title={{YOLOv7}: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors},
- author={Wang, Chien-Yao and Bochkovskiy, Alexey and Liao, Hong-Yuan Mark},
- journal={arXiv preprint arXiv:2207.02696},
- year={2022}
- }
- ```
-
-The original YOLOv7 paper can be found on [arXiv](https://arxiv.org/pdf/2207.02696.pdf). The authors have made their work publicly available, and the codebase can be accessed on [GitHub](https://github.com/WongKinYiu/yolov7). We appreciate their efforts in advancing the field and making their work accessible to the broader community.
diff --git a/ultralytics-main/docs/en/models/yolov8.md b/ultralytics-main/docs/en/models/yolov8.md
deleted file mode 100644
index e793677..0000000
--- a/ultralytics-main/docs/en/models/yolov8.md
+++ /dev/null
@@ -1,186 +0,0 @@
----
-comments: true
-description: Explore the thrilling features of YOLOv8, the latest version of our real-time object detector! Learn how advanced architectures, pre-trained models and optimal balance between accuracy & speed make YOLOv8 the perfect choice for your object detection tasks.
-keywords: YOLOv8, Ultralytics, real-time object detector, pre-trained models, documentation, object detection, YOLO series, advanced architectures, accuracy, speed
----
-
-# YOLOv8
-
-## Overview
-
-YOLOv8 is the latest iteration in the YOLO series of real-time object detectors, offering cutting-edge performance in terms of accuracy and speed. Building upon the advancements of previous YOLO versions, YOLOv8 introduces new features and optimizations that make it an ideal choice for various object detection tasks in a wide range of applications.
-
-![Ultralytics YOLOv8](https://raw.githubusercontent.com/ultralytics/assets/main/yolov8/yolo-comparison-plots.png)
-
-
-
-
-
- Watch: Ultralytics YOLOv8 Model Overview
-
-
-## Key Features
-
-- **Advanced Backbone and Neck Architectures:** YOLOv8 employs state-of-the-art backbone and neck architectures, resulting in improved feature extraction and object detection performance.
-- **Anchor-free Split Ultralytics Head:** YOLOv8 adopts an anchor-free split Ultralytics head, which contributes to better accuracy and a more efficient detection process compared to anchor-based approaches.
-- **Optimized Accuracy-Speed Tradeoff:** With a focus on maintaining an optimal balance between accuracy and speed, YOLOv8 is suitable for real-time object detection tasks in diverse application areas.
-- **Variety of Pre-trained Models:** YOLOv8 offers a range of pre-trained models to cater to various tasks and performance requirements, making it easier to find the right model for your specific use case.
-
-## Supported Tasks and Modes
-
-The YOLOv8 series offers a diverse range of models, each specialized for specific tasks in computer vision. These models are designed to cater to various requirements, from object detection to more complex tasks like instance segmentation, pose/keypoints detection, oriented object detection, and classification.
-
-Each variant of the YOLOv8 series is optimized for its respective task, ensuring high performance and accuracy. Additionally, these models are compatible with various operational modes including [Inference](../modes/predict.md), [Validation](../modes/val.md), [Training](../modes/train.md), and [Export](../modes/export.md), facilitating their use in different stages of deployment and development.
-
-| Model | Filenames | Task | Inference | Validation | Training | Export |
-|-------------|----------------------------------------------------------------------------------------------------------------|----------------------------------------------|-----------|------------|----------|--------|
-| YOLOv8 | `yolov8n.pt` `yolov8s.pt` `yolov8m.pt` `yolov8l.pt` `yolov8x.pt` | [Detection](../tasks/detect.md) | ✅ | ✅ | ✅ | ✅ |
-| YOLOv8-seg | `yolov8n-seg.pt` `yolov8s-seg.pt` `yolov8m-seg.pt` `yolov8l-seg.pt` `yolov8x-seg.pt` | [Instance Segmentation](../tasks/segment.md) | ✅ | ✅ | ✅ | ✅ |
-| YOLOv8-pose | `yolov8n-pose.pt` `yolov8s-pose.pt` `yolov8m-pose.pt` `yolov8l-pose.pt` `yolov8x-pose.pt` `yolov8x-pose-p6.pt` | [Pose/Keypoints](../tasks/pose.md) | ✅ | ✅ | ✅ | ✅ |
-| YOLOv8-obb | `yolov8n-obb.pt` `yolov8s-obb.pt` `yolov8m-obb.pt` `yolov8l-obb.pt` `yolov8x-obb.pt` | [Oriented Detection](../tasks/obb.md) | ✅ | ✅ | ✅ | ✅ |
-| YOLOv8-cls | `yolov8n-cls.pt` `yolov8s-cls.pt` `yolov8m-cls.pt` `yolov8l-cls.pt` `yolov8x-cls.pt` | [Classification](../tasks/classify.md) | ✅ | ✅ | ✅ | ✅ |
-
-This table provides an overview of the YOLOv8 model variants, highlighting their applicability in specific tasks and their compatibility with various operational modes such as Inference, Validation, Training, and Export. It showcases the versatility and robustness of the YOLOv8 series, making them suitable for a variety of applications in computer vision.
-
-## Performance Metrics
-
-!!! Performance
-
- === "Detection (COCO)"
-
- See [Detection Docs](https://docs.ultralytics.com/tasks/detect/) for usage examples with these models trained on [COCO](https://docs.ultralytics.com/datasets/detect/coco/), which include 80 pre-trained classes.
-
- | Model | size (pixels) | mAPval 50-95 | Speed CPU ONNX (ms) | Speed A100 TensorRT (ms) | params (M) | FLOPs (B) |
- | ------------------------------------------------------------------------------------ | --------------------- | -------------------- | ------------------------------ | ----------------------------------- | ------------------ | ----------------- |
- | [YOLOv8n](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n.pt) | 640 | 37.3 | 80.4 | 0.99 | 3.2 | 8.7 |
- | [YOLOv8s](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8s.pt) | 640 | 44.9 | 128.4 | 1.20 | 11.2 | 28.6 |
- | [YOLOv8m](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8m.pt) | 640 | 50.2 | 234.7 | 1.83 | 25.9 | 78.9 |
- | [YOLOv8l](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8l.pt) | 640 | 52.9 | 375.2 | 2.39 | 43.7 | 165.2 |
- | [YOLOv8x](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8x.pt) | 640 | 53.9 | 479.1 | 3.53 | 68.2 | 257.8 |
-
- === "Detection (Open Images V7)"
-
- See [Detection Docs](https://docs.ultralytics.com/tasks/detect/) for usage examples with these models trained on [Open Image V7](https://docs.ultralytics.com/datasets/detect/open-images-v7/), which include 600 pre-trained classes.
-
- | Model | size (pixels) | mAPval 50-95 | Speed CPU ONNX (ms) | Speed A100 TensorRT (ms) | params (M) | FLOPs (B) |
- | ----------------------------------------------------------------------------------------- | --------------------- | -------------------- | ------------------------------ | ----------------------------------- | ------------------ | ----------------- |
- | [YOLOv8n](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n-oiv7.pt) | 640 | 18.4 | 142.4 | 1.21 | 3.5 | 10.5 |
- | [YOLOv8s](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8s-oiv7.pt) | 640 | 27.7 | 183.1 | 1.40 | 11.4 | 29.7 |
- | [YOLOv8m](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8m-oiv7.pt) | 640 | 33.6 | 408.5 | 2.26 | 26.2 | 80.6 |
- | [YOLOv8l](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8l-oiv7.pt) | 640 | 34.9 | 596.9 | 2.43 | 44.1 | 167.4 |
- | [YOLOv8x](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8x-oiv7.pt) | 640 | 36.3 | 860.6 | 3.56 | 68.7 | 260.6 |
-
- === "Segmentation (COCO)"
-
- See [Segmentation Docs](https://docs.ultralytics.com/tasks/segment/) for usage examples with these models trained on [COCO](https://docs.ultralytics.com/datasets/segment/coco/), which include 80 pre-trained classes.
-
- | Model | size (pixels) | mAPbox 50-95 | mAPmask 50-95 | Speed CPU ONNX (ms) | Speed A100 TensorRT (ms) | params (M) | FLOPs (B) |
- | -------------------------------------------------------------------------------------------- | --------------------- | -------------------- | --------------------- | ------------------------------ | ----------------------------------- | ------------------ | ----------------- |
- | [YOLOv8n-seg](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n-seg.pt) | 640 | 36.7 | 30.5 | 96.1 | 1.21 | 3.4 | 12.6 |
- | [YOLOv8s-seg](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8s-seg.pt) | 640 | 44.6 | 36.8 | 155.7 | 1.47 | 11.8 | 42.6 |
- | [YOLOv8m-seg](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8m-seg.pt) | 640 | 49.9 | 40.8 | 317.0 | 2.18 | 27.3 | 110.2 |
- | [YOLOv8l-seg](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8l-seg.pt) | 640 | 52.3 | 42.6 | 572.4 | 2.79 | 46.0 | 220.5 |
- | [YOLOv8x-seg](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8x-seg.pt) | 640 | 53.4 | 43.4 | 712.1 | 4.02 | 71.8 | 344.1 |
-
- === "Classification (ImageNet)"
-
- See [Classification Docs](https://docs.ultralytics.com/tasks/classify/) for usage examples with these models trained on [ImageNet](https://docs.ultralytics.com/datasets/classify/imagenet/), which include 1000 pre-trained classes.
-
- | Model | size (pixels) | acc top1 | acc top5 | Speed CPU ONNX (ms) | Speed A100 TensorRT (ms) | params (M) | FLOPs (B) at 640 |
- | -------------------------------------------------------------------------------------------- | --------------------- | ---------------- | ---------------- | ------------------------------ | ----------------------------------- | ------------------ | ------------------------ |
- | [YOLOv8n-cls](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n-cls.pt) | 224 | 69.0 | 88.3 | 12.9 | 0.31 | 2.7 | 4.3 |
- | [YOLOv8s-cls](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8s-cls.pt) | 224 | 73.8 | 91.7 | 23.4 | 0.35 | 6.4 | 13.5 |
- | [YOLOv8m-cls](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8m-cls.pt) | 224 | 76.8 | 93.5 | 85.4 | 0.62 | 17.0 | 42.7 |
- | [YOLOv8l-cls](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8l-cls.pt) | 224 | 76.8 | 93.5 | 163.0 | 0.87 | 37.5 | 99.7 |
- | [YOLOv8x-cls](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8x-cls.pt) | 224 | 79.0 | 94.6 | 232.0 | 1.01 | 57.4 | 154.8 |
-
- === "Pose (COCO)"
-
- See [Pose Estimation Docs](https://docs.ultralytics.com/tasks/pose/) for usage examples with these models trained on [COCO](https://docs.ultralytics.com/datasets/pose/coco/), which include 1 pre-trained class, 'person'.
-
- | Model | size (pixels) | mAPpose 50-95 | mAPpose 50 | Speed CPU ONNX (ms) | Speed A100 TensorRT (ms) | params (M) | FLOPs (B) |
- | ---------------------------------------------------------------------------------------------------- | --------------------- | --------------------- | ------------------ | ------------------------------ | ----------------------------------- | ------------------ | ----------------- |
- | [YOLOv8n-pose](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n-pose.pt) | 640 | 50.4 | 80.1 | 131.8 | 1.18 | 3.3 | 9.2 |
- | [YOLOv8s-pose](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8s-pose.pt) | 640 | 60.0 | 86.2 | 233.2 | 1.42 | 11.6 | 30.2 |
- | [YOLOv8m-pose](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8m-pose.pt) | 640 | 65.0 | 88.8 | 456.3 | 2.00 | 26.4 | 81.0 |
- | [YOLOv8l-pose](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8l-pose.pt) | 640 | 67.6 | 90.0 | 784.5 | 2.59 | 44.4 | 168.6 |
- | [YOLOv8x-pose](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8x-pose.pt) | 640 | 69.2 | 90.2 | 1607.1 | 3.73 | 69.4 | 263.2 |
- | [YOLOv8x-pose-p6](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8x-pose-p6.pt) | 1280 | 71.6 | 91.2 | 4088.7 | 10.04 | 99.1 | 1066.4 |
-
- === "OBB (DOTAv1)"
-
- See [Oriented Detection Docs](https://docs.ultralytics.com/tasks/obb/) for usage examples with these models trained on [DOTAv1](https://docs.ultralytics.com/datasets/obb/dota-v2/#dota-v10/), which include 15 pre-trained classes.
-
- | Model | size (pixels) | mAPtest 50 | Speed CPU ONNX (ms) | Speed A100 TensorRT (ms) | params (M) | FLOPs (B) |
- |----------------------------------------------------------------------------------------------|-----------------------| -------------------- | -------------------------------- | ------------------------------------- | -------------------- | ----------------- |
- | [YOLOv8n-obb](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n-obb.pt) | 1024 | 78.0 | 204.77 | 3.57 | 3.1 | 23.3 |
- | [YOLOv8s-obb](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8s-obb.pt) | 1024 | 79.5 | 424.88 | 4.07 | 11.4 | 76.3 |
- | [YOLOv8m-obb](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8m-obb.pt) | 1024 | 80.5 | 763.48 | 7.61 | 26.4 | 208.6 |
- | [YOLOv8l-obb](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8l-obb.pt) | 1024 | 80.7 | 1278.42 | 11.83 | 44.5 | 433.8 |
- | [YOLOv8x-obb](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8x-obb.pt) | 1024 | 81.36 | 1759.10 | 13.23 | 69.5 | 676.7 |
-
-## Usage Examples
-
-This example provides simple YOLOv8 training and inference examples. For full documentation on these and other [modes](../modes/index.md) see the [Predict](../modes/predict.md), [Train](../modes/train.md), [Val](../modes/val.md) and [Export](../modes/export.md) docs pages.
-
-Note the below example is for YOLOv8 [Detect](../tasks/detect.md) models for object detection. For additional supported tasks see the [Segment](../tasks/segment.md), [Classify](../tasks/classify.md), [OBB](../tasks/obb.md) docs and [Pose](../tasks/pose.md) docs.
-
-!!! Example
-
- === "Python"
-
- PyTorch pretrained `*.pt` models as well as configuration `*.yaml` files can be passed to the `YOLO()` class to create a model instance in python:
-
- ```python
- from ultralytics import YOLO
-
- # Load a COCO-pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Display model information (optional)
- model.info()
-
- # Train the model on the COCO8 example dataset for 100 epochs
- results = model.train(data='coco8.yaml', epochs=100, imgsz=640)
-
- # Run inference with the YOLOv8n model on the 'bus.jpg' image
- results = model('path/to/bus.jpg')
- ```
-
- === "CLI"
-
- CLI commands are available to directly run the models:
-
- ```bash
- # Load a COCO-pretrained YOLOv8n model and train it on the COCO8 example dataset for 100 epochs
- yolo train model=yolov8n.pt data=coco8.yaml epochs=100 imgsz=640
-
- # Load a COCO-pretrained YOLOv8n model and run inference on the 'bus.jpg' image
- yolo predict model=yolov8n.pt source=path/to/bus.jpg
- ```
-
-## Citations and Acknowledgements
-
-If you use the YOLOv8 model or any other software from this repository in your work, please cite it using the following format:
-
-!!! Quote ""
-
- === "BibTeX"
-
- ```bibtex
- @software{yolov8_ultralytics,
- author = {Glenn Jocher and Ayush Chaurasia and Jing Qiu},
- title = {Ultralytics YOLOv8},
- version = {8.0.0},
- year = {2023},
- url = {https://github.com/ultralytics/ultralytics},
- orcid = {0000-0001-5950-6979, 0000-0002-7603-6750, 0000-0003-3783-7069},
- license = {AGPL-3.0}
- }
- ```
-
-Please note that the DOI is pending and will be added to the citation once it is available. YOLOv8 models are provided under [AGPL-3.0](https://github.com/ultralytics/ultralytics/blob/main/LICENSE) and [Enterprise](https://ultralytics.com/license) licenses.
diff --git a/ultralytics-main/docs/en/models/yolov9.md b/ultralytics-main/docs/en/models/yolov9.md
deleted file mode 100644
index 51ddfff..0000000
--- a/ultralytics-main/docs/en/models/yolov9.md
+++ /dev/null
@@ -1,152 +0,0 @@
----
-comments: true
-description: Discover YOLOv9, the latest addition to the real-time object detection arsenal, leveraging Programmable Gradient Information and GELAN architecture for unparalleled performance.
-keywords: YOLOv9, real-time object detection, Programmable Gradient Information, GELAN architecture, Ultralytics, MS COCO dataset, open-source, lightweight model, computer vision, AI
----
-
-# YOLOv9: A Leap Forward in Object Detection Technology
-
-YOLOv9 marks a significant advancement in real-time object detection, introducing groundbreaking techniques such as Programmable Gradient Information (PGI) and the Generalized Efficient Layer Aggregation Network (GELAN). This model demonstrates remarkable improvements in efficiency, accuracy, and adaptability, setting new benchmarks on the MS COCO dataset. The YOLOv9 project, while developed by a separate open-source team, builds upon the robust codebase provided by [Ultralytics](https://ultralytics.com) [YOLOv5](yolov5.md), showcasing the collaborative spirit of the AI research community.
-
-![YOLOv9 performance comparison](https://github.com/ultralytics/ultralytics/assets/26833433/9f41ef7b-6008-43eb-8ba1-0a9b89600100)
-
-## Introduction to YOLOv9
-
-In the quest for optimal real-time object detection, YOLOv9 stands out with its innovative approach to overcoming information loss challenges inherent in deep neural networks. By integrating PGI and the versatile GELAN architecture, YOLOv9 not only enhances the model's learning capacity but also ensures the retention of crucial information throughout the detection process, thereby achieving exceptional accuracy and performance.
-
-## Core Innovations of YOLOv9
-
-YOLOv9's advancements are deeply rooted in addressing the challenges posed by information loss in deep neural networks. The Information Bottleneck Principle and the innovative use of Reversible Functions are central to its design, ensuring YOLOv9 maintains high efficiency and accuracy.
-
-### Information Bottleneck Principle
-
-The Information Bottleneck Principle reveals a fundamental challenge in deep learning: as data passes through successive layers of a network, the potential for information loss increases. This phenomenon is mathematically represented as:
-
-```python
-I(X, X) >= I(X, f_theta(X)) >= I(X, g_phi(f_theta(X)))
-```
-
-where `I` denotes mutual information, and `f` and `g` represent transformation functions with parameters `theta` and `phi`, respectively. YOLOv9 counters this challenge by implementing Programmable Gradient Information (PGI), which aids in preserving essential data across the network's depth, ensuring more reliable gradient generation and, consequently, better model convergence and performance.
-
-### Reversible Functions
-
-The concept of Reversible Functions is another cornerstone of YOLOv9's design. A function is deemed reversible if it can be inverted without any loss of information, as expressed by:
-
-```python
-X = v_zeta(r_psi(X))
-```
-
-with `psi` and `zeta` as parameters for the reversible and its inverse function, respectively. This property is crucial for deep learning architectures, as it allows the network to retain a complete information flow, thereby enabling more accurate updates to the model's parameters. YOLOv9 incorporates reversible functions within its architecture to mitigate the risk of information degradation, especially in deeper layers, ensuring the preservation of critical data for object detection tasks.
-
-### Impact on Lightweight Models
-
-Addressing information loss is particularly vital for lightweight models, which are often under-parameterized and prone to losing significant information during the feedforward process. YOLOv9's architecture, through the use of PGI and reversible functions, ensures that even with a streamlined model, the essential information required for accurate object detection is retained and effectively utilized.
-
-### Programmable Gradient Information (PGI)
-
-PGI is a novel concept introduced in YOLOv9 to combat the information bottleneck problem, ensuring the preservation of essential data across deep network layers. This allows for the generation of reliable gradients, facilitating accurate model updates and improving the overall detection performance.
-
-### Generalized Efficient Layer Aggregation Network (GELAN)
-
-GELAN represents a strategic architectural advancement, enabling YOLOv9 to achieve superior parameter utilization and computational efficiency. Its design allows for flexible integration of various computational blocks, making YOLOv9 adaptable to a wide range of applications without sacrificing speed or accuracy.
-
-![YOLOv9 architecture comparison](https://github.com/ultralytics/ultralytics/assets/26833433/286a3971-677b-45e6-a90b-4b6bd565a7af)
-
-## Performance on MS COCO Dataset
-
-The performance of YOLOv9 on the [COCO dataset](../datasets/detect/coco.md) exemplifies its significant advancements in real-time object detection, setting new benchmarks across various model sizes. Table 1 presents a comprehensive comparison of state-of-the-art real-time object detectors, illustrating YOLOv9's superior efficiency and accuracy.
-
-**Table 1. Comparison of State-of-the-Art Real-Time Object Detectors**
-
-| Model | size (pixels) | APval 50-95 | APval 50 | APval 75 | params (M) | FLOPs (B) |
-|---------------------------------------------------------------------------------------|-----------------------|---------------------|------------------|------------------|--------------------|-------------------|
-| YOLOv9-S | 640 | 46.8 | 63.4 | 50.7 | 7.2 | 26.7 |
-| YOLOv9-M | 640 | 51.4 | 68.1 | 56.1 | 20.1 | 76.8 |
-| [YOLOv9-C](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov9c.pt) | 640 | 53.0 | 70.2 | 57.8 | 25.5 | 102.8 |
-| [YOLOv9-E](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov9e.pt) | 640 | 55.6 | 72.8 | 60.6 | 58.1 | 192.5 |
-
-YOLOv9's iterations, ranging from the smaller S variant to the extensive E model, demonstrate improvements not only in accuracy (AP metrics) but also in efficiency with a reduced number of parameters and computational needs (FLOPs). This table underscores YOLOv9's ability to deliver high precision while maintaining or reducing the computational overhead compared to prior versions and competing models.
-
-Comparatively, YOLOv9 exhibits remarkable gains:
-
-- **Lightweight Models**: YOLOv9-S surpasses the YOLO MS-S in parameter efficiency and computational load while achieving an improvement of 0.4∼0.6% in AP.
-- **Medium to Large Models**: YOLOv9-M and YOLOv9-E show notable advancements in balancing the trade-off between model complexity and detection performance, offering significant reductions in parameters and computations against the backdrop of improved accuracy.
-
-The YOLOv9-C model, in particular, highlights the effectiveness of the architecture's optimizations. It operates with 42% fewer parameters and 21% less computational demand than YOLOv7 AF, yet it achieves comparable accuracy, demonstrating YOLOv9's significant efficiency improvements. Furthermore, the YOLOv9-E model sets a new standard for large models, with 15% fewer parameters and 25% less computational need than [YOLOv8x](yolov8.md), alongside a substantial 1.7% improvement in AP.
-
-These results showcase YOLOv9's strategic advancements in model design, emphasizing its enhanced efficiency without compromising on the precision essential for real-time object detection tasks. The model not only pushes the boundaries of performance metrics but also emphasizes the importance of computational efficiency, making it a pivotal development in the field of computer vision.
-
-## Conclusion
-
-YOLOv9 represents a pivotal development in real-time object detection, offering significant improvements in terms of efficiency, accuracy, and adaptability. By addressing critical challenges through innovative solutions like PGI and GELAN, YOLOv9 sets a new precedent for future research and application in the field. As the AI community continues to evolve, YOLOv9 stands as a testament to the power of collaboration and innovation in driving technological progress.
-
-## Usage Examples
-
-This example provides simple YOLOv9 training and inference examples. For full documentation on these and other [modes](../modes/index.md) see the [Predict](../modes/predict.md), [Train](../modes/train.md), [Val](../modes/val.md) and [Export](../modes/export.md) docs pages.
-
-!!! Example
-
- === "Python"
-
- PyTorch pretrained `*.pt` models as well as configuration `*.yaml` files can be passed to the `YOLO()` class to create a model instance in python:
-
- ```python
- from ultralytics import YOLO
-
- # Build a YOLOv9c model from scratch
- model = YOLO('yolov9c.yaml')
-
- # Build a YOLOv9c model from pretrained weight
- model = YOLO('yolov9c.pt')
-
- # Display model information (optional)
- model.info()
-
- # Train the model on the COCO8 example dataset for 100 epochs
- results = model.train(data='coco8.yaml', epochs=100, imgsz=640)
-
- # Run inference with the YOLOv9c model on the 'bus.jpg' image
- results = model('path/to/bus.jpg')
- ```
-
- === "CLI"
-
- CLI commands are available to directly run the models:
-
- ```bash
- # Build a YOLOv9c model from scratch and train it on the COCO8 example dataset for 100 epochs
- yolo train model=yolov9c.yaml data=coco8.yaml epochs=100 imgsz=640
-
- # Build a YOLOv9c model from scratch and run inference on the 'bus.jpg' image
- yolo predict model=yolov9c.yaml source=path/to/bus.jpg
- ```
-
-## Supported Tasks and Modes
-
-The YOLOv9 series offers a range of models, each optimized for high-performance [Object Detection](../tasks/detect.md). These models cater to varying computational needs and accuracy requirements, making them versatile for a wide array of applications.
-
-| Model Type | Pre-trained Weights | Tasks Supported | Inference | Validation | Training | Export |
-|------------|-----------------------------------------------------------------------------------------|----------------------------------------|-----------|------------|----------|--------|
-| YOLOv9-C | [yolov9c.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov9c.pt) | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ✅ | ✅ |
-| YOLOv9-E | [yolov9e.pt](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov9e.pt) | [Object Detection](../tasks/detect.md) | ✅ | ✅ | ✅ | ✅ |
-
-This table provides a detailed overview of the YOLOv9 model variants, highlighting their capabilities in object detection tasks and their compatibility with various operational modes such as [Inference](../modes/predict.md), [Validation](../modes/val.md), [Training](../modes/train.md), and [Export](../modes/export.md). This comprehensive support ensures that users can fully leverage the capabilities of YOLOv9 models in a broad range of object detection scenarios.
-
-## Citations and Acknowledgements
-
-We would like to acknowledge the YOLOv9 authors for their significant contributions in the field of real-time object detection:
-
-!!! Quote ""
-
- === "BibTeX"
-
- ```bibtex
- @article{wang2024yolov9,
- title={{YOLOv9}: Learning What You Want to Learn Using Programmable Gradient Information},
- author={Wang, Chien-Yao and Liao, Hong-Yuan Mark},
- booktitle={arXiv preprint arXiv:2402.13616},
- year={2024}
- }
- ```
-
-The original YOLOv9 paper can be found on [arXiv](https://arxiv.org/pdf/2402.13616.pdf). The authors have made their work publicly available, and the codebase can be accessed on [GitHub](https://github.com/WongKinYiu/yolov9). We appreciate their efforts in advancing the field and making their work accessible to the broader community.
diff --git a/ultralytics-main/docs/en/modes/benchmark.md b/ultralytics-main/docs/en/modes/benchmark.md
deleted file mode 100644
index 7f8e457..0000000
--- a/ultralytics-main/docs/en/modes/benchmark.md
+++ /dev/null
@@ -1,106 +0,0 @@
----
-comments: true
-description: Learn how to profile speed and accuracy of YOLOv8 across various export formats; get insights on mAP50-95, accuracy_top5 metrics, and more.
-keywords: Ultralytics, YOLOv8, benchmarking, speed profiling, accuracy profiling, mAP50-95, accuracy_top5, ONNX, OpenVINO, TensorRT, YOLO export formats
----
-
-# Model Benchmarking with Ultralytics YOLO
-
-
-
-## Introduction
-
-Once your model is trained and validated, the next logical step is to evaluate its performance in various real-world scenarios. Benchmark mode in Ultralytics YOLOv8 serves this purpose by providing a robust framework for assessing the speed and accuracy of your model across a range of export formats.
-
-
-
-## Why Is Benchmarking Crucial?
-
-- **Informed Decisions:** Gain insights into the trade-offs between speed and accuracy.
-- **Resource Allocation:** Understand how different export formats perform on different hardware.
-- **Optimization:** Learn which export format offers the best performance for your specific use case.
-- **Cost Efficiency:** Make more efficient use of hardware resources based on benchmark results.
-
-### Key Metrics in Benchmark Mode
-
-- **mAP50-95:** For object detection, segmentation, and pose estimation.
-- **accuracy_top5:** For image classification.
-- **Inference Time:** Time taken for each image in milliseconds.
-
-### Supported Export Formats
-
-- **ONNX:** For optimal CPU performance
-- **TensorRT:** For maximal GPU efficiency
-- **OpenVINO:** For Intel hardware optimization
-- **CoreML, TensorFlow SavedModel, and More:** For diverse deployment needs.
-
-!!! Tip "Tip"
-
- * Export to ONNX or OpenVINO for up to 3x CPU speedup.
- * Export to TensorRT for up to 5x GPU speedup.
-
-## Usage Examples
-
-Run YOLOv8n benchmarks on all supported export formats including ONNX, TensorRT etc. See Arguments section below for a full list of export arguments.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics.utils.benchmarks import benchmark
-
- # Benchmark on GPU
- benchmark(model='yolov8n.pt', data='coco8.yaml', imgsz=640, half=False, device=0)
- ```
-
- === "CLI"
-
- ```bash
- yolo benchmark model=yolov8n.pt data='coco8.yaml' imgsz=640 half=False device=0
- ```
-
-## Arguments
-
-Arguments such as `model`, `data`, `imgsz`, `half`, `device`, and `verbose` provide users with the flexibility to fine-tune the benchmarks to their specific needs and compare the performance of different export formats with ease.
-
-| Key | Default Value | Description |
-|-----------|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------|
-| `model` | `None` | Specifies the path to the model file. Accepts both `.pt` and `.yaml` formats, e.g., `"yolov8n.pt"` for pre-trained models or configuration files. |
-| `data` | `None` | Path to a YAML file defining the dataset for benchmarking, typically including paths and settings for validation data. Example: `"coco128.yaml"`. |
-| `imgsz` | `640` | The input image size for the model. Can be a single integer for square images or a tuple `(width, height)` for non-square, e.g., `(640, 480)`. |
-| `half` | `False` | Enables FP16 (half-precision) inference, reducing memory usage and possibly increasing speed on compatible hardware. Use `half=True` to enable. |
-| `int8` | `False` | Activates INT8 quantization for further optimized performance on supported devices, especially useful for edge devices. Set `int8=True` to use. |
-| `device` | `None` | Defines the computation device(s) for benchmarking, such as `"cpu"`, `"cuda:0"`, or a list of devices like `"cuda:0,1"` for multi-GPU setups. |
-| `verbose` | `False` | Controls the level of detail in logging output. A boolean value; set `verbose=True` for detailed logs or a float for thresholding errors. |
-
-## Export Formats
-
-Benchmarks will attempt to run automatically on all possible export formats below.
-
-| Format | `format` Argument | Model | Metadata | Arguments |
-|--------------------------------------------------------------------|-------------------|---------------------------|----------|-----------------------------------------------------|
-| [PyTorch](https://pytorch.org/) | - | `yolov8n.pt` | ✅ | - |
-| [TorchScript](https://pytorch.org/docs/stable/jit.html) | `torchscript` | `yolov8n.torchscript` | ✅ | `imgsz`, `optimize` |
-| [ONNX](https://onnx.ai/) | `onnx` | `yolov8n.onnx` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `opset` |
-| [OpenVINO](../integrations/openvino.md) | `openvino` | `yolov8n_openvino_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [TensorRT](https://developer.nvidia.com/tensorrt) | `engine` | `yolov8n.engine` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `workspace` |
-| [CoreML](https://github.com/apple/coremltools) | `coreml` | `yolov8n.mlpackage` | ✅ | `imgsz`, `half`, `int8`, `nms` |
-| [TF SavedModel](https://www.tensorflow.org/guide/saved_model) | `saved_model` | `yolov8n_saved_model/` | ✅ | `imgsz`, `keras`, `int8` |
-| [TF GraphDef](https://www.tensorflow.org/api_docs/python/tf/Graph) | `pb` | `yolov8n.pb` | ❌ | `imgsz` |
-| [TF Lite](https://www.tensorflow.org/lite) | `tflite` | `yolov8n.tflite` | ✅ | `imgsz`, `half`, `int8` |
-| [TF Edge TPU](https://coral.ai/docs/edgetpu/models-intro/) | `edgetpu` | `yolov8n_edgetpu.tflite` | ✅ | `imgsz` |
-| [TF.js](https://www.tensorflow.org/js) | `tfjs` | `yolov8n_web_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [PaddlePaddle](https://github.com/PaddlePaddle) | `paddle` | `yolov8n_paddle_model/` | ✅ | `imgsz` |
-| [NCNN](https://github.com/Tencent/ncnn) | `ncnn` | `yolov8n_ncnn_model/` | ✅ | `imgsz`, `half` |
-
-See full `export` details in the [Export](https://docs.ultralytics.com/modes/export/) page.
diff --git a/ultralytics-main/docs/en/modes/export.md b/ultralytics-main/docs/en/modes/export.md
deleted file mode 100644
index 5859b18..0000000
--- a/ultralytics-main/docs/en/modes/export.md
+++ /dev/null
@@ -1,111 +0,0 @@
----
-comments: true
-description: Step-by-step guide on exporting your YOLOv8 models to various format like ONNX, TensorRT, CoreML and more for deployment. Explore now!.
-keywords: YOLO, YOLOv8, Ultralytics, Model export, ONNX, TensorRT, CoreML, TensorFlow SavedModel, OpenVINO, PyTorch, export model
----
-
-# Model Export with Ultralytics YOLO
-
-
-
-## Introduction
-
-The ultimate goal of training a model is to deploy it for real-world applications. Export mode in Ultralytics YOLOv8 offers a versatile range of options for exporting your trained model to different formats, making it deployable across various platforms and devices. This comprehensive guide aims to walk you through the nuances of model exporting, showcasing how to achieve maximum compatibility and performance.
-
-
-
-
-
- Watch: How To Export Custom Trained Ultralytics YOLOv8 Model and Run Live Inference on Webcam.
-
-
-## Why Choose YOLOv8's Export Mode?
-
-- **Versatility:** Export to multiple formats including ONNX, TensorRT, CoreML, and more.
-- **Performance:** Gain up to 5x GPU speedup with TensorRT and 3x CPU speedup with ONNX or OpenVINO.
-- **Compatibility:** Make your model universally deployable across numerous hardware and software environments.
-- **Ease of Use:** Simple CLI and Python API for quick and straightforward model exporting.
-
-### Key Features of Export Mode
-
-Here are some of the standout functionalities:
-
-- **One-Click Export:** Simple commands for exporting to different formats.
-- **Batch Export:** Export batched-inference capable models.
-- **Optimized Inference:** Exported models are optimized for quicker inference times.
-- **Tutorial Videos:** In-depth guides and tutorials for a smooth exporting experience.
-
-!!! Tip "Tip"
-
- * Export to ONNX or OpenVINO for up to 3x CPU speedup.
- * Export to TensorRT for up to 5x GPU speedup.
-
-## Usage Examples
-
-Export a YOLOv8n model to a different format like ONNX or TensorRT. See Arguments section below for a full list of export arguments.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n.pt') # load an official model
- model = YOLO('path/to/best.pt') # load a custom trained model
-
- # Export the model
- model.export(format='onnx')
- ```
-
- === "CLI"
-
- ```bash
- yolo export model=yolov8n.pt format=onnx # export official model
- yolo export model=path/to/best.pt format=onnx # export custom trained model
- ```
-
-## Arguments
-
-This table details the configurations and options available for exporting YOLO models to different formats. These settings are critical for optimizing the exported model's performance, size, and compatibility across various platforms and environments. Proper configuration ensures that the model is ready for deployment in the intended application with optimal efficiency.
-
-| Argument | Type | Default | Description |
-|-------------|------------------|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `format` | `str` | `'torchscript'` | Target format for the exported model, such as `'onnx'`, `'torchscript'`, `'tensorflow'`, or others, defining compatibility with various deployment environments. |
-| `imgsz` | `int` or `tuple` | `640` | Desired image size for the model input. Can be an integer for square images or a tuple `(height, width)` for specific dimensions. |
-| `keras` | `bool` | `False` | Enables export to Keras format for TensorFlow SavedModel, providing compatibility with TensorFlow serving and APIs. |
-| `optimize` | `bool` | `False` | Applies optimization for mobile devices when exporting to TorchScript, potentially reducing model size and improving performance. |
-| `half` | `bool` | `False` | Enables FP16 (half-precision) quantization, reducing model size and potentially speeding up inference on supported hardware. |
-| `int8` | `bool` | `False` | Activates INT8 quantization, further compressing the model and speeding up inference with minimal accuracy loss, primarily for edge devices. |
-| `dynamic` | `bool` | `False` | Allows dynamic input sizes for ONNX and TensorRT exports, enhancing flexibility in handling varying image dimensions. |
-| `simplify` | `bool` | `False` | Simplifies the model graph for ONNX exports, potentially improving performance and compatibility. |
-| `opset` | `int` | `None` | Specifies the ONNX opset version for compatibility with different ONNX parsers and runtimes. If not set, uses the latest supported version. |
-| `workspace` | `float` | `4.0` | Sets the maximum workspace size in GB for TensorRT optimizations, balancing memory usage and performance. |
-| `nms` | `bool` | `False` | Adds Non-Maximum Suppression (NMS) to the CoreML export, essential for accurate and efficient detection post-processing. |
-
-Adjusting these parameters allows for customization of the export process to fit specific requirements, such as deployment environment, hardware constraints, and performance targets. Selecting the appropriate format and settings is essential for achieving the best balance between model size, speed, and accuracy.
-
-## Export Formats
-
-Available YOLOv8 export formats are in the table below. You can export to any format using the `format` argument, i.e. `format='onnx'` or `format='engine'`.
-
-| Format | `format` Argument | Model | Metadata | Arguments |
-|--------------------------------------------------------------------|-------------------|---------------------------|----------|-----------------------------------------------------|
-| [PyTorch](https://pytorch.org/) | - | `yolov8n.pt` | ✅ | - |
-| [TorchScript](https://pytorch.org/docs/stable/jit.html) | `torchscript` | `yolov8n.torchscript` | ✅ | `imgsz`, `optimize` |
-| [ONNX](https://onnx.ai/) | `onnx` | `yolov8n.onnx` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `opset` |
-| [OpenVINO](../integrations/openvino.md) | `openvino` | `yolov8n_openvino_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [TensorRT](https://developer.nvidia.com/tensorrt) | `engine` | `yolov8n.engine` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `workspace` |
-| [CoreML](https://github.com/apple/coremltools) | `coreml` | `yolov8n.mlpackage` | ✅ | `imgsz`, `half`, `int8`, `nms` |
-| [TF SavedModel](https://www.tensorflow.org/guide/saved_model) | `saved_model` | `yolov8n_saved_model/` | ✅ | `imgsz`, `keras`, `int8` |
-| [TF GraphDef](https://www.tensorflow.org/api_docs/python/tf/Graph) | `pb` | `yolov8n.pb` | ❌ | `imgsz` |
-| [TF Lite](https://www.tensorflow.org/lite) | `tflite` | `yolov8n.tflite` | ✅ | `imgsz`, `half`, `int8` |
-| [TF Edge TPU](https://coral.ai/docs/edgetpu/models-intro/) | `edgetpu` | `yolov8n_edgetpu.tflite` | ✅ | `imgsz` |
-| [TF.js](https://www.tensorflow.org/js) | `tfjs` | `yolov8n_web_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [PaddlePaddle](https://github.com/PaddlePaddle) | `paddle` | `yolov8n_paddle_model/` | ✅ | `imgsz` |
-| [NCNN](https://github.com/Tencent/ncnn) | `ncnn` | `yolov8n_ncnn_model/` | ✅ | `imgsz`, `half` |
diff --git a/ultralytics-main/docs/en/modes/index.md b/ultralytics-main/docs/en/modes/index.md
deleted file mode 100644
index c04aa40..0000000
--- a/ultralytics-main/docs/en/modes/index.md
+++ /dev/null
@@ -1,73 +0,0 @@
----
-comments: true
-description: From training to tracking, make the most of YOLOv8 with Ultralytics. Get insights and examples for each supported mode including validation, export, and benchmarking.
-keywords: Ultralytics, YOLOv8, Machine Learning, Object Detection, Training, Validation, Prediction, Export, Tracking, Benchmarking
----
-
-# Ultralytics YOLOv8 Modes
-
-
-
-## Introduction
-
-Ultralytics YOLOv8 is not just another object detection model; it's a versatile framework designed to cover the entire lifecycle of machine learning models—from data ingestion and model training to validation, deployment, and real-world tracking. Each mode serves a specific purpose and is engineered to offer you the flexibility and efficiency required for different tasks and use-cases.
-
-
-
-### Modes at a Glance
-
-Understanding the different **modes** that Ultralytics YOLOv8 supports is critical to getting the most out of your models:
-
-- **Train** mode: Fine-tune your model on custom or preloaded datasets.
-- **Val** mode: A post-training checkpoint to validate model performance.
-- **Predict** mode: Unleash the predictive power of your model on real-world data.
-- **Export** mode: Make your model deployment-ready in various formats.
-- **Track** mode: Extend your object detection model into real-time tracking applications.
-- **Benchmark** mode: Analyze the speed and accuracy of your model in diverse deployment environments.
-
-This comprehensive guide aims to give you an overview and practical insights into each mode, helping you harness the full potential of YOLOv8.
-
-## [Train](train.md)
-
-Train mode is used for training a YOLOv8 model on a custom dataset. In this mode, the model is trained using the specified dataset and hyperparameters. The training process involves optimizing the model's parameters so that it can accurately predict the classes and locations of objects in an image.
-
-[Train Examples](train.md){ .md-button }
-
-## [Val](val.md)
-
-Val mode is used for validating a YOLOv8 model after it has been trained. In this mode, the model is evaluated on a validation set to measure its accuracy and generalization performance. This mode can be used to tune the hyperparameters of the model to improve its performance.
-
-[Val Examples](val.md){ .md-button }
-
-## [Predict](predict.md)
-
-Predict mode is used for making predictions using a trained YOLOv8 model on new images or videos. In this mode, the model is loaded from a checkpoint file, and the user can provide images or videos to perform inference. The model predicts the classes and locations of objects in the input images or videos.
-
-[Predict Examples](predict.md){ .md-button }
-
-## [Export](export.md)
-
-Export mode is used for exporting a YOLOv8 model to a format that can be used for deployment. In this mode, the model is converted to a format that can be used by other software applications or hardware devices. This mode is useful when deploying the model to production environments.
-
-[Export Examples](export.md){ .md-button }
-
-## [Track](track.md)
-
-Track mode is used for tracking objects in real-time using a YOLOv8 model. In this mode, the model is loaded from a checkpoint file, and the user can provide a live video stream to perform real-time object tracking. This mode is useful for applications such as surveillance systems or self-driving cars.
-
-[Track Examples](track.md){ .md-button }
-
-## [Benchmark](benchmark.md)
-
-Benchmark mode is used to profile the speed and accuracy of various export formats for YOLOv8. The benchmarks provide information on the size of the exported format, its `mAP50-95` metrics (for object detection, segmentation and pose) or `accuracy_top5` metrics (for classification), and the inference time in milliseconds per image across various export formats like ONNX, OpenVINO, TensorRT and others. This information can help users choose the optimal export format for their specific use case based on their requirements for speed and accuracy.
-
-[Benchmark Examples](benchmark.md){ .md-button }
diff --git a/ultralytics-main/docs/en/modes/predict.md b/ultralytics-main/docs/en/modes/predict.md
deleted file mode 100644
index d3a9d47..0000000
--- a/ultralytics-main/docs/en/modes/predict.md
+++ /dev/null
@@ -1,795 +0,0 @@
----
-comments: true
-description: Discover how to use YOLOv8 predict mode for various tasks. Learn about different inference sources like images, videos, and data formats.
-keywords: Ultralytics, YOLOv8, predict mode, inference sources, prediction tasks, streaming mode, image processing, video processing, machine learning, AI
----
-
-# Model Prediction with Ultralytics YOLO
-
-
-
-## Introduction
-
-In the world of machine learning and computer vision, the process of making sense out of visual data is called 'inference' or 'prediction'. Ultralytics YOLOv8 offers a powerful feature known as **predict mode** that is tailored for high-performance, real-time inference on a wide range of data sources.
-
-
-
-
-
- Watch: How to Extract the Outputs from Ultralytics YOLOv8 Model for Custom Projects.
-
-
-## Real-world Applications
-
-| Manufacturing | Sports | Safety |
-|:-------------------------------------------------:|:----------------------------------------------------:|:-------------------------------------------:|
-| ![Vehicle Spare Parts Detection][car spare parts] | ![Football Player Detection][football player detect] | ![People Fall Detection][human fall detect] |
-| Vehicle Spare Parts Detection | Football Player Detection | People Fall Detection |
-
-## Why Use Ultralytics YOLO for Inference?
-
-Here's why you should consider YOLOv8's predict mode for your various inference needs:
-
-- **Versatility:** Capable of making inferences on images, videos, and even live streams.
-- **Performance:** Engineered for real-time, high-speed processing without sacrificing accuracy.
-- **Ease of Use:** Intuitive Python and CLI interfaces for rapid deployment and testing.
-- **Highly Customizable:** Various settings and parameters to tune the model's inference behavior according to your specific requirements.
-
-### Key Features of Predict Mode
-
-YOLOv8's predict mode is designed to be robust and versatile, featuring:
-
-- **Multiple Data Source Compatibility:** Whether your data is in the form of individual images, a collection of images, video files, or real-time video streams, predict mode has you covered.
-- **Streaming Mode:** Use the streaming feature to generate a memory-efficient generator of `Results` objects. Enable this by setting `stream=True` in the predictor's call method.
-- **Batch Processing:** The ability to process multiple images or video frames in a single batch, further speeding up inference time.
-- **Integration Friendly:** Easily integrate with existing data pipelines and other software components, thanks to its flexible API.
-
-Ultralytics YOLO models return either a Python list of `Results` objects, or a memory-efficient Python generator of `Results` objects when `stream=True` is passed to the model during inference:
-
-!!! Example "Predict"
-
- === "Return a list with `stream=False`"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n.pt') # pretrained YOLOv8n model
-
- # Run batched inference on a list of images
- results = model(['im1.jpg', 'im2.jpg']) # return a list of Results objects
-
- # Process results list
- for result in results:
- boxes = result.boxes # Boxes object for bounding box outputs
- masks = result.masks # Masks object for segmentation masks outputs
- keypoints = result.keypoints # Keypoints object for pose outputs
- probs = result.probs # Probs object for classification outputs
- result.show() # display to screen
- result.save(filename='result.jpg') # save to disk
- ```
-
- === "Return a generator with `stream=True`"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n.pt') # pretrained YOLOv8n model
-
- # Run batched inference on a list of images
- results = model(['im1.jpg', 'im2.jpg'], stream=True) # return a generator of Results objects
-
- # Process results generator
- for result in results:
- boxes = result.boxes # Boxes object for bounding box outputs
- masks = result.masks # Masks object for segmentation masks outputs
- keypoints = result.keypoints # Keypoints object for pose outputs
- probs = result.probs # Probs object for classification outputs
- result.show() # display to screen
- result.save(filename='result.jpg') # save to disk
- ```
-
-## Inference Sources
-
-YOLOv8 can process different types of input sources for inference, as shown in the table below. The sources include static images, video streams, and various data formats. The table also indicates whether each source can be used in streaming mode with the argument `stream=True` ✅. Streaming mode is beneficial for processing videos or live streams as it creates a generator of results instead of loading all frames into memory.
-
-!!! Tip "Tip"
-
- Use `stream=True` for processing long videos or large datasets to efficiently manage memory. When `stream=False`, the results for all frames or data points are stored in memory, which can quickly add up and cause out-of-memory errors for large inputs. In contrast, `stream=True` utilizes a generator, which only keeps the results of the current frame or data point in memory, significantly reducing memory consumption and preventing out-of-memory issues.
-
-| Source | Argument | Type | Notes |
-|----------------|--------------------------------------------|-----------------|---------------------------------------------------------------------------------------------|
-| image | `'image.jpg'` | `str` or `Path` | Single image file. |
-| URL | `'https://ultralytics.com/images/bus.jpg'` | `str` | URL to an image. |
-| screenshot | `'screen'` | `str` | Capture a screenshot. |
-| PIL | `Image.open('im.jpg')` | `PIL.Image` | HWC format with RGB channels. |
-| OpenCV | `cv2.imread('im.jpg')` | `np.ndarray` | HWC format with BGR channels `uint8 (0-255)`. |
-| numpy | `np.zeros((640,1280,3))` | `np.ndarray` | HWC format with BGR channels `uint8 (0-255)`. |
-| torch | `torch.zeros(16,3,320,640)` | `torch.Tensor` | BCHW format with RGB channels `float32 (0.0-1.0)`. |
-| CSV | `'sources.csv'` | `str` or `Path` | CSV file containing paths to images, videos, or directories. |
-| video ✅ | `'video.mp4'` | `str` or `Path` | Video file in formats like MP4, AVI, etc. |
-| directory ✅ | `'path/'` | `str` or `Path` | Path to a directory containing images or videos. |
-| glob ✅ | `'path/*.jpg'` | `str` | Glob pattern to match multiple files. Use the `*` character as a wildcard. |
-| YouTube ✅ | `'https://youtu.be/LNwODJXcvt4'` | `str` | URL to a YouTube video. |
-| stream ✅ | `'rtsp://example.com/media.mp4'` | `str` | URL for streaming protocols such as RTSP, RTMP, TCP, or an IP address. |
-| multi-stream ✅ | `'list.streams'` | `str` or `Path` | `*.streams` text file with one stream URL per row, i.e. 8 streams will run at batch-size 8. |
-
-Below are code examples for using each source type:
-
-!!! Example "Prediction sources"
-
- === "image"
-
- Run inference on an image file.
- ```python
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Define path to the image file
- source = 'path/to/image.jpg'
-
- # Run inference on the source
- results = model(source) # list of Results objects
- ```
-
- === "screenshot"
-
- Run inference on the current screen content as a screenshot.
- ```python
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Define current screenshot as source
- source = 'screen'
-
- # Run inference on the source
- results = model(source) # list of Results objects
- ```
-
- === "URL"
-
- Run inference on an image or video hosted remotely via URL.
- ```python
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Define remote image or video URL
- source = 'https://ultralytics.com/images/bus.jpg'
-
- # Run inference on the source
- results = model(source) # list of Results objects
- ```
-
- === "PIL"
-
- Run inference on an image opened with Python Imaging Library (PIL).
- ```python
- from PIL import Image
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Open an image using PIL
- source = Image.open('path/to/image.jpg')
-
- # Run inference on the source
- results = model(source) # list of Results objects
- ```
-
- === "OpenCV"
-
- Run inference on an image read with OpenCV.
- ```python
- import cv2
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Read an image using OpenCV
- source = cv2.imread('path/to/image.jpg')
-
- # Run inference on the source
- results = model(source) # list of Results objects
- ```
-
- === "numpy"
-
- Run inference on an image represented as a numpy array.
- ```python
- import numpy as np
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Create a random numpy array of HWC shape (640, 640, 3) with values in range [0, 255] and type uint8
- source = np.random.randint(low=0, high=255, size=(640, 640, 3), dtype='uint8')
-
- # Run inference on the source
- results = model(source) # list of Results objects
- ```
-
- === "torch"
-
- Run inference on an image represented as a PyTorch tensor.
- ```python
- import torch
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Create a random torch tensor of BCHW shape (1, 3, 640, 640) with values in range [0, 1] and type float32
- source = torch.rand(1, 3, 640, 640, dtype=torch.float32)
-
- # Run inference on the source
- results = model(source) # list of Results objects
- ```
-
- === "CSV"
-
- Run inference on a collection of images, URLs, videos and directories listed in a CSV file.
- ```python
- import torch
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Define a path to a CSV file with images, URLs, videos and directories
- source = 'path/to/file.csv'
-
- # Run inference on the source
- results = model(source) # list of Results objects
- ```
-
- === "video"
-
- Run inference on a video file. By using `stream=True`, you can create a generator of Results objects to reduce memory usage.
- ```python
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Define path to video file
- source = 'path/to/video.mp4'
-
- # Run inference on the source
- results = model(source, stream=True) # generator of Results objects
- ```
-
- === "directory"
-
- Run inference on all images and videos in a directory. To also capture images and videos in subdirectories use a glob pattern, i.e. `path/to/dir/**/*`.
- ```python
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Define path to directory containing images and videos for inference
- source = 'path/to/dir'
-
- # Run inference on the source
- results = model(source, stream=True) # generator of Results objects
- ```
-
- === "glob"
-
- Run inference on all images and videos that match a glob expression with `*` characters.
- ```python
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Define a glob search for all JPG files in a directory
- source = 'path/to/dir/*.jpg'
-
- # OR define a recursive glob search for all JPG files including subdirectories
- source = 'path/to/dir/**/*.jpg'
-
- # Run inference on the source
- results = model(source, stream=True) # generator of Results objects
- ```
-
- === "YouTube"
-
- Run inference on a YouTube video. By using `stream=True`, you can create a generator of Results objects to reduce memory usage for long videos.
- ```python
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Define source as YouTube video URL
- source = 'https://youtu.be/LNwODJXcvt4'
-
- # Run inference on the source
- results = model(source, stream=True) # generator of Results objects
- ```
-
- === "Streams"
-
- Run inference on remote streaming sources using RTSP, RTMP, TCP and IP address protocols. If multiple streams are provided in a `*.streams` text file then batched inference will run, i.e. 8 streams will run at batch-size 8, otherwise single streams will run at batch-size 1.
- ```python
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Single stream with batch-size 1 inference
- source = 'rtsp://example.com/media.mp4' # RTSP, RTMP, TCP or IP streaming address
-
- # Multiple streams with batched inference (i.e. batch-size 8 for 8 streams)
- source = 'path/to/list.streams' # *.streams text file with one streaming address per row
-
- # Run inference on the source
- results = model(source, stream=True) # generator of Results objects
- ```
-
-## Inference Arguments
-
-`model.predict()` accepts multiple arguments that can be passed at inference time to override defaults:
-
-!!! Example
-
- ```python
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Run inference on 'bus.jpg' with arguments
- model.predict('bus.jpg', save=True, imgsz=320, conf=0.5)
- ```
-
-Inference arguments:
-
-| Argument | Type | Default | Description |
-|-----------------|----------------|------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `source` | `str` | `'ultralytics/assets'` | Specifies the data source for inference. Can be an image path, video file, directory, URL, or device ID for live feeds. Supports a wide range of formats and sources, enabling flexible application across different types of input. |
-| `conf` | `float` | `0.25` | Sets the minimum confidence threshold for detections. Objects detected with confidence below this threshold will be disregarded. Adjusting this value can help reduce false positives. |
-| `iou` | `float` | `0.7` | Intersection Over Union (IoU) threshold for Non-Maximum Suppression (NMS). Higher values result in fewer detections by eliminating overlapping boxes, useful for reducing duplicates. |
-| `imgsz` | `int or tuple` | `640` | Defines the image size for inference. Can be a single integer `640` for square resizing or a (height, width) tuple. Proper sizing can improve detection accuracy and processing speed. |
-| `half` | `bool` | `False` | Enables half-precision (FP16) inference, which can speed up model inference on supported GPUs with minimal impact on accuracy. |
-| `device` | `str` | `None` | Specifies the device for inference (e.g., `cpu`, `cuda:0` or `0`). Allows users to select between CPU, a specific GPU, or other compute devices for model execution. |
-| `max_det` | `int` | `300` | Maximum number of detections allowed per image. Limits the total number of objects the model can detect in a single inference, preventing excessive outputs in dense scenes. |
-| `vid_stride` | `int` | `1` | Frame stride for video inputs. Allows skipping frames in videos to speed up processing at the cost of temporal resolution. A value of 1 processes every frame, higher values skip frames. |
-| `stream_buffer` | `bool` | `False` | Determines if all frames should be buffered when processing video streams (`True`), or if the model should return the most recent frame (`False`). Useful for real-time applications. |
-| `visualize` | `bool` | `False` | Activates visualization of model features during inference, providing insights into what the model is "seeing". Useful for debugging and model interpretation. |
-| `augment` | `bool` | `False` | Enables test-time augmentation (TTA) for predictions, potentially improving detection robustness at the cost of inference speed. |
-| `agnostic_nms` | `bool` | `False` | Enables class-agnostic Non-Maximum Suppression (NMS), which merges overlapping boxes of different classes. Useful in multi-class detection scenarios where class overlap is common. |
-| `classes` | `list[int]` | `None` | Filters predictions to a set of class IDs. Only detections belonging to the specified classes will be returned. Useful for focusing on relevant objects in multi-class detection tasks. |
-| `retina_masks` | `bool` | `False` | Uses high-resolution segmentation masks if available in the model. This can enhance mask quality for segmentation tasks, providing finer detail. |
-| `embed` | `list[int]` | `None` | Specifies the layers from which to extract feature vectors or embeddings. Useful for downstream tasks like clustering or similarity search. |
-
-Visualization arguments:
-
-| Argument | Type | Default | Description |
-|---------------|---------------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `show` | `bool` | `False` | If `True`, displays the annotated images or videos in a window. Useful for immediate visual feedback during development or testing. |
-| `save` | `bool` | `False` | Enables saving of the annotated images or videos to file. Useful for documentation, further analysis, or sharing results. |
-| `save_frames` | `bool` | `False` | When processing videos, saves individual frames as images. Useful for extracting specific frames or for detailed frame-by-frame analysis. |
-| `save_txt` | `bool` | `False` | Saves detection results in a text file, following the format `[class] [x_center] [y_center] [width] [height] [confidence]`. Useful for integration with other analysis tools. |
-| `save_conf` | `bool` | `False` | Includes confidence scores in the saved text files. Enhances the detail available for post-processing and analysis. |
-| `save_crop` | `bool` | `False` | Saves cropped images of detections. Useful for dataset augmentation, analysis, or creating focused datasets for specific objects. |
-| `show_labels` | `bool` | `True` | Displays labels for each detection in the visual output. Provides immediate understanding of detected objects. |
-| `show_conf` | `bool` | `True` | Displays the confidence score for each detection alongside the label. Gives insight into the model's certainty for each detection. |
-| `show_boxes` | `bool` | `True` | Draws bounding boxes around detected objects. Essential for visual identification and location of objects in images or video frames. |
-| `line_width` | `None or int` | `None` | Specifies the line width of bounding boxes. If `None`, the line width is automatically adjusted based on the image size. Provides visual customization for clarity. |
-
-## Image and Video Formats
-
-YOLOv8 supports various image and video formats, as specified in [ultralytics/data/utils.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/utils.py). See the tables below for the valid suffixes and example predict commands.
-
-### Images
-
-The below table contains valid Ultralytics image formats.
-
-| Image Suffixes | Example Predict Command | Reference |
-|----------------|----------------------------------|-------------------------------------------------------------------------------|
-| `.bmp` | `yolo predict source=image.bmp` | [Microsoft BMP File Format](https://en.wikipedia.org/wiki/BMP_file_format) |
-| `.dng` | `yolo predict source=image.dng` | [Adobe DNG](https://www.adobe.com/products/photoshop/extend.displayTab2.html) |
-| `.jpeg` | `yolo predict source=image.jpeg` | [JPEG](https://en.wikipedia.org/wiki/JPEG) |
-| `.jpg` | `yolo predict source=image.jpg` | [JPEG](https://en.wikipedia.org/wiki/JPEG) |
-| `.mpo` | `yolo predict source=image.mpo` | [Multi Picture Object](https://fileinfo.com/extension/mpo) |
-| `.png` | `yolo predict source=image.png` | [Portable Network Graphics](https://en.wikipedia.org/wiki/PNG) |
-| `.tif` | `yolo predict source=image.tif` | [Tag Image File Format](https://en.wikipedia.org/wiki/TIFF) |
-| `.tiff` | `yolo predict source=image.tiff` | [Tag Image File Format](https://en.wikipedia.org/wiki/TIFF) |
-| `.webp` | `yolo predict source=image.webp` | [WebP](https://en.wikipedia.org/wiki/WebP) |
-| `.pfm` | `yolo predict source=image.pfm` | [Portable FloatMap](https://en.wikipedia.org/wiki/Netpbm#File_formats) |
-
-### Videos
-
-The below table contains valid Ultralytics video formats.
-
-| Video Suffixes | Example Predict Command | Reference |
-|----------------|----------------------------------|----------------------------------------------------------------------------------|
-| `.asf` | `yolo predict source=video.asf` | [Advanced Systems Format](https://en.wikipedia.org/wiki/Advanced_Systems_Format) |
-| `.avi` | `yolo predict source=video.avi` | [Audio Video Interleave](https://en.wikipedia.org/wiki/Audio_Video_Interleave) |
-| `.gif` | `yolo predict source=video.gif` | [Graphics Interchange Format](https://en.wikipedia.org/wiki/GIF) |
-| `.m4v` | `yolo predict source=video.m4v` | [MPEG-4 Part 14](https://en.wikipedia.org/wiki/M4V) |
-| `.mkv` | `yolo predict source=video.mkv` | [Matroska](https://en.wikipedia.org/wiki/Matroska) |
-| `.mov` | `yolo predict source=video.mov` | [QuickTime File Format](https://en.wikipedia.org/wiki/QuickTime_File_Format) |
-| `.mp4` | `yolo predict source=video.mp4` | [MPEG-4 Part 14 - Wikipedia](https://en.wikipedia.org/wiki/MPEG-4_Part_14) |
-| `.mpeg` | `yolo predict source=video.mpeg` | [MPEG-1 Part 2](https://en.wikipedia.org/wiki/MPEG-1) |
-| `.mpg` | `yolo predict source=video.mpg` | [MPEG-1 Part 2](https://en.wikipedia.org/wiki/MPEG-1) |
-| `.ts` | `yolo predict source=video.ts` | [MPEG Transport Stream](https://en.wikipedia.org/wiki/MPEG_transport_stream) |
-| `.wmv` | `yolo predict source=video.wmv` | [Windows Media Video](https://en.wikipedia.org/wiki/Windows_Media_Video) |
-| `.webm` | `yolo predict source=video.webm` | [WebM Project](https://en.wikipedia.org/wiki/WebM) |
-
-## Working with Results
-
-All Ultralytics `predict()` calls will return a list of `Results` objects:
-
-!!! Example "Results"
-
- ```python
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Run inference on an image
- results = model('bus.jpg') # list of 1 Results object
- results = model(['bus.jpg', 'zidane.jpg']) # list of 2 Results objects
- ```
-
-`Results` objects have the following attributes:
-
-| Attribute | Type | Description |
-|--------------|-----------------------|------------------------------------------------------------------------------------------|
-| `orig_img` | `numpy.ndarray` | The original image as a numpy array. |
-| `orig_shape` | `tuple` | The original image shape in (height, width) format. |
-| `boxes` | `Boxes, optional` | A Boxes object containing the detection bounding boxes. |
-| `masks` | `Masks, optional` | A Masks object containing the detection masks. |
-| `probs` | `Probs, optional` | A Probs object containing probabilities of each class for classification task. |
-| `keypoints` | `Keypoints, optional` | A Keypoints object containing detected keypoints for each object. |
-| `obb` | `OBB, optional` | An OBB object containing oriented bounding boxes. |
-| `speed` | `dict` | A dictionary of preprocess, inference, and postprocess speeds in milliseconds per image. |
-| `names` | `dict` | A dictionary of class names. |
-| `path` | `str` | The path to the image file. |
-
-`Results` objects have the following methods:
-
-| Method | Return Type | Description |
-|---------------|-----------------|-------------------------------------------------------------------------------------|
-| `update()` | `None` | Update the boxes, masks, and probs attributes of the Results object. |
-| `cpu()` | `Results` | Return a copy of the Results object with all tensors on CPU memory. |
-| `numpy()` | `Results` | Return a copy of the Results object with all tensors as numpy arrays. |
-| `cuda()` | `Results` | Return a copy of the Results object with all tensors on GPU memory. |
-| `to()` | `Results` | Return a copy of the Results object with tensors on the specified device and dtype. |
-| `new()` | `Results` | Return a new Results object with the same image, path, and names. |
-| `plot()` | `numpy.ndarray` | Plots the detection results. Returns a numpy array of the annotated image. |
-| `show()` | `None` | Show annotated results to screen. |
-| `save()` | `None` | Save annotated results to file. |
-| `verbose()` | `str` | Return log string for each task. |
-| `save_txt()` | `None` | Save predictions into a txt file. |
-| `save_crop()` | `None` | Save cropped predictions to `save_dir/cls/file_name.jpg`. |
-| `tojson()` | `str` | Convert the object to JSON format. |
-
-For more details see the [`Results` class documentation](../reference/engine/results.md).
-
-### Boxes
-
-`Boxes` object can be used to index, manipulate, and convert bounding boxes to different formats.
-
-!!! Example "Boxes"
-
- ```python
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Run inference on an image
- results = model('bus.jpg') # results list
-
- # View results
- for r in results:
- print(r.boxes) # print the Boxes object containing the detection bounding boxes
- ```
-
-Here is a table for the `Boxes` class methods and properties, including their name, type, and description:
-
-| Name | Type | Description |
-|-----------|---------------------------|--------------------------------------------------------------------|
-| `cpu()` | Method | Move the object to CPU memory. |
-| `numpy()` | Method | Convert the object to a numpy array. |
-| `cuda()` | Method | Move the object to CUDA memory. |
-| `to()` | Method | Move the object to the specified device. |
-| `xyxy` | Property (`torch.Tensor`) | Return the boxes in xyxy format. |
-| `conf` | Property (`torch.Tensor`) | Return the confidence values of the boxes. |
-| `cls` | Property (`torch.Tensor`) | Return the class values of the boxes. |
-| `id` | Property (`torch.Tensor`) | Return the track IDs of the boxes (if available). |
-| `xywh` | Property (`torch.Tensor`) | Return the boxes in xywh format. |
-| `xyxyn` | Property (`torch.Tensor`) | Return the boxes in xyxy format normalized by original image size. |
-| `xywhn` | Property (`torch.Tensor`) | Return the boxes in xywh format normalized by original image size. |
-
-For more details see the [`Boxes` class documentation](../reference/engine/results.md#ultralytics.engine.results.Boxes).
-
-### Masks
-
-`Masks` object can be used index, manipulate and convert masks to segments.
-
-!!! Example "Masks"
-
- ```python
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n-seg Segment model
- model = YOLO('yolov8n-seg.pt')
-
- # Run inference on an image
- results = model('bus.jpg') # results list
-
- # View results
- for r in results:
- print(r.masks) # print the Masks object containing the detected instance masks
- ```
-
-Here is a table for the `Masks` class methods and properties, including their name, type, and description:
-
-| Name | Type | Description |
-|-----------|---------------------------|-----------------------------------------------------------------|
-| `cpu()` | Method | Returns the masks tensor on CPU memory. |
-| `numpy()` | Method | Returns the masks tensor as a numpy array. |
-| `cuda()` | Method | Returns the masks tensor on GPU memory. |
-| `to()` | Method | Returns the masks tensor with the specified device and dtype. |
-| `xyn` | Property (`torch.Tensor`) | A list of normalized segments represented as tensors. |
-| `xy` | Property (`torch.Tensor`) | A list of segments in pixel coordinates represented as tensors. |
-
-For more details see the [`Masks` class documentation](../reference/engine/results.md#ultralytics.engine.results.Masks).
-
-### Keypoints
-
-`Keypoints` object can be used index, manipulate and normalize coordinates.
-
-!!! Example "Keypoints"
-
- ```python
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n-pose Pose model
- model = YOLO('yolov8n-pose.pt')
-
- # Run inference on an image
- results = model('bus.jpg') # results list
-
- # View results
- for r in results:
- print(r.keypoints) # print the Keypoints object containing the detected keypoints
- ```
-
-Here is a table for the `Keypoints` class methods and properties, including their name, type, and description:
-
-| Name | Type | Description |
-|-----------|---------------------------|-------------------------------------------------------------------|
-| `cpu()` | Method | Returns the keypoints tensor on CPU memory. |
-| `numpy()` | Method | Returns the keypoints tensor as a numpy array. |
-| `cuda()` | Method | Returns the keypoints tensor on GPU memory. |
-| `to()` | Method | Returns the keypoints tensor with the specified device and dtype. |
-| `xyn` | Property (`torch.Tensor`) | A list of normalized keypoints represented as tensors. |
-| `xy` | Property (`torch.Tensor`) | A list of keypoints in pixel coordinates represented as tensors. |
-| `conf` | Property (`torch.Tensor`) | Returns confidence values of keypoints if available, else None. |
-
-For more details see the [`Keypoints` class documentation](../reference/engine/results.md#ultralytics.engine.results.Keypoints).
-
-### Probs
-
-`Probs` object can be used index, get `top1` and `top5` indices and scores of classification.
-
-!!! Example "Probs"
-
- ```python
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n-cls Classify model
- model = YOLO('yolov8n-cls.pt')
-
- # Run inference on an image
- results = model('bus.jpg') # results list
-
- # View results
- for r in results:
- print(r.probs) # print the Probs object containing the detected class probabilities
- ```
-
-Here's a table summarizing the methods and properties for the `Probs` class:
-
-| Name | Type | Description |
-|------------|---------------------------|-------------------------------------------------------------------------|
-| `cpu()` | Method | Returns a copy of the probs tensor on CPU memory. |
-| `numpy()` | Method | Returns a copy of the probs tensor as a numpy array. |
-| `cuda()` | Method | Returns a copy of the probs tensor on GPU memory. |
-| `to()` | Method | Returns a copy of the probs tensor with the specified device and dtype. |
-| `top1` | Property (`int`) | Index of the top 1 class. |
-| `top5` | Property (`list[int]`) | Indices of the top 5 classes. |
-| `top1conf` | Property (`torch.Tensor`) | Confidence of the top 1 class. |
-| `top5conf` | Property (`torch.Tensor`) | Confidences of the top 5 classes. |
-
-For more details see the [`Probs` class documentation](../reference/engine/results.md#ultralytics.engine.results.Probs).
-
-### OBB
-
-`OBB` object can be used to index, manipulate, and convert oriented bounding boxes to different formats.
-
-!!! Example "OBB"
-
- ```python
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n model
- model = YOLO('yolov8n-obb.pt')
-
- # Run inference on an image
- results = model('bus.jpg') # results list
-
- # View results
- for r in results:
- print(r.obb) # print the OBB object containing the oriented detection bounding boxes
- ```
-
-Here is a table for the `OBB` class methods and properties, including their name, type, and description:
-
-| Name | Type | Description |
-|-------------|---------------------------|-----------------------------------------------------------------------|
-| `cpu()` | Method | Move the object to CPU memory. |
-| `numpy()` | Method | Convert the object to a numpy array. |
-| `cuda()` | Method | Move the object to CUDA memory. |
-| `to()` | Method | Move the object to the specified device. |
-| `conf` | Property (`torch.Tensor`) | Return the confidence values of the boxes. |
-| `cls` | Property (`torch.Tensor`) | Return the class values of the boxes. |
-| `id` | Property (`torch.Tensor`) | Return the track IDs of the boxes (if available). |
-| `xyxy` | Property (`torch.Tensor`) | Return the horizontal boxes in xyxy format. |
-| `xywhr` | Property (`torch.Tensor`) | Return the rotated boxes in xywhr format. |
-| `xyxyxyxy` | Property (`torch.Tensor`) | Return the rotated boxes in xyxyxyxy format. |
-| `xyxyxyxyn` | Property (`torch.Tensor`) | Return the rotated boxes in xyxyxyxy format normalized by image size. |
-
-For more details see the [`OBB` class documentation](../reference/engine/results.md#ultralytics.engine.results.OBB).
-
-## Plotting Results
-
-The `plot()` method in `Results` objects facilitates visualization of predictions by overlaying detected objects (such as bounding boxes, masks, keypoints, and probabilities) onto the original image. This method returns the annotated image as a NumPy array, allowing for easy display or saving.
-
-!!! Example "Plotting"
-
- ```python
- from PIL import Image
- from ultralytics import YOLO
-
- # Load a pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Run inference on 'bus.jpg'
- results = model(['bus.jpg', 'zidane.jpg']) # results list
-
- # Visualize the results
- for i, r in enumerate(results):
- # Plot results image
- im_bgr = r.plot() # BGR-order numpy array
- im_rgb = Image.fromarray(im_bgr[..., ::-1]) # RGB-order PIL image
-
- # Show results to screen (in supported environments)
- r.show()
-
- # Save results to disk
- r.save(filename=f'results{i}.jpg')
- ```
-
-### `plot()` Method Parameters
-
-The `plot()` method supports various arguments to customize the output:
-
-| Argument | Type | Description | Default |
-|--------------|-----------------|----------------------------------------------------------------------------|---------------|
-| `conf` | `bool` | Include detection confidence scores. | `True` |
-| `line_width` | `float` | Line width of bounding boxes. Scales with image size if `None`. | `None` |
-| `font_size` | `float` | Text font size. Scales with image size if `None`. | `None` |
-| `font` | `str` | Font name for text annotations. | `'Arial.ttf'` |
-| `pil` | `bool` | Return image as a PIL Image object. | `False` |
-| `img` | `numpy.ndarray` | Alternative image for plotting. Uses the original image if `None`. | `None` |
-| `im_gpu` | `torch.Tensor` | GPU-accelerated image for faster mask plotting. Shape: (1, 3, 640, 640). | `None` |
-| `kpt_radius` | `int` | Radius for drawn keypoints. | `5` |
-| `kpt_line` | `bool` | Connect keypoints with lines. | `True` |
-| `labels` | `bool` | Include class labels in annotations. | `True` |
-| `boxes` | `bool` | Overlay bounding boxes on the image. | `True` |
-| `masks` | `bool` | Overlay masks on the image. | `True` |
-| `probs` | `bool` | Include classification probabilities. | `True` |
-| `show` | `bool` | Display the annotated image directly using the default image viewer. | `False` |
-| `save` | `bool` | Save the annotated image to a file specified by `filename`. | `False` |
-| `filename` | `str` | Path and name of the file to save the annotated image if `save` is `True`. | `None` |
-
-## Thread-Safe Inference
-
-Ensuring thread safety during inference is crucial when you are running multiple YOLO models in parallel across different threads. Thread-safe inference guarantees that each thread's predictions are isolated and do not interfere with one another, avoiding race conditions and ensuring consistent and reliable outputs.
-
-When using YOLO models in a multi-threaded application, it's important to instantiate separate model objects for each thread or employ thread-local storage to prevent conflicts:
-
-!!! Example "Thread-Safe Inference"
-
- Instantiate a single model inside each thread for thread-safe inference:
- ```python
- from ultralytics import YOLO
- from threading import Thread
-
- def thread_safe_predict(image_path):
- # Instantiate a new model inside the thread
- local_model = YOLO("yolov8n.pt")
- results = local_model.predict(image_path)
- # Process results
-
-
- # Starting threads that each have their own model instance
- Thread(target=thread_safe_predict, args=("image1.jpg",)).start()
- Thread(target=thread_safe_predict, args=("image2.jpg",)).start()
- ```
-
-For an in-depth look at thread-safe inference with YOLO models and step-by-step instructions, please refer to our [YOLO Thread-Safe Inference Guide](../guides/yolo-thread-safe-inference.md). This guide will provide you with all the necessary information to avoid common pitfalls and ensure that your multi-threaded inference runs smoothly.
-
-## Streaming Source `for`-loop
-
-Here's a Python script using OpenCV (`cv2`) and YOLOv8 to run inference on video frames. This script assumes you have already installed the necessary packages (`opencv-python` and `ultralytics`).
-
-!!! Example "Streaming for-loop"
-
- ```python
- import cv2
- from ultralytics import YOLO
-
- # Load the YOLOv8 model
- model = YOLO('yolov8n.pt')
-
- # Open the video file
- video_path = "path/to/your/video/file.mp4"
- cap = cv2.VideoCapture(video_path)
-
- # Loop through the video frames
- while cap.isOpened():
- # Read a frame from the video
- success, frame = cap.read()
-
- if success:
- # Run YOLOv8 inference on the frame
- results = model(frame)
-
- # Visualize the results on the frame
- annotated_frame = results[0].plot()
-
- # Display the annotated frame
- cv2.imshow("YOLOv8 Inference", annotated_frame)
-
- # Break the loop if 'q' is pressed
- if cv2.waitKey(1) & 0xFF == ord("q"):
- break
- else:
- # Break the loop if the end of the video is reached
- break
-
- # Release the video capture object and close the display window
- cap.release()
- cv2.destroyAllWindows()
- ```
-
-This script will run predictions on each frame of the video, visualize the results, and display them in a window. The loop can be exited by pressing 'q'.
-
-[car spare parts]: https://github.com/RizwanMunawar/ultralytics/assets/62513924/a0f802a8-0776-44cf-8f17-93974a4a28a1
-
-[football player detect]: https://github.com/RizwanMunawar/ultralytics/assets/62513924/7d320e1f-fc57-4d7f-a691-78ee579c3442
-
-[human fall detect]: https://github.com/RizwanMunawar/ultralytics/assets/62513924/86437c4a-3227-4eee-90ef-9efb697bdb43
diff --git a/ultralytics-main/docs/en/modes/track.md b/ultralytics-main/docs/en/modes/track.md
deleted file mode 100644
index 22e9c0a..0000000
--- a/ultralytics-main/docs/en/modes/track.md
+++ /dev/null
@@ -1,360 +0,0 @@
----
-comments: true
-description: Learn how to use Ultralytics YOLO for object tracking in video streams. Guides to use different trackers and customise tracker configurations.
-keywords: Ultralytics, YOLO, object tracking, video streams, BoT-SORT, ByteTrack, Python guide, CLI guide
----
-
-# Multi-Object Tracking with Ultralytics YOLO
-
-
-
-Object tracking in the realm of video analytics is a critical task that not only identifies the location and class of objects within the frame but also maintains a unique ID for each detected object as the video progresses. The applications are limitless—ranging from surveillance and security to real-time sports analytics.
-
-## Why Choose Ultralytics YOLO for Object Tracking?
-
-The output from Ultralytics trackers is consistent with standard object detection but has the added value of object IDs. This makes it easy to track objects in video streams and perform subsequent analytics. Here's why you should consider using Ultralytics YOLO for your object tracking needs:
-
-- **Efficiency:** Process video streams in real-time without compromising accuracy.
-- **Flexibility:** Supports multiple tracking algorithms and configurations.
-- **Ease of Use:** Simple Python API and CLI options for quick integration and deployment.
-- **Customizability:** Easy to use with custom trained YOLO models, allowing integration into domain-specific applications.
-
-
-
-
-
- Watch: Object Detection and Tracking with Ultralytics YOLOv8.
-
-
-## Real-world Applications
-
-| Transportation | Retail | Aquaculture |
-|:----------------------------------:|:--------------------------------:|:----------------------------:|
-| ![Vehicle Tracking][vehicle track] | ![People Tracking][people track] | ![Fish Tracking][fish track] |
-| Vehicle Tracking | People Tracking | Fish Tracking |
-
-## Features at a Glance
-
-Ultralytics YOLO extends its object detection features to provide robust and versatile object tracking:
-
-- **Real-Time Tracking:** Seamlessly track objects in high-frame-rate videos.
-- **Multiple Tracker Support:** Choose from a variety of established tracking algorithms.
-- **Customizable Tracker Configurations:** Tailor the tracking algorithm to meet specific requirements by adjusting various parameters.
-
-## Available Trackers
-
-Ultralytics YOLO supports the following tracking algorithms. They can be enabled by passing the relevant YAML configuration file such as `tracker=tracker_type.yaml`:
-
-- [BoT-SORT](https://github.com/NirAharon/BoT-SORT) - Use `botsort.yaml` to enable this tracker.
-- [ByteTrack](https://github.com/ifzhang/ByteTrack) - Use `bytetrack.yaml` to enable this tracker.
-
-The default tracker is BoT-SORT.
-
-## Tracking
-
-To run the tracker on video streams, use a trained Detect, Segment or Pose model such as YOLOv8n, YOLOv8n-seg and YOLOv8n-pose.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load an official or custom model
- model = YOLO('yolov8n.pt') # Load an official Detect model
- model = YOLO('yolov8n-seg.pt') # Load an official Segment model
- model = YOLO('yolov8n-pose.pt') # Load an official Pose model
- model = YOLO('path/to/best.pt') # Load a custom trained model
-
- # Perform tracking with the model
- results = model.track(source="https://youtu.be/LNwODJXcvt4", show=True) # Tracking with default tracker
- results = model.track(source="https://youtu.be/LNwODJXcvt4", show=True, tracker="bytetrack.yaml") # Tracking with ByteTrack tracker
- ```
-
- === "CLI"
-
- ```bash
- # Perform tracking with various models using the command line interface
- yolo track model=yolov8n.pt source="https://youtu.be/LNwODJXcvt4" # Official Detect model
- yolo track model=yolov8n-seg.pt source="https://youtu.be/LNwODJXcvt4" # Official Segment model
- yolo track model=yolov8n-pose.pt source="https://youtu.be/LNwODJXcvt4" # Official Pose model
- yolo track model=path/to/best.pt source="https://youtu.be/LNwODJXcvt4" # Custom trained model
-
- # Track using ByteTrack tracker
- yolo track model=path/to/best.pt tracker="bytetrack.yaml"
- ```
-
-As can be seen in the above usage, tracking is available for all Detect, Segment and Pose models run on videos or streaming sources.
-
-## Configuration
-
-### Tracking Arguments
-
-Tracking configuration shares properties with Predict mode, such as `conf`, `iou`, and `show`. For further configurations, refer to the [Predict](../modes/predict.md#inference-arguments) model page.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Configure the tracking parameters and run the tracker
- model = YOLO('yolov8n.pt')
- results = model.track(source="https://youtu.be/LNwODJXcvt4", conf=0.3, iou=0.5, show=True)
- ```
-
- === "CLI"
-
- ```bash
- # Configure tracking parameters and run the tracker using the command line interface
- yolo track model=yolov8n.pt source="https://youtu.be/LNwODJXcvt4" conf=0.3, iou=0.5 show
- ```
-
-### Tracker Selection
-
-Ultralytics also allows you to use a modified tracker configuration file. To do this, simply make a copy of a tracker config file (for example, `custom_tracker.yaml`) from [ultralytics/cfg/trackers](https://github.com/ultralytics/ultralytics/tree/main/ultralytics/cfg/trackers) and modify any configurations (except the `tracker_type`) as per your needs.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load the model and run the tracker with a custom configuration file
- model = YOLO('yolov8n.pt')
- results = model.track(source="https://youtu.be/LNwODJXcvt4", tracker='custom_tracker.yaml')
- ```
-
- === "CLI"
-
- ```bash
- # Load the model and run the tracker with a custom configuration file using the command line interface
- yolo track model=yolov8n.pt source="https://youtu.be/LNwODJXcvt4" tracker='custom_tracker.yaml'
- ```
-
-For a comprehensive list of tracking arguments, refer to the [ultralytics/cfg/trackers](https://github.com/ultralytics/ultralytics/tree/main/ultralytics/cfg/trackers) page.
-
-## Python Examples
-
-### Persisting Tracks Loop
-
-Here is a Python script using OpenCV (`cv2`) and YOLOv8 to run object tracking on video frames. This script still assumes you have already installed the necessary packages (`opencv-python` and `ultralytics`). The `persist=True` argument tells the tracker that the current image or frame is the next in a sequence and to expect tracks from the previous image in the current image.
-
-!!! Example "Streaming for-loop with tracking"
-
- ```python
- import cv2
- from ultralytics import YOLO
-
- # Load the YOLOv8 model
- model = YOLO('yolov8n.pt')
-
- # Open the video file
- video_path = "path/to/video.mp4"
- cap = cv2.VideoCapture(video_path)
-
- # Loop through the video frames
- while cap.isOpened():
- # Read a frame from the video
- success, frame = cap.read()
-
- if success:
- # Run YOLOv8 tracking on the frame, persisting tracks between frames
- results = model.track(frame, persist=True)
-
- # Visualize the results on the frame
- annotated_frame = results[0].plot()
-
- # Display the annotated frame
- cv2.imshow("YOLOv8 Tracking", annotated_frame)
-
- # Break the loop if 'q' is pressed
- if cv2.waitKey(1) & 0xFF == ord("q"):
- break
- else:
- # Break the loop if the end of the video is reached
- break
-
- # Release the video capture object and close the display window
- cap.release()
- cv2.destroyAllWindows()
- ```
-
-Please note the change from `model(frame)` to `model.track(frame)`, which enables object tracking instead of simple detection. This modified script will run the tracker on each frame of the video, visualize the results, and display them in a window. The loop can be exited by pressing 'q'.
-
-### Plotting Tracks Over Time
-
-Visualizing object tracks over consecutive frames can provide valuable insights into the movement patterns and behavior of detected objects within a video. With Ultralytics YOLOv8, plotting these tracks is a seamless and efficient process.
-
-In the following example, we demonstrate how to utilize YOLOv8's tracking capabilities to plot the movement of detected objects across multiple video frames. This script involves opening a video file, reading it frame by frame, and utilizing the YOLO model to identify and track various objects. By retaining the center points of the detected bounding boxes and connecting them, we can draw lines that represent the paths followed by the tracked objects.
-
-!!! Example "Plotting tracks over multiple video frames"
-
- ```python
- from collections import defaultdict
-
- import cv2
- import numpy as np
-
- from ultralytics import YOLO
-
- # Load the YOLOv8 model
- model = YOLO('yolov8n.pt')
-
- # Open the video file
- video_path = "path/to/video.mp4"
- cap = cv2.VideoCapture(video_path)
-
- # Store the track history
- track_history = defaultdict(lambda: [])
-
- # Loop through the video frames
- while cap.isOpened():
- # Read a frame from the video
- success, frame = cap.read()
-
- if success:
- # Run YOLOv8 tracking on the frame, persisting tracks between frames
- results = model.track(frame, persist=True)
-
- # Get the boxes and track IDs
- boxes = results[0].boxes.xywh.cpu()
- track_ids = results[0].boxes.id.int().cpu().tolist()
-
- # Visualize the results on the frame
- annotated_frame = results[0].plot()
-
- # Plot the tracks
- for box, track_id in zip(boxes, track_ids):
- x, y, w, h = box
- track = track_history[track_id]
- track.append((float(x), float(y))) # x, y center point
- if len(track) > 30: # retain 90 tracks for 90 frames
- track.pop(0)
-
- # Draw the tracking lines
- points = np.hstack(track).astype(np.int32).reshape((-1, 1, 2))
- cv2.polylines(annotated_frame, [points], isClosed=False, color=(230, 230, 230), thickness=10)
-
- # Display the annotated frame
- cv2.imshow("YOLOv8 Tracking", annotated_frame)
-
- # Break the loop if 'q' is pressed
- if cv2.waitKey(1) & 0xFF == ord("q"):
- break
- else:
- # Break the loop if the end of the video is reached
- break
-
- # Release the video capture object and close the display window
- cap.release()
- cv2.destroyAllWindows()
- ```
-
-### Multithreaded Tracking
-
-Multithreaded tracking provides the capability to run object tracking on multiple video streams simultaneously. This is particularly useful when handling multiple video inputs, such as from multiple surveillance cameras, where concurrent processing can greatly enhance efficiency and performance.
-
-In the provided Python script, we make use of Python's `threading` module to run multiple instances of the tracker concurrently. Each thread is responsible for running the tracker on one video file, and all the threads run simultaneously in the background.
-
-To ensure that each thread receives the correct parameters (the video file, the model to use and the file index), we define a function `run_tracker_in_thread` that accepts these parameters and contains the main tracking loop. This function reads the video frame by frame, runs the tracker, and displays the results.
-
-Two different models are used in this example: `yolov8n.pt` and `yolov8n-seg.pt`, each tracking objects in a different video file. The video files are specified in `video_file1` and `video_file2`.
-
-The `daemon=True` parameter in `threading.Thread` means that these threads will be closed as soon as the main program finishes. We then start the threads with `start()` and use `join()` to make the main thread wait until both tracker threads have finished.
-
-Finally, after all threads have completed their task, the windows displaying the results are closed using `cv2.destroyAllWindows()`.
-
-!!! Example "Streaming for-loop with tracking"
-
- ```python
- import threading
- import cv2
- from ultralytics import YOLO
-
-
- def run_tracker_in_thread(filename, model, file_index):
- """
- Runs a video file or webcam stream concurrently with the YOLOv8 model using threading.
-
- This function captures video frames from a given file or camera source and utilizes the YOLOv8 model for object
- tracking. The function runs in its own thread for concurrent processing.
-
- Args:
- filename (str): The path to the video file or the identifier for the webcam/external camera source.
- model (obj): The YOLOv8 model object.
- file_index (int): An index to uniquely identify the file being processed, used for display purposes.
-
- Note:
- Press 'q' to quit the video display window.
- """
- video = cv2.VideoCapture(filename) # Read the video file
-
- while True:
- ret, frame = video.read() # Read the video frames
-
- # Exit the loop if no more frames in either video
- if not ret:
- break
-
- # Track objects in frames if available
- results = model.track(frame, persist=True)
- res_plotted = results[0].plot()
- cv2.imshow(f"Tracking_Stream_{file_index}", res_plotted)
-
- key = cv2.waitKey(1)
- if key == ord('q'):
- break
-
- # Release video sources
- video.release()
-
-
- # Load the models
- model1 = YOLO('yolov8n.pt')
- model2 = YOLO('yolov8n-seg.pt')
-
- # Define the video files for the trackers
- video_file1 = "path/to/video1.mp4" # Path to video file, 0 for webcam
- video_file2 = 0 # Path to video file, 0 for webcam, 1 for external camera
-
- # Create the tracker threads
- tracker_thread1 = threading.Thread(target=run_tracker_in_thread, args=(video_file1, model1, 1), daemon=True)
- tracker_thread2 = threading.Thread(target=run_tracker_in_thread, args=(video_file2, model2, 2), daemon=True)
-
- # Start the tracker threads
- tracker_thread1.start()
- tracker_thread2.start()
-
- # Wait for the tracker threads to finish
- tracker_thread1.join()
- tracker_thread2.join()
-
- # Clean up and close windows
- cv2.destroyAllWindows()
- ```
-
-This example can easily be extended to handle more video files and models by creating more threads and applying the same methodology.
-
-## Contribute New Trackers
-
-Are you proficient in multi-object tracking and have successfully implemented or adapted a tracking algorithm with Ultralytics YOLO? We invite you to contribute to our Trackers section in [ultralytics/cfg/trackers](https://github.com/ultralytics/ultralytics/tree/main/ultralytics/cfg/trackers)! Your real-world applications and solutions could be invaluable for users working on tracking tasks.
-
-By contributing to this section, you help expand the scope of tracking solutions available within the Ultralytics YOLO framework, adding another layer of functionality and utility for the community.
-
-To initiate your contribution, please refer to our [Contributing Guide](https://docs.ultralytics.com/help/contributing) for comprehensive instructions on submitting a Pull Request (PR) 🛠️. We are excited to see what you bring to the table!
-
-Together, let's enhance the tracking capabilities of the Ultralytics YOLO ecosystem 🙏!
-
-[fish track]: https://github.com/RizwanMunawar/ultralytics/assets/62513924/a5146d0f-bfa8-4e0a-b7df-3c1446cd8142
-
-[people track]: https://github.com/RizwanMunawar/ultralytics/assets/62513924/93bb4ee2-77a0-4e4e-8eb6-eb8f527f0527
-
-[vehicle track]: https://github.com/RizwanMunawar/ultralytics/assets/62513924/ee6e6038-383b-4f21-ac29-b2a1c7d386ab
diff --git a/ultralytics-main/docs/en/modes/train.md b/ultralytics-main/docs/en/modes/train.md
deleted file mode 100644
index 820ff4b..0000000
--- a/ultralytics-main/docs/en/modes/train.md
+++ /dev/null
@@ -1,328 +0,0 @@
----
-comments: true
-description: Step-by-step guide to train YOLOv8 models with Ultralytics YOLO including examples of single-GPU and multi-GPU training
-keywords: Ultralytics, YOLOv8, YOLO, object detection, train mode, custom dataset, GPU training, multi-GPU, hyperparameters, CLI examples, Python examples
----
-
-# Model Training with Ultralytics YOLO
-
-
-
-## Introduction
-
-Training a deep learning model involves feeding it data and adjusting its parameters so that it can make accurate predictions. Train mode in Ultralytics YOLOv8 is engineered for effective and efficient training of object detection models, fully utilizing modern hardware capabilities. This guide aims to cover all the details you need to get started with training your own models using YOLOv8's robust set of features.
-
-
-
-
-
- Watch: How to Train a YOLOv8 model on Your Custom Dataset in Google Colab.
-
-
-## Why Choose Ultralytics YOLO for Training?
-
-Here are some compelling reasons to opt for YOLOv8's Train mode:
-
-- **Efficiency:** Make the most out of your hardware, whether you're on a single-GPU setup or scaling across multiple GPUs.
-- **Versatility:** Train on custom datasets in addition to readily available ones like COCO, VOC, and ImageNet.
-- **User-Friendly:** Simple yet powerful CLI and Python interfaces for a straightforward training experience.
-- **Hyperparameter Flexibility:** A broad range of customizable hyperparameters to fine-tune model performance.
-
-### Key Features of Train Mode
-
-The following are some notable features of YOLOv8's Train mode:
-
-- **Automatic Dataset Download:** Standard datasets like COCO, VOC, and ImageNet are downloaded automatically on first use.
-- **Multi-GPU Support:** Scale your training efforts seamlessly across multiple GPUs to expedite the process.
-- **Hyperparameter Configuration:** The option to modify hyperparameters through YAML configuration files or CLI arguments.
-- **Visualization and Monitoring:** Real-time tracking of training metrics and visualization of the learning process for better insights.
-
-!!! Tip "Tip"
-
- * YOLOv8 datasets like COCO, VOC, ImageNet and many others automatically download on first use, i.e. `yolo train data=coco.yaml`
-
-## Usage Examples
-
-Train YOLOv8n on the COCO128 dataset for 100 epochs at image size 640. The training device can be specified using the `device` argument. If no argument is passed GPU `device=0` will be used if available, otherwise `device=cpu` will be used. See Arguments section below for a full list of training arguments.
-
-!!! Example "Single-GPU and CPU Training Example"
-
- Device is determined automatically. If a GPU is available then it will be used, otherwise training will start on CPU.
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n.yaml') # build a new model from YAML
- model = YOLO('yolov8n.pt') # load a pretrained model (recommended for training)
- model = YOLO('yolov8n.yaml').load('yolov8n.pt') # build from YAML and transfer weights
-
- # Train the model
- results = model.train(data='coco128.yaml', epochs=100, imgsz=640)
- ```
-
- === "CLI"
-
- ```bash
- # Build a new model from YAML and start training from scratch
- yolo detect train data=coco128.yaml model=yolov8n.yaml epochs=100 imgsz=640
-
- # Start training from a pretrained *.pt model
- yolo detect train data=coco128.yaml model=yolov8n.pt epochs=100 imgsz=640
-
- # Build a new model from YAML, transfer pretrained weights to it and start training
- yolo detect train data=coco128.yaml model=yolov8n.yaml pretrained=yolov8n.pt epochs=100 imgsz=640
- ```
-
-### Multi-GPU Training
-
-Multi-GPU training allows for more efficient utilization of available hardware resources by distributing the training load across multiple GPUs. This feature is available through both the Python API and the command-line interface. To enable multi-GPU training, specify the GPU device IDs you wish to use.
-
-!!! Example "Multi-GPU Training Example"
-
- To train with 2 GPUs, CUDA devices 0 and 1 use the following commands. Expand to additional GPUs as required.
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n.pt') # load a pretrained model (recommended for training)
-
- # Train the model with 2 GPUs
- results = model.train(data='coco128.yaml', epochs=100, imgsz=640, device=[0, 1])
- ```
-
- === "CLI"
-
- ```bash
- # Start training from a pretrained *.pt model using GPUs 0 and 1
- yolo detect train data=coco128.yaml model=yolov8n.pt epochs=100 imgsz=640 device=0,1
- ```
-
-### Apple M1 and M2 MPS Training
-
-With the support for Apple M1 and M2 chips integrated in the Ultralytics YOLO models, it's now possible to train your models on devices utilizing the powerful Metal Performance Shaders (MPS) framework. The MPS offers a high-performance way of executing computation and image processing tasks on Apple's custom silicon.
-
-To enable training on Apple M1 and M2 chips, you should specify 'mps' as your device when initiating the training process. Below is an example of how you could do this in Python and via the command line:
-
-!!! Example "MPS Training Example"
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n.pt') # load a pretrained model (recommended for training)
-
- # Train the model with 2 GPUs
- results = model.train(data='coco128.yaml', epochs=100, imgsz=640, device='mps')
- ```
-
- === "CLI"
-
- ```bash
- # Start training from a pretrained *.pt model using GPUs 0 and 1
- yolo detect train data=coco128.yaml model=yolov8n.pt epochs=100 imgsz=640 device=mps
- ```
-
-While leveraging the computational power of the M1/M2 chips, this enables more efficient processing of the training tasks. For more detailed guidance and advanced configuration options, please refer to the [PyTorch MPS documentation](https://pytorch.org/docs/stable/notes/mps.html).
-
-### Resuming Interrupted Trainings
-
-Resuming training from a previously saved state is a crucial feature when working with deep learning models. This can come in handy in various scenarios, like when the training process has been unexpectedly interrupted, or when you wish to continue training a model with new data or for more epochs.
-
-When training is resumed, Ultralytics YOLO loads the weights from the last saved model and also restores the optimizer state, learning rate scheduler, and the epoch number. This allows you to continue the training process seamlessly from where it was left off.
-
-You can easily resume training in Ultralytics YOLO by setting the `resume` argument to `True` when calling the `train` method, and specifying the path to the `.pt` file containing the partially trained model weights.
-
-Below is an example of how to resume an interrupted training using Python and via the command line:
-
-!!! Example "Resume Training Example"
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('path/to/last.pt') # load a partially trained model
-
- # Resume training
- results = model.train(resume=True)
- ```
-
- === "CLI"
-
- ```bash
- # Resume an interrupted training
- yolo train resume model=path/to/last.pt
- ```
-
-By setting `resume=True`, the `train` function will continue training from where it left off, using the state stored in the 'path/to/last.pt' file. If the `resume` argument is omitted or set to `False`, the `train` function will start a new training session.
-
-Remember that checkpoints are saved at the end of every epoch by default, or at fixed interval using the `save_period` argument, so you must complete at least 1 epoch to resume a training run.
-
-## Train Settings
-
-The training settings for YOLO models encompass various hyperparameters and configurations used during the training process. These settings influence the model's performance, speed, and accuracy. Key training settings include batch size, learning rate, momentum, and weight decay. Additionally, the choice of optimizer, loss function, and training dataset composition can impact the training process. Careful tuning and experimentation with these settings are crucial for optimizing performance.
-
-| Argument | Default | Description |
-|-------------------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `model` | `None` | Specifies the model file for training. Accepts a path to either a `.pt` pretrained model or a `.yaml` configuration file. Essential for defining the model structure or initializing weights. |
-| `data` | `None` | Path to the dataset configuration file (e.g., `coco128.yaml`). This file contains dataset-specific parameters, including paths to training and validation data, class names, and number of classes. |
-| `epochs` | `100` | Total number of training epochs. Each epoch represents a full pass over the entire dataset. Adjusting this value can affect training duration and model performance. |
-| `time` | `None` | Maximum training time in hours. If set, this overrides the `epochs` argument, allowing training to automatically stop after the specified duration. Useful for time-constrained training scenarios. |
-| `patience` | `100` | Number of epochs to wait without improvement in validation metrics before early stopping the training. Helps prevent overfitting by stopping training when performance plateaus. |
-| `batch` | `16` | Batch size for training, indicating how many images are processed before the model's internal parameters are updated. AutoBatch (`batch=-1`) dynamically adjusts the batch size based on GPU memory availability. |
-| `imgsz` | `640` | Target image size for training. All images are resized to this dimension before being fed into the model. Affects model accuracy and computational complexity. |
-| `save` | `True` | Enables saving of training checkpoints and final model weights. Useful for resuming training or model deployment. |
-| `save_period` | `-1` | Frequency of saving model checkpoints, specified in epochs. A value of -1 disables this feature. Useful for saving interim models during long training sessions. |
-| `cache` | `False` | Enables caching of dataset images in memory (`True`/`ram`), on disk (`disk`), or disables it (`False`). Improves training speed by reducing disk I/O at the cost of increased memory usage. |
-| `device` | `None` | Specifies the computational device(s) for training: a single GPU (`device=0`), multiple GPUs (`device=0,1`), CPU (`device=cpu`), or MPS for Apple silicon (`device=mps`). |
-| `workers` | `8` | Number of worker threads for data loading (per `RANK` if Multi-GPU training). Influences the speed of data preprocessing and feeding into the model, especially useful in multi-GPU setups. |
-| `project` | `None` | Name of the project directory where training outputs are saved. Allows for organized storage of different experiments. |
-| `name` | `None` | Name of the training run. Used for creating a subdirectory within the project folder, where training logs and outputs are stored. |
-| `exist_ok` | `False` | If True, allows overwriting of an existing project/name directory. Useful for iterative experimentation without needing to manually clear previous outputs. |
-| `pretrained` | `True` | Determines whether to start training from a pretrained model. Can be a boolean value or a string path to a specific model from which to load weights. Enhances training efficiency and model performance. |
-| `optimizer` | `'auto'` | Choice of optimizer for training. Options include `SGD`, `Adam`, `AdamW`, `NAdam`, `RAdam`, `RMSProp` etc., or `auto` for automatic selection based on model configuration. Affects convergence speed and stability. |
-| `verbose` | `False` | Enables verbose output during training, providing detailed logs and progress updates. Useful for debugging and closely monitoring the training process. |
-| `seed` | `0` | Sets the random seed for training, ensuring reproducibility of results across runs with the same configurations. |
-| `deterministic` | `True` | Forces deterministic algorithm use, ensuring reproducibility but may affect performance and speed due to the restriction on non-deterministic algorithms. |
-| `single_cls` | `False` | Treats all classes in multi-class datasets as a single class during training. Useful for binary classification tasks or when focusing on object presence rather than classification. |
-| `rect` | `False` | Enables rectangular training, optimizing batch composition for minimal padding. Can improve efficiency and speed but may affect model accuracy. |
-| `cos_lr` | `False` | Utilizes a cosine learning rate scheduler, adjusting the learning rate following a cosine curve over epochs. Helps in managing learning rate for better convergence. |
-| `close_mosaic` | `10` | Disables mosaic data augmentation in the last N epochs to stabilize training before completion. Setting to 0 disables this feature. |
-| `resume` | `False` | Resumes training from the last saved checkpoint. Automatically loads model weights, optimizer state, and epoch count, continuing training seamlessly. |
-| `amp` | `True` | Enables Automatic Mixed Precision (AMP) training, reducing memory usage and possibly speeding up training with minimal impact on accuracy. |
-| `fraction` | `1.0` | Specifies the fraction of the dataset to use for training. Allows for training on a subset of the full dataset, useful for experiments or when resources are limited. |
-| `profile` | `False` | Enables profiling of ONNX and TensorRT speeds during training, useful for optimizing model deployment. |
-| `freeze` | `None` | Freezes the first N layers of the model or specified layers by index, reducing the number of trainable parameters. Useful for fine-tuning or transfer learning. |
-| `lr0` | `0.01` | Initial learning rate (i.e. `SGD=1E-2`, `Adam=1E-3`) . Adjusting this value is crucial for the optimization process, influencing how rapidly model weights are updated. |
-| `lrf` | `0.01` | Final learning rate as a fraction of the initial rate = (`lr0 * lrf`), used in conjunction with schedulers to adjust the learning rate over time. |
-| `momentum` | `0.937` | Momentum factor for SGD or beta1 for Adam optimizers, influencing the incorporation of past gradients in the current update. |
-| `weight_decay` | `0.0005` | L2 regularization term, penalizing large weights to prevent overfitting. |
-| `warmup_epochs` | `3.0` | Number of epochs for learning rate warmup, gradually increasing the learning rate from a low value to the initial learning rate to stabilize training early on. |
-| `warmup_momentum` | `0.8` | Initial momentum for warmup phase, gradually adjusting to the set momentum over the warmup period. |
-| `warmup_bias_lr` | `0.1` | Learning rate for bias parameters during the warmup phase, helping stabilize model training in the initial epochs. |
-| `box` | `7.5` | Weight of the box loss component in the loss function, influencing how much emphasis is placed on accurately predicting bounding box coordinates. |
-| `cls` | `0.5` | Weight of the classification loss in the total loss function, affecting the importance of correct class prediction relative to other components. |
-| `dfl` | `1.5` | Weight of the distribution focal loss, used in certain YOLO versions for fine-grained classification. |
-| `pose` | `12.0` | Weight of the pose loss in models trained for pose estimation, influencing the emphasis on accurately predicting pose keypoints. |
-| `kobj` | `2.0` | Weight of the keypoint objectness loss in pose estimation models, balancing detection confidence with pose accuracy. |
-| `label_smoothing` | `0.0` | Applies label smoothing, softening hard labels to a mix of the target label and a uniform distribution over labels, can improve generalization. |
-| `nbs` | `64` | Nominal batch size for normalization of loss. |
-| `overlap_mask` | `True` | Determines whether segmentation masks should overlap during training, applicable in instance segmentation tasks. |
-| `mask_ratio` | `4` | Downsample ratio for segmentation masks, affecting the resolution of masks used during training. |
-| `dropout` | `0.0` | Dropout rate for regularization in classification tasks, preventing overfitting by randomly omitting units during training. |
-| `val` | `True` | Enables validation during training, allowing for periodic evaluation of model performance on a separate dataset. |
-| `plots` | `False` | Generates and saves plots of training and validation metrics, as well as prediction examples, providing visual insights into model performance and learning progression. |
-
-## Augmentation Settings and Hyperparameters
-
-Augmentation techniques are essential for improving the robustness and performance of YOLO models by introducing variability into the training data, helping the model generalize better to unseen data. The following table outlines the purpose and effect of each augmentation argument:
-
-| Argument | Type | Default | Range | Description |
-|----------------|---------|---------------|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `hsv_h` | `float` | `0.015` | `0.0 - 1.0` | Adjusts the hue of the image by a fraction of the color wheel, introducing color variability. Helps the model generalize across different lighting conditions. |
-| `hsv_s` | `float` | `0.7` | `0.0 - 1.0` | Alters the saturation of the image by a fraction, affecting the intensity of colors. Useful for simulating different environmental conditions. |
-| `hsv_v` | `float` | `0.4` | `0.0 - 1.0` | Modifies the value (brightness) of the image by a fraction, helping the model to perform well under various lighting conditions. |
-| `degrees` | `float` | `0.0` | `-180 - +180` | Rotates the image randomly within the specified degree range, improving the model's ability to recognize objects at various orientations. |
-| `translate` | `float` | `0.1` | `0.0 - 1.0` | Translates the image horizontally and vertically by a fraction of the image size, aiding in learning to detect partially visible objects. |
-| `scale` | `float` | `0.5` | `>=0.0` | Scales the image by a gain factor, simulating objects at different distances from the camera. |
-| `shear` | `float` | `0.0` | `-180 - +180` | Shears the image by a specified degree, mimicking the effect of objects being viewed from different angles. |
-| `perspective` | `float` | `0.0` | `0.0 - 0.001` | Applies a random perspective transformation to the image, enhancing the model's ability to understand objects in 3D space. |
-| `flipud` | `float` | `0.0` | `0.0 - 1.0` | Flips the image upside down with the specified probability, increasing the data variability without affecting the object's characteristics. |
-| `fliplr` | `float` | `0.5` | `0.0 - 1.0` | Flips the image left to right with the specified probability, useful for learning symmetrical objects and increasing dataset diversity. |
-| `mosaic` | `float` | `1.0` | `0.0 - 1.0` | Combines four training images into one, simulating different scene compositions and object interactions. Highly effective for complex scene understanding. |
-| `mixup` | `float` | `0.0` | `0.0 - 1.0` | Blends two images and their labels, creating a composite image. Enhances the model's ability to generalize by introducing label noise and visual variability. |
-| `copy_paste` | `float` | `0.0` | `0.0 - 1.0` | Copies objects from one image and pastes them onto another, useful for increasing object instances and learning object occlusion. |
-| `auto_augment` | `str` | `randaugment` | - | Automatically applies a predefined augmentation policy (`randaugment`, `autoaugment`, `augmix`), optimizing for classification tasks by diversifying the visual features. |
-| `erasing` | `float` | `0.4` | `0.0 - 1.0` | Randomly erases a portion of the image during classification training, encouraging the model to focus on less obvious features for recognition. |
-
-These settings can be adjusted to meet the specific requirements of the dataset and task at hand. Experimenting with different values can help find the optimal augmentation strategy that leads to the best model performance.
-
-!!! info
-
- For more information about training augmentation operations, see the [reference section](../reference/data/augment.md).
-
-## Logging
-
-In training a YOLOv8 model, you might find it valuable to keep track of the model's performance over time. This is where logging comes into play. Ultralytics' YOLO provides support for three types of loggers - Comet, ClearML, and TensorBoard.
-
-To use a logger, select it from the dropdown menu in the code snippet above and run it. The chosen logger will be installed and initialized.
-
-### Comet
-
-[Comet](../integrations/comet.md) is a platform that allows data scientists and developers to track, compare, explain and optimize experiments and models. It provides functionalities such as real-time metrics, code diffs, and hyperparameters tracking.
-
-To use Comet:
-
-!!! Example
-
- === "Python"
-
- ```python
- # pip install comet_ml
- import comet_ml
-
- comet_ml.init()
- ```
-
-Remember to sign in to your Comet account on their website and get your API key. You will need to add this to your environment variables or your script to log your experiments.
-
-### ClearML
-
-[ClearML](https://www.clear.ml/) is an open-source platform that automates tracking of experiments and helps with efficient sharing of resources. It is designed to help teams manage, execute, and reproduce their ML work more efficiently.
-
-To use ClearML:
-
-!!! Example
-
- === "Python"
-
- ```python
- # pip install clearml
- import clearml
-
- clearml.browser_login()
- ```
-
-After running this script, you will need to sign in to your ClearML account on the browser and authenticate your session.
-
-### TensorBoard
-
-[TensorBoard](https://www.tensorflow.org/tensorboard) is a visualization toolkit for TensorFlow. It allows you to visualize your TensorFlow graph, plot quantitative metrics about the execution of your graph, and show additional data like images that pass through it.
-
-To use TensorBoard in [Google Colab](https://colab.research.google.com/github/ultralytics/ultralytics/blob/main/examples/tutorial.ipynb):
-
-!!! Example
-
- === "CLI"
-
- ```bash
- load_ext tensorboard
- tensorboard --logdir ultralytics/runs # replace with 'runs' directory
- ```
-
-To use TensorBoard locally run the below command and view results at http://localhost:6006/.
-
-!!! Example
-
- === "CLI"
-
- ```bash
- tensorboard --logdir ultralytics/runs # replace with 'runs' directory
- ```
-
-This will load TensorBoard and direct it to the directory where your training logs are saved.
-
-After setting up your logger, you can then proceed with your model training. All training metrics will be automatically logged in your chosen platform, and you can access these logs to monitor your model's performance over time, compare different models, and identify areas for improvement.
diff --git a/ultralytics-main/docs/en/modes/val.md b/ultralytics-main/docs/en/modes/val.md
deleted file mode 100644
index 0c77425..0000000
--- a/ultralytics-main/docs/en/modes/val.md
+++ /dev/null
@@ -1,128 +0,0 @@
----
-comments: true
-description: Guide for Validating YOLOv8 Models. Learn how to evaluate the performance of your YOLO models using validation settings and metrics with Python and CLI examples.
-keywords: Ultralytics, YOLO Docs, YOLOv8, validation, model evaluation, hyperparameters, accuracy, metrics, Python, CLI
----
-
-# Model Validation with Ultralytics YOLO
-
-
-
-## Introduction
-
-Validation is a critical step in the machine learning pipeline, allowing you to assess the quality of your trained models. Val mode in Ultralytics YOLOv8 provides a robust suite of tools and metrics for evaluating the performance of your object detection models. This guide serves as a complete resource for understanding how to effectively use the Val mode to ensure that your models are both accurate and reliable.
-
-
-
-## Why Validate with Ultralytics YOLO?
-
-Here's why using YOLOv8's Val mode is advantageous:
-
-- **Precision:** Get accurate metrics like mAP50, mAP75, and mAP50-95 to comprehensively evaluate your model.
-- **Convenience:** Utilize built-in features that remember training settings, simplifying the validation process.
-- **Flexibility:** Validate your model with the same or different datasets and image sizes.
-- **Hyperparameter Tuning:** Use validation metrics to fine-tune your model for better performance.
-
-### Key Features of Val Mode
-
-These are the notable functionalities offered by YOLOv8's Val mode:
-
-- **Automated Settings:** Models remember their training configurations for straightforward validation.
-- **Multi-Metric Support:** Evaluate your model based on a range of accuracy metrics.
-- **CLI and Python API:** Choose from command-line interface or Python API based on your preference for validation.
-- **Data Compatibility:** Works seamlessly with datasets used during the training phase as well as custom datasets.
-
-!!! Tip "Tip"
-
- * YOLOv8 models automatically remember their training settings, so you can validate a model at the same image size and on the original dataset easily with just `yolo val model=yolov8n.pt` or `model('yolov8n.pt').val()`
-
-## Usage Examples
-
-Validate trained YOLOv8n model accuracy on the COCO128 dataset. No argument need to passed as the `model` retains it's training `data` and arguments as model attributes. See Arguments section below for a full list of export arguments.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n.pt') # load an official model
- model = YOLO('path/to/best.pt') # load a custom model
-
- # Validate the model
- metrics = model.val() # no arguments needed, dataset and settings remembered
- metrics.box.map # map50-95
- metrics.box.map50 # map50
- metrics.box.map75 # map75
- metrics.box.maps # a list contains map50-95 of each category
- ```
-
- === "CLI"
-
- ```bash
- yolo detect val model=yolov8n.pt # val official model
- yolo detect val model=path/to/best.pt # val custom model
- ```
-
-## Arguments for YOLO Model Validation
-
-When validating YOLO models, several arguments can be fine-tuned to optimize the evaluation process. These arguments control aspects such as input image size, batch processing, and performance thresholds. Below is a detailed breakdown of each argument to help you customize your validation settings effectively.
-
-| Argument | Type | Default | Description |
-|---------------|---------|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `data` | `str` | `None` | Specifies the path to the dataset configuration file (e.g., `coco128.yaml`). This file includes paths to validation data, class names, and number of classes. |
-| `imgsz` | `int` | `640` | Defines the size of input images. All images are resized to this dimension before processing. |
-| `batch` | `int` | `16` | Sets the number of images per batch. Use `-1` for AutoBatch, which automatically adjusts based on GPU memory availability. |
-| `save_json` | `bool` | `False` | If `True`, saves the results to a JSON file for further analysis or integration with other tools. |
-| `save_hybrid` | `bool` | `False` | If `True`, saves a hybrid version of labels that combines original annotations with additional model predictions. |
-| `conf` | `float` | `0.001` | Sets the minimum confidence threshold for detections. Detections with confidence below this threshold are discarded. |
-| `iou` | `float` | `0.6` | Sets the Intersection Over Union (IoU) threshold for Non-Maximum Suppression (NMS). Helps in reducing duplicate detections. |
-| `max_det` | `int` | `300` | Limits the maximum number of detections per image. Useful in dense scenes to prevent excessive detections. |
-| `half` | `bool` | `True` | Enables half-precision (FP16) computation, reducing memory usage and potentially increasing speed with minimal impact on accuracy. |
-| `device` | `str` | `None` | Specifies the device for validation (`cpu`, `cuda:0`, etc.). Allows flexibility in utilizing CPU or GPU resources. |
-| `dnn` | `bool` | `False` | If `True`, uses the OpenCV DNN module for ONNX model inference, offering an alternative to PyTorch inference methods. |
-| `plots` | `bool` | `False` | When set to `True`, generates and saves plots of predictions versus ground truth for visual evaluation of the model's performance. |
-| `rect` | `bool` | `False` | If `True`, uses rectangular inference for batching, reducing padding and potentially increasing speed and efficiency. |
-| `split` | `str` | `val` | Determines the dataset split to use for validation (`val`, `test`, or `train`). Allows flexibility in choosing the data segment for performance evaluation. |
-
-Each of these settings plays a vital role in the validation process, allowing for a customizable and efficient evaluation of YOLO models. Adjusting these parameters according to your specific needs and resources can help achieve the best balance between accuracy and performance.
-
-### Example Validation with Arguments
-
-The below examples showcase YOLO model validation with custom arguments in Python and CLI.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n.pt')
-
- # Customize validation settings
- validation_results = model.val(data='coco8.yaml',
- imgsz=640,
- batch=16,
- conf=0.25,
- iou=0.6,
- device='0')
- ```
-
- === "CLI"
-
- ```bash
- yolo val model=yolov8n.pt data=coco8.yaml imgsz=640 batch=16 conf=0.25 iou=0.6 device=0
- ```
diff --git a/ultralytics-main/docs/en/quickstart.md b/ultralytics-main/docs/en/quickstart.md
deleted file mode 100644
index cf54217..0000000
--- a/ultralytics-main/docs/en/quickstart.md
+++ /dev/null
@@ -1,328 +0,0 @@
----
-comments: true
-description: Explore various methods to install Ultralytics using pip, conda, git and Docker. Learn how to use Ultralytics with command line interface or within your Python projects.
-keywords: Ultralytics installation, pip install Ultralytics, Docker install Ultralytics, Ultralytics command line interface, Ultralytics Python interface
----
-
-## Install Ultralytics
-
-Ultralytics provides various installation methods including pip, conda, and Docker. Install YOLOv8 via the `ultralytics` pip package for the latest stable release or by cloning the [Ultralytics GitHub repository](https://github.com/ultralytics/ultralytics) for the most up-to-date version. Docker can be used to execute the package in an isolated container, avoiding local installation.
-
-
-
-!!! Example "Install"
-
- === "Pip install (recommended)"
-
- Install the `ultralytics` package using pip, or update an existing installation by running `pip install -U ultralytics`. Visit the Python Package Index (PyPI) for more details on the `ultralytics` package: [https://pypi.org/project/ultralytics/](https://pypi.org/project/ultralytics/).
-
- [![PyPI version](https://badge.fury.io/py/ultralytics.svg)](https://badge.fury.io/py/ultralytics) [![Downloads](https://static.pepy.tech/badge/ultralytics)](https://pepy.tech/project/ultralytics)
-
- ```bash
- # Install the ultralytics package from PyPI
- pip install ultralytics
- ```
-
- You can also install the `ultralytics` package directly from the GitHub [repository](https://github.com/ultralytics/ultralytics). This might be useful if you want the latest development version. Make sure to have the Git command-line tool installed on your system. The `@main` command installs the `main` branch and may be modified to another branch, i.e. `@my-branch`, or removed entirely to default to `main` branch.
-
- ```bash
- # Install the ultralytics package from GitHub
- pip install git+https://github.com/ultralytics/ultralytics.git@main
- ```
-
- === "Conda install"
-
- Conda is an alternative package manager to pip which may also be used for installation. Visit Anaconda for more details at [https://anaconda.org/conda-forge/ultralytics](https://anaconda.org/conda-forge/ultralytics). Ultralytics feedstock repository for updating the conda package is at [https://github.com/conda-forge/ultralytics-feedstock/](https://github.com/conda-forge/ultralytics-feedstock/).
-
-
- [![Conda Recipe](https://img.shields.io/badge/recipe-ultralytics-green.svg)](https://anaconda.org/conda-forge/ultralytics) [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/ultralytics.svg)](https://anaconda.org/conda-forge/ultralytics) [![Conda Version](https://img.shields.io/conda/vn/conda-forge/ultralytics.svg)](https://anaconda.org/conda-forge/ultralytics) [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/ultralytics.svg)](https://anaconda.org/conda-forge/ultralytics)
-
- ```bash
- # Install the ultralytics package using conda
- conda install -c conda-forge ultralytics
- ```
-
- !!! Note
-
- If you are installing in a CUDA environment best practice is to install `ultralytics`, `pytorch` and `pytorch-cuda` in the same command to allow the conda package manager to resolve any conflicts, or else to install `pytorch-cuda` last to allow it override the CPU-specific `pytorch` package if necessary.
- ```bash
- # Install all packages together using conda
- conda install -c pytorch -c nvidia -c conda-forge pytorch torchvision pytorch-cuda=11.8 ultralytics
- ```
-
- ### Conda Docker Image
-
- Ultralytics Conda Docker images are also available from [DockerHub](https://hub.docker.com/r/ultralytics/ultralytics). These images are based on [Miniconda3](https://docs.conda.io/projects/miniconda/en/latest/) and are an simple way to start using `ultralytics` in a Conda environment.
-
- ```bash
- # Set image name as a variable
- t=ultralytics/ultralytics:latest-conda
-
- # Pull the latest ultralytics image from Docker Hub
- sudo docker pull $t
-
- # Run the ultralytics image in a container with GPU support
- sudo docker run -it --ipc=host --gpus all $t # all GPUs
- sudo docker run -it --ipc=host --gpus '"device=2,3"' $t # specify GPUs
- ```
-
- === "Git clone"
- Clone the `ultralytics` repository if you are interested in contributing to the development or wish to experiment with the latest source code. After cloning, navigate into the directory and install the package in editable mode `-e` using pip.
- ```bash
- # Clone the ultralytics repository
- git clone https://github.com/ultralytics/ultralytics
-
- # Navigate to the cloned directory
- cd ultralytics
-
- # Install the package in editable mode for development
- pip install -e .
- ```
-
- === "Docker"
-
- Utilize Docker to effortlessly execute the `ultralytics` package in an isolated container, ensuring consistent and smooth performance across various environments. By choosing one of the official `ultralytics` images from [Docker Hub](https://hub.docker.com/r/ultralytics/ultralytics), you not only avoid the complexity of local installation but also benefit from access to a verified working environment. Ultralytics offers 5 main supported Docker images, each designed to provide high compatibility and efficiency for different platforms and use cases:
-
-
-
- - **Dockerfile:** GPU image recommended for training.
- - **Dockerfile-arm64:** Optimized for ARM64 architecture, allowing deployment on devices like Raspberry Pi and other ARM64-based platforms.
- - **Dockerfile-cpu:** Ubuntu-based CPU-only version suitable for inference and environments without GPUs.
- - **Dockerfile-jetson:** Tailored for NVIDIA Jetson devices, integrating GPU support optimized for these platforms.
- - **Dockerfile-python:** Minimal image with just Python and necessary dependencies, ideal for lightweight applications and development.
- - **Dockerfile-conda:** Based on Miniconda3 with conda installation of ultralytics package.
-
- Below are the commands to get the latest image and execute it:
-
- ```bash
- # Set image name as a variable
- t=ultralytics/ultralytics:latest
-
- # Pull the latest ultralytics image from Docker Hub
- sudo docker pull $t
-
- # Run the ultralytics image in a container with GPU support
- sudo docker run -it --ipc=host --gpus all $t # all GPUs
- sudo docker run -it --ipc=host --gpus '"device=2,3"' $t # specify GPUs
- ```
-
- The above command initializes a Docker container with the latest `ultralytics` image. The `-it` flag assigns a pseudo-TTY and maintains stdin open, enabling you to interact with the container. The `--ipc=host` flag sets the IPC (Inter-Process Communication) namespace to the host, which is essential for sharing memory between processes. The `--gpus all` flag enables access to all available GPUs inside the container, which is crucial for tasks that require GPU computation.
-
- Note: To work with files on your local machine within the container, use Docker volumes for mounting a local directory into the container:
-
- ```bash
- # Mount local directory to a directory inside the container
- sudo docker run -it --ipc=host --gpus all -v /path/on/host:/path/in/container $t
- ```
-
- Alter `/path/on/host` with the directory path on your local machine, and `/path/in/container` with the desired path inside the Docker container for accessibility.
-
- For advanced Docker usage, feel free to explore the [Ultralytics Docker Guide](https://docs.ultralytics.com/guides/docker-quickstart/).
-
-See the `ultralytics` [requirements.txt](https://github.com/ultralytics/ultralytics/blob/main/pyproject.toml) file for a list of dependencies. Note that all examples above install all required dependencies.
-
-!!! Tip "Tip"
-
- PyTorch requirements vary by operating system and CUDA requirements, so it's recommended to install PyTorch first following instructions at [https://pytorch.org/get-started/locally](https://pytorch.org/get-started/locally).
-
-
-
-
-
-## Use Ultralytics with CLI
-
-The Ultralytics command line interface (CLI) allows for simple single-line commands without the need for a Python environment. CLI requires no customization or Python code. You can simply run all tasks from the terminal with the `yolo` command. Check out the [CLI Guide](usage/cli.md) to learn more about using YOLOv8 from the command line.
-
-!!! Example
-
- === "Syntax"
-
- Ultralytics `yolo` commands use the following syntax:
- ```bash
- yolo TASK MODE ARGS
- ```
-
- - `TASK` (optional) is one of ([detect](tasks/detect.md), [segment](tasks/segment.md), [classify](tasks/classify.md), [pose](tasks/pose.md))
- - `MODE` (required) is one of ([train](modes/train.md), [val](modes/val.md), [predict](modes/predict.md), [export](modes/export.md), [track](modes/track.md))
- - `ARGS` (optional) are `arg=value` pairs like `imgsz=640` that override defaults.
-
- See all `ARGS` in the full [Configuration Guide](usage/cfg.md) or with the `yolo cfg` CLI command.
-
- === "Train"
-
- Train a detection model for 10 epochs with an initial learning_rate of 0.01
- ```bash
- yolo train data=coco128.yaml model=yolov8n.pt epochs=10 lr0=0.01
- ```
-
- === "Predict"
-
- Predict a YouTube video using a pretrained segmentation model at image size 320:
- ```bash
- yolo predict model=yolov8n-seg.pt source='https://youtu.be/LNwODJXcvt4' imgsz=320
- ```
-
- === "Val"
-
- Val a pretrained detection model at batch-size 1 and image size 640:
- ```bash
- yolo val model=yolov8n.pt data=coco128.yaml batch=1 imgsz=640
- ```
-
- === "Export"
-
- Export a YOLOv8n classification model to ONNX format at image size 224 by 128 (no TASK required)
- ```bash
- yolo export model=yolov8n-cls.pt format=onnx imgsz=224,128
- ```
-
- === "Special"
-
- Run special commands to see version, view settings, run checks and more:
- ```bash
- yolo help
- yolo checks
- yolo version
- yolo settings
- yolo copy-cfg
- yolo cfg
- ```
-
-!!! Warning "Warning"
-
- Arguments must be passed as `arg=val` pairs, split by an equals `=` sign and delimited by spaces between pairs. Do not use `--` argument prefixes or commas `,` between arguments.
-
- - `yolo predict model=yolov8n.pt imgsz=640 conf=0.25` ✅
- - `yolo predict model yolov8n.pt imgsz 640 conf 0.25` ❌ (missing `=`)
- - `yolo predict model=yolov8n.pt, imgsz=640, conf=0.25` ❌ (do not use `,`)
- - `yolo predict --model yolov8n.pt --imgsz 640 --conf 0.25` ❌ (do not use `--`)
-
-[CLI Guide](usage/cli.md){ .md-button }
-
-## Use Ultralytics with Python
-
-YOLOv8's Python interface allows for seamless integration into your Python projects, making it easy to load, run, and process the model's output. Designed with simplicity and ease of use in mind, the Python interface enables users to quickly implement object detection, segmentation, and classification in their projects. This makes YOLOv8's Python interface an invaluable tool for anyone looking to incorporate these functionalities into their Python projects.
-
-For example, users can load a model, train it, evaluate its performance on a validation set, and even export it to ONNX format with just a few lines of code. Check out the [Python Guide](usage/python.md) to learn more about using YOLOv8 within your Python projects.
-
-!!! Example
-
- ```python
- from ultralytics import YOLO
-
- # Create a new YOLO model from scratch
- model = YOLO('yolov8n.yaml')
-
- # Load a pretrained YOLO model (recommended for training)
- model = YOLO('yolov8n.pt')
-
- # Train the model using the 'coco128.yaml' dataset for 3 epochs
- results = model.train(data='coco128.yaml', epochs=3)
-
- # Evaluate the model's performance on the validation set
- results = model.val()
-
- # Perform object detection on an image using the model
- results = model('https://ultralytics.com/images/bus.jpg')
-
- # Export the model to ONNX format
- success = model.export(format='onnx')
- ```
-
-[Python Guide](usage/python.md){.md-button .md-button--primary}
-
-## Ultralytics Settings
-
-The Ultralytics library provides a powerful settings management system to enable fine-grained control over your experiments. By making use of the `SettingsManager` housed within the `ultralytics.utils` module, users can readily access and alter their settings. These are stored in a YAML file and can be viewed or modified either directly within the Python environment or via the Command-Line Interface (CLI).
-
-### Inspecting Settings
-
-To gain insight into the current configuration of your settings, you can view them directly:
-
-!!! Example "View settings"
-
- === "Python"
- You can use Python to view your settings. Start by importing the `settings` object from the `ultralytics` module. Print and return settings using the following commands:
- ```python
- from ultralytics import settings
-
- # View all settings
- print(settings)
-
- # Return a specific setting
- value = settings['runs_dir']
- ```
-
- === "CLI"
- Alternatively, the command-line interface allows you to check your settings with a simple command:
- ```bash
- yolo settings
- ```
-
-### Modifying Settings
-
-Ultralytics allows users to easily modify their settings. Changes can be performed in the following ways:
-
-!!! Example "Update settings"
-
- === "Python"
- Within the Python environment, call the `update` method on the `settings` object to change your settings:
- ```python
- from ultralytics import settings
-
- # Update a setting
- settings.update({'runs_dir': '/path/to/runs'})
-
- # Update multiple settings
- settings.update({'runs_dir': '/path/to/runs', 'tensorboard': False})
-
- # Reset settings to default values
- settings.reset()
- ```
-
- === "CLI"
- If you prefer using the command-line interface, the following commands will allow you to modify your settings:
- ```bash
- # Update a setting
- yolo settings runs_dir='/path/to/runs'
-
- # Update multiple settings
- yolo settings runs_dir='/path/to/runs' tensorboard=False
-
- # Reset settings to default values
- yolo settings reset
- ```
-
-### Understanding Settings
-
-The table below provides an overview of the settings available for adjustment within Ultralytics. Each setting is outlined along with an example value, the data type, and a brief description.
-
-| Name | Example Value | Data Type | Description |
-|--------------------|-----------------------|-----------|------------------------------------------------------------------------------------------------------------------|
-| `settings_version` | `'0.0.4'` | `str` | Ultralytics _settings_ version (different from Ultralytics [pip](https://pypi.org/project/ultralytics/) version) |
-| `datasets_dir` | `'/path/to/datasets'` | `str` | The directory where the datasets are stored |
-| `weights_dir` | `'/path/to/weights'` | `str` | The directory where the model weights are stored |
-| `runs_dir` | `'/path/to/runs'` | `str` | The directory where the experiment runs are stored |
-| `uuid` | `'a1b2c3d4'` | `str` | The unique identifier for the current settings |
-| `sync` | `True` | `bool` | Whether to sync analytics and crashes to HUB |
-| `api_key` | `''` | `str` | Ultralytics HUB [API Key](https://hub.ultralytics.com/settings?tab=api+keys) |
-| `clearml` | `True` | `bool` | Whether to use ClearML logging |
-| `comet` | `True` | `bool` | Whether to use [Comet ML](https://bit.ly/yolov8-readme-comet) for experiment tracking and visualization |
-| `dvc` | `True` | `bool` | Whether to use [DVC for experiment tracking](https://dvc.org/doc/dvclive/ml-frameworks/yolo) and version control |
-| `hub` | `True` | `bool` | Whether to use [Ultralytics HUB](https://hub.ultralytics.com) integration |
-| `mlflow` | `True` | `bool` | Whether to use MLFlow for experiment tracking |
-| `neptune` | `True` | `bool` | Whether to use Neptune for experiment tracking |
-| `raytune` | `True` | `bool` | Whether to use Ray Tune for hyperparameter tuning |
-| `tensorboard` | `True` | `bool` | Whether to use TensorBoard for visualization |
-| `wandb` | `True` | `bool` | Whether to use Weights & Biases logging |
-
-As you navigate through your projects or experiments, be sure to revisit these settings to ensure that they are optimally configured for your needs.
diff --git a/ultralytics-main/docs/en/reference/cfg/__init__.md b/ultralytics-main/docs/en/reference/cfg/__init__.md
deleted file mode 100644
index b8db12c..0000000
--- a/ultralytics-main/docs/en/reference/cfg/__init__.md
+++ /dev/null
@@ -1,64 +0,0 @@
----
-description: Explore Ultralytics cfg functions like cfg2dict, handle_deprecation, merge_equal_args & more to handle YOLO settings and configurations efficiently.
-keywords: Ultralytics, YOLO, Configuration, cfg2dict, handle_deprecation, merge_equals_args, handle_yolo_settings, copy_default_cfg, Image Detection
----
-
-# Reference for `ultralytics/cfg/__init__.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/__init__.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/__init__.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/cfg/__init__.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/data/annotator.md b/ultralytics-main/docs/en/reference/data/annotator.md
deleted file mode 100644
index ab685b2..0000000
--- a/ultralytics-main/docs/en/reference/data/annotator.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Enhance your machine learning model with Ultralytics’ auto_annotate function. Simplify data annotation for improved model training.
-keywords: Ultralytics, Auto-Annotate, Machine Learning, AI, Annotation, Data Processing, Model Training
----
-
-# Reference for `ultralytics/data/annotator.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/annotator.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/annotator.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/data/annotator.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/data/augment.md b/ultralytics-main/docs/en/reference/data/augment.md
deleted file mode 100644
index 1d4099f..0000000
--- a/ultralytics-main/docs/en/reference/data/augment.md
+++ /dev/null
@@ -1,84 +0,0 @@
----
-description: Detailed exploration into Ultralytics data augmentation methods including BaseTransform, MixUp, LetterBox, ToTensor, and more for enhancing model performance.
-keywords: Ultralytics, Data Augmentation, BaseTransform, MixUp, RandomHSV, LetterBox, Albumentations, classify_transforms, classify_albumentations
----
-
-# Reference for `ultralytics/data/augment.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/augment.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/augment.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/data/augment.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/data/base.md b/ultralytics-main/docs/en/reference/data/base.md
deleted file mode 100644
index c98a7c3..0000000
--- a/ultralytics-main/docs/en/reference/data/base.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Explore BaseDataset in Ultralytics docs. Learn how this implementation simplifies dataset creation and manipulation.
-keywords: Ultralytics, docs, BaseDataset, data manipulation, dataset creation
----
-
-# Reference for `ultralytics/data/base.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/base.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/base.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/data/base.py) 🛠️. Thank you 🙏!
-
-
-
-## ::: ultralytics.data.base.BaseDataset
-
-
diff --git a/ultralytics-main/docs/en/reference/data/build.md b/ultralytics-main/docs/en/reference/data/build.md
deleted file mode 100644
index 811c11d..0000000
--- a/ultralytics-main/docs/en/reference/data/build.md
+++ /dev/null
@@ -1,40 +0,0 @@
----
-description: Explore the Ultralytics YOLO v3 data build procedures, including the InfiniteDataLoader, seed_worker, build_dataloader, and load_inference_source.
-keywords: Ultralytics, YOLO v3, Data build, DataLoader, InfiniteDataLoader, seed_worker, build_dataloader, load_inference_source
----
-
-# Reference for `ultralytics/data/build.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/build.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/build.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/data/build.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/data/converter.md b/ultralytics-main/docs/en/reference/data/converter.md
deleted file mode 100644
index 1d456b3..0000000
--- a/ultralytics-main/docs/en/reference/data/converter.md
+++ /dev/null
@@ -1,40 +0,0 @@
----
-description: Explore Ultralytics data converter functions like coco91_to_coco80_class, merge_multi_segment, rle2polygon for efficient data handling.
-keywords: Ultralytics, Data Converter, coco91_to_coco80_class, merge_multi_segment, rle2polygon
----
-
-# Reference for `ultralytics/data/converter.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/converter.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/converter.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/data/converter.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/data/dataset.md b/ultralytics-main/docs/en/reference/data/dataset.md
deleted file mode 100644
index 242a054..0000000
--- a/ultralytics-main/docs/en/reference/data/dataset.md
+++ /dev/null
@@ -1,32 +0,0 @@
----
-description: Explore the YOLODataset and SemanticDataset classes in YOLO data. Learn how to efficiently handle and manipulate your data with Ultralytics.
-keywords: Ultralytics, YOLO, YOLODataset, SemanticDataset, data handling, data manipulation
----
-
-# Reference for `ultralytics/data/dataset.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/dataset.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/dataset.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/data/dataset.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/data/explorer/explorer.md b/ultralytics-main/docs/en/reference/data/explorer/explorer.md
deleted file mode 100644
index d860863..0000000
--- a/ultralytics-main/docs/en/reference/data/explorer/explorer.md
+++ /dev/null
@@ -1,21 +0,0 @@
----
-comments: true
-description: Comprehensive reference for the Explorer API. Get a brief description of all the main classes utilised for creating and handling the data in the Ultralytics data explorer project.
-keywords: Ultralytics, explorer.py, data explorer, Semantic search, vector similarity search, class reference, documentation, ExplorerDataset, Explorer, data handling
----
-
-# Reference for `ultralytics/data/explorer/explorer.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/explorer/explorer.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/explorer/explorer.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/data/explorer/explorer.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/data/explorer/gui/dash.md b/ultralytics-main/docs/en/reference/data/explorer/gui/dash.md
deleted file mode 100644
index fd241d9..0000000
--- a/ultralytics-main/docs/en/reference/data/explorer/gui/dash.md
+++ /dev/null
@@ -1,57 +0,0 @@
----
-comments: true
-description: Detailed reference for the Explorer GUI. Includes brief descriptions for all the major functions used in the dashboard demo of Explorer API.
-keywords: Ultralytics, data explorer, gui, function reference, documentation, AI queries, image similarity, SQL queries, streamlit, semantic search
----
-
-# Reference for `ultralytics/data/explorer/gui/dash.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/explorer/gui/dash.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/explorer/gui/dash.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/data/explorer/gui/dash.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/data/explorer/utils.md b/ultralytics-main/docs/en/reference/data/explorer/utils.md
deleted file mode 100644
index d1769c5..0000000
--- a/ultralytics-main/docs/en/reference/data/explorer/utils.md
+++ /dev/null
@@ -1,33 +0,0 @@
----
-comments: true
-description: Detailed reference for the Explorer utils. Provides descriptions and details on important utility functions for managing and interacting with data in the Ultralytics explorer project.
-keywords: Ultralytics, data explorer, function reference, documentation, get table schema, get sim index schema, sanitize batch, plot query result, prompt SQL query
----
-
-# Reference for `ultralytics/data/explorer/utils.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/explorer/utils.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/explorer/utils.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/data/explorer/utils.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/data/loaders.md b/ultralytics-main/docs/en/reference/data/loaders.md
deleted file mode 100644
index 99d7749..0000000
--- a/ultralytics-main/docs/en/reference/data/loaders.md
+++ /dev/null
@@ -1,44 +0,0 @@
----
-description: Find detailed guides on Ultralytics YOLO data loaders, including LoadStreams, LoadImages and LoadTensor. Learn how to get the best YouTube URLs.
-keywords: Ultralytics, data loaders, LoadStreams, LoadImages, LoadTensor, YOLO, YouTube URLs
----
-
-# Reference for `ultralytics/data/loaders.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/loaders.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/loaders.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/data/loaders.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/data/split_dota.md b/ultralytics-main/docs/en/reference/data/split_dota.md
deleted file mode 100644
index ae3dfaa..0000000
--- a/ultralytics-main/docs/en/reference/data/split_dota.md
+++ /dev/null
@@ -1,44 +0,0 @@
----
-description: Detailed guide on using YOLO with DOTA dataset for object detection, including dataset preparation, image splitting, and label handling.
-keywords: Ultralytics, YOLO, DOTA dataset, object detection, image processing, python, dataset preparation, image splitting, label handling, YOLO with DOTA, computer vision, AI, machine learning
----
-
-# Reference for `ultralytics/data/split_dota.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/split_dota.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/split_dota.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/data/split_dota.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/data/utils.md b/ultralytics-main/docs/en/reference/data/utils.md
deleted file mode 100644
index af06ce8..0000000
--- a/ultralytics-main/docs/en/reference/data/utils.md
+++ /dev/null
@@ -1,68 +0,0 @@
----
-description: Uncover a detailed guide to Ultralytics data utilities. Learn functions from img2label_paths to autosplit, all boosting your YOLO model’s efficiency.
-keywords: Ultralytics, data utils, YOLO, img2label_paths, exif_size, polygon2mask, polygons2masks_overlap, check_cls_dataset, delete_dsstore, autosplit
----
-
-# Reference for `ultralytics/data/utils.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/utils.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/utils.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/data/utils.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/engine/exporter.md b/ultralytics-main/docs/en/reference/engine/exporter.md
deleted file mode 100644
index e8daeac..0000000
--- a/ultralytics-main/docs/en/reference/engine/exporter.md
+++ /dev/null
@@ -1,32 +0,0 @@
----
-description: Explore the exporter functionality of Ultralytics. Learn about exporting formats, IOSDetectModel, and try exporting with examples.
-keywords: Ultralytics, Exporter, IOSDetectModel, Export Formats, Try export
----
-
-# Reference for `ultralytics/engine/exporter.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/engine/exporter.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/engine/exporter.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/engine/exporter.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/engine/model.md b/ultralytics-main/docs/en/reference/engine/model.md
deleted file mode 100644
index 5579d75..0000000
--- a/ultralytics-main/docs/en/reference/engine/model.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Explore the detailed guide on using the Ultralytics YOLO Engine Model. Learn better ways to implement, train and evaluate YOLO models.
-keywords: Ultralytics, YOLO, engine model, documentation, guide, implementation, training, evaluation
----
-
-# Reference for `ultralytics/engine/model.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/engine/model.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/engine/model.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/engine/model.py) 🛠️. Thank you 🙏!
-
-
-
-## ::: ultralytics.engine.model.Model
-
-
diff --git a/ultralytics-main/docs/en/reference/engine/predictor.md b/ultralytics-main/docs/en/reference/engine/predictor.md
deleted file mode 100644
index ad50352..0000000
--- a/ultralytics-main/docs/en/reference/engine/predictor.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Learn about Ultralytics BasePredictor, an essential component of our engine that serves as the foundation for all prediction operations.
-keywords: Ultralytics, BasePredictor, YOLO, prediction, engine
----
-
-# Reference for `ultralytics/engine/predictor.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/engine/predictor.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/engine/predictor.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/engine/predictor.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/engine/results.md b/ultralytics-main/docs/en/reference/engine/results.md
deleted file mode 100644
index 9b389ee..0000000
--- a/ultralytics-main/docs/en/reference/engine/results.md
+++ /dev/null
@@ -1,40 +0,0 @@
----
-description: Master Ultralytics engine results including base tensors, boxes, and keypoints with our thorough documentation.
-keywords: Ultralytics, engine, results, base tensor, boxes, keypoints
----
-
-# Reference for `ultralytics/engine/results.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/engine/results.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/engine/results.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/engine/results.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/engine/trainer.md b/ultralytics-main/docs/en/reference/engine/trainer.md
deleted file mode 100644
index 7c74b04..0000000
--- a/ultralytics-main/docs/en/reference/engine/trainer.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Learn about the BaseTrainer class in the Ultralytics library. From training control, customization to advanced usage.
-keywords: Ultralytics, BaseTrainer, Machine Learning, Training Control, Python library
----
-
-# Reference for `ultralytics/engine/trainer.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/engine/trainer.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/engine/trainer.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/engine/trainer.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/engine/tuner.md b/ultralytics-main/docs/en/reference/engine/tuner.md
deleted file mode 100644
index 7882b8c..0000000
--- a/ultralytics-main/docs/en/reference/engine/tuner.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Explore the Ultralytics Tuner, a powerful tool designed for hyperparameter tuning of YOLO models to optimize performance across various tasks like object detection, image classification, and more.
-keywords: Ultralytics, Tuner, YOLO, hyperparameter tuning, optimization, object detection, image classification, instance segmentation, pose estimation, multi-object tracking
----
-
-# Reference for `ultralytics/engine/tuner.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/engine/tuner.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/engine/tuner.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/engine/tuner.py) 🛠️. Thank you 🙏!
-
-
-
-## ::: ultralytics.engine.tuner.Tuner
-
-
diff --git a/ultralytics-main/docs/en/reference/engine/validator.md b/ultralytics-main/docs/en/reference/engine/validator.md
deleted file mode 100644
index 5c0f4cd..0000000
--- a/ultralytics-main/docs/en/reference/engine/validator.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Learn about the Ultralytics BaseValidator module. Understand its principles, uses, and how it interacts with other components.
-keywords: Ultralytics, BaseValidator, Ultralytics engine, module, components
----
-
-# Reference for `ultralytics/engine/validator.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/engine/validator.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/engine/validator.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/engine/validator.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/hub/__init__.md b/ultralytics-main/docs/en/reference/hub/__init__.md
deleted file mode 100644
index 912de06..0000000
--- a/ultralytics-main/docs/en/reference/hub/__init__.md
+++ /dev/null
@@ -1,40 +0,0 @@
----
-description: Explore Ultralytics hub functions for model resetting, checking datasets, model exporting and more. Easy-to-follow instructions provided.
-keywords: Ultralytics, hub functions, model export, dataset check, reset model, YOLO Docs
----
-
-# Reference for `ultralytics/hub/__init__.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/hub/__init__.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/hub/__init__.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/hub/__init__.py) 🛠️. Thank you 🙏!
-
-
-
-## ::: ultralytics.hub.login
-
-
-
-## ::: ultralytics.hub.logout
-
-
-
-## ::: ultralytics.hub.reset_model
-
-
-
-## ::: ultralytics.hub.export_fmts_hub
-
-
-
-## ::: ultralytics.hub.export_model
-
-
-
-## ::: ultralytics.hub.get_export
-
-
-
-## ::: ultralytics.hub.check_dataset
-
-
diff --git a/ultralytics-main/docs/en/reference/hub/auth.md b/ultralytics-main/docs/en/reference/hub/auth.md
deleted file mode 100644
index 964dc73..0000000
--- a/ultralytics-main/docs/en/reference/hub/auth.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Dive into the Ultralytics Auth API documentation & learn how to manage authentication in your AI & ML projects easily and effectively.
-keywords: Ultralytics, Auth, API documentation, User Authentication, AI, Machine Learning
----
-
-# Reference for `ultralytics/hub/auth.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/hub/auth.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/hub/auth.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/hub/auth.py) 🛠️. Thank you 🙏!
-
-
-
-## ::: ultralytics.hub.auth.Auth
-
-
diff --git a/ultralytics-main/docs/en/reference/hub/session.md b/ultralytics-main/docs/en/reference/hub/session.md
deleted file mode 100644
index fb30715..0000000
--- a/ultralytics-main/docs/en/reference/hub/session.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Explore details about the HUBTrainingSession in Ultralytics framework. Learn to utilize this functionality for effective model training.
-keywords: Ultralytics, HUBTrainingSession, Documentation, Model Training, AI, Machine Learning, YOLO
----
-
-# Reference for `ultralytics/hub/session.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/hub/session.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/hub/session.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/hub/session.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/hub/utils.md b/ultralytics-main/docs/en/reference/hub/utils.md
deleted file mode 100644
index e310a01..0000000
--- a/ultralytics-main/docs/en/reference/hub/utils.md
+++ /dev/null
@@ -1,28 +0,0 @@
----
-description: Explore Ultralytics docs for various Events, including "request_with_credentials" and "requests_with_progress". Also, understand the use of the "smart_request".
-keywords: Ultralytics, Events, request_with_credentials, smart_request, Ultralytics hub utils, requests_with_progress
----
-
-# Reference for `ultralytics/hub/utils.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/hub/utils.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/hub/utils.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/hub/utils.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/fastsam/model.md b/ultralytics-main/docs/en/reference/models/fastsam/model.md
deleted file mode 100644
index 0e99a8c..0000000
--- a/ultralytics-main/docs/en/reference/models/fastsam/model.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Learn all about Ultralytics FastSAM model. Dive into our comprehensive guide for seamless integration and efficient model training.
-keywords: Ultralytics, FastSAM model, Model documentation, Efficient model training
----
-
-# Reference for `ultralytics/models/fastsam/model.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/fastsam/model.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/fastsam/model.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/fastsam/model.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/fastsam/predict.md b/ultralytics-main/docs/en/reference/models/fastsam/predict.md
deleted file mode 100644
index 7c7196e..0000000
--- a/ultralytics-main/docs/en/reference/models/fastsam/predict.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Get detailed insights about Ultralytics FastSAMPredictor. Learn to predict and optimize your AI models with our properly documented guidelines.
-keywords: Ultralytics, FastSAMPredictor, predictive modeling, AI optimization, machine learning, deep learning, Ultralytics documentation
----
-
-# Reference for `ultralytics/models/fastsam/predict.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/fastsam/predict.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/fastsam/predict.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/fastsam/predict.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/fastsam/prompt.md b/ultralytics-main/docs/en/reference/models/fastsam/prompt.md
deleted file mode 100644
index 0a37023..0000000
--- a/ultralytics-main/docs/en/reference/models/fastsam/prompt.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Learn to effectively utilize FastSAMPrompt model from Ultralytics. Detailed guide to help you get the most out of your machine learning models.
-keywords: Ultralytics, FastSAMPrompt, machine learning, model, guide, documentation
----
-
-# Reference for `ultralytics/models/fastsam/prompt.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/fastsam/prompt.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/fastsam/prompt.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/fastsam/prompt.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/fastsam/utils.md b/ultralytics-main/docs/en/reference/models/fastsam/utils.md
deleted file mode 100644
index 0ba33ab..0000000
--- a/ultralytics-main/docs/en/reference/models/fastsam/utils.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-description: Learn how to adjust bounding boxes to image borders in Ultralytics models using the bbox_iou utility. Enhance your object detection performance.
-keywords: Ultralytics, bounding boxes, Bboxes, image borders, object detection, bbox_iou, model utilities
----
-
-# Reference for `ultralytics/models/fastsam/utils.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/fastsam/utils.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/fastsam/utils.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/fastsam/utils.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/fastsam/val.md b/ultralytics-main/docs/en/reference/models/fastsam/val.md
deleted file mode 100644
index 4064f05..0000000
--- a/ultralytics-main/docs/en/reference/models/fastsam/val.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Learn about FastSAMValidator in Ultralytics models. Comprehensive guide to enhancing AI capabilities with Ultralytics.
-keywords: Ultralytics, FastSAMValidator, model, synthetic, AI, machine learning, validation
----
-
-# Reference for `ultralytics/models/fastsam/val.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/fastsam/val.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/fastsam/val.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/fastsam/val.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/nas/model.md b/ultralytics-main/docs/en/reference/models/nas/model.md
deleted file mode 100644
index 9536e54..0000000
--- a/ultralytics-main/docs/en/reference/models/nas/model.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Learn how our NAS model operates in Ultralytics. Comprehensive guide with detailed examples. Master the nuances of Ultralytics NAS model.
-keywords: Ultralytics, NAS model, NAS guide, machine learning, model documentation
----
-
-# Reference for `ultralytics/models/nas/model.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/nas/model.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/nas/model.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/nas/model.py) 🛠️. Thank you 🙏!
-
-
-
-## ::: ultralytics.models.nas.model.NAS
-
-
diff --git a/ultralytics-main/docs/en/reference/models/nas/predict.md b/ultralytics-main/docs/en/reference/models/nas/predict.md
deleted file mode 100644
index 3dcc0fd..0000000
--- a/ultralytics-main/docs/en/reference/models/nas/predict.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Explore Ultralytics NASPredictor. Understand high-level architecture of the model for effective implementation and efficient predictions.
-keywords: NASPredictor, Ultralytics, Ultralytics model, model architecture, efficient predictions
----
-
-# Reference for `ultralytics/models/nas/predict.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/nas/predict.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/nas/predict.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/nas/predict.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/nas/val.md b/ultralytics-main/docs/en/reference/models/nas/val.md
deleted file mode 100644
index 5d0adf6..0000000
--- a/ultralytics-main/docs/en/reference/models/nas/val.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Explore the utilities and functions of the Ultralytics NASValidator. Find out how it benefits allocation and optimization in AI models.
-keywords: Ultralytics, NASValidator, models.nas.val.NASValidator, AI models, allocation, optimization
----
-
-# Reference for `ultralytics/models/nas/val.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/nas/val.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/nas/val.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/nas/val.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/rtdetr/model.md b/ultralytics-main/docs/en/reference/models/rtdetr/model.md
deleted file mode 100644
index a4578b2..0000000
--- a/ultralytics-main/docs/en/reference/models/rtdetr/model.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Explore the specifics of using the RTDETR model in Ultralytics. Detailed documentation layered with explanations and examples.
-keywords: Ultralytics, RTDETR model, Ultralytics models, object detection, Ultralytics documentation
----
-
-# Reference for `ultralytics/models/rtdetr/model.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/rtdetr/model.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/rtdetr/model.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/rtdetr/model.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/rtdetr/predict.md b/ultralytics-main/docs/en/reference/models/rtdetr/predict.md
deleted file mode 100644
index 4763381..0000000
--- a/ultralytics-main/docs/en/reference/models/rtdetr/predict.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Learn how to use the RTDETRPredictor model of the Ultralytics package. Detailed documentation, usage instructions, and advice.
-keywords: Ultralytics, RTDETRPredictor, model documentation, guide, real-time object detection
----
-
-# Reference for `ultralytics/models/rtdetr/predict.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/rtdetr/predict.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/rtdetr/predict.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/rtdetr/predict.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/rtdetr/train.md b/ultralytics-main/docs/en/reference/models/rtdetr/train.md
deleted file mode 100644
index 4f9faaa..0000000
--- a/ultralytics-main/docs/en/reference/models/rtdetr/train.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Get insights into RTDETRTrainer, a crucial component of Ultralytics for effective model training. Explore detailed documentation at Ultralytics.
-keywords: Ultralytics, RTDETRTrainer, model training, Ultralytics models, PyTorch models, neural networks, machine learning, deep learning
----
-
-# Reference for `ultralytics/models/rtdetr/train.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/rtdetr/train.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/rtdetr/train.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/rtdetr/train.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/rtdetr/val.md b/ultralytics-main/docs/en/reference/models/rtdetr/val.md
deleted file mode 100644
index d31bc86..0000000
--- a/ultralytics-main/docs/en/reference/models/rtdetr/val.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-description: Explore RTDETRDataset in Ultralytics Models. Learn about the RTDETRValidator function, understand its usage in real-time object detection.
-keywords: Ultralytics, RTDETRDataset, RTDETRValidator, real-time object detection, models documentation
----
-
-# Reference for `ultralytics/models/rtdetr/val.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/rtdetr/val.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/rtdetr/val.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/rtdetr/val.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/sam/amg.md b/ultralytics-main/docs/en/reference/models/sam/amg.md
deleted file mode 100644
index dea35e4..0000000
--- a/ultralytics-main/docs/en/reference/models/sam/amg.md
+++ /dev/null
@@ -1,56 +0,0 @@
----
-description: Explore Ultralytics methods for mask data processing, transformation and encoding. Deepen your understanding of RLE encoding, image cropping and more.
-keywords: Ultralytics, Mask Data, Transformation, Encoding, RLE encoding, Image cropping, Pytorch, SAM, AMG, Ultralytics model
----
-
-# Reference for `ultralytics/models/sam/amg.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/amg.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/amg.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/sam/amg.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/sam/build.md b/ultralytics-main/docs/en/reference/models/sam/build.md
deleted file mode 100644
index 9adeeb4..0000000
--- a/ultralytics-main/docs/en/reference/models/sam/build.md
+++ /dev/null
@@ -1,36 +0,0 @@
----
-description: Master building SAM ViT models with Ultralytics. Discover steps to leverage the power of SAM and Vision Transformer sessions.
-keywords: Ultralytics, SAM, build sam, vision transformer, vits, build_sam_vit_l, build_sam_vit_b, build_sam
----
-
-# Reference for `ultralytics/models/sam/build.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/build.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/build.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/sam/build.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/sam/model.md b/ultralytics-main/docs/en/reference/models/sam/model.md
deleted file mode 100644
index 32444bc..0000000
--- a/ultralytics-main/docs/en/reference/models/sam/model.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Dive into the SAM model details in the Ultralytics YOLO documentation. Understand, implement, and optimize your model use.
-keywords: Ultralytics, YOLO, SAM Model, Documentations, Machine Learning, AI, Convolutional neural network
----
-
-# Reference for `ultralytics/models/sam/model.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/model.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/model.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/sam/model.py) 🛠️. Thank you 🙏!
-
-
-
-## ::: ultralytics.models.sam.model.SAM
-
-
diff --git a/ultralytics-main/docs/en/reference/models/sam/modules/decoders.md b/ultralytics-main/docs/en/reference/models/sam/modules/decoders.md
deleted file mode 100644
index 215b832..0000000
--- a/ultralytics-main/docs/en/reference/models/sam/modules/decoders.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-description: Explore MaskDecoder, a part of the Ultralytics models. Gain insights on how to utilize it effectively in the SAM modules decoders MLP.
-keywords: Ultralytics, MaskDecoder, SAM modules, decoders, MLP, YOLO, machine learning, image recognition
----
-
-# Reference for `ultralytics/models/sam/modules/decoders.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/modules/decoders.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/modules/decoders.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/sam/modules/decoders.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/sam/modules/encoders.md b/ultralytics-main/docs/en/reference/models/sam/modules/encoders.md
deleted file mode 100644
index ffcbf44..0000000
--- a/ultralytics-main/docs/en/reference/models/sam/modules/encoders.md
+++ /dev/null
@@ -1,52 +0,0 @@
----
-description: Discover detailed information on ImageEncoderViT, PositionEmbeddingRandom, Attention, window_partition, get_rel_pos and more in Ultralytics models encoders documentation.
-keywords: Ultralytics, Encoders, Modules, Documentation, ImageEncoderViT, PositionEmbeddingRandom, Attention, window_partition, get_rel_pos
----
-
-# Reference for `ultralytics/models/sam/modules/encoders.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/modules/encoders.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/modules/encoders.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/sam/modules/encoders.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/sam/modules/sam.md b/ultralytics-main/docs/en/reference/models/sam/modules/sam.md
deleted file mode 100644
index d309e24..0000000
--- a/ultralytics-main/docs/en/reference/models/sam/modules/sam.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Explore the Sam module of Ultralytics. Discover detailed methods, classes, and information for efficient deep-learning model training!.
-keywords: Ultralytics, Sam module, deep learning, model training, Ultralytics documentation
----
-
-# Reference for `ultralytics/models/sam/modules/sam.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/modules/sam.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/modules/sam.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/sam/modules/sam.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/sam/modules/tiny_encoder.md b/ultralytics-main/docs/en/reference/models/sam/modules/tiny_encoder.md
deleted file mode 100644
index 1d945be..0000000
--- a/ultralytics-main/docs/en/reference/models/sam/modules/tiny_encoder.md
+++ /dev/null
@@ -1,56 +0,0 @@
----
-description: Get in-depth insights about Ultralytics Tiny Encoder Modules such as Conv2d_BN, MBConv, ConvLayer, Attention, BasicLayer, and TinyViT. Improve your understanding of machine learning model components.
-keywords: Ultralytics, Tiny Encoder, Conv2d_BN, MBConv, ConvLayer, Attention, BasicLayer, TinyViT, Machine learning modules, Ultralytics models
----
-
-# Reference for `ultralytics/models/sam/modules/tiny_encoder.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/modules/tiny_encoder.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/modules/tiny_encoder.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/sam/modules/tiny_encoder.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/sam/modules/transformer.md b/ultralytics-main/docs/en/reference/models/sam/modules/transformer.md
deleted file mode 100644
index d36a31e..0000000
--- a/ultralytics-main/docs/en/reference/models/sam/modules/transformer.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-description: Learn about TwoWayTransformer and Attention modules in Ultralytics. Leverage these tools to enhance your AI models.
-keywords: Ultralytics, TwoWayTransformer, Attention, AI models, transformers
----
-
-# Reference for `ultralytics/models/sam/modules/transformer.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/modules/transformer.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/modules/transformer.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/sam/modules/transformer.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/sam/predict.md b/ultralytics-main/docs/en/reference/models/sam/predict.md
deleted file mode 100644
index ae4c788..0000000
--- a/ultralytics-main/docs/en/reference/models/sam/predict.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Master the ultralytics.models.sam.predict.Predictor class with our comprehensive guide. Discover techniques to enhance your model predictions.
-keywords: Ultralytics, predictor, models, sam.predict.Predictor, AI, machine learning, predictive models
----
-
-# Reference for `ultralytics/models/sam/predict.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/predict.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/predict.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/sam/predict.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/utils/loss.md b/ultralytics-main/docs/en/reference/models/utils/loss.md
deleted file mode 100644
index 567308e..0000000
--- a/ultralytics-main/docs/en/reference/models/utils/loss.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-description: Learn to use the DETRLoss function provided by Ultralytics YOLO. Understand how to utilize loss in RTDETR detection models to improve accuracy.
-keywords: Ultralytics, YOLO, Documentation, DETRLoss, Detection Loss, Loss function, DETR, RTDETR Detection Models
----
-
-# Reference for `ultralytics/models/utils/loss.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/utils/loss.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/utils/loss.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/utils/loss.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/utils/ops.md b/ultralytics-main/docs/en/reference/models/utils/ops.md
deleted file mode 100644
index 4ca7614..0000000
--- a/ultralytics-main/docs/en/reference/models/utils/ops.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-description: Discover details for "HungarianMatcher" & "inverse_sigmoid" functions in Ultralytics YOLO, advanced tools supporting detection models.
-keywords: Ultralytics, YOLO, HungarianMatcher, inverse_sigmoid, detection models, model utilities, ops
----
-
-# Reference for `ultralytics/models/utils/ops.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/utils/ops.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/utils/ops.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/utils/ops.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/yolo/classify/predict.md b/ultralytics-main/docs/en/reference/models/yolo/classify/predict.md
deleted file mode 100644
index 581107b..0000000
--- a/ultralytics-main/docs/en/reference/models/yolo/classify/predict.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Explore the Ultralytics ClassificationPredictor guide for model prediction and visualization. Build powerful AI models with YOLO.
-keywords: Ultralytics, classification predictor, predict, YOLO, AI models, model visualization
----
-
-# Reference for `ultralytics/models/yolo/classify/predict.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/classify/predict.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/classify/predict.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/yolo/classify/predict.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/yolo/classify/train.md b/ultralytics-main/docs/en/reference/models/yolo/classify/train.md
deleted file mode 100644
index e4b9ea8..0000000
--- a/ultralytics-main/docs/en/reference/models/yolo/classify/train.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Delve into Classification Trainer at Ultralytics YOLO docs and optimize your model's training process with insights from the masters!.
-keywords: Ultralytics, YOLO, Classification Trainer, deep learning, training process, AI models, documentation
----
-
-# Reference for `ultralytics/models/yolo/classify/train.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/classify/train.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/classify/train.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/yolo/classify/train.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/yolo/classify/val.md b/ultralytics-main/docs/en/reference/models/yolo/classify/val.md
deleted file mode 100644
index 27f64ff..0000000
--- a/ultralytics-main/docs/en/reference/models/yolo/classify/val.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Explore YOLO ClassificationValidator, a key element of Ultralytics YOLO models. Learn how it validates and fine-tunes model outputs.
-keywords: Ultralytics, YOLO, ClassificationValidator, model validation, model fine-tuning, deep learning, computer vision
----
-
-# Reference for `ultralytics/models/yolo/classify/val.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/classify/val.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/classify/val.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/yolo/classify/val.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/yolo/detect/predict.md b/ultralytics-main/docs/en/reference/models/yolo/detect/predict.md
deleted file mode 100644
index 4b6cafd..0000000
--- a/ultralytics-main/docs/en/reference/models/yolo/detect/predict.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Explore the guide to using the DetectionPredictor in Ultralytics YOLO. Learn how to predict, detect and analyze objects accurately.
-keywords: Ultralytics, YOLO, DetectionPredictor, detect, predict, object detection, analysis
----
-
-# Reference for `ultralytics/models/yolo/detect/predict.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/detect/predict.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/detect/predict.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/yolo/detect/predict.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/yolo/detect/train.md b/ultralytics-main/docs/en/reference/models/yolo/detect/train.md
deleted file mode 100644
index bca6faf..0000000
--- a/ultralytics-main/docs/en/reference/models/yolo/detect/train.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Maximize your model's potential with Ultralytics YOLO Detection Trainer. Learn advanced techniques, tips, and tricks for training.
-keywords: Ultralytics YOLO, YOLO, Detection Trainer, Model Training, Machine Learning, Deep Learning, Computer Vision
----
-
-# Reference for `ultralytics/models/yolo/detect/train.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/detect/train.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/detect/train.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/yolo/detect/train.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/yolo/detect/val.md b/ultralytics-main/docs/en/reference/models/yolo/detect/val.md
deleted file mode 100644
index c5333d0..0000000
--- a/ultralytics-main/docs/en/reference/models/yolo/detect/val.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Discover function valuation of your YOLO models with the Ultralytics Detection Validator. Enhance precision and recall rates today.
-keywords: Ultralytics, YOLO, Detection Validator, model valuation, precision, recall
----
-
-# Reference for `ultralytics/models/yolo/detect/val.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/detect/val.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/detect/val.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/yolo/detect/val.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/yolo/model.md b/ultralytics-main/docs/en/reference/models/yolo/model.md
deleted file mode 100644
index 6df6b73..0000000
--- a/ultralytics-main/docs/en/reference/models/yolo/model.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-description: Discover the Ultralytics YOLO model class. Learn advanced techniques, tips, and tricks for training.
-keywords: Ultralytics YOLO, YOLO, YOLO model, Model Training, Machine Learning, Deep Learning, Computer Vision
----
-
-# Reference for `ultralytics/models/yolo/model.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/model.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/model.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/yolo/model.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/yolo/obb/predict.md b/ultralytics-main/docs/en/reference/models/yolo/obb/predict.md
deleted file mode 100644
index 159f59a..0000000
--- a/ultralytics-main/docs/en/reference/models/yolo/obb/predict.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Discover OBBPredictor for YOLO, specializing in Oriented Bounding Box predictions. Essential for advanced object detection with Ultralytics YOLO.
-keywords: Ultralytics, OBBPredictor, YOLO, Oriented Bounding Box, object detection, advanced object detection, YOLO model, deep learning, AI, machine learning, computer vision, OBB detection
----
-
-# Reference for `ultralytics/models/yolo/obb/predict.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/obb/predict.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/obb/predict.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/yolo/obb/predict.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/yolo/obb/train.md b/ultralytics-main/docs/en/reference/models/yolo/obb/train.md
deleted file mode 100644
index 1a9c8ec..0000000
--- a/ultralytics-main/docs/en/reference/models/yolo/obb/train.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Master the Ultralytics YOLO OBB Trainer: A specialized tool for training YOLO models using Oriented Bounding Boxes. Features detailed usage, model initialization, and training processes.
-keywords: Ultralytics, YOLO OBB Trainer, Oriented Bounding Box, OBB model training, YOLO model training, computer vision, deep learning, machine learning, YOLO object detection, model initialization, YOLO training process
----
-
-# Reference for `ultralytics/models/yolo/obb/train.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/obb/train.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/obb/train.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/yolo/obb/train.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/yolo/obb/val.md b/ultralytics-main/docs/en/reference/models/yolo/obb/val.md
deleted file mode 100644
index b18db7e..0000000
--- a/ultralytics-main/docs/en/reference/models/yolo/obb/val.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Learn about Ultralytics' advanced OBBValidator, an extension of YOLO object detection for oriented bounding box validation.
-keywords: Ultralytics, YOLO, OBBValidator, object detection, oriented bounding box, OBB, machine learning, AI, deep learning, Python, YOLO model, image processing, computer vision, YOLO object detection
----
-
-# Reference for `ultralytics/models/yolo/obb/val.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/obb/val.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/obb/val.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/yolo/obb/val.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/yolo/pose/predict.md b/ultralytics-main/docs/en/reference/models/yolo/pose/predict.md
deleted file mode 100644
index 9eb4af4..0000000
--- a/ultralytics-main/docs/en/reference/models/yolo/pose/predict.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Discover how to use PosePredictor in the Ultralytics YOLO model. Includes detailed guides, code examples, and explanations.
-keywords: Ultralytics, YOLO, PosePredictor, machine learning, AI, predictive models
----
-
-# Reference for `ultralytics/models/yolo/pose/predict.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/pose/predict.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/pose/predict.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/yolo/pose/predict.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/yolo/pose/train.md b/ultralytics-main/docs/en/reference/models/yolo/pose/train.md
deleted file mode 100644
index 1d02bf2..0000000
--- a/ultralytics-main/docs/en/reference/models/yolo/pose/train.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Explore Ultralytics PoseTrainer for YOLO models. Get a step-by-step guide on how to train on custom pose data for more accurate AI modeling.
-keywords: Ultralytics, YOLO, PoseTrainer, pose training, AI modeling, custom data training
----
-
-# Reference for `ultralytics/models/yolo/pose/train.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/pose/train.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/pose/train.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/yolo/pose/train.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/yolo/pose/val.md b/ultralytics-main/docs/en/reference/models/yolo/pose/val.md
deleted file mode 100644
index 77207be..0000000
--- a/ultralytics-main/docs/en/reference/models/yolo/pose/val.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Explore the PoseValidator—review how Ultralytics YOLO validates poses for object detection. Improve your understanding of YOLO.
-keywords: PoseValidator, Ultralytics, YOLO, Object detection, Pose validation
----
-
-# Reference for `ultralytics/models/yolo/pose/val.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/pose/val.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/pose/val.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/yolo/pose/val.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/yolo/segment/predict.md b/ultralytics-main/docs/en/reference/models/yolo/segment/predict.md
deleted file mode 100644
index a92b6f6..0000000
--- a/ultralytics-main/docs/en/reference/models/yolo/segment/predict.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Discover how to utilize the YOLO Segmentation Predictor in Ultralytics. Enhance your objects detection skills with us.
-keywords: YOLO, Ultralytics, object detection, segmentation predictor
----
-
-# Reference for `ultralytics/models/yolo/segment/predict.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/segment/predict.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/segment/predict.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/yolo/segment/predict.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/yolo/segment/train.md b/ultralytics-main/docs/en/reference/models/yolo/segment/train.md
deleted file mode 100644
index 1b5c3d5..0000000
--- a/ultralytics-main/docs/en/reference/models/yolo/segment/train.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Maximize your YOLO model's performance with our SegmentationTrainer. Explore comprehensive guides and tutorials on ultralytics.com.
-keywords: Ultralytics, YOLO, SegmentationTrainer, image segmentation, object detection, model training, YOLO model
----
-
-# Reference for `ultralytics/models/yolo/segment/train.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/segment/train.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/segment/train.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/yolo/segment/train.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/models/yolo/segment/val.md b/ultralytics-main/docs/en/reference/models/yolo/segment/val.md
deleted file mode 100644
index 745b22c..0000000
--- a/ultralytics-main/docs/en/reference/models/yolo/segment/val.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Get practical insights about our SegmentationValidator in YOLO Ultralytics models. Discover functionality details, methods, inputs, and outputs.
-keywords: Ultralytics, YOLO, SegmentationValidator, model segmentation, image classification, object detection
----
-
-# Reference for `ultralytics/models/yolo/segment/val.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/segment/val.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/segment/val.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/yolo/segment/val.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/nn/autobackend.md b/ultralytics-main/docs/en/reference/nn/autobackend.md
deleted file mode 100644
index 3e8c2f7..0000000
--- a/ultralytics-main/docs/en/reference/nn/autobackend.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-description: Get to know more about Ultralytics nn.autobackend.check_class_names functionality. Optimize your YOLO models seamlessly.
-keywords: Ultralytics, AutoBackend, check_class_names, YOLO, YOLO models, optimization
----
-
-# Reference for `ultralytics/nn/autobackend.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/autobackend.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/autobackend.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/nn/autobackend.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/nn/modules/block.md b/ultralytics-main/docs/en/reference/nn/modules/block.md
deleted file mode 100644
index e94da5a..0000000
--- a/ultralytics-main/docs/en/reference/nn/modules/block.md
+++ /dev/null
@@ -1,140 +0,0 @@
----
-description: Explore Ultralytics YOLO neural network modules, Proto to BottleneckCSP. Detailed explanation of each module with easy-to-follow code examples.
-keywords: YOLO, Ultralytics, neural network, nn.modules.block, Proto, HGBlock, SPPF, C2, C3, RepC3, C3Ghost, Bottleneck, BottleneckCSP
----
-
-# Reference for `ultralytics/nn/modules/block.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/modules/block.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/modules/block.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/nn/modules/block.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/nn/modules/conv.md b/ultralytics-main/docs/en/reference/nn/modules/conv.md
deleted file mode 100644
index 6c9fb35..0000000
--- a/ultralytics-main/docs/en/reference/nn/modules/conv.md
+++ /dev/null
@@ -1,68 +0,0 @@
----
-description: Explore various Ultralytics convolution modules including Conv2, DWConv, ConvTranspose, GhostConv, Channel Attention and more.
-keywords: Ultralytics, Convolution Modules, Conv2, DWConv, ConvTranspose, GhostConv, ChannelAttention, CBAM, autopad
----
-
-# Reference for `ultralytics/nn/modules/conv.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/modules/conv.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/modules/conv.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/nn/modules/conv.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/nn/modules/head.md b/ultralytics-main/docs/en/reference/nn/modules/head.md
deleted file mode 100644
index 6dc3e44..0000000
--- a/ultralytics-main/docs/en/reference/nn/modules/head.md
+++ /dev/null
@@ -1,40 +0,0 @@
----
-description: Explore docs covering Ultralytics YOLO detection, pose & RTDETRDecoder. Comprehensive guides to help you understand Ultralytics nn modules.
-keywords: Ultralytics, YOLO, Detection, Pose, RTDETRDecoder, nn modules, guides
----
-
-# Reference for `ultralytics/nn/modules/head.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/modules/head.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/modules/head.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/nn/modules/head.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/nn/modules/transformer.md b/ultralytics-main/docs/en/reference/nn/modules/transformer.md
deleted file mode 100644
index 91904be..0000000
--- a/ultralytics-main/docs/en/reference/nn/modules/transformer.md
+++ /dev/null
@@ -1,52 +0,0 @@
----
-description: Learn about Ultralytics transformer encoder, layer, MLP block, LayerNorm2d and the deformable transformer decoder layer. Expand your understanding of these crucial AI modules.
-keywords: Ultralytics, Ultralytics documentation, TransformerEncoderLayer, TransformerLayer, MLPBlock, LayerNorm2d, DeformableTransformerDecoderLayer
----
-
-# Reference for `ultralytics/nn/modules/transformer.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/modules/transformer.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/modules/transformer.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/nn/modules/transformer.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/nn/modules/utils.md b/ultralytics-main/docs/en/reference/nn/modules/utils.md
deleted file mode 100644
index 22b813e..0000000
--- a/ultralytics-main/docs/en/reference/nn/modules/utils.md
+++ /dev/null
@@ -1,32 +0,0 @@
----
-description: Explore Ultralytics neural network utils, such as bias_init_with_prob, inverse_sigmoid and multi_scale_deformable_attn_pytorch functions.
-keywords: Ultralytics, neural network, nn.modules.utils, bias_init_with_prob, inverse_sigmoid, multi_scale_deformable_attn_pytorch
----
-
-# Reference for `ultralytics/nn/modules/utils.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/modules/utils.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/modules/utils.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/nn/modules/utils.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/nn/tasks.md b/ultralytics-main/docs/en/reference/nn/tasks.md
deleted file mode 100644
index 66d2e0e..0000000
--- a/ultralytics-main/docs/en/reference/nn/tasks.md
+++ /dev/null
@@ -1,80 +0,0 @@
----
-description: Dive into the intricacies of YOLO tasks.py. Learn about DetectionModel, PoseModel and more for powerful AI development.
-keywords: Ultralytics, YOLO, nn tasks, DetectionModel, PoseModel, RTDETRDetectionModel, model weights, parse model, AI development
----
-
-# Reference for `ultralytics/nn/tasks.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/tasks.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/tasks.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/nn/tasks.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/solutions/ai_gym.md b/ultralytics-main/docs/en/reference/solutions/ai_gym.md
deleted file mode 100644
index eb3e634..0000000
--- a/ultralytics-main/docs/en/reference/solutions/ai_gym.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Explore Ultralytics YOLO's advanced AI Gym feature for real-time pose estimation and gym exercise tracking using cutting-edge machine learning technology.
-keywords: Ultralytics, YOLO, AI Gym, pose estimation, real-time tracking, machine learning, exercise counting, AI fitness, computer vision, gym workout analysis, YOLOv8, artificial intelligence, fitness technology
----
-
-# Reference for `ultralytics/solutions/ai_gym.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/solutions/ai_gym.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/solutions/ai_gym.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/solutions/ai_gym.py) 🛠️. Thank you 🙏!
-
-
-
-## ::: ultralytics.solutions.ai_gym.AIGym
-
-
diff --git a/ultralytics-main/docs/en/reference/solutions/distance_calculation.md b/ultralytics-main/docs/en/reference/solutions/distance_calculation.md
deleted file mode 100644
index 4361885..0000000
--- a/ultralytics-main/docs/en/reference/solutions/distance_calculation.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Explore Ultralytics YOLO's distance calculation feature designed for advance analytics, providing an immediate, impactful way to interpret computer vision data.
-keywords: Ultralytics, YOLO, distance calculation, object tracking, data visualization, real-time tracking, machine learning, object counting, computer vision, vehicle analytics, YOLOv8, artificial intelligence
----
-
-# Reference for `ultralytics/solutions/distance_calculation.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/solutions/distance_calculation.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/solutions/distance_calculation.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/solutions/distance_calculation.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/solutions/heatmap.md b/ultralytics-main/docs/en/reference/solutions/heatmap.md
deleted file mode 100644
index 133125c..0000000
--- a/ultralytics-main/docs/en/reference/solutions/heatmap.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Explore Ultralytics YOLO's advanced Heatmaps feature designed to highlight areas of interest, providing an immediate, impactful way to interpret spatial information.
-keywords: Ultralytics, YOLO, heatmaps, object tracking, data visualization, real-time tracking, machine learning, object counting, computer vision, retail analytics, YOLOv8, artificial intelligence
----
-
-# Reference for `ultralytics/solutions/heatmap.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/solutions/heatmap.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/solutions/heatmap.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/solutions/heatmap.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/solutions/object_counter.md b/ultralytics-main/docs/en/reference/solutions/object_counter.md
deleted file mode 100644
index 6cd3e00..0000000
--- a/ultralytics-main/docs/en/reference/solutions/object_counter.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Transform object tracking with Ultralytics YOLO Object Counter featuring cutting-edge technology for precise real-time counting in video streams.
-keywords: Ultralytics YOLO, object tracking software, real-time counting solutions, video stream analysis, YOLOv8 object detection, AI surveillance, smart counting technology, computer vision, AI-powered tracking, object counting accuracy, video analytics tools, automated monitoring.
----
-
-# Reference for `ultralytics/solutions/object_counter.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/solutions/object_counter.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/solutions/object_counter.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/solutions/object_counter.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/solutions/speed_estimation.md b/ultralytics-main/docs/en/reference/solutions/speed_estimation.md
deleted file mode 100644
index 93cc87e..0000000
--- a/ultralytics-main/docs/en/reference/solutions/speed_estimation.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Transform speed estimation with Ultralytics YOLO speed estimation featuring cutting-edge technology for precise real-time counting in video streams.
-keywords: Ultralytics YOLO, speed estimation software, real-time vehicle tracking solutions, video stream analysis, YOLOv8 object detection, smart counting technology, computer vision, AI-powered tracking, video analytics tools, automated monitoring.
----
-
-# Reference for `ultralytics/solutions/speed_estimation.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/solutions/speed_estimation.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/solutions/speed_estimation.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/solutions/speed_estimation.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/trackers/basetrack.md b/ultralytics-main/docs/en/reference/trackers/basetrack.md
deleted file mode 100644
index 97f5c4a..0000000
--- a/ultralytics-main/docs/en/reference/trackers/basetrack.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-description: Get familiar with TrackState in Ultralytics. Learn how it is used in the BaseTrack of the Ultralytics tracker for enhanced functionality.
-keywords: Ultralytics, TrackState, BaseTrack, Ultralytics tracker, Ultralytics documentation
----
-
-# Reference for `ultralytics/trackers/basetrack.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/trackers/basetrack.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/trackers/basetrack.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/trackers/basetrack.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/trackers/bot_sort.md b/ultralytics-main/docs/en/reference/trackers/bot_sort.md
deleted file mode 100644
index 85dfeee..0000000
--- a/ultralytics-main/docs/en/reference/trackers/bot_sort.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-description: Master the use of Ultralytics BOTrack, a key component of the powerful Ultralytics tracking system. Learn to integrate and use BOTSORT in your projects.
-keywords: Ultralytics, BOTSORT, BOTrack, tracking system, official documentation, machine learning, AI tracking
----
-
-# Reference for `ultralytics/trackers/bot_sort.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/trackers/bot_sort.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/trackers/bot_sort.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/trackers/bot_sort.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/trackers/byte_tracker.md b/ultralytics-main/docs/en/reference/trackers/byte_tracker.md
deleted file mode 100644
index e240d44..0000000
--- a/ultralytics-main/docs/en/reference/trackers/byte_tracker.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-description: Step-in to explore in-depth the functionalities of Ultralytics BYTETracker under STrack. Gain advanced feature insights to streamline your operations.
-keywords: STrack, Ultralytics, BYTETracker, documentation, Ultralytics tracker, object tracking, YOLO
----
-
-# Reference for `ultralytics/trackers/byte_tracker.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/trackers/byte_tracker.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/trackers/byte_tracker.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/trackers/byte_tracker.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/trackers/track.md b/ultralytics-main/docs/en/reference/trackers/track.md
deleted file mode 100644
index 7f15130..0000000
--- a/ultralytics-main/docs/en/reference/trackers/track.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-description: Explore Ultralytics documentation on prediction function starters & register trackers. Understand our code & its applications better.
-keywords: Ultralytics, YOLO, on predict start, register tracker, prediction functions, documentation
----
-
-# Reference for `ultralytics/trackers/track.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/trackers/track.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/trackers/track.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/trackers/track.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/trackers/utils/gmc.md b/ultralytics-main/docs/en/reference/trackers/utils/gmc.md
deleted file mode 100644
index fa51e8e..0000000
--- a/ultralytics-main/docs/en/reference/trackers/utils/gmc.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Explore the Ultralytics GMC tool in our comprehensive documentation. Learn how it works, best practices, and implementation advice.
-keywords: Ultralytics, GMC utility, Ultralytics documentation, Ultralytics tracker, machine learning tools
----
-
-# Reference for `ultralytics/trackers/utils/gmc.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/trackers/utils/gmc.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/trackers/utils/gmc.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/trackers/utils/gmc.py) 🛠️. Thank you 🙏!
-
-
-
-## ::: ultralytics.trackers.utils.gmc.GMC
-
-
diff --git a/ultralytics-main/docs/en/reference/trackers/utils/kalman_filter.md b/ultralytics-main/docs/en/reference/trackers/utils/kalman_filter.md
deleted file mode 100644
index 11063ef..0000000
--- a/ultralytics-main/docs/en/reference/trackers/utils/kalman_filter.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-description: Explore KalmanFilterXYAH, a key component of Ultralytics trackers. Understand its utilities and learn to leverage it in your own projects.
-keywords: Ultralytics, KalmanFilterXYAH, tracker, documentation, guide
----
-
-# Reference for `ultralytics/trackers/utils/kalman_filter.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/trackers/utils/kalman_filter.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/trackers/utils/kalman_filter.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/trackers/utils/kalman_filter.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/trackers/utils/matching.md b/ultralytics-main/docs/en/reference/trackers/utils/matching.md
deleted file mode 100644
index fb7d326..0000000
--- a/ultralytics-main/docs/en/reference/trackers/utils/matching.md
+++ /dev/null
@@ -1,28 +0,0 @@
----
-description: Explore in-depth guidance for using Ultralytics trackers utils matching, including merge_matches, linear_assignment, iou_distance, embedding_distance, fuse_motion, and fuse_score.
-keywords: Ultralytics, Trackers Utils, Matching, merge_matches, linear_assignment, iou_distance, embedding_distance, fuse_motion, fuse_score, documentation
----
-
-# Reference for `ultralytics/trackers/utils/matching.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/trackers/utils/matching.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/trackers/utils/matching.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/trackers/utils/matching.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/__init__.md b/ultralytics-main/docs/en/reference/utils/__init__.md
deleted file mode 100644
index fc4c9a7..0000000
--- a/ultralytics-main/docs/en/reference/utils/__init__.md
+++ /dev/null
@@ -1,160 +0,0 @@
----
-description: Explore the Ultralytics Utils package, with handy functions like colorstr, yaml_save, set_logging & more, designed to enhance your coding experience.
-keywords: Ultralytics, Utils, utilitarian functions, colorstr, yaml_save, set_logging, is_kaggle, is_docker, clean_url
----
-
-# Reference for `ultralytics/utils/__init__.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/__init__.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/__init__.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/__init__.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/autobatch.md b/ultralytics-main/docs/en/reference/utils/autobatch.md
deleted file mode 100644
index 4dc132b..0000000
--- a/ultralytics-main/docs/en/reference/utils/autobatch.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-description: Explore Ultralytics documentation for check_train_batch_size utility in the autobatch module. Understand how it could improve your machine learning process.
-keywords: Ultralytics, check_train_batch_size, autobatch, utility, machine learning, documentation
----
-
-# Reference for `ultralytics/utils/autobatch.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/autobatch.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/autobatch.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/autobatch.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/benchmarks.md b/ultralytics-main/docs/en/reference/utils/benchmarks.md
deleted file mode 100644
index 76d4885..0000000
--- a/ultralytics-main/docs/en/reference/utils/benchmarks.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-description: Discover how to profile your models using Ultralytics utilities. Enhance performance, optimize your benchmarks, and learn best practices.
-keywords: Ultralytics, ProfileModels, benchmarks, model profiling, performance optimization
----
-
-# Reference for `ultralytics/utils/benchmarks.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/benchmarks.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/benchmarks.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/benchmarks.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/callbacks/base.md b/ultralytics-main/docs/en/reference/utils/callbacks/base.md
deleted file mode 100644
index 609e34b..0000000
--- a/ultralytics-main/docs/en/reference/utils/callbacks/base.md
+++ /dev/null
@@ -1,120 +0,0 @@
----
-description: Explore how to use the on-train, on-validation, on-pretrain, and on-predict callbacks in Ultralytics. Learn to update params, save models, and add integration callbacks.
-keywords: Ultralytics, Callbacks, On-train, On-validation, On-pretrain, On-predict, Parameters update, Model saving, Integration callbacks
----
-
-# Reference for `ultralytics/utils/callbacks/base.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/base.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/base.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/callbacks/base.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/callbacks/clearml.md b/ultralytics-main/docs/en/reference/utils/callbacks/clearml.md
deleted file mode 100644
index a05b08c..0000000
--- a/ultralytics-main/docs/en/reference/utils/callbacks/clearml.md
+++ /dev/null
@@ -1,40 +0,0 @@
----
-description: Uncover the specifics of Ultralytics ClearML callbacks, from pretrain routine start to training end. Boost your ML model performance.
-keywords: Ultralytics, clearML, callbacks, pretrain routine start, validation end, train epoch end, training end
----
-
-# Reference for `ultralytics/utils/callbacks/clearml.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/clearml.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/clearml.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/callbacks/clearml.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/callbacks/comet.md b/ultralytics-main/docs/en/reference/utils/callbacks/comet.md
deleted file mode 100644
index 2ba62fa..0000000
--- a/ultralytics-main/docs/en/reference/utils/callbacks/comet.md
+++ /dev/null
@@ -1,108 +0,0 @@
----
-description: Explore comprehensive documentation for utilising Comet Callbacks in Ultralytics. Learn to optimise training, logging, and experiment workflows.
-keywords: Ultralytics, Comet Callbacks, Training optimisation, Logging, Experiment Workflows
----
-
-# Reference for `ultralytics/utils/callbacks/comet.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/comet.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/comet.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/callbacks/comet.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/callbacks/dvc.md b/ultralytics-main/docs/en/reference/utils/callbacks/dvc.md
deleted file mode 100644
index a325989..0000000
--- a/ultralytics-main/docs/en/reference/utils/callbacks/dvc.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-description: Browse through Ultralytics YOLO docs to learn about important logging and callback functions used in training and pretraining models.
-keywords: Ultralytics, YOLO, callbacks, logger, training, pretraining, machine learning, models
----
-
-# Reference for `ultralytics/utils/callbacks/dvc.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/dvc.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/dvc.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/callbacks/dvc.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/callbacks/hub.md b/ultralytics-main/docs/en/reference/utils/callbacks/hub.md
deleted file mode 100644
index 3735e90..0000000
--- a/ultralytics-main/docs/en/reference/utils/callbacks/hub.md
+++ /dev/null
@@ -1,44 +0,0 @@
----
-description: Explore the detailed information on key Ultralytics callbacks such as on_pretrain_routine_end, on_model_save, on_train_start, and on_predict_start.
-keywords: Ultralytics, callbacks, on_pretrain_routine_end, on_model_save, on_train_start, on_predict_start, hub, training
----
-
-# Reference for `ultralytics/utils/callbacks/hub.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/hub.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/hub.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/callbacks/hub.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/callbacks/mlflow.md b/ultralytics-main/docs/en/reference/utils/callbacks/mlflow.md
deleted file mode 100644
index e3fab6c..0000000
--- a/ultralytics-main/docs/en/reference/utils/callbacks/mlflow.md
+++ /dev/null
@@ -1,28 +0,0 @@
----
-description: Understand routines at the end of pre-training and training in Ultralytics. Elevate your MLflow callbacks expertise.
-keywords: Ultralytics, MLflow, Callbacks, on_pretrain_routine_end, on_train_end, Machine Learning, Training
----
-
-# Reference for `ultralytics/utils/callbacks/mlflow.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/mlflow.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/mlflow.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/callbacks/mlflow.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/callbacks/neptune.md b/ultralytics-main/docs/en/reference/utils/callbacks/neptune.md
deleted file mode 100644
index 82906ac..0000000
--- a/ultralytics-main/docs/en/reference/utils/callbacks/neptune.md
+++ /dev/null
@@ -1,44 +0,0 @@
----
-description: Explore exhaustive details about Ultralytics callbacks in Neptune, with specifics about scalar logging, routine start, and more.
-keywords: Ultralytics, Neptune callbacks, on_train_epoch_end, on_val_end, _log_plot, _log_images, on_pretrain_routine_start, on_fit_epoch_end, on_train_end
----
-
-# Reference for `ultralytics/utils/callbacks/neptune.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/neptune.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/neptune.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/callbacks/neptune.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/callbacks/raytune.md b/ultralytics-main/docs/en/reference/utils/callbacks/raytune.md
deleted file mode 100644
index 2ed6191..0000000
--- a/ultralytics-main/docs/en/reference/utils/callbacks/raytune.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Discover the functionality of the on_fit_epoch_end callback in the Ultralytics YOLO framework. Learn how to end an epoch in your deep learning projects.
-keywords: Ultralytics, YOLO, on_fit_epoch_end, callbacks, documentation, deep learning, YOLO framework
----
-
-# Reference for `ultralytics/utils/callbacks/raytune.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/raytune.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/raytune.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/callbacks/raytune.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/callbacks/tensorboard.md b/ultralytics-main/docs/en/reference/utils/callbacks/tensorboard.md
deleted file mode 100644
index 74fb3b1..0000000
--- a/ultralytics-main/docs/en/reference/utils/callbacks/tensorboard.md
+++ /dev/null
@@ -1,36 +0,0 @@
----
-description: Explore Ultralytics YOLO Docs for a deep understanding of log_scalars, on_batch_end & other callback utilities embedded in the tensorboard module.
-keywords: Ultralytics, YOLO, documentation, callback utilities, log_scalars, on_batch_end, tensorboard
----
-
-# Reference for `ultralytics/utils/callbacks/tensorboard.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/tensorboard.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/tensorboard.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/callbacks/tensorboard.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/callbacks/wb.md b/ultralytics-main/docs/en/reference/utils/callbacks/wb.md
deleted file mode 100644
index 59a2088..0000000
--- a/ultralytics-main/docs/en/reference/utils/callbacks/wb.md
+++ /dev/null
@@ -1,40 +0,0 @@
----
-description: Deep dive into Ultralytics callbacks. Learn how to use the _log_plots, on_fit_epoch_end, and on_train_end functions effectively.
-keywords: Ultralytics, callbacks, _log_plots, on_fit_epoch_end, on_train_end
----
-
-# Reference for `ultralytics/utils/callbacks/wb.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/wb.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/wb.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/callbacks/wb.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/checks.md b/ultralytics-main/docs/en/reference/utils/checks.md
deleted file mode 100644
index f2e4ed9..0000000
--- a/ultralytics-main/docs/en/reference/utils/checks.md
+++ /dev/null
@@ -1,112 +0,0 @@
----
-description: Learn about our routine checks that safeguard Ultralytics operations including ASCII, font, YOLO file, YAML, Python and torchvision checks.
-keywords: Ultralytics, utility checks, ASCII, check_version, pip_update, check_python, check_torchvision, check_yaml, YOLO filename
----
-
-# Reference for `ultralytics/utils/checks.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/checks.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/checks.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/checks.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/dist.md b/ultralytics-main/docs/en/reference/utils/dist.md
deleted file mode 100644
index 1ca18e3..0000000
--- a/ultralytics-main/docs/en/reference/utils/dist.md
+++ /dev/null
@@ -1,28 +0,0 @@
----
-description: Discover the role of dist.find_free_network_port & dist.generate_ddp_command in Ultralytics DDP utilities. Use our guide for efficient deployment.
-keywords: Ultralytics, DDP, DDP utility functions, Distributed Data Processing, find free network port, generate DDP command
----
-
-# Reference for `ultralytics/utils/dist.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/dist.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/dist.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/dist.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/downloads.md b/ultralytics-main/docs/en/reference/utils/downloads.md
deleted file mode 100644
index aeef4c9..0000000
--- a/ultralytics-main/docs/en/reference/utils/downloads.md
+++ /dev/null
@@ -1,52 +0,0 @@
----
-description: Learn about the download utilities in Ultralytics YOLO, featuring functions like is_url, check_disk_space, get_github_assets, and download.
-keywords: Ultralytics, YOLO, download utilities, is_url, check_disk_space, get_github_assets, download, documentation
----
-
-# Reference for `ultralytics/utils/downloads.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/downloads.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/downloads.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/downloads.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/errors.md b/ultralytics-main/docs/en/reference/utils/errors.md
deleted file mode 100644
index 816328a..0000000
--- a/ultralytics-main/docs/en/reference/utils/errors.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Learn about the HUBModelError in Ultralytics. Enhance your understanding, troubleshoot errors and optimize your machine learning projects.
-keywords: Ultralytics, HUBModelError, Machine Learning, Error troubleshooting, Ultralytics documentation
----
-
-# Reference for `ultralytics/utils/errors.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/errors.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/errors.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/errors.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/files.md b/ultralytics-main/docs/en/reference/utils/files.md
deleted file mode 100644
index e9bd16d..0000000
--- a/ultralytics-main/docs/en/reference/utils/files.md
+++ /dev/null
@@ -1,44 +0,0 @@
----
-description: Discover how to use Ultralytics utility functions for file-related operations including incrementing paths, finding file age, checking file size and creating directories.
-keywords: Ultralytics, utility functions, file operations, working directory, file age, file size, create directories
----
-
-# Reference for `ultralytics/utils/files.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/files.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/files.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/files.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/instance.md b/ultralytics-main/docs/en/reference/utils/instance.md
deleted file mode 100644
index 6771cd8..0000000
--- a/ultralytics-main/docs/en/reference/utils/instance.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-description: Dive into Ultralytics detailed utility guide. Learn about Bboxes, _ntuple and more from Ultralytics utils.instance module.
-keywords: Ultralytics, Bboxes, _ntuple, utility, ultralytics utils.instance
----
-
-# Reference for `ultralytics/utils/instance.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/instance.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/instance.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/instance.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/loss.md b/ultralytics-main/docs/en/reference/utils/loss.md
deleted file mode 100644
index 94ae791..0000000
--- a/ultralytics-main/docs/en/reference/utils/loss.md
+++ /dev/null
@@ -1,52 +0,0 @@
----
-description: Explore Ultralytics' versatile loss functions - VarifocalLoss, BboxLoss, v8DetectionLoss, v8PoseLoss. Improve your accuracy on YOLO implementations.
-keywords: Ultralytics, Loss functions, VarifocalLoss, BboxLoss, v8DetectionLoss, v8PoseLoss, YOLO, Ultralytics Documentation
----
-
-# Reference for `ultralytics/utils/loss.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/loss.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/loss.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/loss.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/metrics.md b/ultralytics-main/docs/en/reference/utils/metrics.md
deleted file mode 100644
index 21c8506..0000000
--- a/ultralytics-main/docs/en/reference/utils/metrics.md
+++ /dev/null
@@ -1,96 +0,0 @@
----
-description: Explore Ultralytics YOLO metrics tools - from confusion matrix, detection metrics, pose metrics to box IoU. Learn how to compute and plot precision-recall curves.
-keywords: Ultralytics, YOLO, YOLOv3, YOLOv4, metrics, confusion matrix, detection metrics, pose metrics, box IoU, mask IoU, plot precision-recall curves, compute average precision
----
-
-# Reference for `ultralytics/utils/metrics.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/metrics.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/metrics.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/metrics.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/ops.md b/ultralytics-main/docs/en/reference/utils/ops.md
deleted file mode 100644
index 4cd9d5f..0000000
--- a/ultralytics-main/docs/en/reference/utils/ops.md
+++ /dev/null
@@ -1,136 +0,0 @@
----
-description: Explore detailed documentation for Ultralytics utility operations. Learn about methods like segment2box, make_divisible, clip_boxes, and many more.
-keywords: Ultralytics YOLO, Utility Operations, segment2box, make_divisible, clip_boxes, scale_image, xywh2xyxy, xyxy2xywhn, xywh2ltwh, ltwh2xywh, segments2boxes, crop_mask, process_mask, scale_masks, masks2segments
----
-
-# Reference for `ultralytics/utils/ops.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/ops.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/ops.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/ops.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/patches.md b/ultralytics-main/docs/en/reference/utils/patches.md
deleted file mode 100644
index fdcf394..0000000
--- a/ultralytics-main/docs/en/reference/utils/patches.md
+++ /dev/null
@@ -1,28 +0,0 @@
----
-description: Learn about Ultralytics utils patches including imread, imshow and torch_save. Enhance your image processing skills.
-keywords: Ultralytics, Utils, Patches, imread, imshow, torch_save, image processing
----
-
-# Reference for `ultralytics/utils/patches.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/patches.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/patches.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/patches.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/plotting.md b/ultralytics-main/docs/en/reference/utils/plotting.md
deleted file mode 100644
index bf00d2f..0000000
--- a/ultralytics-main/docs/en/reference/utils/plotting.md
+++ /dev/null
@@ -1,56 +0,0 @@
----
-description: Master advanced plotting utils from Ultralytics including color annotations, label and image plotting, and feature visualization.
-keywords: Ultralytics, plotting, utils, color annotation, label plotting, image plotting, feature visualization
----
-
-# Reference for `ultralytics/utils/plotting.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/plotting.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/plotting.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/plotting.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/tal.md b/ultralytics-main/docs/en/reference/utils/tal.md
deleted file mode 100644
index 9f832aa..0000000
--- a/ultralytics-main/docs/en/reference/utils/tal.md
+++ /dev/null
@@ -1,36 +0,0 @@
----
-description: Explore Ultralytics utilities for optimized task assignment, bounding box creation, and distance calculation. Learn more about algorithm implementations.
-keywords: Ultralytics, task aligned assigner, select highest overlaps, make anchors, dist2bbox, bbox2dist, utilities, algorithm
----
-
-# Reference for `ultralytics/utils/tal.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/tal.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/tal.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/tal.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/torch_utils.md b/ultralytics-main/docs/en/reference/utils/torch_utils.md
deleted file mode 100644
index 5c88f29..0000000
--- a/ultralytics-main/docs/en/reference/utils/torch_utils.md
+++ /dev/null
@@ -1,120 +0,0 @@
----
-description: Explore Ultralytics-tailored torch utility features like Model EMA, early stopping, smart inference, image scaling, get_flops, and many more.
-keywords: Ultralytics, Torch Utils, Model EMA, Early Stopping, Smart Inference, Get CPU Info, Time Sync, Fuse Deconv and bn, Get num params, Get FLOPs, Scale img, Copy attr, Intersect dicts, De_parallel, Init seeds, Profile
----
-
-# Reference for `ultralytics/utils/torch_utils.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/torch_utils.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/torch_utils.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/torch_utils.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/triton.md b/ultralytics-main/docs/en/reference/utils/triton.md
deleted file mode 100644
index 6a86de6..0000000
--- a/ultralytics-main/docs/en/reference/utils/triton.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Deploy ML models effortlessly with Ultralytics TritonRemoteModel. Simplify serving with our comprehensive utils guide.
-keywords: Ultralytics, YOLO, TritonRemoteModel, machine learning, model serving, deployment, utils, documentation
----
-
-# Reference for `ultralytics/utils/triton.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/triton.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/triton.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/triton.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/reference/utils/tuner.md b/ultralytics-main/docs/en/reference/utils/tuner.md
deleted file mode 100644
index d05f83d..0000000
--- a/ultralytics-main/docs/en/reference/utils/tuner.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: Learn to utilize the run_ray_tune function with Ultralytics. Make your machine learning tuning process easier and more efficient.
-keywords: Ultralytics, run_ray_tune, machine learning tuning, machine learning efficiency
----
-
-# Reference for `ultralytics/utils/tuner.py`
-
-!!! Note
-
- This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/tuner.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/tuner.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/tuner.py) 🛠️. Thank you 🙏!
-
-
diff --git a/ultralytics-main/docs/en/robots.txt b/ultralytics-main/docs/en/robots.txt
deleted file mode 100644
index 9436a7a..0000000
--- a/ultralytics-main/docs/en/robots.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-User-agent: *
-Sitemap: https://docs.ultralytics.com/sitemap.xml
-Sitemap: https://docs.ultralytics.com/ar/sitemap.xml
-Sitemap: https://docs.ultralytics.com/de/sitemap.xml
-Sitemap: https://docs.ultralytics.com/es/sitemap.xml
-Sitemap: https://docs.ultralytics.com/fr/sitemap.xml
-Sitemap: https://docs.ultralytics.com/hi/sitemap.xml
-Sitemap: https://docs.ultralytics.com/it/sitemap.xml
-Sitemap: https://docs.ultralytics.com/ja/sitemap.xml
-Sitemap: https://docs.ultralytics.com/ko/sitemap.xml
-Sitemap: https://docs.ultralytics.com/nl/sitemap.xml
-Sitemap: https://docs.ultralytics.com/pt/sitemap.xml
-Sitemap: https://docs.ultralytics.com/ru/sitemap.xml
-Sitemap: https://docs.ultralytics.com/tr/sitemap.xml
-Sitemap: https://docs.ultralytics.com/vi/sitemap.xml
-Sitemap: https://docs.ultralytics.com/zh/sitemap.xml
diff --git a/ultralytics-main/docs/en/tasks/classify.md b/ultralytics-main/docs/en/tasks/classify.md
deleted file mode 100644
index 4a54750..0000000
--- a/ultralytics-main/docs/en/tasks/classify.md
+++ /dev/null
@@ -1,181 +0,0 @@
----
-comments: true
-description: Learn about YOLOv8 Classify models for image classification. Get detailed information on List of Pretrained Models & how to Train, Validate, Predict & Export models.
-keywords: Ultralytics, YOLOv8, Image Classification, Pretrained Models, YOLOv8n-cls, Training, Validation, Prediction, Model Export
----
-
-# Image Classification
-
-
-
-Image classification is the simplest of the three tasks and involves classifying an entire image into one of a set of predefined classes.
-
-The output of an image classifier is a single class label and a confidence score. Image classification is useful when you need to know only what class an image belongs to and don't need to know where objects of that class are located or what their exact shape is.
-
-
-
-!!! Tip "Tip"
-
- YOLOv8 Classify models use the `-cls` suffix, i.e. `yolov8n-cls.pt` and are pretrained on [ImageNet](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/datasets/ImageNet.yaml).
-
-## [Models](https://github.com/ultralytics/ultralytics/tree/main/ultralytics/cfg/models/v8)
-
-YOLOv8 pretrained Classify models are shown here. Detect, Segment and Pose models are pretrained on the [COCO](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/datasets/coco.yaml) dataset, while Classify models are pretrained on the [ImageNet](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/datasets/ImageNet.yaml) dataset.
-
-[Models](https://github.com/ultralytics/ultralytics/tree/main/ultralytics/cfg/models) download automatically from the latest Ultralytics [release](https://github.com/ultralytics/assets/releases) on first use.
-
-| Model | size (pixels) | acc top1 | acc top5 | Speed CPU ONNX (ms) | Speed A100 TensorRT (ms) | params (M) | FLOPs (B) at 640 |
-|----------------------------------------------------------------------------------------------|-----------------------|------------------|------------------|--------------------------------|-------------------------------------|--------------------|--------------------------|
-| [YOLOv8n-cls](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n-cls.pt) | 224 | 69.0 | 88.3 | 12.9 | 0.31 | 2.7 | 4.3 |
-| [YOLOv8s-cls](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8s-cls.pt) | 224 | 73.8 | 91.7 | 23.4 | 0.35 | 6.4 | 13.5 |
-| [YOLOv8m-cls](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8m-cls.pt) | 224 | 76.8 | 93.5 | 85.4 | 0.62 | 17.0 | 42.7 |
-| [YOLOv8l-cls](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8l-cls.pt) | 224 | 76.8 | 93.5 | 163.0 | 0.87 | 37.5 | 99.7 |
-| [YOLOv8x-cls](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8x-cls.pt) | 224 | 79.0 | 94.6 | 232.0 | 1.01 | 57.4 | 154.8 |
-
-- **acc** values are model accuracies on the [ImageNet](https://www.image-net.org/) dataset validation set. Reproduce by `yolo val classify data=path/to/ImageNet device=0`
-- **Speed** averaged over ImageNet val images using an [Amazon EC2 P4d](https://aws.amazon.com/ec2/instance-types/p4/) instance. Reproduce by `yolo val classify data=path/to/ImageNet batch=1 device=0|cpu`
-
-## Train
-
-Train YOLOv8n-cls on the MNIST160 dataset for 100 epochs at image size 64. For a full list of available arguments see the [Configuration](../usage/cfg.md) page.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n-cls.yaml') # build a new model from YAML
- model = YOLO('yolov8n-cls.pt') # load a pretrained model (recommended for training)
- model = YOLO('yolov8n-cls.yaml').load('yolov8n-cls.pt') # build from YAML and transfer weights
-
- # Train the model
- results = model.train(data='mnist160', epochs=100, imgsz=64)
- ```
-
- === "CLI"
-
- ```bash
- # Build a new model from YAML and start training from scratch
- yolo classify train data=mnist160 model=yolov8n-cls.yaml epochs=100 imgsz=64
-
- # Start training from a pretrained *.pt model
- yolo classify train data=mnist160 model=yolov8n-cls.pt epochs=100 imgsz=64
-
- # Build a new model from YAML, transfer pretrained weights to it and start training
- yolo classify train data=mnist160 model=yolov8n-cls.yaml pretrained=yolov8n-cls.pt epochs=100 imgsz=64
- ```
-
-### Dataset format
-
-YOLO classification dataset format can be found in detail in the [Dataset Guide](../datasets/classify/index.md).
-
-## Val
-
-Validate trained YOLOv8n-cls model accuracy on the MNIST160 dataset. No argument need to passed as the `model` retains it's training `data` and arguments as model attributes.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n-cls.pt') # load an official model
- model = YOLO('path/to/best.pt') # load a custom model
-
- # Validate the model
- metrics = model.val() # no arguments needed, dataset and settings remembered
- metrics.top1 # top1 accuracy
- metrics.top5 # top5 accuracy
- ```
- === "CLI"
-
- ```bash
- yolo classify val model=yolov8n-cls.pt # val official model
- yolo classify val model=path/to/best.pt # val custom model
- ```
-
-## Predict
-
-Use a trained YOLOv8n-cls model to run predictions on images.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n-cls.pt') # load an official model
- model = YOLO('path/to/best.pt') # load a custom model
-
- # Predict with the model
- results = model('https://ultralytics.com/images/bus.jpg') # predict on an image
- ```
- === "CLI"
-
- ```bash
- yolo classify predict model=yolov8n-cls.pt source='https://ultralytics.com/images/bus.jpg' # predict with official model
- yolo classify predict model=path/to/best.pt source='https://ultralytics.com/images/bus.jpg' # predict with custom model
- ```
-
-See full `predict` mode details in the [Predict](https://docs.ultralytics.com/modes/predict/) page.
-
-## Export
-
-Export a YOLOv8n-cls model to a different format like ONNX, CoreML, etc.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n-cls.pt') # load an official model
- model = YOLO('path/to/best.pt') # load a custom trained model
-
- # Export the model
- model.export(format='onnx')
- ```
- === "CLI"
-
- ```bash
- yolo export model=yolov8n-cls.pt format=onnx # export official model
- yolo export model=path/to/best.pt format=onnx # export custom trained model
- ```
-
-Available YOLOv8-cls export formats are in the table below. You can predict or validate directly on exported models, i.e. `yolo predict model=yolov8n-cls.onnx`. Usage examples are shown for your model after export completes.
-
-| Format | `format` Argument | Model | Metadata | Arguments |
-|--------------------------------------------------------------------|-------------------|-------------------------------|----------|-----------------------------------------------------|
-| [PyTorch](https://pytorch.org/) | - | `yolov8n-cls.pt` | ✅ | - |
-| [TorchScript](https://pytorch.org/docs/stable/jit.html) | `torchscript` | `yolov8n-cls.torchscript` | ✅ | `imgsz`, `optimize` |
-| [ONNX](https://onnx.ai/) | `onnx` | `yolov8n-cls.onnx` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `opset` |
-| [OpenVINO](../integrations/openvino.md) | `openvino` | `yolov8n-cls_openvino_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [TensorRT](https://developer.nvidia.com/tensorrt) | `engine` | `yolov8n-cls.engine` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `workspace` |
-| [CoreML](https://github.com/apple/coremltools) | `coreml` | `yolov8n-cls.mlpackage` | ✅ | `imgsz`, `half`, `int8`, `nms` |
-| [TF SavedModel](https://www.tensorflow.org/guide/saved_model) | `saved_model` | `yolov8n-cls_saved_model/` | ✅ | `imgsz`, `keras` |
-| [TF GraphDef](https://www.tensorflow.org/api_docs/python/tf/Graph) | `pb` | `yolov8n-cls.pb` | ❌ | `imgsz` |
-| [TF Lite](https://www.tensorflow.org/lite) | `tflite` | `yolov8n-cls.tflite` | ✅ | `imgsz`, `half`, `int8` |
-| [TF Edge TPU](https://coral.ai/docs/edgetpu/models-intro/) | `edgetpu` | `yolov8n-cls_edgetpu.tflite` | ✅ | `imgsz` |
-| [TF.js](https://www.tensorflow.org/js) | `tfjs` | `yolov8n-cls_web_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [PaddlePaddle](https://github.com/PaddlePaddle) | `paddle` | `yolov8n-cls_paddle_model/` | ✅ | `imgsz` |
-| [NCNN](https://github.com/Tencent/ncnn) | `ncnn` | `yolov8n-cls_ncnn_model/` | ✅ | `imgsz`, `half` |
-
-See full `export` details in the [Export](https://docs.ultralytics.com/modes/export/) page.
diff --git a/ultralytics-main/docs/en/tasks/detect.md b/ultralytics-main/docs/en/tasks/detect.md
deleted file mode 100644
index b5d2700..0000000
--- a/ultralytics-main/docs/en/tasks/detect.md
+++ /dev/null
@@ -1,182 +0,0 @@
----
-comments: true
-description: Official documentation for YOLOv8 by Ultralytics. Learn how to train, validate, predict and export models in various formats. Including detailed performance stats.
-keywords: YOLOv8, Ultralytics, object detection, pretrained models, training, validation, prediction, export models, COCO, ImageNet, PyTorch, ONNX, CoreML
----
-
-# Object Detection
-
-
-
-Object detection is a task that involves identifying the location and class of objects in an image or video stream.
-
-The output of an object detector is a set of bounding boxes that enclose the objects in the image, along with class labels and confidence scores for each box. Object detection is a good choice when you need to identify objects of interest in a scene, but don't need to know exactly where the object is or its exact shape.
-
-
-
-!!! Tip "Tip"
-
- YOLOv8 Detect models are the default YOLOv8 models, i.e. `yolov8n.pt` and are pretrained on [COCO](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/datasets/coco.yaml).
-
-## [Models](https://github.com/ultralytics/ultralytics/tree/main/ultralytics/cfg/models/v8)
-
-YOLOv8 pretrained Detect models are shown here. Detect, Segment and Pose models are pretrained on the [COCO](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/datasets/coco.yaml) dataset, while Classify models are pretrained on the [ImageNet](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/datasets/ImageNet.yaml) dataset.
-
-[Models](https://github.com/ultralytics/ultralytics/tree/main/ultralytics/cfg/models) download automatically from the latest Ultralytics [release](https://github.com/ultralytics/assets/releases) on first use.
-
-| Model | size (pixels) | mAPval 50-95 | Speed CPU ONNX (ms) | Speed A100 TensorRT (ms) | params (M) | FLOPs (B) |
-|--------------------------------------------------------------------------------------|-----------------------|----------------------|--------------------------------|-------------------------------------|--------------------|-------------------|
-| [YOLOv8n](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n.pt) | 640 | 37.3 | 80.4 | 0.99 | 3.2 | 8.7 |
-| [YOLOv8s](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8s.pt) | 640 | 44.9 | 128.4 | 1.20 | 11.2 | 28.6 |
-| [YOLOv8m](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8m.pt) | 640 | 50.2 | 234.7 | 1.83 | 25.9 | 78.9 |
-| [YOLOv8l](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8l.pt) | 640 | 52.9 | 375.2 | 2.39 | 43.7 | 165.2 |
-| [YOLOv8x](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8x.pt) | 640 | 53.9 | 479.1 | 3.53 | 68.2 | 257.8 |
-
-- **mAPval** values are for single-model single-scale on [COCO val2017](https://cocodataset.org) dataset. Reproduce by `yolo val detect data=coco.yaml device=0`
-- **Speed** averaged over COCO val images using an [Amazon EC2 P4d](https://aws.amazon.com/ec2/instance-types/p4/) instance. Reproduce by `yolo val detect data=coco128.yaml batch=1 device=0|cpu`
-
-## Train
-
-Train YOLOv8n on the COCO128 dataset for 100 epochs at image size 640. For a full list of available arguments see the [Configuration](../usage/cfg.md) page.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n.yaml') # build a new model from YAML
- model = YOLO('yolov8n.pt') # load a pretrained model (recommended for training)
- model = YOLO('yolov8n.yaml').load('yolov8n.pt') # build from YAML and transfer weights
-
- # Train the model
- results = model.train(data='coco128.yaml', epochs=100, imgsz=640)
- ```
- === "CLI"
-
- ```bash
- # Build a new model from YAML and start training from scratch
- yolo detect train data=coco128.yaml model=yolov8n.yaml epochs=100 imgsz=640
-
- # Start training from a pretrained *.pt model
- yolo detect train data=coco128.yaml model=yolov8n.pt epochs=100 imgsz=640
-
- # Build a new model from YAML, transfer pretrained weights to it and start training
- yolo detect train data=coco128.yaml model=yolov8n.yaml pretrained=yolov8n.pt epochs=100 imgsz=640
- ```
-
-### Dataset format
-
-YOLO detection dataset format can be found in detail in the [Dataset Guide](../datasets/detect/index.md). To convert your existing dataset from other formats (like COCO etc.) to YOLO format, please use [JSON2YOLO](https://github.com/ultralytics/JSON2YOLO) tool by Ultralytics.
-
-## Val
-
-Validate trained YOLOv8n model accuracy on the COCO128 dataset. No argument need to passed as the `model` retains it's training `data` and arguments as model attributes.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n.pt') # load an official model
- model = YOLO('path/to/best.pt') # load a custom model
-
- # Validate the model
- metrics = model.val() # no arguments needed, dataset and settings remembered
- metrics.box.map # map50-95
- metrics.box.map50 # map50
- metrics.box.map75 # map75
- metrics.box.maps # a list contains map50-95 of each category
- ```
- === "CLI"
-
- ```bash
- yolo detect val model=yolov8n.pt # val official model
- yolo detect val model=path/to/best.pt # val custom model
- ```
-
-## Predict
-
-Use a trained YOLOv8n model to run predictions on images.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n.pt') # load an official model
- model = YOLO('path/to/best.pt') # load a custom model
-
- # Predict with the model
- results = model('https://ultralytics.com/images/bus.jpg') # predict on an image
- ```
- === "CLI"
-
- ```bash
- yolo detect predict model=yolov8n.pt source='https://ultralytics.com/images/bus.jpg' # predict with official model
- yolo detect predict model=path/to/best.pt source='https://ultralytics.com/images/bus.jpg' # predict with custom model
- ```
-
-See full `predict` mode details in the [Predict](https://docs.ultralytics.com/modes/predict/) page.
-
-## Export
-
-Export a YOLOv8n model to a different format like ONNX, CoreML, etc.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n.pt') # load an official model
- model = YOLO('path/to/best.pt') # load a custom trained model
-
- # Export the model
- model.export(format='onnx')
- ```
- === "CLI"
-
- ```bash
- yolo export model=yolov8n.pt format=onnx # export official model
- yolo export model=path/to/best.pt format=onnx # export custom trained model
- ```
-
-Available YOLOv8 export formats are in the table below. You can predict or validate directly on exported models, i.e. `yolo predict model=yolov8n.onnx`. Usage examples are shown for your model after export completes.
-
-| Format | `format` Argument | Model | Metadata | Arguments |
-|--------------------------------------------------------------------|-------------------|---------------------------|----------|-----------------------------------------------------|
-| [PyTorch](https://pytorch.org/) | - | `yolov8n.pt` | ✅ | - |
-| [TorchScript](https://pytorch.org/docs/stable/jit.html) | `torchscript` | `yolov8n.torchscript` | ✅ | `imgsz`, `optimize` |
-| [ONNX](https://onnx.ai/) | `onnx` | `yolov8n.onnx` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `opset` |
-| [OpenVINO](../integrations/openvino.md) | `openvino` | `yolov8n_openvino_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [TensorRT](https://developer.nvidia.com/tensorrt) | `engine` | `yolov8n.engine` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `workspace` |
-| [CoreML](https://github.com/apple/coremltools) | `coreml` | `yolov8n.mlpackage` | ✅ | `imgsz`, `half`, `int8`, `nms` |
-| [TF SavedModel](https://www.tensorflow.org/guide/saved_model) | `saved_model` | `yolov8n_saved_model/` | ✅ | `imgsz`, `keras`, `int8` |
-| [TF GraphDef](https://www.tensorflow.org/api_docs/python/tf/Graph) | `pb` | `yolov8n.pb` | ❌ | `imgsz` |
-| [TF Lite](https://www.tensorflow.org/lite) | `tflite` | `yolov8n.tflite` | ✅ | `imgsz`, `half`, `int8` |
-| [TF Edge TPU](https://coral.ai/docs/edgetpu/models-intro/) | `edgetpu` | `yolov8n_edgetpu.tflite` | ✅ | `imgsz` |
-| [TF.js](https://www.tensorflow.org/js) | `tfjs` | `yolov8n_web_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [PaddlePaddle](https://github.com/PaddlePaddle) | `paddle` | `yolov8n_paddle_model/` | ✅ | `imgsz` |
-| [NCNN](https://github.com/Tencent/ncnn) | `ncnn` | `yolov8n_ncnn_model/` | ✅ | `imgsz`, `half` |
-
-See full `export` details in the [Export](https://docs.ultralytics.com/modes/export/) page.
diff --git a/ultralytics-main/docs/en/tasks/index.md b/ultralytics-main/docs/en/tasks/index.md
deleted file mode 100644
index 2cf4696..0000000
--- a/ultralytics-main/docs/en/tasks/index.md
+++ /dev/null
@@ -1,57 +0,0 @@
----
-comments: true
-description: Learn about the cornerstone computer vision tasks YOLOv8 can perform including detection, segmentation, classification, and pose estimation. Understand their uses in your AI projects.
-keywords: Ultralytics, YOLOv8, Detection, Segmentation, Classification, Pose Estimation, Oriented Object Detection, AI Framework, Computer Vision Tasks
----
-
-# Ultralytics YOLOv8 Tasks
-
-
-
-
-YOLOv8 is an AI framework that supports multiple computer vision **tasks**. The framework can be used to perform [detection](detect.md), [segmentation](segment.md), [obb](obb.md), [classification](classify.md), and [pose](pose.md) estimation. Each of these tasks has a different objective and use case.
-
-
-
-## [Detection](detect.md)
-
-Detection is the primary task supported by YOLOv8. It involves detecting objects in an image or video frame and drawing bounding boxes around them. The detected objects are classified into different categories based on their features. YOLOv8 can detect multiple objects in a single image or video frame with high accuracy and speed.
-
-[Detection Examples](detect.md){ .md-button }
-
-## [Segmentation](segment.md)
-
-Segmentation is a task that involves segmenting an image into different regions based on the content of the image. Each region is assigned a label based on its content. This task is useful in applications such as image segmentation and medical imaging. YOLOv8 uses a variant of the U-Net architecture to perform segmentation.
-
-[Segmentation Examples](segment.md){ .md-button }
-
-## [Classification](classify.md)
-
-Classification is a task that involves classifying an image into different categories. YOLOv8 can be used to classify images based on their content. It uses a variant of the EfficientNet architecture to perform classification.
-
-[Classification Examples](classify.md){ .md-button }
-
-## [Pose](pose.md)
-
-Pose/keypoint detection is a task that involves detecting specific points in an image or video frame. These points are referred to as keypoints and are used to track movement or pose estimation. YOLOv8 can detect keypoints in an image or video frame with high accuracy and speed.
-
-[Pose Examples](pose.md){ .md-button }
-
-## [OBB](obb.md)
-
-Oriented object detection goes a step further than regular object detection with introducing an extra angle to locate objects more accurate in an image. YOLOv8 can detect rotated objects in an image or video frame with high accuracy and speed.
-
-[Oriented Detection](obb.md){ .md-button }
-
-## Conclusion
-
-YOLOv8 supports multiple tasks, including detection, segmentation, classification, oriented object detection and keypoints detection. Each of these tasks has different objectives and use cases. By understanding the differences between these tasks, you can choose the appropriate task for your computer vision application.
diff --git a/ultralytics-main/docs/en/tasks/obb.md b/ultralytics-main/docs/en/tasks/obb.md
deleted file mode 100644
index aa75d51..0000000
--- a/ultralytics-main/docs/en/tasks/obb.md
+++ /dev/null
@@ -1,191 +0,0 @@
----
-comments: true
-description: Learn how to use oriented object detection models with Ultralytics YOLO. Instructions on training, validation, image prediction, and model export.
-keywords: yolov8, oriented object detection, Ultralytics, DOTA dataset, rotated object detection, object detection, model training, model validation, image prediction, model export
----
-
-# Oriented Bounding Boxes Object Detection
-
-
-
-Oriented object detection goes a step further than object detection and introduce an extra angle to locate objects more accurate in an image.
-
-The output of an oriented object detector is a set of rotated bounding boxes that exactly enclose the objects in the image, along with class labels and confidence scores for each box. Object detection is a good choice when you need to identify objects of interest in a scene, but don't need to know exactly where the object is or its exact shape.
-
-
-
-!!! Tip "Tip"
-
- YOLOv8 OBB models use the `-obb` suffix, i.e. `yolov8n-obb.pt` and are pretrained on [DOTAv1](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/datasets/DOTAv1.yaml).
-
-
-
-## Visual Samples
-
-| Ships Detection using OBB | Vehicle Detection using OBB |
-|:-------------------------------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------------------------------:|
-| ![Ships Detection using OBB](https://github.com/RizwanMunawar/ultralytics/assets/62513924/5051d324-416f-4b58-ab62-f1bf9d7134b0) | ![Vehicle Detection using OBB](https://github.com/RizwanMunawar/ultralytics/assets/62513924/9a366262-910a-403b-a5e2-9c68b75700d3) |
-
-## [Models](https://github.com/ultralytics/ultralytics/tree/main/ultralytics/cfg/models/v8)
-
-YOLOv8 pretrained OBB models are shown here, which are pretrained on the [DOTAv1](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/datasets/DOTAv1.yaml) dataset.
-
-[Models](https://github.com/ultralytics/ultralytics/tree/main/ultralytics/cfg/models) download automatically from the latest Ultralytics [release](https://github.com/ultralytics/assets/releases) on first use.
-
-| Model | size (pixels) | mAPtest 50 | Speed CPU ONNX (ms) | Speed A100 TensorRT (ms) | params (M) | FLOPs (B) |
-|----------------------------------------------------------------------------------------------|-----------------------|--------------------|--------------------------------|-------------------------------------|--------------------|-------------------|
-| [YOLOv8n-obb](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n-obb.pt) | 1024 | 78.0 | 204.77 | 3.57 | 3.1 | 23.3 |
-| [YOLOv8s-obb](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8s-obb.pt) | 1024 | 79.5 | 424.88 | 4.07 | 11.4 | 76.3 |
-| [YOLOv8m-obb](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8m-obb.pt) | 1024 | 80.5 | 763.48 | 7.61 | 26.4 | 208.6 |
-| [YOLOv8l-obb](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8l-obb.pt) | 1024 | 80.7 | 1278.42 | 11.83 | 44.5 | 433.8 |
-| [YOLOv8x-obb](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8x-obb.pt) | 1024 | 81.36 | 1759.10 | 13.23 | 69.5 | 676.7 |
-
-- **mAPtest** values are for single-model multiscale on [DOTAv1 test](https://captain-whu.github.io/DOTA/index.html) dataset. Reproduce by `yolo val obb data=DOTAv1.yaml device=0 split=test` and submit merged results to [DOTA evaluation](https://captain-whu.github.io/DOTA/evaluation.html).
-- **Speed** averaged over DOTAv1 val images using an [Amazon EC2 P4d](https://aws.amazon.com/ec2/instance-types/p4/) instance. Reproduce by `yolo val obb data=DOTAv1.yaml batch=1 device=0|cpu`
-
-## Train
-
-Train YOLOv8n-obb on the `dota8.yaml` dataset for 100 epochs at image size 640. For a full list of available arguments see the [Configuration](../usage/cfg.md) page.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n-obb.yaml') # build a new model from YAML
- model = YOLO('yolov8n-obb.pt') # load a pretrained model (recommended for training)
- model = YOLO('yolov8n-obb.yaml').load('yolov8n.pt') # build from YAML and transfer weights
-
- # Train the model
- results = model.train(data='dota8.yaml', epochs=100, imgsz=640)
- ```
- === "CLI"
-
- ```bash
- # Build a new model from YAML and start training from scratch
- yolo obb train data=dota8.yaml model=yolov8n-obb.yaml epochs=100 imgsz=640
-
- # Start training from a pretrained *.pt model
- yolo obb train data=dota8.yaml model=yolov8n-obb.pt epochs=100 imgsz=640
-
- # Build a new model from YAML, transfer pretrained weights to it and start training
- yolo obb train data=dota8.yaml model=yolov8n-obb.yaml pretrained=yolov8n-obb.pt epochs=100 imgsz=640
- ```
-
-### Dataset format
-
-OBB dataset format can be found in detail in the [Dataset Guide](../datasets/obb/index.md).
-
-## Val
-
-Validate trained YOLOv8n-obb model accuracy on the DOTA8 dataset. No argument need to passed as the `model`
-retains it's training `data` and arguments as model attributes.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n-obb.pt') # load an official model
- model = YOLO('path/to/best.pt') # load a custom model
-
- # Validate the model
- metrics = model.val(data='dota8.yaml') # no arguments needed, dataset and settings remembered
- metrics.box.map # map50-95(B)
- metrics.box.map50 # map50(B)
- metrics.box.map75 # map75(B)
- metrics.box.maps # a list contains map50-95(B) of each category
- ```
- === "CLI"
-
- ```bash
- yolo obb val model=yolov8n-obb.pt data=dota8.yaml # val official model
- yolo obb val model=path/to/best.pt data=path/to/data.yaml # val custom model
- ```
-
-## Predict
-
-Use a trained YOLOv8n-obb model to run predictions on images.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n-obb.pt') # load an official model
- model = YOLO('path/to/best.pt') # load a custom model
-
- # Predict with the model
- results = model('https://ultralytics.com/images/bus.jpg') # predict on an image
- ```
- === "CLI"
-
- ```bash
- yolo obb predict model=yolov8n-obb.pt source='https://ultralytics.com/images/bus.jpg' # predict with official model
- yolo obb predict model=path/to/best.pt source='https://ultralytics.com/images/bus.jpg' # predict with custom model
- ```
-
-See full `predict` mode details in the [Predict](https://docs.ultralytics.com/modes/predict/) page.
-
-## Export
-
-Export a YOLOv8n-obb model to a different format like ONNX, CoreML, etc.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n-obb.pt') # load an official model
- model = YOLO('path/to/best.pt') # load a custom trained model
-
- # Export the model
- model.export(format='onnx')
- ```
- === "CLI"
-
- ```bash
- yolo export model=yolov8n-obb.pt format=onnx # export official model
- yolo export model=path/to/best.pt format=onnx # export custom trained model
- ```
-
-Available YOLOv8-obb export formats are in the table below. You can predict or validate directly on exported models, i.e. `yolo predict model=yolov8n-obb.onnx`. Usage examples are shown for your model after export completes.
-
-| Format | `format` Argument | Model | Metadata | Arguments |
-|--------------------------------------------------------------------|-------------------|-------------------------------|----------|-----------------------------------------------------|
-| [PyTorch](https://pytorch.org/) | - | `yolov8n-obb.pt` | ✅ | - |
-| [TorchScript](https://pytorch.org/docs/stable/jit.html) | `torchscript` | `yolov8n-obb.torchscript` | ✅ | `imgsz`, `optimize` |
-| [ONNX](https://onnx.ai/) | `onnx` | `yolov8n-obb.onnx` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `opset` |
-| [OpenVINO](../integrations/openvino.md) | `openvino` | `yolov8n-obb_openvino_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [TensorRT](https://developer.nvidia.com/tensorrt) | `engine` | `yolov8n-obb.engine` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `workspace` |
-| [CoreML](https://github.com/apple/coremltools) | `coreml` | `yolov8n-obb.mlpackage` | ✅ | `imgsz`, `half`, `int8`, `nms` |
-| [TF SavedModel](https://www.tensorflow.org/guide/saved_model) | `saved_model` | `yolov8n-obb_saved_model/` | ✅ | `imgsz`, `keras` |
-| [TF GraphDef](https://www.tensorflow.org/api_docs/python/tf/Graph) | `pb` | `yolov8n-obb.pb` | ❌ | `imgsz` |
-| [TF Lite](https://www.tensorflow.org/lite) | `tflite` | `yolov8n-obb.tflite` | ✅ | `imgsz`, `half`, `int8` |
-| [TF Edge TPU](https://coral.ai/docs/edgetpu/models-intro/) | `edgetpu` | `yolov8n-obb_edgetpu.tflite` | ✅ | `imgsz` |
-| [TF.js](https://www.tensorflow.org/js) | `tfjs` | `yolov8n-obb_web_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [PaddlePaddle](https://github.com/PaddlePaddle) | `paddle` | `yolov8n-obb_paddle_model/` | ✅ | `imgsz` |
-| [NCNN](https://github.com/Tencent/ncnn) | `ncnn` | `yolov8n-obb_ncnn_model/` | ✅ | `imgsz`, `half` |
-
-See full `export` details in the [Export](https://docs.ultralytics.com/modes/export/) page.
diff --git a/ultralytics-main/docs/en/tasks/pose.md b/ultralytics-main/docs/en/tasks/pose.md
deleted file mode 100644
index 431164b..0000000
--- a/ultralytics-main/docs/en/tasks/pose.md
+++ /dev/null
@@ -1,185 +0,0 @@
----
-comments: true
-description: Learn how to use Ultralytics YOLOv8 for pose estimation tasks. Find pretrained models, learn how to train, validate, predict, and export your own.
-keywords: Ultralytics, YOLO, YOLOv8, pose estimation, keypoints detection, object detection, pre-trained models, machine learning, artificial intelligence
----
-
-# Pose Estimation
-
-
-
-Pose estimation is a task that involves identifying the location of specific points in an image, usually referred to as keypoints. The keypoints can represent various parts of the object such as joints, landmarks, or other distinctive features. The locations of the keypoints are usually represented as a set of 2D `[x, y]` or 3D `[x, y, visible]` coordinates.
-
-The output of a pose estimation model is a set of points that represent the keypoints on an object in the image, usually along with the confidence scores for each point. Pose estimation is a good choice when you need to identify specific parts of an object in a scene, and their location in relation to each other.
-
-
-
-!!! Tip "Tip"
-
- YOLOv8 _pose_ models use the `-pose` suffix, i.e. `yolov8n-pose.pt`. These models are trained on the [COCO keypoints](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/datasets/coco-pose.yaml) dataset and are suitable for a variety of pose estimation tasks.
-
-## [Models](https://github.com/ultralytics/ultralytics/tree/main/ultralytics/cfg/models/v8)
-
-YOLOv8 pretrained Pose models are shown here. Detect, Segment and Pose models are pretrained on the [COCO](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/datasets/coco.yaml) dataset, while Classify models are pretrained on the [ImageNet](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/datasets/ImageNet.yaml) dataset.
-
-[Models](https://github.com/ultralytics/ultralytics/tree/main/ultralytics/cfg/models) download automatically from the latest Ultralytics [release](https://github.com/ultralytics/assets/releases) on first use.
-
-| Model | size (pixels) | mAPpose 50-95 | mAPpose 50 | Speed CPU ONNX (ms) | Speed A100 TensorRT (ms) | params (M) | FLOPs (B) |
-|------------------------------------------------------------------------------------------------------|-----------------------|-----------------------|--------------------|--------------------------------|-------------------------------------|--------------------|-------------------|
-| [YOLOv8n-pose](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n-pose.pt) | 640 | 50.4 | 80.1 | 131.8 | 1.18 | 3.3 | 9.2 |
-| [YOLOv8s-pose](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8s-pose.pt) | 640 | 60.0 | 86.2 | 233.2 | 1.42 | 11.6 | 30.2 |
-| [YOLOv8m-pose](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8m-pose.pt) | 640 | 65.0 | 88.8 | 456.3 | 2.00 | 26.4 | 81.0 |
-| [YOLOv8l-pose](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8l-pose.pt) | 640 | 67.6 | 90.0 | 784.5 | 2.59 | 44.4 | 168.6 |
-| [YOLOv8x-pose](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8x-pose.pt) | 640 | 69.2 | 90.2 | 1607.1 | 3.73 | 69.4 | 263.2 |
-| [YOLOv8x-pose-p6](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8x-pose-p6.pt) | 1280 | 71.6 | 91.2 | 4088.7 | 10.04 | 99.1 | 1066.4 |
-
-- **mAPval** values are for single-model single-scale on [COCO Keypoints val2017](https://cocodataset.org) dataset. Reproduce by `yolo val pose data=coco-pose.yaml device=0`
-- **Speed** averaged over COCO val images using an [Amazon EC2 P4d](https://aws.amazon.com/ec2/instance-types/p4/) instance. Reproduce by `yolo val pose data=coco8-pose.yaml batch=1 device=0|cpu`
-
-## Train
-
-Train a YOLOv8-pose model on the COCO128-pose dataset.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n-pose.yaml') # build a new model from YAML
- model = YOLO('yolov8n-pose.pt') # load a pretrained model (recommended for training)
- model = YOLO('yolov8n-pose.yaml').load('yolov8n-pose.pt') # build from YAML and transfer weights
-
- # Train the model
- results = model.train(data='coco8-pose.yaml', epochs=100, imgsz=640)
- ```
-
- === "CLI"
-
- ```bash
- # Build a new model from YAML and start training from scratch
- yolo pose train data=coco8-pose.yaml model=yolov8n-pose.yaml epochs=100 imgsz=640
-
- # Start training from a pretrained *.pt model
- yolo pose train data=coco8-pose.yaml model=yolov8n-pose.pt epochs=100 imgsz=640
-
- # Build a new model from YAML, transfer pretrained weights to it and start training
- yolo pose train data=coco8-pose.yaml model=yolov8n-pose.yaml pretrained=yolov8n-pose.pt epochs=100 imgsz=640
- ```
-
-### Dataset format
-
-YOLO pose dataset format can be found in detail in the [Dataset Guide](../datasets/pose/index.md). To convert your existing dataset from other formats (like COCO etc.) to YOLO format, please use [JSON2YOLO](https://github.com/ultralytics/JSON2YOLO) tool by Ultralytics.
-
-## Val
-
-Validate trained YOLOv8n-pose model accuracy on the COCO128-pose dataset. No argument need to passed as the `model`
-retains it's training `data` and arguments as model attributes.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n-pose.pt') # load an official model
- model = YOLO('path/to/best.pt') # load a custom model
-
- # Validate the model
- metrics = model.val() # no arguments needed, dataset and settings remembered
- metrics.box.map # map50-95
- metrics.box.map50 # map50
- metrics.box.map75 # map75
- metrics.box.maps # a list contains map50-95 of each category
- ```
- === "CLI"
-
- ```bash
- yolo pose val model=yolov8n-pose.pt # val official model
- yolo pose val model=path/to/best.pt # val custom model
- ```
-
-## Predict
-
-Use a trained YOLOv8n-pose model to run predictions on images.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n-pose.pt') # load an official model
- model = YOLO('path/to/best.pt') # load a custom model
-
- # Predict with the model
- results = model('https://ultralytics.com/images/bus.jpg') # predict on an image
- ```
- === "CLI"
-
- ```bash
- yolo pose predict model=yolov8n-pose.pt source='https://ultralytics.com/images/bus.jpg' # predict with official model
- yolo pose predict model=path/to/best.pt source='https://ultralytics.com/images/bus.jpg' # predict with custom model
- ```
-
-See full `predict` mode details in the [Predict](https://docs.ultralytics.com/modes/predict/) page.
-
-## Export
-
-Export a YOLOv8n Pose model to a different format like ONNX, CoreML, etc.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n-pose.pt') # load an official model
- model = YOLO('path/to/best.pt') # load a custom trained model
-
- # Export the model
- model.export(format='onnx')
- ```
- === "CLI"
-
- ```bash
- yolo export model=yolov8n-pose.pt format=onnx # export official model
- yolo export model=path/to/best.pt format=onnx # export custom trained model
- ```
-
-Available YOLOv8-pose export formats are in the table below. You can predict or validate directly on exported models, i.e. `yolo predict model=yolov8n-pose.onnx`. Usage examples are shown for your model after export completes.
-
-| Format | `format` Argument | Model | Metadata | Arguments |
-|--------------------------------------------------------------------|-------------------|--------------------------------|----------|-----------------------------------------------------|
-| [PyTorch](https://pytorch.org/) | - | `yolov8n-pose.pt` | ✅ | - |
-| [TorchScript](https://pytorch.org/docs/stable/jit.html) | `torchscript` | `yolov8n-pose.torchscript` | ✅ | `imgsz`, `optimize` |
-| [ONNX](https://onnx.ai/) | `onnx` | `yolov8n-pose.onnx` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `opset` |
-| [OpenVINO](../integrations/openvino.md) | `openvino` | `yolov8n-pose_openvino_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [TensorRT](https://developer.nvidia.com/tensorrt) | `engine` | `yolov8n-pose.engine` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `workspace` |
-| [CoreML](https://github.com/apple/coremltools) | `coreml` | `yolov8n-pose.mlpackage` | ✅ | `imgsz`, `half`, `int8`, `nms` |
-| [TF SavedModel](https://www.tensorflow.org/guide/saved_model) | `saved_model` | `yolov8n-pose_saved_model/` | ✅ | `imgsz`, `keras` |
-| [TF GraphDef](https://www.tensorflow.org/api_docs/python/tf/Graph) | `pb` | `yolov8n-pose.pb` | ❌ | `imgsz` |
-| [TF Lite](https://www.tensorflow.org/lite) | `tflite` | `yolov8n-pose.tflite` | ✅ | `imgsz`, `half`, `int8` |
-| [TF Edge TPU](https://coral.ai/docs/edgetpu/models-intro/) | `edgetpu` | `yolov8n-pose_edgetpu.tflite` | ✅ | `imgsz` |
-| [TF.js](https://www.tensorflow.org/js) | `tfjs` | `yolov8n-pose_web_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [PaddlePaddle](https://github.com/PaddlePaddle) | `paddle` | `yolov8n-pose_paddle_model/` | ✅ | `imgsz` |
-| [NCNN](https://github.com/Tencent/ncnn) | `ncnn` | `yolov8n-pose_ncnn_model/` | ✅ | `imgsz`, `half` |
-
-See full `export` details in the [Export](https://docs.ultralytics.com/modes/export/) page.
diff --git a/ultralytics-main/docs/en/tasks/segment.md b/ultralytics-main/docs/en/tasks/segment.md
deleted file mode 100644
index 921378a..0000000
--- a/ultralytics-main/docs/en/tasks/segment.md
+++ /dev/null
@@ -1,187 +0,0 @@
----
-comments: true
-description: Learn how to use instance segmentation models with Ultralytics YOLO. Instructions on training, validation, image prediction, and model export.
-keywords: yolov8, instance segmentation, Ultralytics, COCO dataset, image segmentation, object detection, model training, model validation, image prediction, model export
----
-
-# Instance Segmentation
-
-
-
-Instance segmentation goes a step further than object detection and involves identifying individual objects in an image and segmenting them from the rest of the image.
-
-The output of an instance segmentation model is a set of masks or contours that outline each object in the image, along with class labels and confidence scores for each object. Instance segmentation is useful when you need to know not only where objects are in an image, but also what their exact shape is.
-
-
-
-
-
- Watch: Run Segmentation with Pre-Trained Ultralytics YOLOv8 Model in Python.
-
-
-!!! Tip "Tip"
-
- YOLOv8 Segment models use the `-seg` suffix, i.e. `yolov8n-seg.pt` and are pretrained on [COCO](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/datasets/coco.yaml).
-
-## [Models](https://github.com/ultralytics/ultralytics/tree/main/ultralytics/cfg/models/v8)
-
-YOLOv8 pretrained Segment models are shown here. Detect, Segment and Pose models are pretrained on the [COCO](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/datasets/coco.yaml) dataset, while Classify models are pretrained on the [ImageNet](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/datasets/ImageNet.yaml) dataset.
-
-[Models](https://github.com/ultralytics/ultralytics/tree/main/ultralytics/cfg/models) download automatically from the latest Ultralytics [release](https://github.com/ultralytics/assets/releases) on first use.
-
-| Model | size (pixels) | mAPbox 50-95 | mAPmask 50-95 | Speed CPU ONNX (ms) | Speed A100 TensorRT (ms) | params (M) | FLOPs (B) |
-|----------------------------------------------------------------------------------------------|-----------------------|----------------------|-----------------------|--------------------------------|-------------------------------------|--------------------|-------------------|
-| [YOLOv8n-seg](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n-seg.pt) | 640 | 36.7 | 30.5 | 96.1 | 1.21 | 3.4 | 12.6 |
-| [YOLOv8s-seg](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8s-seg.pt) | 640 | 44.6 | 36.8 | 155.7 | 1.47 | 11.8 | 42.6 |
-| [YOLOv8m-seg](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8m-seg.pt) | 640 | 49.9 | 40.8 | 317.0 | 2.18 | 27.3 | 110.2 |
-| [YOLOv8l-seg](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8l-seg.pt) | 640 | 52.3 | 42.6 | 572.4 | 2.79 | 46.0 | 220.5 |
-| [YOLOv8x-seg](https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8x-seg.pt) | 640 | 53.4 | 43.4 | 712.1 | 4.02 | 71.8 | 344.1 |
-
-- **mAPval** values are for single-model single-scale on [COCO val2017](https://cocodataset.org) dataset. Reproduce by `yolo val segment data=coco.yaml device=0`
-- **Speed** averaged over COCO val images using an [Amazon EC2 P4d](https://aws.amazon.com/ec2/instance-types/p4/) instance. Reproduce by `yolo val segment data=coco128-seg.yaml batch=1 device=0|cpu`
-
-## Train
-
-Train YOLOv8n-seg on the COCO128-seg dataset for 100 epochs at image size 640. For a full list of available arguments see the [Configuration](../usage/cfg.md) page.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n-seg.yaml') # build a new model from YAML
- model = YOLO('yolov8n-seg.pt') # load a pretrained model (recommended for training)
- model = YOLO('yolov8n-seg.yaml').load('yolov8n.pt') # build from YAML and transfer weights
-
- # Train the model
- results = model.train(data='coco128-seg.yaml', epochs=100, imgsz=640)
- ```
- === "CLI"
-
- ```bash
- # Build a new model from YAML and start training from scratch
- yolo segment train data=coco128-seg.yaml model=yolov8n-seg.yaml epochs=100 imgsz=640
-
- # Start training from a pretrained *.pt model
- yolo segment train data=coco128-seg.yaml model=yolov8n-seg.pt epochs=100 imgsz=640
-
- # Build a new model from YAML, transfer pretrained weights to it and start training
- yolo segment train data=coco128-seg.yaml model=yolov8n-seg.yaml pretrained=yolov8n-seg.pt epochs=100 imgsz=640
- ```
-
-### Dataset format
-
-YOLO segmentation dataset format can be found in detail in the [Dataset Guide](../datasets/segment/index.md). To convert your existing dataset from other formats (like COCO etc.) to YOLO format, please use [JSON2YOLO](https://github.com/ultralytics/JSON2YOLO) tool by Ultralytics.
-
-## Val
-
-Validate trained YOLOv8n-seg model accuracy on the COCO128-seg dataset. No argument need to passed as the `model`
-retains it's training `data` and arguments as model attributes.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n-seg.pt') # load an official model
- model = YOLO('path/to/best.pt') # load a custom model
-
- # Validate the model
- metrics = model.val() # no arguments needed, dataset and settings remembered
- metrics.box.map # map50-95(B)
- metrics.box.map50 # map50(B)
- metrics.box.map75 # map75(B)
- metrics.box.maps # a list contains map50-95(B) of each category
- metrics.seg.map # map50-95(M)
- metrics.seg.map50 # map50(M)
- metrics.seg.map75 # map75(M)
- metrics.seg.maps # a list contains map50-95(M) of each category
- ```
- === "CLI"
-
- ```bash
- yolo segment val model=yolov8n-seg.pt # val official model
- yolo segment val model=path/to/best.pt # val custom model
- ```
-
-## Predict
-
-Use a trained YOLOv8n-seg model to run predictions on images.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n-seg.pt') # load an official model
- model = YOLO('path/to/best.pt') # load a custom model
-
- # Predict with the model
- results = model('https://ultralytics.com/images/bus.jpg') # predict on an image
- ```
- === "CLI"
-
- ```bash
- yolo segment predict model=yolov8n-seg.pt source='https://ultralytics.com/images/bus.jpg' # predict with official model
- yolo segment predict model=path/to/best.pt source='https://ultralytics.com/images/bus.jpg' # predict with custom model
- ```
-
-See full `predict` mode details in the [Predict](https://docs.ultralytics.com/modes/predict/) page.
-
-## Export
-
-Export a YOLOv8n-seg model to a different format like ONNX, CoreML, etc.
-
-!!! Example
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n-seg.pt') # load an official model
- model = YOLO('path/to/best.pt') # load a custom trained model
-
- # Export the model
- model.export(format='onnx')
- ```
- === "CLI"
-
- ```bash
- yolo export model=yolov8n-seg.pt format=onnx # export official model
- yolo export model=path/to/best.pt format=onnx # export custom trained model
- ```
-
-Available YOLOv8-seg export formats are in the table below. You can predict or validate directly on exported models, i.e. `yolo predict model=yolov8n-seg.onnx`. Usage examples are shown for your model after export completes.
-
-| Format | `format` Argument | Model | Metadata | Arguments |
-|--------------------------------------------------------------------|-------------------|-------------------------------|----------|-----------------------------------------------------|
-| [PyTorch](https://pytorch.org/) | - | `yolov8n-seg.pt` | ✅ | - |
-| [TorchScript](https://pytorch.org/docs/stable/jit.html) | `torchscript` | `yolov8n-seg.torchscript` | ✅ | `imgsz`, `optimize` |
-| [ONNX](https://onnx.ai/) | `onnx` | `yolov8n-seg.onnx` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `opset` |
-| [OpenVINO](../integrations/openvino.md) | `openvino` | `yolov8n-seg_openvino_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [TensorRT](https://developer.nvidia.com/tensorrt) | `engine` | `yolov8n-seg.engine` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `workspace` |
-| [CoreML](https://github.com/apple/coremltools) | `coreml` | `yolov8n-seg.mlpackage` | ✅ | `imgsz`, `half`, `int8`, `nms` |
-| [TF SavedModel](https://www.tensorflow.org/guide/saved_model) | `saved_model` | `yolov8n-seg_saved_model/` | ✅ | `imgsz`, `keras` |
-| [TF GraphDef](https://www.tensorflow.org/api_docs/python/tf/Graph) | `pb` | `yolov8n-seg.pb` | ❌ | `imgsz` |
-| [TF Lite](https://www.tensorflow.org/lite) | `tflite` | `yolov8n-seg.tflite` | ✅ | `imgsz`, `half`, `int8` |
-| [TF Edge TPU](https://coral.ai/docs/edgetpu/models-intro/) | `edgetpu` | `yolov8n-seg_edgetpu.tflite` | ✅ | `imgsz` |
-| [TF.js](https://www.tensorflow.org/js) | `tfjs` | `yolov8n-seg_web_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [PaddlePaddle](https://github.com/PaddlePaddle) | `paddle` | `yolov8n-seg_paddle_model/` | ✅ | `imgsz` |
-| [NCNN](https://github.com/Tencent/ncnn) | `ncnn` | `yolov8n-seg_ncnn_model/` | ✅ | `imgsz`, `half` |
-
-See full `export` details in the [Export](https://docs.ultralytics.com/modes/export/) page.
diff --git a/ultralytics-main/docs/en/usage/callbacks.md b/ultralytics-main/docs/en/usage/callbacks.md
deleted file mode 100644
index 275492e..0000000
--- a/ultralytics-main/docs/en/usage/callbacks.md
+++ /dev/null
@@ -1,101 +0,0 @@
----
-comments: true
-description: Learn how to utilize callbacks in the Ultralytics framework during train, val, export, and predict modes for enhanced functionality.
-keywords: Ultralytics, YOLO, callbacks guide, training callback, validation callback, export callback, prediction callback
----
-
-## Callbacks
-
-Ultralytics framework supports callbacks as entry points in strategic stages of train, val, export, and predict modes. Each callback accepts a `Trainer`, `Validator`, or `Predictor` object depending on the operation type. All properties of these objects can be found in Reference section of the docs.
-
-
-
-## Examples
-
-### Returning additional information with Prediction
-
-In this example, we want to return the original frame with each result object. Here's how we can do that
-
-```python
-from ultralytics import YOLO
-
-
-def on_predict_batch_end(predictor):
- # Retrieve the batch data
- _, image, _, _ = predictor.batch
-
- # Ensure that image is a list
- image = image if isinstance(image, list) else [image]
-
- # Combine the prediction results with the corresponding frames
- predictor.results = zip(predictor.results, image)
-
-
-# Create a YOLO model instance
-model = YOLO(f'yolov8n.pt')
-
-# Add the custom callback to the model
-model.add_callback("on_predict_batch_end", on_predict_batch_end)
-
-# Iterate through the results and frames
-for (result, frame) in model.predict(): # or model.track()
- pass
-```
-
-## All callbacks
-
-Here are all supported callbacks. See callbacks [source code](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/base.py) for additional details.
-
-### Trainer Callbacks
-
-| Callback | Description |
-|-----------------------------|---------------------------------------------------------|
-| `on_pretrain_routine_start` | Triggered at the beginning of pre-training routine |
-| `on_pretrain_routine_end` | Triggered at the end of pre-training routine |
-| `on_train_start` | Triggered when the training starts |
-| `on_train_epoch_start` | Triggered at the start of each training epoch |
-| `on_train_batch_start` | Triggered at the start of each training batch |
-| `optimizer_step` | Triggered during the optimizer step |
-| `on_before_zero_grad` | Triggered before gradients are zeroed |
-| `on_train_batch_end` | Triggered at the end of each training batch |
-| `on_train_epoch_end` | Triggered at the end of each training epoch |
-| `on_fit_epoch_end` | Triggered at the end of each fit epoch |
-| `on_model_save` | Triggered when the model is saved |
-| `on_train_end` | Triggered when the training process ends |
-| `on_params_update` | Triggered when model parameters are updated |
-| `teardown` | Triggered when the training process is being cleaned up |
-
-### Validator Callbacks
-
-| Callback | Description |
-|----------------------|-------------------------------------------------|
-| `on_val_start` | Triggered when the validation starts |
-| `on_val_batch_start` | Triggered at the start of each validation batch |
-| `on_val_batch_end` | Triggered at the end of each validation batch |
-| `on_val_end` | Triggered when the validation ends |
-
-### Predictor Callbacks
-
-| Callback | Description |
-|------------------------------|---------------------------------------------------|
-| `on_predict_start` | Triggered when the prediction process starts |
-| `on_predict_batch_start` | Triggered at the start of each prediction batch |
-| `on_predict_postprocess_end` | Triggered at the end of prediction postprocessing |
-| `on_predict_batch_end` | Triggered at the end of each prediction batch |
-| `on_predict_end` | Triggered when the prediction process ends |
-
-### Exporter Callbacks
-
-| Callback | Description |
-|-------------------|------------------------------------------|
-| `on_export_start` | Triggered when the export process starts |
-| `on_export_end` | Triggered when the export process ends |
diff --git a/ultralytics-main/docs/en/usage/cfg.md b/ultralytics-main/docs/en/usage/cfg.md
deleted file mode 100644
index 4b8b291..0000000
--- a/ultralytics-main/docs/en/usage/cfg.md
+++ /dev/null
@@ -1,269 +0,0 @@
----
-comments: true
-description: Master YOLOv8 settings and hyperparameters for improved model performance. Learn to use YOLO CLI commands, adjust training settings, and optimize YOLO tasks & modes.
-keywords: YOLOv8, settings, hyperparameters, YOLO CLI commands, YOLO tasks, YOLO modes, Ultralytics documentation, model optimization, YOLOv8 training
----
-
-YOLO settings and hyperparameters play a critical role in the model's performance, speed, and accuracy. These settings and hyperparameters can affect the model's behavior at various stages of the model development process, including training, validation, and prediction.
-
-
-
-Ultralytics commands use the following syntax:
-
-!!! Example
-
- === "CLI"
-
- ```bash
- yolo TASK MODE ARGS
- ```
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a YOLOv8 model from a pre-trained weights file
- model = YOLO('yolov8n.pt')
-
- # Run MODE mode using the custom arguments ARGS (guess TASK)
- model.MODE(ARGS)
- ```
-
-Where:
-
-- `TASK` (optional) is one of ([detect](../tasks/detect.md), [segment](../tasks/segment.md), [classify](../tasks/classify.md), [pose](../tasks/pose.md))
-- `MODE` (required) is one of ([train](../modes/train.md), [val](../modes/val.md), [predict](../modes/predict.md), [export](../modes/export.md), [track](../modes/track.md))
-- `ARGS` (optional) are `arg=value` pairs like `imgsz=640` that override defaults.
-
-Default `ARG` values are defined on this page from the `cfg/defaults.yaml` [file](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/default.yaml).
-
-#### Tasks
-
-YOLO models can be used for a variety of tasks, including detection, segmentation, classification and pose. These tasks differ in the type of output they produce and the specific problem they are designed to solve.
-
-- **Detect**: For identifying and localizing objects or regions of interest in an image or video.
-- **Segment**: For dividing an image or video into regions or pixels that correspond to different objects or classes.
-- **Classify**: For predicting the class label of an input image.
-- **Pose**: For identifying objects and estimating their keypoints in an image or video.
-- **OBB**: Oriented (i.e. rotated) bounding boxes suitable for satellite or medical imagery.
-
-| Argument | Default | Description |
-|----------|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `task` | `'detect'` | Specifies the YOLO task to be executed. Options include `detect` for object detection, `segment` for segmentation, `classify` for classification, `pose` for pose estimation and `OBB` for oriented bounding boxes. Each task is tailored to specific types of output and problems within image and video analysis. |
-
-[Tasks Guide](../tasks/index.md){ .md-button }
-
-#### Modes
-
-YOLO models can be used in different modes depending on the specific problem you are trying to solve. These modes include:
-
-- **Train**: For training a YOLOv8 model on a custom dataset.
-- **Val**: For validating a YOLOv8 model after it has been trained.
-- **Predict**: For making predictions using a trained YOLOv8 model on new images or videos.
-- **Export**: For exporting a YOLOv8 model to a format that can be used for deployment.
-- **Track**: For tracking objects in real-time using a YOLOv8 model.
-- **Benchmark**: For benchmarking YOLOv8 exports (ONNX, TensorRT, etc.) speed and accuracy.
-
-| Argument | Default | Description |
-|----------|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `mode` | `'train'` | Specifies the mode in which the YOLO model operates. Options are `train` for model training, `val` for validation, `predict` for inference on new data, `export` for model conversion to deployment formats, `track` for object tracking, and `benchmark` for performance evaluation. Each mode is designed for different stages of the model lifecycle, from development through deployment. |
-
-[Modes Guide](../modes/index.md){ .md-button }
-
-## Train Settings
-
-The training settings for YOLO models encompass various hyperparameters and configurations used during the training process. These settings influence the model's performance, speed, and accuracy. Key training settings include batch size, learning rate, momentum, and weight decay. Additionally, the choice of optimizer, loss function, and training dataset composition can impact the training process. Careful tuning and experimentation with these settings are crucial for optimizing performance.
-
-| Argument | Default | Description |
-|-------------------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `model` | `None` | Specifies the model file for training. Accepts a path to either a `.pt` pretrained model or a `.yaml` configuration file. Essential for defining the model structure or initializing weights. |
-| `data` | `None` | Path to the dataset configuration file (e.g., `coco128.yaml`). This file contains dataset-specific parameters, including paths to training and validation data, class names, and number of classes. |
-| `epochs` | `100` | Total number of training epochs. Each epoch represents a full pass over the entire dataset. Adjusting this value can affect training duration and model performance. |
-| `time` | `None` | Maximum training time in hours. If set, this overrides the `epochs` argument, allowing training to automatically stop after the specified duration. Useful for time-constrained training scenarios. |
-| `patience` | `100` | Number of epochs to wait without improvement in validation metrics before early stopping the training. Helps prevent overfitting by stopping training when performance plateaus. |
-| `batch` | `16` | Batch size for training, indicating how many images are processed before the model's internal parameters are updated. AutoBatch (`batch=-1`) dynamically adjusts the batch size based on GPU memory availability. |
-| `imgsz` | `640` | Target image size for training. All images are resized to this dimension before being fed into the model. Affects model accuracy and computational complexity. |
-| `save` | `True` | Enables saving of training checkpoints and final model weights. Useful for resuming training or model deployment. |
-| `save_period` | `-1` | Frequency of saving model checkpoints, specified in epochs. A value of -1 disables this feature. Useful for saving interim models during long training sessions. |
-| `cache` | `False` | Enables caching of dataset images in memory (`True`/`ram`), on disk (`disk`), or disables it (`False`). Improves training speed by reducing disk I/O at the cost of increased memory usage. |
-| `device` | `None` | Specifies the computational device(s) for training: a single GPU (`device=0`), multiple GPUs (`device=0,1`), CPU (`device=cpu`), or MPS for Apple silicon (`device=mps`). |
-| `workers` | `8` | Number of worker threads for data loading (per `RANK` if Multi-GPU training). Influences the speed of data preprocessing and feeding into the model, especially useful in multi-GPU setups. |
-| `project` | `None` | Name of the project directory where training outputs are saved. Allows for organized storage of different experiments. |
-| `name` | `None` | Name of the training run. Used for creating a subdirectory within the project folder, where training logs and outputs are stored. |
-| `exist_ok` | `False` | If True, allows overwriting of an existing project/name directory. Useful for iterative experimentation without needing to manually clear previous outputs. |
-| `pretrained` | `True` | Determines whether to start training from a pretrained model. Can be a boolean value or a string path to a specific model from which to load weights. Enhances training efficiency and model performance. |
-| `optimizer` | `'auto'` | Choice of optimizer for training. Options include `SGD`, `Adam`, `AdamW`, `NAdam`, `RAdam`, `RMSProp` etc., or `auto` for automatic selection based on model configuration. Affects convergence speed and stability. |
-| `verbose` | `False` | Enables verbose output during training, providing detailed logs and progress updates. Useful for debugging and closely monitoring the training process. |
-| `seed` | `0` | Sets the random seed for training, ensuring reproducibility of results across runs with the same configurations. |
-| `deterministic` | `True` | Forces deterministic algorithm use, ensuring reproducibility but may affect performance and speed due to the restriction on non-deterministic algorithms. |
-| `single_cls` | `False` | Treats all classes in multi-class datasets as a single class during training. Useful for binary classification tasks or when focusing on object presence rather than classification. |
-| `rect` | `False` | Enables rectangular training, optimizing batch composition for minimal padding. Can improve efficiency and speed but may affect model accuracy. |
-| `cos_lr` | `False` | Utilizes a cosine learning rate scheduler, adjusting the learning rate following a cosine curve over epochs. Helps in managing learning rate for better convergence. |
-| `close_mosaic` | `10` | Disables mosaic data augmentation in the last N epochs to stabilize training before completion. Setting to 0 disables this feature. |
-| `resume` | `False` | Resumes training from the last saved checkpoint. Automatically loads model weights, optimizer state, and epoch count, continuing training seamlessly. |
-| `amp` | `True` | Enables Automatic Mixed Precision (AMP) training, reducing memory usage and possibly speeding up training with minimal impact on accuracy. |
-| `fraction` | `1.0` | Specifies the fraction of the dataset to use for training. Allows for training on a subset of the full dataset, useful for experiments or when resources are limited. |
-| `profile` | `False` | Enables profiling of ONNX and TensorRT speeds during training, useful for optimizing model deployment. |
-| `freeze` | `None` | Freezes the first N layers of the model or specified layers by index, reducing the number of trainable parameters. Useful for fine-tuning or transfer learning. |
-| `lr0` | `0.01` | Initial learning rate (i.e. `SGD=1E-2`, `Adam=1E-3`) . Adjusting this value is crucial for the optimization process, influencing how rapidly model weights are updated. |
-| `lrf` | `0.01` | Final learning rate as a fraction of the initial rate = (`lr0 * lrf`), used in conjunction with schedulers to adjust the learning rate over time. |
-| `momentum` | `0.937` | Momentum factor for SGD or beta1 for Adam optimizers, influencing the incorporation of past gradients in the current update. |
-| `weight_decay` | `0.0005` | L2 regularization term, penalizing large weights to prevent overfitting. |
-| `warmup_epochs` | `3.0` | Number of epochs for learning rate warmup, gradually increasing the learning rate from a low value to the initial learning rate to stabilize training early on. |
-| `warmup_momentum` | `0.8` | Initial momentum for warmup phase, gradually adjusting to the set momentum over the warmup period. |
-| `warmup_bias_lr` | `0.1` | Learning rate for bias parameters during the warmup phase, helping stabilize model training in the initial epochs. |
-| `box` | `7.5` | Weight of the box loss component in the loss function, influencing how much emphasis is placed on accurately predicting bounding box coordinates. |
-| `cls` | `0.5` | Weight of the classification loss in the total loss function, affecting the importance of correct class prediction relative to other components. |
-| `dfl` | `1.5` | Weight of the distribution focal loss, used in certain YOLO versions for fine-grained classification. |
-| `pose` | `12.0` | Weight of the pose loss in models trained for pose estimation, influencing the emphasis on accurately predicting pose keypoints. |
-| `kobj` | `2.0` | Weight of the keypoint objectness loss in pose estimation models, balancing detection confidence with pose accuracy. |
-| `label_smoothing` | `0.0` | Applies label smoothing, softening hard labels to a mix of the target label and a uniform distribution over labels, can improve generalization. |
-| `nbs` | `64` | Nominal batch size for normalization of loss. |
-| `overlap_mask` | `True` | Determines whether segmentation masks should overlap during training, applicable in instance segmentation tasks. |
-| `mask_ratio` | `4` | Downsample ratio for segmentation masks, affecting the resolution of masks used during training. |
-| `dropout` | `0.0` | Dropout rate for regularization in classification tasks, preventing overfitting by randomly omitting units during training. |
-| `val` | `True` | Enables validation during training, allowing for periodic evaluation of model performance on a separate dataset. |
-| `plots` | `False` | Generates and saves plots of training and validation metrics, as well as prediction examples, providing visual insights into model performance and learning progression. |
-
-[Train Guide](../modes/train.md){ .md-button }
-
-## Predict Settings
-
-The prediction settings for YOLO models encompass a range of hyperparameters and configurations that influence the model's performance, speed, and accuracy during inference on new data. Careful tuning and experimentation with these settings are essential to achieve optimal performance for a specific task. Key settings include the confidence threshold, Non-Maximum Suppression (NMS) threshold, and the number of classes considered. Additional factors affecting the prediction process are input data size and format, the presence of supplementary features such as masks or multiple labels per box, and the particular task the model is employed for.
-
-Inference arguments:
-
-| Argument | Type | Default | Description |
-|-----------------|----------------|------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `source` | `str` | `'ultralytics/assets'` | Specifies the data source for inference. Can be an image path, video file, directory, URL, or device ID for live feeds. Supports a wide range of formats and sources, enabling flexible application across different types of input. |
-| `conf` | `float` | `0.25` | Sets the minimum confidence threshold for detections. Objects detected with confidence below this threshold will be disregarded. Adjusting this value can help reduce false positives. |
-| `iou` | `float` | `0.7` | Intersection Over Union (IoU) threshold for Non-Maximum Suppression (NMS). Higher values result in fewer detections by eliminating overlapping boxes, useful for reducing duplicates. |
-| `imgsz` | `int or tuple` | `640` | Defines the image size for inference. Can be a single integer `640` for square resizing or a (height, width) tuple. Proper sizing can improve detection accuracy and processing speed. |
-| `half` | `bool` | `False` | Enables half-precision (FP16) inference, which can speed up model inference on supported GPUs with minimal impact on accuracy. |
-| `device` | `str` | `None` | Specifies the device for inference (e.g., `cpu`, `cuda:0` or `0`). Allows users to select between CPU, a specific GPU, or other compute devices for model execution. |
-| `max_det` | `int` | `300` | Maximum number of detections allowed per image. Limits the total number of objects the model can detect in a single inference, preventing excessive outputs in dense scenes. |
-| `vid_stride` | `int` | `1` | Frame stride for video inputs. Allows skipping frames in videos to speed up processing at the cost of temporal resolution. A value of 1 processes every frame, higher values skip frames. |
-| `stream_buffer` | `bool` | `False` | Determines if all frames should be buffered when processing video streams (`True`), or if the model should return the most recent frame (`False`). Useful for real-time applications. |
-| `visualize` | `bool` | `False` | Activates visualization of model features during inference, providing insights into what the model is "seeing". Useful for debugging and model interpretation. |
-| `augment` | `bool` | `False` | Enables test-time augmentation (TTA) for predictions, potentially improving detection robustness at the cost of inference speed. |
-| `agnostic_nms` | `bool` | `False` | Enables class-agnostic Non-Maximum Suppression (NMS), which merges overlapping boxes of different classes. Useful in multi-class detection scenarios where class overlap is common. |
-| `classes` | `list[int]` | `None` | Filters predictions to a set of class IDs. Only detections belonging to the specified classes will be returned. Useful for focusing on relevant objects in multi-class detection tasks. |
-| `retina_masks` | `bool` | `False` | Uses high-resolution segmentation masks if available in the model. This can enhance mask quality for segmentation tasks, providing finer detail. |
-| `embed` | `list[int]` | `None` | Specifies the layers from which to extract feature vectors or embeddings. Useful for downstream tasks like clustering or similarity search. |
-
-Visualization arguments:
-
-| Argument | Type | Default | Description |
-|---------------|---------------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `show` | `bool` | `False` | If `True`, displays the annotated images or videos in a window. Useful for immediate visual feedback during development or testing. |
-| `save` | `bool` | `False` | Enables saving of the annotated images or videos to file. Useful for documentation, further analysis, or sharing results. |
-| `save_frames` | `bool` | `False` | When processing videos, saves individual frames as images. Useful for extracting specific frames or for detailed frame-by-frame analysis. |
-| `save_txt` | `bool` | `False` | Saves detection results in a text file, following the format `[class] [x_center] [y_center] [width] [height] [confidence]`. Useful for integration with other analysis tools. |
-| `save_conf` | `bool` | `False` | Includes confidence scores in the saved text files. Enhances the detail available for post-processing and analysis. |
-| `save_crop` | `bool` | `False` | Saves cropped images of detections. Useful for dataset augmentation, analysis, or creating focused datasets for specific objects. |
-| `show_labels` | `bool` | `True` | Displays labels for each detection in the visual output. Provides immediate understanding of detected objects. |
-| `show_conf` | `bool` | `True` | Displays the confidence score for each detection alongside the label. Gives insight into the model's certainty for each detection. |
-| `show_boxes` | `bool` | `True` | Draws bounding boxes around detected objects. Essential for visual identification and location of objects in images or video frames. |
-| `line_width` | `None or int` | `None` | Specifies the line width of bounding boxes. If `None`, the line width is automatically adjusted based on the image size. Provides visual customization for clarity. |
-
-[Predict Guide](../modes/predict.md){ .md-button }
-
-## Validation Settings
-
-The val (validation) settings for YOLO models involve various hyperparameters and configurations used to evaluate the model's performance on a validation dataset. These settings influence the model's performance, speed, and accuracy. Common YOLO validation settings include batch size, validation frequency during training, and performance evaluation metrics. Other factors affecting the validation process include the validation dataset's size and composition, as well as the specific task the model is employed for.
-
-| Argument | Type | Default | Description |
-|---------------|---------|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `data` | `str` | `None` | Specifies the path to the dataset configuration file (e.g., `coco128.yaml`). This file includes paths to validation data, class names, and number of classes. |
-| `imgsz` | `int` | `640` | Defines the size of input images. All images are resized to this dimension before processing. |
-| `batch` | `int` | `16` | Sets the number of images per batch. Use `-1` for AutoBatch, which automatically adjusts based on GPU memory availability. |
-| `save_json` | `bool` | `False` | If `True`, saves the results to a JSON file for further analysis or integration with other tools. |
-| `save_hybrid` | `bool` | `False` | If `True`, saves a hybrid version of labels that combines original annotations with additional model predictions. |
-| `conf` | `float` | `0.001` | Sets the minimum confidence threshold for detections. Detections with confidence below this threshold are discarded. |
-| `iou` | `float` | `0.6` | Sets the Intersection Over Union (IoU) threshold for Non-Maximum Suppression (NMS). Helps in reducing duplicate detections. |
-| `max_det` | `int` | `300` | Limits the maximum number of detections per image. Useful in dense scenes to prevent excessive detections. |
-| `half` | `bool` | `True` | Enables half-precision (FP16) computation, reducing memory usage and potentially increasing speed with minimal impact on accuracy. |
-| `device` | `str` | `None` | Specifies the device for validation (`cpu`, `cuda:0`, etc.). Allows flexibility in utilizing CPU or GPU resources. |
-| `dnn` | `bool` | `False` | If `True`, uses the OpenCV DNN module for ONNX model inference, offering an alternative to PyTorch inference methods. |
-| `plots` | `bool` | `False` | When set to `True`, generates and saves plots of predictions versus ground truth for visual evaluation of the model's performance. |
-| `rect` | `bool` | `False` | If `True`, uses rectangular inference for batching, reducing padding and potentially increasing speed and efficiency. |
-| `split` | `str` | `val` | Determines the dataset split to use for validation (`val`, `test`, or `train`). Allows flexibility in choosing the data segment for performance evaluation. |
-
-Careful tuning and experimentation with these settings are crucial to ensure optimal performance on the validation dataset and detect and prevent overfitting.
-
-[Val Guide](../modes/val.md){ .md-button }
-
-## Export Settings
-
-Export settings for YOLO models encompass configurations and options related to saving or exporting the model for use in different environments or platforms. These settings can impact the model's performance, size, and compatibility with various systems. Key export settings include the exported model file format (e.g., ONNX, TensorFlow SavedModel), the target device (e.g., CPU, GPU), and additional features such as masks or multiple labels per box. The export process may also be affected by the model's specific task and the requirements or constraints of the destination environment or platform.
-
-| Argument | Type | Default | Description |
-|-------------|------------------|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `format` | `str` | `'torchscript'` | Target format for the exported model, such as `'onnx'`, `'torchscript'`, `'tensorflow'`, or others, defining compatibility with various deployment environments. |
-| `imgsz` | `int` or `tuple` | `640` | Desired image size for the model input. Can be an integer for square images or a tuple `(height, width)` for specific dimensions. |
-| `keras` | `bool` | `False` | Enables export to Keras format for TensorFlow SavedModel, providing compatibility with TensorFlow serving and APIs. |
-| `optimize` | `bool` | `False` | Applies optimization for mobile devices when exporting to TorchScript, potentially reducing model size and improving performance. |
-| `half` | `bool` | `False` | Enables FP16 (half-precision) quantization, reducing model size and potentially speeding up inference on supported hardware. |
-| `int8` | `bool` | `False` | Activates INT8 quantization, further compressing the model and speeding up inference with minimal accuracy loss, primarily for edge devices. |
-| `dynamic` | `bool` | `False` | Allows dynamic input sizes for ONNX and TensorRT exports, enhancing flexibility in handling varying image dimensions. |
-| `simplify` | `bool` | `False` | Simplifies the model graph for ONNX exports, potentially improving performance and compatibility. |
-| `opset` | `int` | `None` | Specifies the ONNX opset version for compatibility with different ONNX parsers and runtimes. If not set, uses the latest supported version. |
-| `workspace` | `float` | `4.0` | Sets the maximum workspace size in GB for TensorRT optimizations, balancing memory usage and performance. |
-| `nms` | `bool` | `False` | Adds Non-Maximum Suppression (NMS) to the CoreML export, essential for accurate and efficient detection post-processing. |
-
-It is crucial to thoughtfully configure these settings to ensure the exported model is optimized for the intended use case and functions effectively in the target environment.
-
-[Export Guide](../modes/export.md){ .md-button }
-
-## Augmentation Settings
-
-Augmentation techniques are essential for improving the robustness and performance of YOLO models by introducing variability into the training data, helping the model generalize better to unseen data. The following table outlines the purpose and effect of each augmentation argument:
-
-| Argument | Type | Default | Range | Description |
-|----------------|---------|---------------|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `hsv_h` | `float` | `0.015` | `0.0 - 1.0` | Adjusts the hue of the image by a fraction of the color wheel, introducing color variability. Helps the model generalize across different lighting conditions. |
-| `hsv_s` | `float` | `0.7` | `0.0 - 1.0` | Alters the saturation of the image by a fraction, affecting the intensity of colors. Useful for simulating different environmental conditions. |
-| `hsv_v` | `float` | `0.4` | `0.0 - 1.0` | Modifies the value (brightness) of the image by a fraction, helping the model to perform well under various lighting conditions. |
-| `degrees` | `float` | `0.0` | `-180 - +180` | Rotates the image randomly within the specified degree range, improving the model's ability to recognize objects at various orientations. |
-| `translate` | `float` | `0.1` | `0.0 - 1.0` | Translates the image horizontally and vertically by a fraction of the image size, aiding in learning to detect partially visible objects. |
-| `scale` | `float` | `0.5` | `>=0.0` | Scales the image by a gain factor, simulating objects at different distances from the camera. |
-| `shear` | `float` | `0.0` | `-180 - +180` | Shears the image by a specified degree, mimicking the effect of objects being viewed from different angles. |
-| `perspective` | `float` | `0.0` | `0.0 - 0.001` | Applies a random perspective transformation to the image, enhancing the model's ability to understand objects in 3D space. |
-| `flipud` | `float` | `0.0` | `0.0 - 1.0` | Flips the image upside down with the specified probability, increasing the data variability without affecting the object's characteristics. |
-| `fliplr` | `float` | `0.5` | `0.0 - 1.0` | Flips the image left to right with the specified probability, useful for learning symmetrical objects and increasing dataset diversity. |
-| `mosaic` | `float` | `1.0` | `0.0 - 1.0` | Combines four training images into one, simulating different scene compositions and object interactions. Highly effective for complex scene understanding. |
-| `mixup` | `float` | `0.0` | `0.0 - 1.0` | Blends two images and their labels, creating a composite image. Enhances the model's ability to generalize by introducing label noise and visual variability. |
-| `copy_paste` | `float` | `0.0` | `0.0 - 1.0` | Copies objects from one image and pastes them onto another, useful for increasing object instances and learning object occlusion. |
-| `auto_augment` | `str` | `randaugment` | - | Automatically applies a predefined augmentation policy (`randaugment`, `autoaugment`, `augmix`), optimizing for classification tasks by diversifying the visual features. |
-| `erasing` | `float` | `0.4` | `0.0 - 1.0` | Randomly erases a portion of the image during classification training, encouraging the model to focus on less obvious features for recognition. |
-
-These settings can be adjusted to meet the specific requirements of the dataset and task at hand. Experimenting with different values can help find the optimal augmentation strategy that leads to the best model performance.
-
-## Logging, Checkpoints and Plotting Settings
-
-Logging, checkpoints, plotting, and file management are important considerations when training a YOLO model.
-
-- Logging: It is often helpful to log various metrics and statistics during training to track the model's progress and diagnose any issues that may arise. This can be done using a logging library such as TensorBoard or by writing log messages to a file.
-- Checkpoints: It is a good practice to save checkpoints of the model at regular intervals during training. This allows you to resume training from a previous point if the training process is interrupted or if you want to experiment with different training configurations.
-- Plotting: Visualizing the model's performance and training progress can be helpful for understanding how the model is behaving and identifying potential issues. This can be done using a plotting library such as matplotlib or by generating plots using a logging library such as TensorBoard.
-- File management: Managing the various files generated during the training process, such as model checkpoints, log files, and plots, can be challenging. It is important to have a clear and organized file structure to keep track of these files and make it easy to access and analyze them as needed.
-
-Effective logging, checkpointing, plotting, and file management can help you keep track of the model's progress and make it easier to debug and optimize the training process.
-
-| Argument | Default | Description |
-|------------|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `project` | `'runs'` | Specifies the root directory for saving training runs. Each run will be saved in a separate subdirectory within this directory. |
-| `name` | `'exp'` | Defines the name of the experiment. If not specified, YOLO automatically increments this name for each run, e.g., `exp`, `exp2`, etc., to avoid overwriting previous experiments. |
-| `exist_ok` | `False` | Determines whether to overwrite an existing experiment directory if one with the same name already exists. Setting this to `True` allows overwriting, while `False` prevents it. |
-| `plots` | `False` | Controls the generation and saving of training and validation plots. Set to `True` to create plots such as loss curves, precision-recall curves, and sample predictions. Useful for visually tracking model performance over time. |
-| `save` | `False` | Enables the saving of training checkpoints and final model weights. Set to `True` to periodically save model states, allowing training to be resumed from these checkpoints or models to be deployed. |
diff --git a/ultralytics-main/docs/en/usage/cli.md b/ultralytics-main/docs/en/usage/cli.md
deleted file mode 100644
index c71d7d0..0000000
--- a/ultralytics-main/docs/en/usage/cli.md
+++ /dev/null
@@ -1,231 +0,0 @@
----
-comments: true
-description: Learn how to use Ultralytics YOLO through Command Line, train models, run predictions and exports models to different formats easily using terminal commands.
-keywords: Ultralytics, YOLO, CLI, train, validation, prediction, command line interface, YOLO CLI, YOLO terminal, model training, prediction, exporting
----
-
-# Command Line Interface Usage
-
-The YOLO command line interface (CLI) allows for simple single-line commands without the need for a Python environment. CLI requires no customization or Python code. You can simply run all tasks from the terminal with the `yolo` command.
-
-
-
-!!! Example
-
- === "Syntax"
-
- Ultralytics `yolo` commands use the following syntax:
- ```bash
- yolo TASK MODE ARGS
-
- Where TASK (optional) is one of [detect, segment, classify]
- MODE (required) is one of [train, val, predict, export, track]
- ARGS (optional) are any number of custom 'arg=value' pairs like 'imgsz=320' that override defaults.
- ```
- See all ARGS in the full [Configuration Guide](cfg.md) or with `yolo cfg`
-
- === "Train"
-
- Train a detection model for 10 epochs with an initial learning_rate of 0.01
- ```bash
- yolo train data=coco128.yaml model=yolov8n.pt epochs=10 lr0=0.01
- ```
-
- === "Predict"
-
- Predict a YouTube video using a pretrained segmentation model at image size 320:
- ```bash
- yolo predict model=yolov8n-seg.pt source='https://youtu.be/LNwODJXcvt4' imgsz=320
- ```
-
- === "Val"
-
- Val a pretrained detection model at batch-size 1 and image size 640:
- ```bash
- yolo val model=yolov8n.pt data=coco128.yaml batch=1 imgsz=640
- ```
-
- === "Export"
-
- Export a YOLOv8n classification model to ONNX format at image size 224 by 128 (no TASK required)
- ```bash
- yolo export model=yolov8n-cls.pt format=onnx imgsz=224,128
- ```
-
- === "Special"
-
- Run special commands to see version, view settings, run checks and more:
- ```bash
- yolo help
- yolo checks
- yolo version
- yolo settings
- yolo copy-cfg
- yolo cfg
- ```
-
-Where:
-
-- `TASK` (optional) is one of `[detect, segment, classify]`. If it is not passed explicitly YOLOv8 will try to guess the `TASK` from the model type.
-- `MODE` (required) is one of `[train, val, predict, export, track]`
-- `ARGS` (optional) are any number of custom `arg=value` pairs like `imgsz=320` that override defaults. For a full list of available `ARGS` see the [Configuration](cfg.md) page and `defaults.yaml`
- GitHub [source](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/default.yaml).
-
-!!! Warning "Warning"
-
- Arguments must be passed as `arg=val` pairs, split by an equals `=` sign and delimited by spaces ` ` between pairs. Do not use `--` argument prefixes or commas `,` between arguments.
-
- - `yolo predict model=yolov8n.pt imgsz=640 conf=0.25` ✅
- - `yolo predict model yolov8n.pt imgsz 640 conf 0.25` ❌
- - `yolo predict --model yolov8n.pt --imgsz 640 --conf 0.25` ❌
-
-## Train
-
-Train YOLOv8n on the COCO128 dataset for 100 epochs at image size 640. For a full list of available arguments see the [Configuration](cfg.md) page.
-
-!!! Example "Example"
-
- === "Train"
-
- Start training YOLOv8n on COCO128 for 100 epochs at image-size 640.
- ```bash
- yolo detect train data=coco128.yaml model=yolov8n.pt epochs=100 imgsz=640
- ```
-
- === "Resume"
-
- Resume an interrupted training.
- ```bash
- yolo detect train resume model=last.pt
- ```
-
-## Val
-
-Validate trained YOLOv8n model accuracy on the COCO128 dataset. No argument need to passed as the `model` retains it's training `data` and arguments as model attributes.
-
-!!! Example "Example"
-
- === "Official"
-
- Validate an official YOLOv8n model.
- ```bash
- yolo detect val model=yolov8n.pt
- ```
-
- === "Custom"
-
- Validate a custom-trained model.
- ```bash
- yolo detect val model=path/to/best.pt
- ```
-
-## Predict
-
-Use a trained YOLOv8n model to run predictions on images.
-
-!!! Example "Example"
-
- === "Official"
-
- Predict with an official YOLOv8n model.
- ```bash
- yolo detect predict model=yolov8n.pt source='https://ultralytics.com/images/bus.jpg'
- ```
-
- === "Custom"
-
- Predict with a custom model.
- ```bash
- yolo detect predict model=path/to/best.pt source='https://ultralytics.com/images/bus.jpg'
- ```
-
-## Export
-
-Export a YOLOv8n model to a different format like ONNX, CoreML, etc.
-
-!!! Example "Example"
-
- === "Official"
-
- Export an official YOLOv8n model to ONNX format.
- ```bash
- yolo export model=yolov8n.pt format=onnx
- ```
-
- === "Custom"
-
- Export a custom-trained model to ONNX format.
- ```bash
- yolo export model=path/to/best.pt format=onnx
- ```
-
-Available YOLOv8 export formats are in the table below. You can export to any format using the `format` argument, i.e. `format='onnx'` or `format='engine'`.
-
-| Format | `format` Argument | Model | Metadata | Arguments |
-|--------------------------------------------------------------------|-------------------|---------------------------|----------|-----------------------------------------------------|
-| [PyTorch](https://pytorch.org/) | - | `yolov8n.pt` | ✅ | - |
-| [TorchScript](https://pytorch.org/docs/stable/jit.html) | `torchscript` | `yolov8n.torchscript` | ✅ | `imgsz`, `optimize` |
-| [ONNX](https://onnx.ai/) | `onnx` | `yolov8n.onnx` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `opset` |
-| [OpenVINO](../integrations/openvino.md) | `openvino` | `yolov8n_openvino_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [TensorRT](https://developer.nvidia.com/tensorrt) | `engine` | `yolov8n.engine` | ✅ | `imgsz`, `half`, `dynamic`, `simplify`, `workspace` |
-| [CoreML](https://github.com/apple/coremltools) | `coreml` | `yolov8n.mlpackage` | ✅ | `imgsz`, `half`, `int8`, `nms` |
-| [TF SavedModel](https://www.tensorflow.org/guide/saved_model) | `saved_model` | `yolov8n_saved_model/` | ✅ | `imgsz`, `keras`, `int8` |
-| [TF GraphDef](https://www.tensorflow.org/api_docs/python/tf/Graph) | `pb` | `yolov8n.pb` | ❌ | `imgsz` |
-| [TF Lite](https://www.tensorflow.org/lite) | `tflite` | `yolov8n.tflite` | ✅ | `imgsz`, `half`, `int8` |
-| [TF Edge TPU](https://coral.ai/docs/edgetpu/models-intro/) | `edgetpu` | `yolov8n_edgetpu.tflite` | ✅ | `imgsz` |
-| [TF.js](https://www.tensorflow.org/js) | `tfjs` | `yolov8n_web_model/` | ✅ | `imgsz`, `half`, `int8` |
-| [PaddlePaddle](https://github.com/PaddlePaddle) | `paddle` | `yolov8n_paddle_model/` | ✅ | `imgsz` |
-| [NCNN](https://github.com/Tencent/ncnn) | `ncnn` | `yolov8n_ncnn_model/` | ✅ | `imgsz`, `half` |
-
-## Overriding default arguments
-
-Default arguments can be overridden by simply passing them as arguments in the CLI in `arg=value` pairs.
-
-!!! Tip ""
-
- === "Train"
-
- Train a detection model for `10 epochs` with `learning_rate` of `0.01`
- ```bash
- yolo detect train data=coco128.yaml model=yolov8n.pt epochs=10 lr0=0.01
- ```
-
- === "Predict"
-
- Predict a YouTube video using a pretrained segmentation model at image size 320:
- ```bash
- yolo segment predict model=yolov8n-seg.pt source='https://youtu.be/LNwODJXcvt4' imgsz=320
- ```
-
- === "Val"
-
- Validate a pretrained detection model at batch-size 1 and image size 640:
- ```bash
- yolo detect val model=yolov8n.pt data=coco128.yaml batch=1 imgsz=640
- ```
-
-## Overriding default config file
-
-You can override the `default.yaml` config file entirely by passing a new file with the `cfg` arguments, i.e. `cfg=custom.yaml`.
-
-To do this first create a copy of `default.yaml` in your current working dir with the `yolo copy-cfg` command.
-
-This will create `default_copy.yaml`, which you can then pass as `cfg=default_copy.yaml` along with any additional args, like `imgsz=320` in this example:
-
-!!! Example
-
- === "CLI"
-
- ```bash
- yolo copy-cfg
- yolo cfg=default_copy.yaml imgsz=320
- ```
diff --git a/ultralytics-main/docs/en/usage/engine.md b/ultralytics-main/docs/en/usage/engine.md
deleted file mode 100644
index 7d6964e..0000000
--- a/ultralytics-main/docs/en/usage/engine.md
+++ /dev/null
@@ -1,91 +0,0 @@
----
-comments: true
-description: Discover how to customize and extend base Ultralytics YOLO Trainer engines. Support your custom model and dataloader by overriding built-in functions.
-keywords: Ultralytics, YOLO, trainer engines, BaseTrainer, DetectionTrainer, customizing trainers, extending trainers, custom model, custom dataloader
----
-
-Both the Ultralytics YOLO command-line and Python interfaces are simply a high-level abstraction on the base engine executors. Let's take a look at the Trainer engine.
-
-
-
-## BaseTrainer
-
-BaseTrainer contains the generic boilerplate training routine. It can be customized for any task based over overriding the required functions or operations as long the as correct formats are followed. For example, you can support your own custom model and dataloader by just overriding these functions:
-
-- `get_model(cfg, weights)` - The function that builds the model to be trained
-- `get_dataloader()` - The function that builds the dataloader More details and source code can be found in [`BaseTrainer` Reference](../reference/engine/trainer.md)
-
-## DetectionTrainer
-
-Here's how you can use the YOLOv8 `DetectionTrainer` and customize it.
-
-```python
-from ultralytics.models.yolo.detect import DetectionTrainer
-
-trainer = DetectionTrainer(overrides={...})
-trainer.train()
-trained_model = trainer.best # get best model
-```
-
-### Customizing the DetectionTrainer
-
-Let's customize the trainer **to train a custom detection model** that is not supported directly. You can do this by simply overloading the existing the `get_model` functionality:
-
-```python
-from ultralytics.models.yolo.detect import DetectionTrainer
-
-
-class CustomTrainer(DetectionTrainer):
- def get_model(self, cfg, weights):
- ...
-
-
-trainer = CustomTrainer(overrides={...})
-trainer.train()
-```
-
-You now realize that you need to customize the trainer further to:
-
-- Customize the `loss function`.
-- Add `callback` that uploads model to your Google Drive after every 10 `epochs` Here's how you can do it:
-
-```python
-from ultralytics.models.yolo.detect import DetectionTrainer
-from ultralytics.nn.tasks import DetectionModel
-
-
-class MyCustomModel(DetectionModel):
- def init_criterion(self):
- ...
-
-
-class CustomTrainer(DetectionTrainer):
- def get_model(self, cfg, weights):
- return MyCustomModel(...)
-
-
-# callback to upload model weights
-def log_model(trainer):
- last_weight_path = trainer.last
- print(last_weight_path)
-
-
-trainer = CustomTrainer(overrides={...})
-trainer.add_callback("on_train_epoch_end", log_model) # Adds to existing callback
-trainer.train()
-```
-
-To know more about Callback triggering events and entry point, checkout our [Callbacks Guide](callbacks.md)
-
-## Other engine components
-
-There are other components that can be customized similarly like `Validators` and `Predictors`. See Reference section for more information on these.
diff --git a/ultralytics-main/docs/en/usage/python.md b/ultralytics-main/docs/en/usage/python.md
deleted file mode 100644
index db4fd2e..0000000
--- a/ultralytics-main/docs/en/usage/python.md
+++ /dev/null
@@ -1,325 +0,0 @@
----
-comments: true
-description: Boost your Python projects with object detection, segmentation and classification using YOLOv8. Explore how to load, train, validate, predict, export, track and benchmark models with ease.
-keywords: YOLOv8, Ultralytics, Python, object detection, segmentation, classification, model training, validation, prediction, model export, benchmark, real-time tracking
----
-
-# Python Usage
-
-Welcome to the YOLOv8 Python Usage documentation! This guide is designed to help you seamlessly integrate YOLOv8 into your Python projects for object detection, segmentation, and classification. Here, you'll learn how to load and use pretrained models, train new models, and perform predictions on images. The easy-to-use Python interface is a valuable resource for anyone looking to incorporate YOLOv8 into their Python projects, allowing you to quickly implement advanced object detection capabilities. Let's get started!
-
-
-
-For example, users can load a model, train it, evaluate its performance on a validation set, and even export it to ONNX format with just a few lines of code.
-
-!!! Example "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Create a new YOLO model from scratch
- model = YOLO('yolov8n.yaml')
-
- # Load a pretrained YOLO model (recommended for training)
- model = YOLO('yolov8n.pt')
-
- # Train the model using the 'coco128.yaml' dataset for 3 epochs
- results = model.train(data='coco128.yaml', epochs=3)
-
- # Evaluate the model's performance on the validation set
- results = model.val()
-
- # Perform object detection on an image using the model
- results = model('https://ultralytics.com/images/bus.jpg')
-
- # Export the model to ONNX format
- success = model.export(format='onnx')
- ```
-
-## [Train](../modes/train.md)
-
-Train mode is used for training a YOLOv8 model on a custom dataset. In this mode, the model is trained using the specified dataset and hyperparameters. The training process involves optimizing the model's parameters so that it can accurately predict the classes and locations of objects in an image.
-
-!!! Example "Train"
-
- === "From pretrained(recommended)"
-
- ```python
- from ultralytics import YOLO
-
- model = YOLO('yolov8n.pt') # pass any model type
- results = model.train(epochs=5)
- ```
-
- === "From scratch"
-
- ```python
- from ultralytics import YOLO
-
- model = YOLO('yolov8n.yaml')
- results = model.train(data='coco128.yaml', epochs=5)
- ```
-
- === "Resume"
-
- ```python
- model = YOLO("last.pt")
- results = model.train(resume=True)
- ```
-
-[Train Examples](../modes/train.md){ .md-button }
-
-## [Val](../modes/val.md)
-
-Val mode is used for validating a YOLOv8 model after it has been trained. In this mode, the model is evaluated on a validation set to measure its accuracy and generalization performance. This mode can be used to tune the hyperparameters of the model to improve its performance.
-
-!!! Example "Val"
-
- === "Val after training"
-
- ```python
- from ultralytics import YOLO
-
- model = YOLO('yolov8n.yaml')
- model.train(data='coco128.yaml', epochs=5)
- model.val() # It'll automatically evaluate the data you trained.
- ```
-
- === "Val independently"
-
- ```python
- from ultralytics import YOLO
-
- model = YOLO("model.pt")
- # It'll use the data YAML file in model.pt if you don't set data.
- model.val()
- # or you can set the data you want to val
- model.val(data='coco128.yaml')
- ```
-
-[Val Examples](../modes/val.md){ .md-button }
-
-## [Predict](../modes/predict.md)
-
-Predict mode is used for making predictions using a trained YOLOv8 model on new images or videos. In this mode, the model is loaded from a checkpoint file, and the user can provide images or videos to perform inference. The model predicts the classes and locations of objects in the input images or videos.
-
-!!! Example "Predict"
-
- === "From source"
-
- ```python
- from ultralytics import YOLO
- from PIL import Image
- import cv2
-
- model = YOLO("model.pt")
- # accepts all formats - image/dir/Path/URL/video/PIL/ndarray. 0 for webcam
- results = model.predict(source="0")
- results = model.predict(source="folder", show=True) # Display preds. Accepts all YOLO predict arguments
-
- # from PIL
- im1 = Image.open("bus.jpg")
- results = model.predict(source=im1, save=True) # save plotted images
-
- # from ndarray
- im2 = cv2.imread("bus.jpg")
- results = model.predict(source=im2, save=True, save_txt=True) # save predictions as labels
-
- # from list of PIL/ndarray
- results = model.predict(source=[im1, im2])
- ```
-
- === "Results usage"
-
- ```python
- # results would be a list of Results object including all the predictions by default
- # but be careful as it could occupy a lot memory when there're many images,
- # especially the task is segmentation.
- # 1. return as a list
- results = model.predict(source="folder")
-
- # results would be a generator which is more friendly to memory by setting stream=True
- # 2. return as a generator
- results = model.predict(source=0, stream=True)
-
- for result in results:
- # Detection
- result.boxes.xyxy # box with xyxy format, (N, 4)
- result.boxes.xywh # box with xywh format, (N, 4)
- result.boxes.xyxyn # box with xyxy format but normalized, (N, 4)
- result.boxes.xywhn # box with xywh format but normalized, (N, 4)
- result.boxes.conf # confidence score, (N, 1)
- result.boxes.cls # cls, (N, 1)
-
- # Segmentation
- result.masks.data # masks, (N, H, W)
- result.masks.xy # x,y segments (pixels), List[segment] * N
- result.masks.xyn # x,y segments (normalized), List[segment] * N
-
- # Classification
- result.probs # cls prob, (num_class, )
-
- # Each result is composed of torch.Tensor by default,
- # in which you can easily use following functionality:
- result = result.cuda()
- result = result.cpu()
- result = result.to("cpu")
- result = result.numpy()
- ```
-
-[Predict Examples](../modes/predict.md){ .md-button }
-
-## [Export](../modes/export.md)
-
-Export mode is used for exporting a YOLOv8 model to a format that can be used for deployment. In this mode, the model is converted to a format that can be used by other software applications or hardware devices. This mode is useful when deploying the model to production environments.
-
-!!! Example "Export"
-
- === "Export to ONNX"
-
- Export an official YOLOv8n model to ONNX with dynamic batch-size and image-size.
- ```python
- from ultralytics import YOLO
-
- model = YOLO('yolov8n.pt')
- model.export(format='onnx', dynamic=True)
- ```
-
- === "Export to TensorRT"
-
- Export an official YOLOv8n model to TensorRT on `device=0` for acceleration on CUDA devices.
- ```python
- from ultralytics import YOLO
-
- model = YOLO('yolov8n.pt')
- model.export(format='onnx', device=0)
- ```
-
-[Export Examples](../modes/export.md){ .md-button }
-
-## [Track](../modes/track.md)
-
-Track mode is used for tracking objects in real-time using a YOLOv8 model. In this mode, the model is loaded from a checkpoint file, and the user can provide a live video stream to perform real-time object tracking. This mode is useful for applications such as surveillance systems or self-driving cars.
-
-!!! Example "Track"
-
- === "Python"
-
- ```python
- from ultralytics import YOLO
-
- # Load a model
- model = YOLO('yolov8n.pt') # load an official detection model
- model = YOLO('yolov8n-seg.pt') # load an official segmentation model
- model = YOLO('path/to/best.pt') # load a custom model
-
- # Track with the model
- results = model.track(source="https://youtu.be/LNwODJXcvt4", show=True)
- results = model.track(source="https://youtu.be/LNwODJXcvt4", show=True, tracker="bytetrack.yaml")
- ```
-
-[Track Examples](../modes/track.md){ .md-button }
-
-## [Benchmark](../modes/benchmark.md)
-
-Benchmark mode is used to profile the speed and accuracy of various export formats for YOLOv8. The benchmarks provide information on the size of the exported format, its `mAP50-95` metrics (for object detection and segmentation) or `accuracy_top5` metrics (for classification), and the inference time in milliseconds per image across various export formats like ONNX, OpenVINO, TensorRT and others. This information can help users choose the optimal export format for their specific use case based on their requirements for speed and accuracy.
-
-!!! Example "Benchmark"
-
- === "Python"
-
- Benchmark an official YOLOv8n model across all export formats.
- ```python
- from ultralytics.utils.benchmarks import benchmark
-
- # Benchmark
- benchmark(model='yolov8n.pt', data='coco8.yaml', imgsz=640, half=False, device=0)
- ```
-
-[Benchmark Examples](../modes/benchmark.md){ .md-button }
-
-## Explorer
-
-Explorer API can be used to explore datasets with advanced semantic, vector-similarity and SQL search among other features. It also enabled searching for images based on their content using natural language by utilizing the power of LLMs. The Explorer API allows you to write your own dataset exploration notebooks or scripts to get insights into your datasets.
-
-!!! Example "Semantic Search Using Explorer"
-
- === "Using Images"
-
- ```python
- from ultralytics import Explorer
-
- # create an Explorer object
- exp = Explorer(data='coco128.yaml', model='yolov8n.pt')
- exp.create_embeddings_table()
-
- similar = exp.get_similar(img='https://ultralytics.com/images/bus.jpg', limit=10)
- print(similar.head())
-
- # Search using multiple indices
- similar = exp.get_similar(
- img=['https://ultralytics.com/images/bus.jpg',
- 'https://ultralytics.com/images/bus.jpg'],
- limit=10
- )
- print(similar.head())
- ```
-
- === "Using Dataset Indices"
-
- ```python
- from ultralytics import Explorer
-
- # create an Explorer object
- exp = Explorer(data='coco128.yaml', model='yolov8n.pt')
- exp.create_embeddings_table()
-
- similar = exp.get_similar(idx=1, limit=10)
- print(similar.head())
-
- # Search using multiple indices
- similar = exp.get_similar(idx=[1,10], limit=10)
- print(similar.head())
- ```
-
-[Explorer](../datasets/explorer/index.md){ .md-button }
-
-## Using Trainers
-
-`YOLO` model class is a high-level wrapper on the Trainer classes. Each YOLO task has its own trainer that inherits from `BaseTrainer`.
-
-!!! Tip "Detection Trainer Example"
-
- ```python
- from ultralytics.models.yolo import DetectionTrainer, DetectionValidator, DetectionPredictor
-
- # trainer
- trainer = DetectionTrainer(overrides={})
- trainer.train()
- trained_model = trainer.best
-
- # Validator
- val = DetectionValidator(args=...)
- val(model=trained_model)
-
- # predictor
- pred = DetectionPredictor(overrides={})
- pred(source=SOURCE, model=trained_model)
-
- # resume from last weight
- overrides["resume"] = trainer.last
- trainer = detect.DetectionTrainer(overrides=overrides)
- ```
-
-You can easily customize Trainers to support custom tasks or explore R&D ideas. Learn more about Customizing `Trainers`, `Validators` and `Predictors` to suit your project needs in the Customization Section.
-
-[Customization tutorials](engine.md){ .md-button }
diff --git a/ultralytics-main/docs/en/usage/simple-utilities.md b/ultralytics-main/docs/en/usage/simple-utilities.md
deleted file mode 100644
index c170f51..0000000
--- a/ultralytics-main/docs/en/usage/simple-utilities.md
+++ /dev/null
@@ -1,429 +0,0 @@
----
-comments: true
-description: Discover how to extend the utility of the Ultralytics package to support your development process.
-keywords: Ultralytics, YOLO, custom, function, workflow, utility, support,
----
-
-# Simple Utilities
-
-
-
-
-
-The `ultralytics` package comes with a myriad of utilities that can support, enhance, and speed up your workflows. There are many more available, but here are some that will be useful for most developers. They're also a great reference point to use when learning to program.
-
-## Data
-
-### YOLO Data Explorer
-
-[YOLO Explorer](../datasets/explorer/index.md) was added in the `8.1.0` anniversary update and is a powerful tool you can use to better understand your dataset. One of the key functions that YOLO Explorer provides, is the ability to use text queries to find object instances in your dataset.
-
-### Auto Labeling / Annotations
-
-Dataset annotation is a very resource intensive and time-consuming process. If you have a YOLO object detection model trained on a reasonable amount of data, you can use it and [SAM](../models/sam.md) to auto-annotate additional data (segmentation format).
-
-```{ .py .annotate }
-from ultralytics.data.annotator import auto_annotate
-
-auto_annotate(#(1)!
- data='path/to/new/data',
- det_model='yolov8n.pt',
- sam_model='mobile_sam.pt',
- device="cuda",
- output_dir="path/to/save_labels",
-)
-```
-
-1. Nothing returns from this function
-
-- [See the reference section for `annotator.auto_annotate`](../reference/data/annotator.md#ultralytics.data.annotator.auto_annotate) for more insight on how the function operates.
-
-- Use in combination with the [function `segments2boxes`](#convert-segments-to-bounding-boxes) to generate object detection bounding boxes as well
-
-### Convert COCO into YOLO Format
-
-Use to convert COCO JSON annotations into proper YOLO format. For object detection (bounding box) datasets, `use_segments` and `use_keypoints` should both be `False`
-
-```{ .py .annotate }
-from ultralytics.data.converter import convert_coco
-
-convert_coco(#(1)!
- '../datasets/coco/annotations/',
- use_segments=False,
- use_keypoints=False,
- cls91to80=True,
-)
-```
-
-1. Nothing returns from this function
-
-For additional information about the `convert_coco` function, [visit the reference page](../reference/data/converter.md#ultralytics.data.converter.convert_coco)
-
-### Convert Bounding Boxes to Segments
-
-With existing `x y w h` bounding box data, convert to segments using the `yolo_bbox2segment` function. The files for images and annotations need to be organized like this:
-
-```
-data
-|__ images
- ├─ 001.jpg
- ├─ 002.jpg
- ├─ ..
- └─ NNN.jpg
-|__ labels
- ├─ 001.txt
- ├─ 002.txt
- ├─ ..
- └─ NNN.txt
-```
-
-```{ .py .annotate }
-from ultralytics.data.converter import yolo_bbox2segment
-
-yolo_bbox2segment(#(1)!
- im_dir="path/to/images",
- save_dir=None, # saved to "labels-segment" in images directory
- sam_model="sam_b.pt"
-)
-```
-
-1. Nothing returns from this function
-
-[Visit the `yolo_bbox2segment` reference page](../reference/data/converter.md#ultralytics.data.converter.yolo_bbox2segment) for more information regarding the function.
-
-### Convert Segments to Bounding Boxes
-
-If you have a dataset that uses the [segmentation dataset format](../datasets/segment/index.md) you can easily convert these into up-right (or horizontal) bounding boxes (`x y w h` format) with this function.
-
-```python
-from ultralytics.utils.ops import segments2boxes
-
-segments = np.array(
- [[805, 392, 797, 400, ..., 808, 714, 808, 392],
- [115, 398, 113, 400, ..., 150, 400, 149, 298],
- [267, 412, 265, 413, ..., 300, 413, 299, 412],
- ]
-)
-
-segments2boxes([s.reshape(-1,2) for s in segments])
->>> array([[ 741.66, 631.12, 133.31, 479.25],
- [ 146.81, 649.69, 185.62, 502.88],
- [ 281.81, 636.19, 118.12, 448.88]],
- dtype=float32) # xywh bounding boxes
-```
-
-To understand how this function works, visit the [reference page](../reference/utils/ops.md#ultralytics.utils.ops.segments2boxes)
-
-## Utilities
-
-### Image Compression
-
-Compresses a single image file to reduced size while preserving its aspect ratio and quality. If the input image is smaller than the maximum dimension, it will not be resized.
-
-```{ .py .annotate }
-from pathlib import Path
-from ultralytics.data.utils import compress_one_image
-
-for f in Path('path/to/dataset').rglob('*.jpg'):
- compress_one_image(f)#(1)!
-```
-
-1. Nothing returns from this function
-
-### Auto-split Dataset
-
-Automatically split a dataset into `train`/`val`/`test` splits and save the resulting splits into `autosplit_*.txt` files. This function will use random sampling, which is not included when using [`fraction` argument for training](../modes/train.md#arguments).
-
-```{ .py .annotate }
-from ultralytics.data.utils import autosplit
-
-autosplit( #(1)!
- path="path/to/images",
- weights=(0.9, 0.1, 0.0), # (train, validation, test) fractional splits
- annotated_only=False # split only images with annotation file when True
-)
-```
-
-1. Nothing returns from this function
-
-See the [Reference page](../reference/data/utils.md#ultralytics.data.utils.autosplit) for additional details on this function.
-
-### Segment-polygon to Binary Mask
-
-Convert a single polygon (as list) to a binary mask of the specified image size. Polygon in the form of `[N, 2]` with `N` as the number of `(x, y)` points defining the polygon contour.
-
-!!! warning
-
- `N` must always be even.
-
-```python
-import numpy as np
-from ultralytics.data.utils import polygon2mask
-
-imgsz = (1080, 810)
-polygon = np.array(
- [805, 392, 797, 400, ..., 808, 714, 808, 392], # (238, 2)
-)
-
-mask = polygon2mask(
- imgsz, # tuple
- [polygon], # input as list
- color=255, # 8-bit binary
- downsample_ratio=1
-)
-```
-
-## Bounding Boxes
-
-### Bounding Box (horizontal) Instances
-
-To manage bounding box data, the `Bboxes` class will help to convert between box coordinate formatting, scale box dimensions, calculate areas, include offsets, and more!
-
-```python
-from ultralytics.utils.instance import Bboxes
-
-boxes = Bboxes(
- bboxes=np.array(
- [[ 22.878, 231.27, 804.98, 756.83,],
- [ 48.552, 398.56, 245.35, 902.71,],
- [ 669.47, 392.19, 809.72, 877.04,],
- [ 221.52, 405.8, 344.98, 857.54,],
- [ 0, 550.53, 63.01, 873.44,],
- [ 0.0584, 254.46, 32.561, 324.87,]]
- ),
- format="xyxy",
-)
-
-boxes.areas()
->>> array([ 4.1104e+05, 99216, 68000, 55772, 20347, 2288.5])
-boxes.convert("xywh")
-boxes.bboxes
->>> array(
- [[ 413.93, 494.05, 782.1, 525.56],
- [ 146.95, 650.63, 196.8, 504.15],
- [ 739.6, 634.62, 140.25, 484.85],
- [ 283.25, 631.67, 123.46, 451.74],
- [ 31.505, 711.99, 63.01, 322.91],
- [ 16.31, 289.67, 32.503, 70.41]]
-)
-```
-
-See the [`Bboxes` reference section](../reference/utils/instance.md#ultralytics.utils.instance.Bboxes) for more attributes and methods available.
-
-!!! tip
- Many of the following functions (and more) can be accessed using the [`Bboxes` class](#bounding-box-horizontal-instances) but if you prefer to work with the functions directly, see the next subsections on how to import these independently.
-
-### Scaling Boxes
-
-When scaling and image up or down, corresponding bounding box coordinates can be appropriately scaled to match using `ultralytics.utils.ops.scale_boxes`.
-
-```{ .py .annotate }
-import cv2 as cv
-import numpy as np
-from ultralytics.utils.ops import scale_boxes
-
-image = cv.imread("ultralytics/assets/bus.jpg")
-*(h, w), c = image.shape
-resized = cv.resize(image, None, (), fx=1.2, fy=1.2)
-*(new_h, new_w), _ = resized.shape
-
-xyxy_boxes = np.array(
- [[ 22.878, 231.27, 804.98, 756.83,],
- [ 48.552, 398.56, 245.35, 902.71,],
- [ 669.47, 392.19, 809.72, 877.04,],
- [ 221.52, 405.8, 344.98, 857.54,],
- [ 0, 550.53, 63.01, 873.44,],
- [ 0.0584, 254.46, 32.561, 324.87,]]
-)
-
-new_boxes = scale_boxes(
- img1_shape=(h, w), # original image dimensions
- boxes=xyxy_boxes, # boxes from original image
- img0_shape=(new_h, new_w), # resized image dimensions (scale to)
- ratio_pad=None,
- padding=False,
- xywh=False,
-)
-
-new_boxes#(1)!
->>> array(
- [[ 27.454, 277.52, 965.98, 908.2],
- [ 58.262, 478.27, 294.42, 1083.3],
- [ 803.36, 470.63, 971.66, 1052.4],
- [ 265.82, 486.96, 413.98, 1029],
- [ 0, 660.64, 75.612, 1048.1],
- [ 0.0701, 305.35, 39.073, 389.84]]
-)
-```
-
-1. Bounding boxes scaled for the new image size
-
-### Bounding Box Format Conversions
-
-#### XYXY → XYWH
-
-Convert bounding box coordinates from (x1, y1, x2, y2) format to (x, y, width, height) format where (x1, y1) is the top-left corner and (x2, y2) is the bottom-right corner.
-
-```python
-import numpy as np
-from ultralytics.utils.ops import xyxy2xywh
-
-xyxy_boxes = np.array(
- [[ 22.878, 231.27, 804.98, 756.83,],
- [ 48.552, 398.56, 245.35, 902.71,],
- [ 669.47, 392.19, 809.72, 877.04,],
- [ 221.52, 405.8, 344.98, 857.54,],
- [ 0, 550.53, 63.01, 873.44,],
- [ 0.0584, 254.46, 32.561, 324.87,]]
-)
-xywh = xyxy2xywh(xyxy_boxes)
-
-xywh
->>> array(
- [[ 413.93, 494.05, 782.1, 525.56],
- [ 146.95, 650.63, 196.8, 504.15],
- [ 739.6, 634.62, 140.25, 484.85],
- [ 283.25, 631.67, 123.46, 451.74],
- [ 31.505, 711.99, 63.01, 322.91],
- [ 16.31, 289.67, 32.503, 70.41]]
-)
-```
-
-### All Bounding Box Conversions
-
-```python
-from ultralytics.utils.ops import xywh2xyxy
-from ultralytics.utils.ops import xywhn2xyxy # normalized → pixel
-from ultralytics.utils.ops import xyxy2xywhn # pixel → normalized
-from ultralytics.utils.ops import xywh2ltwh # xywh → top-left corner, w, h
-from ultralytics.utils.ops import xyxy2ltwh # xyxy → top-left corner, w, h
-from ultralytics.utils.ops import ltwh2xywh
-from ultralytics.utils.ops import ltwh2xyxy
-```
-
-See docstring for each function or visit the `ultralytics.utils.ops` [reference page](../reference/utils/ops.md) to read more about each function.
-
-## Plotting
-
-### Drawing Annotations
-
-Ultralytics includes an Annotator class that can be used to annotate any kind of data. It's easiest to use with [object detection bounding boxes](../modes/predict.md#boxes), [pose key points](../modes/predict.md#keypoints), and [oriented bounding boxes](../modes/predict.md#obb).
-
-#### Horizontal Bounding Boxes
-
-```{ .py .annotate }
-import cv2 as cv
-import numpy as np
-from ultralytics.utils.plotting import Annotator, colors
-
-names { #(1)!
- 0: "person",
- 5: "bus",
- 11: "stop sign",
-}
-
-image = cv.imread("ultralytics/assets/bus.jpg")
-ann = Annotator(
- image,
- line_width=None, # default auto-size
- font_size=None, # default auto-size
- font="Arial.ttf", # must be ImageFont compatible
- pil=False, # use PIL, otherwise uses OpenCV
-)
-
-xyxy_boxes = np.array(
- [[ 5, 22.878, 231.27, 804.98, 756.83,], # class-idx x1 y1 x2 y2
- [ 0, 48.552, 398.56, 245.35, 902.71,],
- [ 0, 669.47, 392.19, 809.72, 877.04,],
- [ 0, 221.52, 405.8, 344.98, 857.54,],
- [ 0, 0, 550.53, 63.01, 873.44,],
- [11, 0.0584, 254.46, 32.561, 324.87,]]
-)
-
-for nb, box in enumerate(xyxy_boxes):
- c_idx, *box = box
- label = f"{str(nb).zfill(2)}:{names.get(int(c_idx))}"
- ann.box_label(box, label, color=colors(c_idx, bgr=True))
-
-image_with_bboxes = ann.result()
-```
-
-1. Names can be used from `model.names` when [working with detection results](../modes/predict.md#working-with-results)
-
-#### Oriented Bounding Boxes (OBB)
-```python
-import cv2 as cv
-import numpy as np
-from ultralytics.utils.plotting import Annotator, colors
-
-obb_names = {10: "small vehicle"}
-obb_image = cv.imread("datasets/dota8/images/train/P1142__1024__0___824.jpg")
-obb_boxes = np.array(
- [[ 0, 635, 560, 919, 719, 1087, 420, 803, 261,], # class-idx x1 y1 x2 y2 x3 y2 x4 y4
- [ 0, 331, 19, 493, 260, 776, 70, 613, -171,],
- [ 9, 869, 161, 886, 147, 851, 101, 833, 115,]
- ]
-)
-ann = Annotator(
- obb_image,
- line_width=None, # default auto-size
- font_size=None, # default auto-size
- font="Arial.ttf", # must be ImageFont compatible
- pil=False, # use PIL, otherwise uses OpenCV
-)
-for obb in obb_boxes:
- c_idx, *obb = obb
- obb = np.array(obb).reshape(-1, 4, 2).squeeze()
- label = f"{names.get(int(c_idx))}"
- ann.box_label(
- obb,
- label,
- color=colors(c_idx, True),
- rotated=True,
- )
-
-image_with_obb = ann.result()
-```
-
-See the [`Annotator` Reference Page](../reference/utils/plotting.md#ultralytics.utils.plotting.Annotator) for additional insight.
-
-## Miscellaneous
-
-### Code Profiling
-
-Check duration for code to run/process either using `with` or as a decorator.
-
-```python
-from ultralytics.utils.ops import Profile
-
-with Profile(device=device) as dt:
- pass # operation to measure
-
-print(dt)
->>> "Elapsed time is 9.5367431640625e-07 s"
-```
-
-### Ultralytics Supported Formats
-
-Want or need to use the formats of [images or videos types supported](../modes/predict.md#image-and-video-formats) by Ultralytics programmatically? Use these constants if you need.
-
-```python
-from ultralytics.data.utils import IMG_FORMATS
-from ultralytics.data.utils import VID_FORMATS
-
-print(IMG_FORMATS)
->>> ('bmp', 'dng', 'jpeg', 'jpg', 'mpo', 'png', 'tif', 'tiff', 'webp', 'pfm')
-```
-
-### Make Divisible
-
-Calculates the nearest whole number to `x` to make evenly divisible when divided by `y`.
-
-```python
-from ultralytics.utils.ops import make_divisible
-
-make_divisible(7, 3)
->>> 9
-make_divisible(7, 2)
->>> 8
-```
diff --git a/ultralytics-main/docs/en/yolov5/environments/aws_quickstart_tutorial.md b/ultralytics-main/docs/en/yolov5/environments/aws_quickstart_tutorial.md
deleted file mode 100644
index 2bf3240..0000000
--- a/ultralytics-main/docs/en/yolov5/environments/aws_quickstart_tutorial.md
+++ /dev/null
@@ -1,95 +0,0 @@
----
-comments: true
-description: Follow this comprehensive guide to set up and operate YOLOv5 on an AWS Deep Learning instance for object detection tasks. Get started with model training and deployment.
-keywords: YOLOv5, AWS Deep Learning AMIs, object detection, machine learning, AI, model training, instance setup, Ultralytics
----
-
-# YOLOv5 🚀 on AWS Deep Learning Instance: Your Complete Guide
-
-Setting up a high-performance deep learning environment can be daunting for newcomers, but fear not! 🛠️ With this guide, we'll walk you through the process of getting YOLOv5 up and running on an AWS Deep Learning instance. By leveraging the power of Amazon Web Services (AWS), even those new to machine learning can get started quickly and cost-effectively. The AWS platform's scalability is perfect for both experimentation and production deployment.
-
-Other quickstart options for YOLOv5 include our [Colab Notebook](https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb) , [GCP Deep Learning VM](https://docs.ultralytics.com/yolov5/environments/google_cloud_quickstart_tutorial), and our Docker image at [Docker Hub](https://hub.docker.com/r/ultralytics/yolov5) .
-
-## Step 1: AWS Console Sign-In
-
-Start by creating an account or signing in to the AWS console at [https://aws.amazon.com/console/](https://aws.amazon.com/console/). Once logged in, select the **EC2** service to manage and set up your instances.
-
-![Console](https://user-images.githubusercontent.com/26833433/106323804-debddd00-622c-11eb-997f-b8217dc0e975.png)
-
-## Step 2: Launch Your Instance
-
-In the EC2 dashboard, you'll find the **Launch Instance** button which is your gateway to creating a new virtual server.
-
-![Launch](https://user-images.githubusercontent.com/26833433/106323950-204e8800-622d-11eb-915d-5c90406973ea.png)
-
-### Selecting the Right Amazon Machine Image (AMI)
-
-Here's where you choose the operating system and software stack for your instance. Type 'Deep Learning' into the search field and select the latest Ubuntu-based Deep Learning AMI, unless your needs dictate otherwise. Amazon's Deep Learning AMIs come pre-installed with popular frameworks and GPU drivers to streamline your setup process.
-
-![Choose AMI](https://user-images.githubusercontent.com/26833433/106326107-c9e34880-6230-11eb-97c9-3b5fc2f4e2ff.png)
-
-### Picking an Instance Type
-
-For deep learning tasks, selecting a GPU instance type is generally recommended as it can vastly accelerate model training. For instance size considerations, remember that the model's memory requirements should never exceed what your instance can provide.
-
-**Note:** The size of your model should be a factor in selecting an instance. If your model exceeds an instance's available RAM, select a different instance type with enough memory for your application.
-
-For a list of available GPU instance types, visit [EC2 Instance Types](https://aws.amazon.com/ec2/instance-types/), specifically under Accelerated Computing.
-
-![Choose Type](https://user-images.githubusercontent.com/26833433/106324624-52141e80-622e-11eb-9662-1a376d9c887d.png)
-
-For more information on GPU monitoring and optimization, see [GPU Monitoring and Optimization](https://docs.aws.amazon.com/dlami/latest/devguide/tutorial-gpu.html). For pricing, see [On-Demand Pricing](https://aws.amazon.com/ec2/pricing/on-demand/) and [Spot Pricing](https://aws.amazon.com/ec2/spot/pricing/).
-
-### Configuring Your Instance
-
-Amazon EC2 Spot Instances offer a cost-effective way to run applications as they allow you to bid for unused capacity at a fraction of the standard cost. For a persistent experience that retains data even when the Spot Instance goes down, opt for a persistent request.
-
-![Spot Request](https://user-images.githubusercontent.com/26833433/106324835-ac14e400-622e-11eb-8853-df5ec9b16dfc.png)
-
-Remember to adjust the rest of your instance settings and security configurations as needed in Steps 4-7 before launching.
-
-## Step 3: Connect to Your Instance
-
-Once your instance is running, select its checkbox and click Connect to access the SSH information. Use the displayed SSH command in your preferred terminal to establish a connection to your instance.
-
-![Connect](https://user-images.githubusercontent.com/26833433/106325530-cf8c5e80-622f-11eb-9f64-5b313a9d57a1.png)
-
-## Step 4: Running YOLOv5
-
-Logged into your instance, you're now ready to clone the YOLOv5 repository and install dependencies within a Python 3.8 or later environment. YOLOv5's models and datasets will automatically download from the latest [release](https://github.com/ultralytics/yolov5/releases).
-
-```bash
-git clone https://github.com/ultralytics/yolov5 # clone repository
-cd yolov5
-pip install -r requirements.txt # install dependencies
-```
-
-With your environment set up, you can begin training, validating, performing inference, and exporting your YOLOv5 models:
-
-```bash
-# Train a model on your data
-python train.py
-
-# Validate the trained model for Precision, Recall, and mAP
-python val.py --weights yolov5s.pt
-
-# Run inference using the trained model on your images or videos
-python detect.py --weights yolov5s.pt --source path/to/images
-
-# Export the trained model to other formats for deployment
-python export.py --weights yolov5s.pt --include onnx coreml tflite
-```
-
-## Optional Extras
-
-To add more swap memory, which can be a savior for large datasets, run:
-
-```bash
-sudo fallocate -l 64G /swapfile # allocate 64GB swap file
-sudo chmod 600 /swapfile # modify permissions
-sudo mkswap /swapfile # set up a Linux swap area
-sudo swapon /swapfile # activate swap file
-free -h # verify swap memory
-```
-
-And that's it! 🎉 You've successfully created an AWS Deep Learning instance and run YOLOv5. Whether you're just starting with object detection or scaling up for production, this setup can help you achieve your machine learning goals. Happy training, validating, and deploying! If you encounter any hiccups along the way, the robust AWS documentation and the active Ultralytics community are here to support you.
diff --git a/ultralytics-main/docs/en/yolov5/environments/azureml_quickstart_tutorial.md b/ultralytics-main/docs/en/yolov5/environments/azureml_quickstart_tutorial.md
deleted file mode 100644
index 9f87f59..0000000
--- a/ultralytics-main/docs/en/yolov5/environments/azureml_quickstart_tutorial.md
+++ /dev/null
@@ -1,94 +0,0 @@
----
-comments: true
-description: Azure Machine Learning YOLOv5 quickstart
-keywords: Ultralytics, YOLO, Deep Learning, Object detection, quickstart, Azure, AzureML
----
-
-# YOLOv5 🚀 on AzureML
-
-This guide provides a quickstart to use YOLOv5 from an AzureML compute instance.
-
-Note that this guide is a quickstart for quick trials. If you want to unlock the full power AzureML, you can find the documentation to:
-
-- [Create a data asset](https://learn.microsoft.com/azure/machine-learning/how-to-create-data-assets)
-- [Create an AzureML job](https://learn.microsoft.com/azure/machine-learning/how-to-train-model)
-- [Register a model](https://learn.microsoft.com/azure/machine-learning/how-to-manage-models)
-
-## Prerequisites
-
-You need an [AzureML workspace](https://learn.microsoft.com/azure/machine-learning/concept-workspace?view=azureml-api-2).
-
-## Create a compute instance
-
-From your AzureML workspace, select Compute > Compute instances > New, select the instance with the resources you need.
-
-
-
-## Open a Terminal
-
-Now from the Notebooks view, open a Terminal and select your compute.
-
-![open-terminal-arrow](https://github.com/ouphi/ultralytics/assets/17216799/c4697143-7234-4a04-89ea-9084ed9c6312)
-
-## Setup and run YOLOv5
-
-Now you can, create a virtual environment:
-
-```bash
-conda create --name yolov5env -y
-conda activate yolov5env
-conda install pip -y
-```
-
-Clone YOLOv5 repository with its submodules:
-
-```bash
-git clone https://github.com/ultralytics/yolov5
-cd yolov5
-git submodule update --init --recursive # Note that you might have a message asking you to add your folder as a safe.directory just copy the recommended command
-```
-
-Install the required dependencies:
-
-```bash
-pip install -r yolov5/requirements.txt
-pip install onnx>=1.10.0
-```
-
-Train the YOLOv5 model:
-
-```bash
-python train.py
-```
-
-Validate the model for Precision, Recall, and mAP
-
-```bash
-python val.py --weights yolov5s.pt
-```
-
-Run inference on images and videos:
-
-```bash
-python detect.py --weights yolov5s.pt --source path/to/images
-```
-
-Export models to other formats:
-
-```bash
-python detect.py --weights yolov5s.pt --source path/to/images
-```
-
-## Notes on using a notebook
-
-Note that if you want to run these commands from a Notebook, you need to [create a new Kernel](https://learn.microsoft.com/en-us/azure/machine-learning/how-to-access-terminal?view=azureml-api-2#add-new-kernels) and select your new Kernel on the top of your Notebook.
-
-If you create Python cells it will automatically use your custom environment, but if you add bash cells, you will need to run `source activate ` on each of these cells to make sure it uses your custom environment.
-
-For example:
-
-```bash
-%%bash
-source activate newenv
-python val.py --weights yolov5s.pt
-```
diff --git a/ultralytics-main/docs/en/yolov5/environments/docker_image_quickstart_tutorial.md b/ultralytics-main/docs/en/yolov5/environments/docker_image_quickstart_tutorial.md
deleted file mode 100644
index 2e2bd81..0000000
--- a/ultralytics-main/docs/en/yolov5/environments/docker_image_quickstart_tutorial.md
+++ /dev/null
@@ -1,71 +0,0 @@
----
-comments: true
-description: Learn how to set up and run YOLOv5 in a Docker container. This tutorial includes the prerequisites and step-by-step instructions.
-keywords: YOLOv5, Docker, Ultralytics, Image Detection, YOLOv5 Docker Image, Docker Container, Machine Learning, AI
----
-
-# Get Started with YOLOv5 🚀 in Docker
-
-This tutorial will guide you through the process of setting up and running YOLOv5 in a Docker container.
-
-You can also explore other quickstart options for YOLOv5, such as our [Colab Notebook](https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb) , [GCP Deep Learning VM](https://docs.ultralytics.com/yolov5/environments/google_cloud_quickstart_tutorial), and [Amazon AWS](https://docs.ultralytics.com/yolov5/environments/aws_quickstart_tutorial).
-
-## Prerequisites
-
-1. **Nvidia Driver**: Version 455.23 or higher. Download from [Nvidia's website](https://www.nvidia.com/Download/index.aspx).
-2. **Nvidia-Docker**: Allows Docker to interact with your local GPU. Installation instructions are available on the [Nvidia-Docker GitHub repository](https://github.com/NVIDIA/nvidia-docker).
-3. **Docker Engine - CE**: Version 19.03 or higher. Download and installation instructions can be found on the [Docker website](https://docs.docker.com/install/).
-
-## Step 1: Pull the YOLOv5 Docker Image
-
-The Ultralytics YOLOv5 DockerHub repository is available at [https://hub.docker.com/r/ultralytics/yolov5](https://hub.docker.com/r/ultralytics/yolov5). Docker Autobuild ensures that the `ultralytics/yolov5:latest` image is always in sync with the most recent repository commit. To pull the latest image, run the following command:
-
-```bash
-sudo docker pull ultralytics/yolov5:latest
-```
-
-## Step 2: Run the Docker Container
-
-### Basic container:
-
-Run an interactive instance of the YOLOv5 Docker image (called a "container") using the `-it` flag:
-
-```bash
-sudo docker run --ipc=host -it ultralytics/yolov5:latest
-```
-
-### Container with local file access:
-
-To run a container with access to local files (e.g., COCO training data in `/datasets`), use the `-v` flag:
-
-```bash
-sudo docker run --ipc=host -it -v "$(pwd)"/datasets:/usr/src/datasets ultralytics/yolov5:latest
-```
-
-### Container with GPU access:
-
-To run a container with GPU access, use the `--gpus all` flag:
-
-```bash
-sudo docker run --ipc=host -it --gpus all ultralytics/yolov5:latest
-```
-
-## Step 3: Use YOLOv5 🚀 within the Docker Container
-
-Now you can train, test, detect, and export YOLOv5 models within the running Docker container:
-
-```bash
-# Train a model on your data
-python train.py
-
-# Validate the trained model for Precision, Recall, and mAP
-python val.py --weights yolov5s.pt
-
-# Run inference using the trained model on your images or videos
-python detect.py --weights yolov5s.pt --source path/to/images
-
-# Export the trained model to other formats for deployment
-python export.py --weights yolov5s.pt --include onnx coreml tflite
-```
-
-
diff --git a/ultralytics-main/docs/en/yolov5/environments/google_cloud_quickstart_tutorial.md b/ultralytics-main/docs/en/yolov5/environments/google_cloud_quickstart_tutorial.md
deleted file mode 100644
index fd96e84..0000000
--- a/ultralytics-main/docs/en/yolov5/environments/google_cloud_quickstart_tutorial.md
+++ /dev/null
@@ -1,87 +0,0 @@
----
-comments: true
-description: Discover how to deploy YOLOv5 on a GCP Deep Learning VM for seamless object detection. Ideal for ML beginners and cloud learners. Get started with our easy-to-follow tutorial!
-keywords: YOLOv5, Google Cloud Platform, GCP, Deep Learning VM, ML model training, object detection, AI tutorial, cloud-based AI, machine learning setup
----
-
-# Mastering YOLOv5 🚀 Deployment on Google Cloud Platform (GCP) Deep Learning Virtual Machine (VM) ⭐
-
-Embarking on the journey of artificial intelligence and machine learning can be exhilarating, especially when you leverage the power and flexibility of a cloud platform. Google Cloud Platform (GCP) offers robust tools tailored for machine learning enthusiasts and professionals alike. One such tool is the Deep Learning VM that is preconfigured for data science and ML tasks. In this tutorial, we will navigate through the process of setting up YOLOv5 on a GCP Deep Learning VM. Whether you’re taking your first steps in ML or you’re a seasoned practitioner, this guide is designed to provide you with a clear pathway to implementing object detection models powered by YOLOv5.
-
-🆓 Plus, if you're a fresh GCP user, you’re in luck with a [$300 free credit offer](https://cloud.google.com/free/docs/gcp-free-tier#free-trial) to kickstart your projects.
-
-In addition to GCP, explore other accessible quickstart options for YOLOv5, like our [Colab Notebook](https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb) for a browser-based experience, or the scalability of [Amazon AWS](https://docs.ultralytics.com/yolov5/environments/aws_quickstart_tutorial). Furthermore, container aficionados can utilize our official Docker image at [Docker Hub](https://hub.docker.com/r/ultralytics/yolov5) for an encapsulated environment.
-
-## Step 1: Create and Configure Your Deep Learning VM
-
-Let’s begin by creating a virtual machine that’s tuned for deep learning:
-
-1. Head over to the [GCP marketplace](https://console.cloud.google.com/marketplace/details/click-to-deploy-images/deeplearning) and select the **Deep Learning VM**.
-2. Opt for a **n1-standard-8** instance; it offers a balance of 8 vCPUs and 30 GB of memory, ideally suited for our needs.
-3. Next, select a GPU. This depends on your workload; even a basic one like the Tesla T4 will markedly accelerate your model training.
-4. Tick the box for 'Install NVIDIA GPU driver automatically on first startup?' for hassle-free setup.
-5. Allocate a 300 GB SSD Persistent Disk to ensure you don't bottleneck on I/O operations.
-6. Hit 'Deploy' and let GCP do its magic in provisioning your custom Deep Learning VM.
-
-This VM comes loaded with a treasure trove of preinstalled tools and frameworks, including the [Anaconda](https://www.anaconda.com/) Python distribution, which conveniently bundles all the necessary dependencies for YOLOv5.
-
-![GCP Marketplace illustration of setting up a Deep Learning VM](https://user-images.githubusercontent.com/26833433/105811495-95863880-5f61-11eb-841d-c2f2a5aa0ffe.png)
-
-## Step 2: Ready the VM for YOLOv5
-
-Following the environment setup, let's get YOLOv5 up and running:
-
-```bash
-# Clone the YOLOv5 repository
-git clone https://github.com/ultralytics/yolov5
-
-# Change the directory to the cloned repository
-cd yolov5
-
-# Install the necessary Python packages from requirements.txt
-pip install -r requirements.txt
-```
-
-This setup process ensures you're working with a Python environment version 3.8.0 or newer and PyTorch 1.8 or above. Our scripts smoothly download [models](https://github.com/ultralytics/yolov5/tree/master/models) and [datasets](https://github.com/ultralytics/yolov5/tree/master/data) rending from the latest YOLOv5 [release](https://github.com/ultralytics/yolov5/releases), making it hassle-free to start model training.
-
-## Step 3: Train and Deploy Your YOLOv5 Models 🌐
-
-With the setup complete, you're ready to delve into training and inference with YOLOv5 on your GCP VM:
-
-```bash
-# Train a model on your data
-python train.py
-
-# Validate the trained model for Precision, Recall, and mAP
-python val.py --weights yolov5s.pt
-
-# Run inference using the trained model on your images or videos
-python detect.py --weights yolov5s.pt --source path/to/images
-
-# Export the trained model to other formats for deployment
-python export.py --weights yolov5s.pt --include onnx coreml tflite
-```
-
-With just a few commands, YOLOv5 allows you to train custom object detection models tailored to your specific needs or utilize pre-trained weights for quick results on a variety of tasks.
-
-![Terminal command image illustrating model training on a GCP Deep Learning VM](https://user-images.githubusercontent.com/26833433/142223900-275e5c9e-e2b5-43f7-a21c-35c4ca7de87c.png)
-
-## Allocate Swap Space (optional)
-
-For those dealing with hefty datasets, consider amplifying your GCP instance with an additional 64GB of swap memory:
-
-```bash
-sudo fallocate -l 64G /swapfile
-sudo chmod 600 /swapfile
-sudo mkswap /swapfile
-sudo swapon /swapfile
-free -h # confirm the memory increment
-```
-
-### Concluding Thoughts
-
-Congratulations! You are now empowered to harness the capabilities of YOLOv5 with the computational prowess of Google Cloud Platform. This combination provides scalability, efficiency, and versatility for your object detection tasks. Whether for personal projects, academic research, or industrial applications, you have taken a pivotal step into the world of AI and machine learning on the cloud.
-
-Do remember to document your journey, share insights with the Ultralytics community, and leverage the collaborative arenas such as [GitHub discussions](https://github.com/ultralytics/yolov5/discussions) to grow further. Now, go forth and innovate with YOLOv5 and GCP! 🌟
-
-Want to keep improving your ML skills and knowledge? Dive into our [documentation and tutorials](https://docs.ultralytics.com/) for more resources. Let your AI adventure continue!
diff --git a/ultralytics-main/docs/en/yolov5/index.md b/ultralytics-main/docs/en/yolov5/index.md
deleted file mode 100644
index 826df5b..0000000
--- a/ultralytics-main/docs/en/yolov5/index.md
+++ /dev/null
@@ -1,93 +0,0 @@
----
-comments: true
-description: Deep dive into Ultralytics' YOLOv5. Learn about object detection model - YOLOv5, how to train it on custom data, multi-GPU training and more.
-keywords: YOLOv5, object detection, computer vision, CUDA, PyTorch tutorial, multi-GPU training, custom dataset, model export, deployment, CI tests
----
-
-# Comprehensive Guide to Ultralytics YOLOv5
-
-
-
-
-
-
-
-
-
-
-
-
-
-Welcome to the Ultralytics' YOLOv5🚀 Documentation! YOLOv5, the fifth iteration of the revolutionary "You Only Look Once" object detection model, is designed to deliver high-speed, high-accuracy results in real-time.
-
-
-
-Built on PyTorch, this powerful deep learning framework has garnered immense popularity for its versatility, ease of use, and high performance. Our documentation guides you through the installation process, explains the architectural nuances of the model, showcases various use-cases, and provides a series of detailed tutorials. These resources will help you harness the full potential of YOLOv5 for your computer vision projects. Let's get started!
-
-
-
-## Explore and Learn
-
-Here's a compilation of comprehensive tutorials that will guide you through different aspects of YOLOv5.
-
-- [Train Custom Data](tutorials/train_custom_data.md) 🚀 RECOMMENDED: Learn how to train the YOLOv5 model on your custom dataset.
-- [Tips for Best Training Results](tutorials/tips_for_best_training_results.md) ☘️: Uncover practical tips to optimize your model training process.
-- [Multi-GPU Training](tutorials/multi_gpu_training.md): Understand how to leverage multiple GPUs to expedite your training.
-- [PyTorch Hub](tutorials/pytorch_hub_model_loading.md) 🌟 NEW: Learn to load pre-trained models via PyTorch Hub.
-- [TFLite, ONNX, CoreML, TensorRT Export](tutorials/model_export.md) 🚀: Understand how to export your model to different formats.
-- [NVIDIA Jetson platform Deployment](tutorials/running_on_jetson_nano.md) 🌟 NEW: Learn how to deploy your YOLOv5 model on NVIDIA Jetson platform.
-- [Test-Time Augmentation (TTA)](tutorials/test_time_augmentation.md): Explore how to use TTA to improve your model's prediction accuracy.
-- [Model Ensembling](tutorials/model_ensembling.md): Learn the strategy of combining multiple models for improved performance.
-- [Model Pruning/Sparsity](tutorials/model_pruning_and_sparsity.md): Understand pruning and sparsity concepts, and how to create a more efficient model.
-- [Hyperparameter Evolution](tutorials/hyperparameter_evolution.md): Discover the process of automated hyperparameter tuning for better model performance.
-- [Transfer Learning with Frozen Layers](tutorials/transfer_learning_with_frozen_layers.md): Learn how to implement transfer learning by freezing layers in YOLOv5.
-- [Architecture Summary](tutorials/architecture_description.md) 🌟 Delve into the structural details of the YOLOv5 model.
-- [Roboflow for Datasets](tutorials/roboflow_datasets_integration.md): Understand how to utilize Roboflow for dataset management, labeling, and active learning.
-- [ClearML Logging](tutorials/clearml_logging_integration.md) 🌟 Learn how to integrate ClearML for efficient logging during your model training.
-- [YOLOv5 with Neural Magic](tutorials/neural_magic_pruning_quantization.md) Discover how to use Neural Magic's Deepsparse to prune and quantize your YOLOv5 model.
-- [Comet Logging](tutorials/comet_logging_integration.md) 🌟 NEW: Explore how to utilize Comet for improved model training logging.
-
-## Supported Environments
-
-Ultralytics provides a range of ready-to-use environments, each pre-installed with essential dependencies such as [CUDA](https://developer.nvidia.com/cuda), [CUDNN](https://developer.nvidia.com/cudnn), [Python](https://www.python.org/), and [PyTorch](https://pytorch.org/), to kickstart your projects.
-
-- **Free GPU Notebooks**:
-- **Google Cloud**: [GCP Quickstart Guide](environments/google_cloud_quickstart_tutorial.md)
-- **Amazon**: [AWS Quickstart Guide](environments/aws_quickstart_tutorial.md)
-- **Azure**: [AzureML Quickstart Guide](environments/azureml_quickstart_tutorial.md)
-- **Docker**: [Docker Quickstart Guide](environments/docker_image_quickstart_tutorial.md)
-
-## Project Status
-
-
-
-This badge indicates that all [YOLOv5 GitHub Actions](https://github.com/ultralytics/yolov5/actions) Continuous Integration (CI) tests are successfully passing. These CI tests rigorously check the functionality and performance of YOLOv5 across various key aspects: [training](https://github.com/ultralytics/yolov5/blob/master/train.py), [validation](https://github.com/ultralytics/yolov5/blob/master/val.py), [inference](https://github.com/ultralytics/yolov5/blob/master/detect.py), [export](https://github.com/ultralytics/yolov5/blob/master/export.py), and [benchmarks](https://github.com/ultralytics/yolov5/blob/master/benchmarks.py). They ensure consistent and reliable operation on macOS, Windows, and Ubuntu, with tests conducted every 24 hours and upon each new commit.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-## Connect and Contribute
-
-Your journey with YOLOv5 doesn't have to be a solitary one. Join our vibrant community on [GitHub](https://github.com/ultralytics/yolov5), connect with professionals on [LinkedIn](https://www.linkedin.com/company/ultralytics/), share your results on [Twitter](https://twitter.com/ultralytics), and find educational resources on [YouTube](https://youtube.com/ultralytics). Follow us on [TikTok](https://www.tiktok.com/@ultralytics) and [Instagram](https://www.instagram.com/ultralytics/) for more engaging content.
-
-Interested in contributing? We welcome contributions of all forms; from code improvements and bug reports to documentation updates. Check out our [contributing guidelines](https://github.com/ultralytics/yolov5/blob/master/CONTRIBUTING.md) for more information.
-
-We're excited to see the innovative ways you'll use YOLOv5. Dive in, experiment, and revolutionize your computer vision projects! 🚀
diff --git a/ultralytics-main/docs/en/yolov5/quickstart_tutorial.md b/ultralytics-main/docs/en/yolov5/quickstart_tutorial.md
deleted file mode 100644
index e5a379c..0000000
--- a/ultralytics-main/docs/en/yolov5/quickstart_tutorial.md
+++ /dev/null
@@ -1,72 +0,0 @@
----
-comments: true
-description: Dive into YOLOv5 for object detection with our easy-to-follow guide on setup, model training, and image inference using PyTorch. Get started now!
-keywords: YOLOv5 Tutorial, Object Detection Guide, PyTorch Model Training, Inference with YOLOv5, Ultralytics YOLOv5 Setup
----
-
-# YOLOv5 Quickstart 🚀
-
-Embark on your journey into the dynamic realm of real-time object detection with YOLOv5! This guide is crafted to serve as a comprehensive starting point for AI enthusiasts and professionals aiming to master YOLOv5. From initial setup to advanced training techniques, we've got you covered. By the end of this guide, you'll have the knowledge to implement YOLOv5 into your projects confidently. Let's ignite the engines and soar into YOLOv5!
-
-## Install
-
-Prepare for launch by cloning the repository and establishing the environment. This ensures that all the necessary [requirements](https://github.com/ultralytics/yolov5/blob/master/requirements.txt) are installed. Check that you have [**Python>=3.8.0**](https://www.python.org/) and [**PyTorch>=1.8**](https://pytorch.org/get-started/locally/) ready for takeoff.
-
-```bash
-git clone https://github.com/ultralytics/yolov5 # clone repository
-cd yolov5
-pip install -r requirements.txt # install dependencies
-```
-
-## Inference with PyTorch Hub
-
-Experience the simplicity of YOLOv5 [PyTorch Hub](https://docs.ultralytics.com/yolov5/tutorials/pytorch_hub_model_loading) inference, where [models](https://github.com/ultralytics/yolov5/tree/master/models) are seamlessly downloaded from the latest YOLOv5 [release](https://github.com/ultralytics/yolov5/releases).
-
-```python
-import torch
-
-# Model loading
-model = torch.hub.load("ultralytics/yolov5", "yolov5s") # Can be 'yolov5n' - 'yolov5x6', or 'custom'
-
-# Inference on images
-img = "https://ultralytics.com/images/zidane.jpg" # Can be a file, Path, PIL, OpenCV, numpy, or list of images
-
-# Run inference
-results = model(img)
-
-# Display results
-results.print() # Other options: .show(), .save(), .crop(), .pandas(), etc.
-```
-
-## Inference with detect.py
-
-Harness `detect.py` for versatile inference on various sources. It automatically fetches [models](https://github.com/ultralytics/yolov5/tree/master/models) from the latest YOLOv5 [release](https://github.com/ultralytics/yolov5/releases) and saves results with ease.
-
-```bash
-python detect.py --weights yolov5s.pt --source 0 # webcam
- img.jpg # image
- vid.mp4 # video
- screen # screenshot
- path/ # directory
- list.txt # list of images
- list.streams # list of streams
- 'path/*.jpg' # glob
- 'https://youtu.be/LNwODJXcvt4' # YouTube
- 'rtsp://example.com/media.mp4' # RTSP, RTMP, HTTP stream
-```
-
-## Training
-
-Replicate the YOLOv5 [COCO](https://github.com/ultralytics/yolov5/blob/master/data/scripts/get_coco.sh) benchmarks with the instructions below. The necessary [models](https://github.com/ultralytics/yolov5/tree/master/models) and [datasets](https://github.com/ultralytics/yolov5/tree/master/data) are pulled directly from the latest YOLOv5 [release](https://github.com/ultralytics/yolov5/releases). Training YOLOv5n/s/m/l/x on a V100 GPU should typically take 1/2/4/6/8 days respectively (note that [Multi-GPU](https://docs.ultralytics.com/yolov5/tutorials/multi_gpu_training) setups work faster). Maximize performance by using the highest possible `--batch-size` or use `--batch-size -1` for the YOLOv5 [AutoBatch](https://github.com/ultralytics/yolov5/pull/5092) feature. The following batch sizes are ideal for V100-16GB GPUs.
-
-```bash
-python train.py --data coco.yaml --epochs 300 --weights '' --cfg yolov5n.yaml --batch-size 128
- yolov5s 64
- yolov5m 40
- yolov5l 24
- yolov5x 16
-```
-
-
-
-To conclude, YOLOv5 is not only a state-of-the-art tool for object detection but also a testament to the power of machine learning in transforming the way we interact with the world through visual understanding. As you progress through this guide and begin applying YOLOv5 to your projects, remember that you are at the forefront of a technological revolution, capable of achieving remarkable feats. Should you need further insights or support from fellow visionaries, you're invited to our [GitHub repository](https://github.com/ultralytics/yolov5) home to a thriving community of developers and researchers. Keep exploring, keep innovating, and enjoy the marvels of YOLOv5. Happy detecting! 🌠🔍
diff --git a/ultralytics-main/docs/en/yolov5/tutorials/architecture_description.md b/ultralytics-main/docs/en/yolov5/tutorials/architecture_description.md
deleted file mode 100644
index 59a6e40..0000000
--- a/ultralytics-main/docs/en/yolov5/tutorials/architecture_description.md
+++ /dev/null
@@ -1,224 +0,0 @@
----
-comments: true
-description: Explore the architecture of YOLOv5, an object detection algorithm by Ultralytics. Understand the model structure, data augmentation methods, training strategies, and loss computation techniques.
-keywords: Ultralytics, YOLOv5, Object Detection, Architecture, Model Structure, Data Augmentation, Training Strategies, Loss Computation
----
-
-# Ultralytics YOLOv5 Architecture
-
-YOLOv5 (v6.0/6.1) is a powerful object detection algorithm developed by Ultralytics. This article dives deep into the YOLOv5 architecture, data augmentation strategies, training methodologies, and loss computation techniques. This comprehensive understanding will help improve your practical application of object detection in various fields, including surveillance, autonomous vehicles, and image recognition.
-
-## 1. Model Structure
-
-YOLOv5's architecture consists of three main parts:
-
-- **Backbone**: This is the main body of the network. For YOLOv5, the backbone is designed using the `New CSP-Darknet53` structure, a modification of the Darknet architecture used in previous versions.
-- **Neck**: This part connects the backbone and the head. In YOLOv5, `SPPF` and `New CSP-PAN` structures are utilized.
-- **Head**: This part is responsible for generating the final output. YOLOv5 uses the `YOLOv3 Head` for this purpose.
-
-The structure of the model is depicted in the image below. The model structure details can be found in `yolov5l.yaml`.
-
-![yolov5](https://user-images.githubusercontent.com/31005897/172404576-c260dcf9-76bb-4bc8-b6a9-f2d987792583.png)
-
-YOLOv5 introduces some minor changes compared to its predecessors:
-
-1. The `Focus` structure, found in earlier versions, is replaced with a `6x6 Conv2d` structure. This change boosts efficiency [#4825](https://github.com/ultralytics/yolov5/issues/4825).
-2. The `SPP` structure is replaced with `SPPF`. This alteration more than doubles the speed of processing.
-
-To test the speed of `SPP` and `SPPF`, the following code can be used:
-
-
-SPP vs SPPF speed profiling example (click to open)
-
-```python
-import time
-import torch
-import torch.nn as nn
-
-
-class SPP(nn.Module):
- def __init__(self):
- super().__init__()
- self.maxpool1 = nn.MaxPool2d(5, 1, padding=2)
- self.maxpool2 = nn.MaxPool2d(9, 1, padding=4)
- self.maxpool3 = nn.MaxPool2d(13, 1, padding=6)
-
- def forward(self, x):
- o1 = self.maxpool1(x)
- o2 = self.maxpool2(x)
- o3 = self.maxpool3(x)
- return torch.cat([x, o1, o2, o3], dim=1)
-
-
-class SPPF(nn.Module):
- def __init__(self):
- super().__init__()
- self.maxpool = nn.MaxPool2d(5, 1, padding=2)
-
- def forward(self, x):
- o1 = self.maxpool(x)
- o2 = self.maxpool(o1)
- o3 = self.maxpool(o2)
- return torch.cat([x, o1, o2, o3], dim=1)
-
-
-def main():
- input_tensor = torch.rand(8, 32, 16, 16)
- spp = SPP()
- sppf = SPPF()
- output1 = spp(input_tensor)
- output2 = sppf(input_tensor)
-
- print(torch.equal(output1, output2))
-
- t_start = time.time()
- for _ in range(100):
- spp(input_tensor)
- print(f"SPP time: {time.time() - t_start}")
-
- t_start = time.time()
- for _ in range(100):
- sppf(input_tensor)
- print(f"SPPF time: {time.time() - t_start}")
-
-
-if __name__ == '__main__':
- main()
-```
-
-result:
-
-```
-True
-SPP time: 0.5373051166534424
-SPPF time: 0.20780706405639648
-```
-
-
-
-## 2. Data Augmentation Techniques
-
-YOLOv5 employs various data augmentation techniques to improve the model's ability to generalize and reduce overfitting. These techniques include:
-
-- **Mosaic Augmentation**: An image processing technique that combines four training images into one in ways that encourage object detection models to better handle various object scales and translations.
-
- ![mosaic](https://user-images.githubusercontent.com/31005897/159109235-c7aad8f2-1d4f-41f9-8d5f-b2fde6f2885e.png)
-
-- **Copy-Paste Augmentation**: An innovative data augmentation method that copies random patches from an image and pastes them onto another randomly chosen image, effectively generating a new training sample.
-
- ![copy-paste](https://user-images.githubusercontent.com/31005897/159116277-91b45033-6bec-4f82-afc4-41138866628e.png)
-
-- **Random Affine Transformations**: This includes random rotation, scaling, translation, and shearing of the images.
-
- ![random-affine](https://user-images.githubusercontent.com/31005897/159109326-45cd5acb-14fa-43e7-9235-0f21b0021c7d.png)
-
-- **MixUp Augmentation**: A method that creates composite images by taking a linear combination of two images and their associated labels.
-
- ![mixup](https://user-images.githubusercontent.com/31005897/159109361-3b24333b-f481-478b-ae00-df7838f0b5cd.png)
-
-- **Albumentations**: A powerful library for image augmenting that supports a wide variety of augmentation techniques.
-
-- **HSV Augmentation**: Random changes to the Hue, Saturation, and Value of the images.
-
- ![hsv](https://user-images.githubusercontent.com/31005897/159109407-83d100ba-1aba-4f4b-aa03-4f048f815981.png)
-
-- **Random Horizontal Flip**: An augmentation method that randomly flips images horizontally.
-
- ![horizontal-flip](https://user-images.githubusercontent.com/31005897/159109429-0d44619a-a76a-49eb-bfc0-6709860c043e.png)
-
-## 3. Training Strategies
-
-YOLOv5 applies several sophisticated training strategies to enhance the model's performance. They include:
-
-- **Multiscale Training**: The input images are randomly rescaled within a range of 0.5 to 1.5 times their original size during the training process.
-- **AutoAnchor**: This strategy optimizes the prior anchor boxes to match the statistical characteristics of the ground truth boxes in your custom data.
-- **Warmup and Cosine LR Scheduler**: A method to adjust the learning rate to enhance model performance.
-- **Exponential Moving Average (EMA)**: A strategy that uses the average of parameters over past steps to stabilize the training process and reduce generalization error.
-- **Mixed Precision Training**: A method to perform operations in half-precision format, reducing memory usage and enhancing computational speed.
-- **Hyperparameter Evolution**: A strategy to automatically tune hyperparameters to achieve optimal performance.
-
-## 4. Additional Features
-
-### 4.1 Compute Losses
-
-The loss in YOLOv5 is computed as a combination of three individual loss components:
-
-- **Classes Loss (BCE Loss)**: Binary Cross-Entropy loss, measures the error for the classification task.
-- **Objectness Loss (BCE Loss)**: Another Binary Cross-Entropy loss, calculates the error in detecting whether an object is present in a particular grid cell or not.
-- **Location Loss (CIoU Loss)**: Complete IoU loss, measures the error in localizing the object within the grid cell.
-
-The overall loss function is depicted by:
-
-![loss](https://latex.codecogs.com/svg.image?Loss=\lambda_1L_{cls}+\lambda_2L_{obj}+\lambda_3L_{loc})
-
-### 4.2 Balance Losses
-
-The objectness losses of the three prediction layers (`P3`, `P4`, `P5`) are weighted differently. The balance weights are `[4.0, 1.0, 0.4]` respectively. This approach ensures that the predictions at different scales contribute appropriately to the total loss.
-
-![obj_loss](https://latex.codecogs.com/svg.image?L_{obj}=4.0\cdot&space;L_{obj}^{small}+1.0\cdot&space;L_{obj}^{medium}+0.4\cdot&space;L_{obj}^{large})
-
-### 4.3 Eliminate Grid Sensitivity
-
-The YOLOv5 architecture makes some important changes to the box prediction strategy compared to earlier versions of YOLO. In YOLOv2 and YOLOv3, the box coordinates were directly predicted using the activation of the last layer.
-
-![b_x]()
-![b_y]()
-![b_w](https://latex.codecogs.com/svg.image?b_w=p_w\cdot&space;e^{t_w})
-![b_h](https://latex.codecogs.com/svg.image?b_h=p_h\cdot&space;e^{t_h})
-
-
-
-However, in YOLOv5, the formula for predicting the box coordinates has been updated to reduce grid sensitivity and prevent the model from predicting unbounded box dimensions.
-
-The revised formulas for calculating the predicted bounding box are as follows:
-
-![bx]()
-![by]()
-![bw]()
-![bh]()
-
-Compare the center point offset before and after scaling. The center point offset range is adjusted from (0, 1) to (-0.5, 1.5). Therefore, offset can easily get 0 or 1.
-
-
-
-Compare the height and width scaling ratio(relative to anchor) before and after adjustment. The original yolo/darknet box equations have a serious flaw. Width and Height are completely unbounded as they are simply out=exp(in), which is dangerous, as it can lead to runaway gradients, instabilities, NaN losses and ultimately a complete loss of training. [refer this issue](https://github.com/ultralytics/yolov5/issues/471#issuecomment-662009779)
-
-
-
-### 4.4 Build Targets
-
-The build target process in YOLOv5 is critical for training efficiency and model accuracy. It involves assigning ground truth boxes to the appropriate grid cells in the output map and matching them with the appropriate anchor boxes.
-
-This process follows these steps:
-
-- Calculate the ratio of the ground truth box dimensions and the dimensions of each anchor template.
-
-![rw](https://latex.codecogs.com/svg.image?r_w=w_{gt}/w_{at})
-
-![rh](https://latex.codecogs.com/svg.image?r_h=h_{gt}/h_{at})
-
-![rwmax]()
-
-![rhmax]()
-
-![rmax]()
-
-![match](https://latex.codecogs.com/svg.image?r^{max}<{\rm&space;anchor_t})
-
-
-
-- If the calculated ratio is within the threshold, match the ground truth box with the corresponding anchor.
-
-
-
-- Assign the matched anchor to the appropriate cells, keeping in mind that due to the revised center point offset, a ground truth box can be assigned to more than one anchor. Because the center point offset range is adjusted from (0, 1) to (-0.5, 1.5). GT Box can be assigned to more anchors.
-
-
-
-This way, the build targets process ensures that each ground truth object is properly assigned and matched during the training process, allowing YOLOv5 to learn the task of object detection more effectively.
-
-## Conclusion
-
-In conclusion, YOLOv5 represents a significant step forward in the development of real-time object detection models. By incorporating various new features, enhancements, and training strategies, it surpasses previous versions of the YOLO family in performance and efficiency.
-
-The primary enhancements in YOLOv5 include the use of a dynamic architecture, an extensive range of data augmentation techniques, innovative training strategies, as well as important adjustments in computing losses and the process of building targets. All these innovations significantly improve the accuracy and efficiency of object detection while retaining a high degree of speed, which is the trademark of YOLO models.
diff --git a/ultralytics-main/docs/en/yolov5/tutorials/clearml_logging_integration.md b/ultralytics-main/docs/en/yolov5/tutorials/clearml_logging_integration.md
deleted file mode 100644
index 48fce1e..0000000
--- a/ultralytics-main/docs/en/yolov5/tutorials/clearml_logging_integration.md
+++ /dev/null
@@ -1,237 +0,0 @@
----
-comments: true
-description: Learn how ClearML can enhance your YOLOv5 pipeline – track your training runs, version your data, remotely monitor your models and optimize performance.
-keywords: ClearML, YOLOv5, Ultralytics, AI toolbox, training data, remote training, hyperparameter optimization, YOLOv5 model
----
-
-# ClearML Integration
-
-
-
-## About ClearML
-
-[ClearML](https://clear.ml/) is an [open-source](https://github.com/allegroai/clearml) toolbox designed to save you time ⏱️.
-
-🔨 Track every YOLOv5 training run in the experiment manager
-
-🔧 Version and easily access your custom training data with the integrated ClearML Data Versioning Tool
-
-🔦 Remotely train and monitor your YOLOv5 training runs using ClearML Agent
-
-🔬 Get the very best mAP using ClearML Hyperparameter Optimization
-
-🔭 Turn your newly trained YOLOv5 model into an API with just a few commands using ClearML Serving
-
-
-And so much more. It's up to you how many of these tools you want to use, you can stick to the experiment manager, or chain them all together into an impressive pipeline!
-
-
-
-![ClearML scalars dashboard](https://github.com/thepycoder/clearml_screenshots/raw/main/experiment_manager_with_compare.gif)
-
-
-
-
-## 🦾 Setting Things Up
-
-To keep track of your experiments and/or data, ClearML needs to communicate to a server. You have 2 options to get one:
-
-Either sign up for free to the [ClearML Hosted Service](https://clear.ml/) or you can set up your own server, see [here](https://clear.ml/docs/latest/docs/deploying_clearml/clearml_server). Even the server is open-source, so even if you're dealing with sensitive data, you should be good to go!
-
-- Install the `clearml` python package:
-
- ```bash
- pip install clearml
- ```
-
-- Connect the ClearML SDK to the server by [creating credentials](https://app.clear.ml/settings/workspace-configuration) (go right top to Settings -> Workspace -> Create new credentials), then execute the command below and follow the instructions:
-
- ```bash
- clearml-init
- ```
-
-That's it! You're done 😎
-
-
-
-## 🚀 Training YOLOv5 With ClearML
-
-To enable ClearML experiment tracking, simply install the ClearML pip package.
-
-```bash
-pip install clearml>=1.2.0
-```
-
-This will enable integration with the YOLOv5 training script. Every training run from now on, will be captured and stored by the ClearML experiment manager.
-
-If you want to change the `project_name` or `task_name`, use the `--project` and `--name` arguments of the `train.py` script, by default the project will be called `YOLOv5` and the task `Training`. PLEASE NOTE: ClearML uses `/` as a delimiter for subprojects, so be careful when using `/` in your project name!
-
-```bash
-python train.py --img 640 --batch 16 --epochs 3 --data coco128.yaml --weights yolov5s.pt --cache
-```
-
-or with custom project and task name:
-
-```bash
-python train.py --project my_project --name my_training --img 640 --batch 16 --epochs 3 --data coco128.yaml --weights yolov5s.pt --cache
-```
-
-This will capture:
-
-- Source code + uncommitted changes
-- Installed packages
-- (Hyper)parameters
-- Model files (use `--save-period n` to save a checkpoint every n epochs)
-- Console output
-- Scalars (mAP_0.5, mAP_0.5:0.95, precision, recall, losses, learning rates, ...)
-- General info such as machine details, runtime, creation date etc.
-- All produced plots such as label correlogram and confusion matrix
-- Images with bounding boxes per epoch
-- Mosaic per epoch
-- Validation images per epoch
-
-That's a lot right? 🤯 Now, we can visualize all of this information in the ClearML UI to get an overview of our training progress. Add custom columns to the table view (such as e.g. mAP_0.5) so you can easily sort on the best performing model. Or select multiple experiments and directly compare them!
-
-There even more we can do with all of this information, like hyperparameter optimization and remote execution, so keep reading if you want to see how that works!
-
-### 🔗 Dataset Version Management
-
-Versioning your data separately from your code is generally a good idea and makes it easy to acquire the latest version too. This repository supports supplying a dataset version ID, and it will make sure to get the data if it's not there yet. Next to that, this workflow also saves the used dataset ID as part of the task parameters, so you will always know for sure which data was used in which experiment!
-
-![ClearML Dataset Interface](https://github.com/thepycoder/clearml_screenshots/raw/main/clearml_data.gif)
-
-### Prepare Your Dataset
-
-The YOLOv5 repository supports a number of different datasets by using YAML files containing their information. By default datasets are downloaded to the `../datasets` folder in relation to the repository root folder. So if you downloaded the `coco128` dataset using the link in the YAML or with the scripts provided by yolov5, you get this folder structure:
-
-```
-..
-|_ yolov5
-|_ datasets
- |_ coco128
- |_ images
- |_ labels
- |_ LICENSE
- |_ README.txt
-```
-
-But this can be any dataset you wish. Feel free to use your own, as long as you keep to this folder structure.
-
-Next, ⚠️**copy the corresponding YAML file to the root of the dataset folder**⚠️. This YAML files contains the information ClearML will need to properly use the dataset. You can make this yourself too, of course, just follow the structure of the example YAMLs.
-
-Basically we need the following keys: `path`, `train`, `test`, `val`, `nc`, `names`.
-
-```
-..
-|_ yolov5
-|_ datasets
- |_ coco128
- |_ images
- |_ labels
- |_ coco128.yaml # <---- HERE!
- |_ LICENSE
- |_ README.txt
-```
-
-### Upload Your Dataset
-
-To get this dataset into ClearML as a versioned dataset, go to the dataset root folder and run the following command:
-
-```bash
-cd coco128
-clearml-data sync --project YOLOv5 --name coco128 --folder .
-```
-
-The command `clearml-data sync` is actually a shorthand command. You could also run these commands one after the other:
-
-```bash
-# Optionally add --parent if you want to base
-# this version on another dataset version, so no duplicate files are uploaded!
-clearml-data create --name coco128 --project YOLOv5
-clearml-data add --files .
-clearml-data close
-```
-
-### Run Training Using A ClearML Dataset
-
-Now that you have a ClearML dataset, you can very simply use it to train custom YOLOv5 🚀 models!
-
-```bash
-python train.py --img 640 --batch 16 --epochs 3 --data clearml:// --weights yolov5s.pt --cache
-```
-
-
-
-### 👀 Hyperparameter Optimization
-
-Now that we have our experiments and data versioned, it's time to take a look at what we can build on top!
-
-Using the code information, installed packages and environment details, the experiment itself is now **completely reproducible**. In fact, ClearML allows you to clone an experiment and even change its parameters. We can then just rerun it with these new parameters automatically, this is basically what HPO does!
-
-To **run hyperparameter optimization locally**, we've included a pre-made script for you. Just make sure a training task has been run at least once, so it is in the ClearML experiment manager, we will essentially clone it and change its hyperparameters.
-
-You'll need to fill in the ID of this `template task` in the script found at `utils/loggers/clearml/hpo.py` and then just run it :) You can change `task.execute_locally()` to `task.execute()` to put it in a ClearML queue and have a remote agent work on it instead.
-
-```bash
-# To use optuna, install it first, otherwise you can change the optimizer to just be RandomSearch
-pip install optuna
-python utils/loggers/clearml/hpo.py
-```
-
-![HPO](https://github.com/thepycoder/clearml_screenshots/raw/main/hpo.png)
-
-## 🤯 Remote Execution (advanced)
-
-Running HPO locally is really handy, but what if we want to run our experiments on a remote machine instead? Maybe you have access to a very powerful GPU machine on-site, or you have some budget to use cloud GPUs. This is where the ClearML Agent comes into play. Check out what the agent can do here:
-
-- [YouTube video](https://youtu.be/MX3BrXnaULs)
-- [Documentation](https://clear.ml/docs/latest/docs/clearml_agent)
-
-In short: every experiment tracked by the experiment manager contains enough information to reproduce it on a different machine (installed packages, uncommitted changes etc.). So a ClearML agent does just that: it listens to a queue for incoming tasks and when it finds one, it recreates the environment and runs it while still reporting scalars, plots etc. to the experiment manager.
-
-You can turn any machine (a cloud VM, a local GPU machine, your own laptop ... ) into a ClearML agent by simply running:
-
-```bash
-clearml-agent daemon --queue [--docker]
-```
-
-### Cloning, Editing And Enqueuing
-
-With our agent running, we can give it some work. Remember from the HPO section that we can clone a task and edit the hyperparameters? We can do that from the interface too!
-
-🪄 Clone the experiment by right-clicking it
-
-🎯 Edit the hyperparameters to what you wish them to be
-
-⏳ Enqueue the task to any of the queues by right-clicking it
-
-![Enqueue a task from the UI](https://github.com/thepycoder/clearml_screenshots/raw/main/enqueue.gif)
-
-### Executing A Task Remotely
-
-Now you can clone a task like we explained above, or simply mark your current script by adding `task.execute_remotely()` and on execution it will be put into a queue, for the agent to start working on!
-
-To run the YOLOv5 training script remotely, all you have to do is add this line to the training.py script after the clearml logger has been instantiated:
-
-```python
-# ...
-# Loggers
-data_dict = None
-if RANK in {-1, 0}:
- loggers = Loggers(save_dir, weights, opt, hyp, LOGGER) # loggers instance
- if loggers.clearml:
- loggers.clearml.task.execute_remotely(queue="my_queue") # <------ ADD THIS LINE
- # Data_dict is either None is user did not choose for ClearML dataset or is filled in by ClearML
- data_dict = loggers.clearml.data_dict
-# ...
-```
-
-When running the training script after this change, python will run the script up until that line, after which it will package the code and send it to the queue instead!
-
-### Autoscaling workers
-
-ClearML comes with autoscalers too! This tool will automatically spin up new remote machines in the cloud of your choice (AWS, GCP, Azure) and turn them into ClearML agents for you whenever there are experiments detected in the queue. Once the tasks are processed, the autoscaler will automatically shut down the remote machines, and you stop paying!
-
-Check out the autoscalers getting started video below.
-
-[![Watch the video](https://img.youtube.com/vi/j4XVMAaUt3E/0.jpg)](https://youtu.be/j4XVMAaUt3E)
diff --git a/ultralytics-main/docs/en/yolov5/tutorials/comet_logging_integration.md b/ultralytics-main/docs/en/yolov5/tutorials/comet_logging_integration.md
deleted file mode 100644
index ae88411..0000000
--- a/ultralytics-main/docs/en/yolov5/tutorials/comet_logging_integration.md
+++ /dev/null
@@ -1,256 +0,0 @@
----
-comments: true
-description: Learn how to set up and use Comet to enhance your YOLOv5 model training, metrics tracking and visualization. Includes a step by step guide to integrate Comet with YOLOv5.
-keywords: YOLOv5, Comet, Machine Learning, Ultralytics, Real time metrics tracking, Hyperparameters, Model checkpoints, Model predictions, YOLOv5 training, Comet Credentials
----
-
-![Comet](https://cdn.comet.ml/img/notebook_logo.png)
-
-# YOLOv5 with Comet
-
-This guide will cover how to use YOLOv5 with [Comet](https://bit.ly/yolov5-readme-comet2)
-
-## About Comet
-
-Comet builds tools that help data scientists, engineers, and team leaders accelerate and optimize machine learning and deep learning models.
-
-Track and visualize model metrics in real time, save your hyperparameters, datasets, and model checkpoints, and visualize your model predictions with [Comet Custom Panels](https://www.comet.com/docs/v2/guides/comet-dashboard/code-panels/about-panels/?utm_source=yolov5&utm_medium=partner&utm_campaign=partner_yolov5_2022&utm_content=github)! Comet makes sure you never lose track of your work and makes it easy to share results and collaborate across teams of all sizes!
-
-## Getting Started
-
-### Install Comet
-
-```shell
-pip install comet_ml
-```
-
-### Configure Comet Credentials
-
-There are two ways to configure Comet with YOLOv5.
-
-You can either set your credentials through environment variables
-
-**Environment Variables**
-
-```shell
-export COMET_API_KEY=
-export COMET_PROJECT_NAME= # This will default to 'yolov5'
-```
-
-Or create a `.comet.config` file in your working directory and set your credentials there.
-
-**Comet Configuration File**
-
-```
-[comet]
-api_key=
-project_name= # This will default to 'yolov5'
-```
-
-### Run the Training Script
-
-```shell
-# Train YOLOv5s on COCO128 for 5 epochs
-python train.py --img 640 --batch 16 --epochs 5 --data coco128.yaml --weights yolov5s.pt
-```
-
-That's it! Comet will automatically log your hyperparameters, command line arguments, training and validation metrics. You can visualize and analyze your runs in the Comet UI
-
-
-
-## Try out an Example!
-
-Check out an example of a [completed run here](https://www.comet.com/examples/comet-example-yolov5/a0e29e0e9b984e4a822db2a62d0cb357?experiment-tab=chart&showOutliers=true&smoothing=0&transformY=smoothing&xAxis=step&utm_source=yolov5&utm_medium=partner&utm_campaign=partner_yolov5_2022&utm_content=github)
-
-Or better yet, try it out yourself in this Colab Notebook
-
-[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1RG0WOQyxlDlo5Km8GogJpIEJlg_5lyYO?usp=sharing)
-
-## Log automatically
-
-By default, Comet will log the following items
-
-## Metrics
-
-- Box Loss, Object Loss, Classification Loss for the training and validation data
-- mAP_0.5, mAP_0.5:0.95 metrics for the validation data.
-- Precision and Recall for the validation data
-
-## Parameters
-
-- Model Hyperparameters
-- All parameters passed through the command line options
-
-## Visualizations
-
-- Confusion Matrix of the model predictions on the validation data
-- Plots for the PR and F1 curves across all classes
-- Correlogram of the Class Labels
-
-## Configure Comet Logging
-
-Comet can be configured to log additional data either through command line flags passed to the training script or through environment variables.
-
-```shell
-export COMET_MODE=online # Set whether to run Comet in 'online' or 'offline' mode. Defaults to online
-export COMET_MODEL_NAME= #Set the name for the saved model. Defaults to yolov5
-export COMET_LOG_CONFUSION_MATRIX=false # Set to disable logging a Comet Confusion Matrix. Defaults to true
-export COMET_MAX_IMAGE_UPLOADS= # Controls how many total image predictions to log to Comet. Defaults to 100.
-export COMET_LOG_PER_CLASS_METRICS=true # Set to log evaluation metrics for each detected class at the end of training. Defaults to false
-export COMET_DEFAULT_CHECKPOINT_FILENAME= # Set this if you would like to resume training from a different checkpoint. Defaults to 'last.pt'
-export COMET_LOG_BATCH_LEVEL_METRICS=true # Set this if you would like to log training metrics at the batch level. Defaults to false.
-export COMET_LOG_PREDICTIONS=true # Set this to false to disable logging model predictions
-```
-
-## Logging Checkpoints with Comet
-
-Logging Models to Comet is disabled by default. To enable it, pass the `save-period` argument to the training script. This will save the logged checkpoints to Comet based on the interval value provided by `save-period`
-
-```shell
-python train.py \
---img 640 \
---batch 16 \
---epochs 5 \
---data coco128.yaml \
---weights yolov5s.pt \
---save-period 1
-```
-
-## Logging Model Predictions
-
-By default, model predictions (images, ground truth labels and bounding boxes) will be logged to Comet.
-
-You can control the frequency of logged predictions and the associated images by passing the `bbox_interval` command line argument. Predictions can be visualized using Comet's Object Detection Custom Panel. This frequency corresponds to every Nth batch of data per epoch. In the example below, we are logging every 2nd batch of data for each epoch.
-
-**Note:** The YOLOv5 validation dataloader will default to a batch size of 32, so you will have to set the logging frequency accordingly.
-
-Here is an [example project using the Panel](https://www.comet.com/examples/comet-example-yolov5?shareable=YcwMiJaZSXfcEXpGOHDD12vA1&utm_source=yolov5&utm_medium=partner&utm_campaign=partner_yolov5_2022&utm_content=github)
-
-```shell
-python train.py \
---img 640 \
---batch 16 \
---epochs 5 \
---data coco128.yaml \
---weights yolov5s.pt \
---bbox_interval 2
-```
-
-### Controlling the number of Prediction Images logged to Comet
-
-When logging predictions from YOLOv5, Comet will log the images associated with each set of predictions. By default a maximum of 100 validation images are logged. You can increase or decrease this number using the `COMET_MAX_IMAGE_UPLOADS` environment variable.
-
-```shell
-env COMET_MAX_IMAGE_UPLOADS=200 python train.py \
---img 640 \
---batch 16 \
---epochs 5 \
---data coco128.yaml \
---weights yolov5s.pt \
---bbox_interval 1
-```
-
-### Logging Class Level Metrics
-
-Use the `COMET_LOG_PER_CLASS_METRICS` environment variable to log mAP, precision, recall, f1 for each class.
-
-```shell
-env COMET_LOG_PER_CLASS_METRICS=true python train.py \
---img 640 \
---batch 16 \
---epochs 5 \
---data coco128.yaml \
---weights yolov5s.pt
-```
-
-## Uploading a Dataset to Comet Artifacts
-
-If you would like to store your data using [Comet Artifacts](https://www.comet.com/docs/v2/guides/data-management/using-artifacts/#learn-more?utm_source=yolov5&utm_medium=partner&utm_campaign=partner_yolov5_2022&utm_content=github), you can do so using the `upload_dataset` flag.
-
-The dataset be organized in the way described in the [YOLOv5 documentation](train_custom_data.md). The dataset config `yaml` file must follow the same format as that of the `coco128.yaml` file.
-
-```shell
-python train.py \
---img 640 \
---batch 16 \
---epochs 5 \
---data coco128.yaml \
---weights yolov5s.pt \
---upload_dataset
-```
-
-You can find the uploaded dataset in the Artifacts tab in your Comet Workspace
-
-You can preview the data directly in the Comet UI.
-
-Artifacts are versioned and also support adding metadata about the dataset. Comet will automatically log the metadata from your dataset `yaml` file
-
-### Using a saved Artifact
-
-If you would like to use a dataset from Comet Artifacts, set the `path` variable in your dataset `yaml` file to point to the following Artifact resource URL.
-
-```
-# contents of artifact.yaml file
-path: "comet:///:"
-```
-
-Then pass this file to your training script in the following way
-
-```shell
-python train.py \
---img 640 \
---batch 16 \
---epochs 5 \
---data artifact.yaml \
---weights yolov5s.pt
-```
-
-Artifacts also allow you to track the lineage of data as it flows through your Experimentation workflow. Here you can see a graph that shows you all the experiments that have used your uploaded dataset.
-
-## Resuming a Training Run
-
-If your training run is interrupted for any reason, e.g. disrupted internet connection, you can resume the run using the `resume` flag and the Comet Run Path.
-
-The Run Path has the following format `comet:////`.
-
-This will restore the run to its state before the interruption, which includes restoring the model from a checkpoint, restoring all hyperparameters and training arguments and downloading Comet dataset Artifacts if they were used in the original run. The resumed run will continue logging to the existing Experiment in the Comet UI
-
-```shell
-python train.py \
---resume "comet://"
-```
-
-## Hyperparameter Search with the Comet Optimizer
-
-YOLOv5 is also integrated with Comet's Optimizer, making is simple to visualize hyperparameter sweeps in the Comet UI.
-
-### Configuring an Optimizer Sweep
-
-To configure the Comet Optimizer, you will have to create a JSON file with the information about the sweep. An example file has been provided in `utils/loggers/comet/optimizer_config.json`
-
-```shell
-python utils/loggers/comet/hpo.py \
- --comet_optimizer_config "utils/loggers/comet/optimizer_config.json"
-```
-
-The `hpo.py` script accepts the same arguments as `train.py`. If you wish to pass additional arguments to your sweep simply add them after the script.
-
-```shell
-python utils/loggers/comet/hpo.py \
- --comet_optimizer_config "utils/loggers/comet/optimizer_config.json" \
- --save-period 1 \
- --bbox_interval 1
-```
-
-### Running a Sweep in Parallel
-
-```shell
-comet optimizer -j utils/loggers/comet/hpo.py \
- utils/loggers/comet/optimizer_config.json"
-```
-
-## Visualizing Results
-
-Comet provides a number of ways to visualize the results of your sweep. Take a look at a [project with a completed sweep here](https://www.comet.com/examples/comet-example-yolov5/view/PrlArHGuuhDTKC1UuBmTtOSXD/panels?utm_source=yolov5&utm_medium=partner&utm_campaign=partner_yolov5_2022&utm_content=github)
-
-
diff --git a/ultralytics-main/docs/en/yolov5/tutorials/hyperparameter_evolution.md b/ultralytics-main/docs/en/yolov5/tutorials/hyperparameter_evolution.md
deleted file mode 100644
index 13e29ca..0000000
--- a/ultralytics-main/docs/en/yolov5/tutorials/hyperparameter_evolution.md
+++ /dev/null
@@ -1,166 +0,0 @@
----
-comments: true
-description: Learn how to optimize YOLOv5 with hyperparameter evolution using Genetic Algorithm. This guide provides steps to initialize, define, evolve and visualize hyperparameters for top performance.
-keywords: Ultralytics, YOLOv5, Hyperparameter Optimization, Genetic Algorithm, Machine Learning, Deep Learning, AI, Object Detection, Image Classification, Python
----
-
-📚 This guide explains **hyperparameter evolution** for YOLOv5 🚀. Hyperparameter evolution is a method of [Hyperparameter Optimization](https://en.wikipedia.org/wiki/Hyperparameter_optimization) using a [Genetic Algorithm](https://en.wikipedia.org/wiki/Genetic_algorithm) (GA) for optimization.
-
-Hyperparameters in ML control various aspects of training, and finding optimal values for them can be a challenge. Traditional methods like grid searches can quickly become intractable due to 1) the high dimensional search space 2) unknown correlations among the dimensions, and 3) expensive nature of evaluating the fitness at each point, making GA a suitable candidate for hyperparameter searches.
-
-## Before You Start
-
-Clone repo and install [requirements.txt](https://github.com/ultralytics/yolov5/blob/master/requirements.txt) in a [**Python>=3.8.0**](https://www.python.org/) environment, including [**PyTorch>=1.8**](https://pytorch.org/get-started/locally/). [Models](https://github.com/ultralytics/yolov5/tree/master/models) and [datasets](https://github.com/ultralytics/yolov5/tree/master/data) download automatically from the latest YOLOv5 [release](https://github.com/ultralytics/yolov5/releases).
-
-```bash
-git clone https://github.com/ultralytics/yolov5 # clone
-cd yolov5
-pip install -r requirements.txt # install
-```
-
-## 1. Initialize Hyperparameters
-
-YOLOv5 has about 30 hyperparameters used for various training settings. These are defined in `*.yaml` files in the `/data/hyps` directory. Better initial guesses will produce better final results, so it is important to initialize these values properly before evolving. If in doubt, simply use the default values, which are optimized for YOLOv5 COCO training from scratch.
-
-```yaml
-# YOLOv5 🚀 by Ultralytics, AGPL-3.0 license
-# Hyperparameters for low-augmentation COCO training from scratch
-# python train.py --batch 64 --cfg yolov5n6.yaml --weights '' --data coco.yaml --img 640 --epochs 300 --linear
-# See tutorials for hyperparameter evolution https://github.com/ultralytics/yolov5#tutorials
-
-lr0: 0.01 # initial learning rate (SGD=1E-2, Adam=1E-3)
-lrf: 0.01 # final OneCycleLR learning rate (lr0 * lrf)
-momentum: 0.937 # SGD momentum/Adam beta1
-weight_decay: 0.0005 # optimizer weight decay 5e-4
-warmup_epochs: 3.0 # warmup epochs (fractions ok)
-warmup_momentum: 0.8 # warmup initial momentum
-warmup_bias_lr: 0.1 # warmup initial bias lr
-box: 0.05 # box loss gain
-cls: 0.5 # cls loss gain
-cls_pw: 1.0 # cls BCELoss positive_weight
-obj: 1.0 # obj loss gain (scale with pixels)
-obj_pw: 1.0 # obj BCELoss positive_weight
-iou_t: 0.20 # IoU training threshold
-anchor_t: 4.0 # anchor-multiple threshold
-# anchors: 3 # anchors per output layer (0 to ignore)
-fl_gamma: 0.0 # focal loss gamma (efficientDet default gamma=1.5)
-hsv_h: 0.015 # image HSV-Hue augmentation (fraction)
-hsv_s: 0.7 # image HSV-Saturation augmentation (fraction)
-hsv_v: 0.4 # image HSV-Value augmentation (fraction)
-degrees: 0.0 # image rotation (+/- deg)
-translate: 0.1 # image translation (+/- fraction)
-scale: 0.5 # image scale (+/- gain)
-shear: 0.0 # image shear (+/- deg)
-perspective: 0.0 # image perspective (+/- fraction), range 0-0.001
-flipud: 0.0 # image flip up-down (probability)
-fliplr: 0.5 # image flip left-right (probability)
-mosaic: 1.0 # image mosaic (probability)
-mixup: 0.0 # image mixup (probability)
-copy_paste: 0.0 # segment copy-paste (probability)
-```
-
-## 2. Define Fitness
-
-Fitness is the value we seek to maximize. In YOLOv5 we define a default fitness function as a weighted combination of metrics: `mAP@0.5` contributes 10% of the weight and `mAP@0.5:0.95` contributes the remaining 90%, with [Precision `P` and Recall `R`](https://en.wikipedia.org/wiki/Precision_and_recall) absent. You may adjust these as you see fit or use the default fitness definition in utils/metrics.py (recommended).
-
-```python
-def fitness(x):
- # Model fitness as a weighted combination of metrics
- w = [0.0, 0.0, 0.1, 0.9] # weights for [P, R, mAP@0.5, mAP@0.5:0.95]
- return (x[:, :4] * w).sum(1)
-```
-
-## 3. Evolve
-
-Evolution is performed about a base scenario which we seek to improve upon. The base scenario in this example is finetuning COCO128 for 10 epochs using pretrained YOLOv5s. The base scenario training command is:
-
-```bash
-python train.py --epochs 10 --data coco128.yaml --weights yolov5s.pt --cache
-```
-
-To evolve hyperparameters **specific to this scenario**, starting from our initial values defined in **Section 1.**, and maximizing the fitness defined in **Section 2.**, append `--evolve`:
-
-```bash
-# Single-GPU
-python train.py --epochs 10 --data coco128.yaml --weights yolov5s.pt --cache --evolve
-
-# Multi-GPU
-for i in 0 1 2 3 4 5 6 7; do
- sleep $(expr 30 \* $i) && # 30-second delay (optional)
- echo 'Starting GPU '$i'...' &&
- nohup python train.py --epochs 10 --data coco128.yaml --weights yolov5s.pt --cache --device $i --evolve > evolve_gpu_$i.log &
-done
-
-# Multi-GPU bash-while (not recommended)
-for i in 0 1 2 3 4 5 6 7; do
- sleep $(expr 30 \* $i) && # 30-second delay (optional)
- echo 'Starting GPU '$i'...' &&
- "$(while true; do nohup python train.py... --device $i --evolve 1 > evolve_gpu_$i.log; done)" &
-done
-```
-
-The default evolution settings will run the base scenario 300 times, i.e. for 300 generations. You can modify generations via the `--evolve` argument, i.e. `python train.py --evolve 1000`.
-
-The main genetic operators are **crossover** and **mutation**. In this work mutation is used, with an 80% probability and a 0.04 variance to create new offspring based on a combination of the best parents from all previous generations. Results are logged to `runs/evolve/exp/evolve.csv`, and the highest fitness offspring is saved every generation as `runs/evolve/hyp_evolved.yaml`:
-
-```yaml
-# YOLOv5 Hyperparameter Evolution Results
-# Best generation: 287
-# Last generation: 300
-# metrics/precision, metrics/recall, metrics/mAP_0.5, metrics/mAP_0.5:0.95, val/box_loss, val/obj_loss, val/cls_loss
-# 0.54634, 0.55625, 0.58201, 0.33665, 0.056451, 0.042892, 0.013441
-
-lr0: 0.01 # initial learning rate (SGD=1E-2, Adam=1E-3)
-lrf: 0.2 # final OneCycleLR learning rate (lr0 * lrf)
-momentum: 0.937 # SGD momentum/Adam beta1
-weight_decay: 0.0005 # optimizer weight decay 5e-4
-warmup_epochs: 3.0 # warmup epochs (fractions ok)
-warmup_momentum: 0.8 # warmup initial momentum
-warmup_bias_lr: 0.1 # warmup initial bias lr
-box: 0.05 # box loss gain
-cls: 0.5 # cls loss gain
-cls_pw: 1.0 # cls BCELoss positive_weight
-obj: 1.0 # obj loss gain (scale with pixels)
-obj_pw: 1.0 # obj BCELoss positive_weight
-iou_t: 0.20 # IoU training threshold
-anchor_t: 4.0 # anchor-multiple threshold
-# anchors: 3 # anchors per output layer (0 to ignore)
-fl_gamma: 0.0 # focal loss gamma (efficientDet default gamma=1.5)
-hsv_h: 0.015 # image HSV-Hue augmentation (fraction)
-hsv_s: 0.7 # image HSV-Saturation augmentation (fraction)
-hsv_v: 0.4 # image HSV-Value augmentation (fraction)
-degrees: 0.0 # image rotation (+/- deg)
-translate: 0.1 # image translation (+/- fraction)
-scale: 0.5 # image scale (+/- gain)
-shear: 0.0 # image shear (+/- deg)
-perspective: 0.0 # image perspective (+/- fraction), range 0-0.001
-flipud: 0.0 # image flip up-down (probability)
-fliplr: 0.5 # image flip left-right (probability)
-mosaic: 1.0 # image mosaic (probability)
-mixup: 0.0 # image mixup (probability)
-copy_paste: 0.0 # segment copy-paste (probability)
-```
-
-We recommend a minimum of 300 generations of evolution for best results. Note that **evolution is generally expensive and time-consuming**, as the base scenario is trained hundreds of times, possibly requiring hundreds or thousands of GPU hours.
-
-## 4. Visualize
-
-`evolve.csv` is plotted as `evolve.png` by `utils.plots.plot_evolve()` after evolution finishes with one subplot per hyperparameter showing fitness (y-axis) vs hyperparameter values (x-axis). Yellow indicates higher concentrations. Vertical distributions indicate that a parameter has been disabled and does not mutate. This is user selectable in the `meta` dictionary in train.py, and is useful for fixing parameters and preventing them from evolving.
-
-![evolve](https://user-images.githubusercontent.com/26833433/89130469-f43e8e00-d4b9-11ea-9e28-f8ae3622516d.png)
-
-## Supported Environments
-
-Ultralytics provides a range of ready-to-use environments, each pre-installed with essential dependencies such as [CUDA](https://developer.nvidia.com/cuda), [CUDNN](https://developer.nvidia.com/cudnn), [Python](https://www.python.org/), and [PyTorch](https://pytorch.org/), to kickstart your projects.
-
-- **Free GPU Notebooks**:
-- **Google Cloud**: [GCP Quickstart Guide](../environments/google_cloud_quickstart_tutorial.md)
-- **Amazon**: [AWS Quickstart Guide](../environments/aws_quickstart_tutorial.md)
-- **Azure**: [AzureML Quickstart Guide](../environments/azureml_quickstart_tutorial.md)
-- **Docker**: [Docker Quickstart Guide](../environments/docker_image_quickstart_tutorial.md)
-
-## Project Status
-
-
-
-This badge indicates that all [YOLOv5 GitHub Actions](https://github.com/ultralytics/yolov5/actions) Continuous Integration (CI) tests are successfully passing. These CI tests rigorously check the functionality and performance of YOLOv5 across various key aspects: [training](https://github.com/ultralytics/yolov5/blob/master/train.py), [validation](https://github.com/ultralytics/yolov5/blob/master/val.py), [inference](https://github.com/ultralytics/yolov5/blob/master/detect.py), [export](https://github.com/ultralytics/yolov5/blob/master/export.py), and [benchmarks](https://github.com/ultralytics/yolov5/blob/master/benchmarks.py). They ensure consistent and reliable operation on macOS, Windows, and Ubuntu, with tests conducted every 24 hours and upon each new commit.
diff --git a/ultralytics-main/docs/en/yolov5/tutorials/model_ensembling.md b/ultralytics-main/docs/en/yolov5/tutorials/model_ensembling.md
deleted file mode 100644
index 25fd218..0000000
--- a/ultralytics-main/docs/en/yolov5/tutorials/model_ensembling.md
+++ /dev/null
@@ -1,147 +0,0 @@
----
-comments: true
-description: Learn how to ensemble YOLOv5 models for improved mAP and Recall! Clone the repo, install requirements, and start testing and inference.
-keywords: YOLOv5, object detection, ensemble learning, mAP, Recall
----
-
-📚 This guide explains how to use YOLOv5 🚀 **model ensembling** during testing and inference for improved mAP and Recall.
-
-From [https://en.wikipedia.org/wiki/Ensemble_learning](https://en.wikipedia.org/wiki/Ensemble_learning):
-
-> Ensemble modeling is a process where multiple diverse models are created to predict an outcome, either by using many different modeling algorithms or using different training data sets. The ensemble model then aggregates the prediction of each base model and results in once final prediction for the unseen data. The motivation for using ensemble models is to reduce the generalization error of the prediction. As long as the base models are diverse and independent, the prediction error of the model decreases when the ensemble approach is used. The approach seeks the wisdom of crowds in making a prediction. Even though the ensemble model has multiple base models within the model, it acts and performs as a single model.
-
-## Before You Start
-
-Clone repo and install [requirements.txt](https://github.com/ultralytics/yolov5/blob/master/requirements.txt) in a [**Python>=3.8.0**](https://www.python.org/) environment, including [**PyTorch>=1.8**](https://pytorch.org/get-started/locally/). [Models](https://github.com/ultralytics/yolov5/tree/master/models) and [datasets](https://github.com/ultralytics/yolov5/tree/master/data) download automatically from the latest YOLOv5 [release](https://github.com/ultralytics/yolov5/releases).
-
-```bash
-git clone https://github.com/ultralytics/yolov5 # clone
-cd yolov5
-pip install -r requirements.txt # install
-```
-
-## Test Normally
-
-Before ensembling we want to establish the baseline performance of a single model. This command tests YOLOv5x on COCO val2017 at image size 640 pixels. `yolov5x.pt` is the largest and most accurate model available. Other options are `yolov5s.pt`, `yolov5m.pt` and `yolov5l.pt`, or you own checkpoint from training a custom dataset `./weights/best.pt`. For details on all available models please see our README [table](https://github.com/ultralytics/yolov5#pretrained-checkpoints).
-
-```bash
-python val.py --weights yolov5x.pt --data coco.yaml --img 640 --half
-```
-
-Output:
-
-```shell
-val: data=./data/coco.yaml, weights=['yolov5x.pt'], batch_size=32, imgsz=640, conf_thres=0.001, iou_thres=0.65, task=val, device=, single_cls=False, augment=False, verbose=False, save_txt=False, save_hybrid=False, save_conf=False, save_json=True, project=runs/val, name=exp, exist_ok=False, half=True
-YOLOv5 🚀 v5.0-267-g6a3ee7c torch 1.9.0+cu102 CUDA:0 (Tesla P100-PCIE-16GB, 16280.875MB)
-
-Fusing layers...
-Model Summary: 476 layers, 87730285 parameters, 0 gradients
-
-val: Scanning '../datasets/coco/val2017' images and labels...4952 found, 48 missing, 0 empty, 0 corrupted: 100% 5000/5000 [00:01<00:00, 2846.03it/s]
-val: New cache created: ../datasets/coco/val2017.cache
- Class Images Labels P R mAP@.5 mAP@.5:.95: 100% 157/157 [02:30<00:00, 1.05it/s]
- all 5000 36335 0.746 0.626 0.68 0.49
-Speed: 0.1ms pre-process, 22.4ms inference, 1.4ms NMS per image at shape (32, 3, 640, 640) # <--- baseline speed
-
-Evaluating pycocotools mAP... saving runs/val/exp/yolov5x_predictions.json...
-...
- Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.504 # <--- baseline mAP
- Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.688
- Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=100 ] = 0.546
- Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.351
- Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.551
- Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.644
- Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 1 ] = 0.382
- Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 10 ] = 0.628
- Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.681 # <--- baseline mAR
- Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.524
- Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.735
- Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.826
-```
-
-## Ensemble Test
-
-Multiple pretrained models may be ensembled together at test and inference time by simply appending extra models to the `--weights` argument in any existing val.py or detect.py command. This example tests an ensemble of 2 models together:
-
-- YOLOv5x
-- YOLOv5l6
-
-```bash
-python val.py --weights yolov5x.pt yolov5l6.pt --data coco.yaml --img 640 --half
-```
-
-Output:
-
-```shell
-val: data=./data/coco.yaml, weights=['yolov5x.pt', 'yolov5l6.pt'], batch_size=32, imgsz=640, conf_thres=0.001, iou_thres=0.6, task=val, device=, single_cls=False, augment=False, verbose=False, save_txt=False, save_hybrid=False, save_conf=False, save_json=True, project=runs/val, name=exp, exist_ok=False, half=True
-YOLOv5 🚀 v5.0-267-g6a3ee7c torch 1.9.0+cu102 CUDA:0 (Tesla P100-PCIE-16GB, 16280.875MB)
-
-Fusing layers...
-Model Summary: 476 layers, 87730285 parameters, 0 gradients # Model 1
-Fusing layers...
-Model Summary: 501 layers, 77218620 parameters, 0 gradients # Model 2
-Ensemble created with ['yolov5x.pt', 'yolov5l6.pt'] # Ensemble notice
-
-val: Scanning '../datasets/coco/val2017.cache' images and labels... 4952 found, 48 missing, 0 empty, 0 corrupted: 100% 5000/5000 [00:00<00:00, 49695545.02it/s]
- Class Images Labels P R mAP@.5 mAP@.5:.95: 100% 157/157 [03:58<00:00, 1.52s/it]
- all 5000 36335 0.747 0.637 0.692 0.502
-Speed: 0.1ms pre-process, 39.5ms inference, 2.0ms NMS per image at shape (32, 3, 640, 640) # <--- ensemble speed
-
-Evaluating pycocotools mAP... saving runs/val/exp3/yolov5x_predictions.json...
-...
- Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.515 # <--- ensemble mAP
- Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.699
- Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=100 ] = 0.557
- Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.356
- Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.563
- Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.668
- Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 1 ] = 0.387
- Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 10 ] = 0.638
- Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.689 # <--- ensemble mAR
- Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.526
- Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.743
- Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.844
-```
-
-## Ensemble Inference
-
-Append extra models to the `--weights` argument to run ensemble inference:
-
-```bash
-python detect.py --weights yolov5x.pt yolov5l6.pt --img 640 --source data/images
-```
-
-Output:
-
-```bash
-YOLOv5 🚀 v5.0-267-g6a3ee7c torch 1.9.0+cu102 CUDA:0 (Tesla P100-PCIE-16GB, 16280.875MB)
-
-Fusing layers...
-Model Summary: 476 layers, 87730285 parameters, 0 gradients
-Fusing layers...
-Model Summary: 501 layers, 77218620 parameters, 0 gradients
-Ensemble created with ['yolov5x.pt', 'yolov5l6.pt']
-
-image 1/2 /content/yolov5/data/images/bus.jpg: 640x512 4 persons, 1 bus, 1 tie, Done. (0.063s)
-image 2/2 /content/yolov5/data/images/zidane.jpg: 384x640 3 persons, 2 ties, Done. (0.056s)
-Results saved to runs/detect/exp2
-Done. (0.223s)
-```
-
-
-
-## Supported Environments
-
-Ultralytics provides a range of ready-to-use environments, each pre-installed with essential dependencies such as [CUDA](https://developer.nvidia.com/cuda), [CUDNN](https://developer.nvidia.com/cudnn), [Python](https://www.python.org/), and [PyTorch](https://pytorch.org/), to kickstart your projects.
-
-- **Free GPU Notebooks**:
-- **Google Cloud**: [GCP Quickstart Guide](../environments/google_cloud_quickstart_tutorial.md)
-- **Amazon**: [AWS Quickstart Guide](../environments/aws_quickstart_tutorial.md)
-- **Azure**: [AzureML Quickstart Guide](../environments/azureml_quickstart_tutorial.md)
-- **Docker**: [Docker Quickstart Guide](../environments/docker_image_quickstart_tutorial.md)
-
-## Project Status
-
-
-
-This badge indicates that all [YOLOv5 GitHub Actions](https://github.com/ultralytics/yolov5/actions) Continuous Integration (CI) tests are successfully passing. These CI tests rigorously check the functionality and performance of YOLOv5 across various key aspects: [training](https://github.com/ultralytics/yolov5/blob/master/train.py), [validation](https://github.com/ultralytics/yolov5/blob/master/val.py), [inference](https://github.com/ultralytics/yolov5/blob/master/detect.py), [export](https://github.com/ultralytics/yolov5/blob/master/export.py), and [benchmarks](https://github.com/ultralytics/yolov5/blob/master/benchmarks.py). They ensure consistent and reliable operation on macOS, Windows, and Ubuntu, with tests conducted every 24 hours and upon each new commit.
diff --git a/ultralytics-main/docs/en/yolov5/tutorials/model_export.md b/ultralytics-main/docs/en/yolov5/tutorials/model_export.md
deleted file mode 100644
index abc5730..0000000
--- a/ultralytics-main/docs/en/yolov5/tutorials/model_export.md
+++ /dev/null
@@ -1,247 +0,0 @@
----
-comments: true
-description: Learn how to export a trained YOLOv5 model from PyTorch to different formats including TorchScript, ONNX, OpenVINO, TensorRT, and CoreML, and how to use these models.
-keywords: Ultralytics, YOLOv5, model export, PyTorch, TorchScript, ONNX, OpenVINO, TensorRT, CoreML, TensorFlow
----
-
-# TFLite, ONNX, CoreML, TensorRT Export
-
-📚 This guide explains how to export a trained YOLOv5 🚀 model from PyTorch to ONNX and TorchScript formats.
-
-## Before You Start
-
-Clone repo and install [requirements.txt](https://github.com/ultralytics/yolov5/blob/master/requirements.txt) in a [**Python>=3.8.0**](https://www.python.org/) environment, including [**PyTorch>=1.8**](https://pytorch.org/get-started/locally/). [Models](https://github.com/ultralytics/yolov5/tree/master/models) and [datasets](https://github.com/ultralytics/yolov5/tree/master/data) download automatically from the latest YOLOv5 [release](https://github.com/ultralytics/yolov5/releases).
-
-```bash
-git clone https://github.com/ultralytics/yolov5 # clone
-cd yolov5
-pip install -r requirements.txt # install
-```
-
-For [TensorRT](https://developer.nvidia.com/tensorrt) export example (requires GPU) see our Colab [notebook](https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb#scrollTo=VTRwsvA9u7ln&line=2&uniqifier=1) appendix section.
-
-## Formats
-
-YOLOv5 inference is officially supported in 11 formats:
-
-💡 ProTip: Export to ONNX or OpenVINO for up to 3x CPU speedup. See [CPU Benchmarks](https://github.com/ultralytics/yolov5/pull/6613). 💡 ProTip: Export to TensorRT for up to 5x GPU speedup. See [GPU Benchmarks](https://github.com/ultralytics/yolov5/pull/6963).
-
-| Format | `export.py --include` | Model |
-|:---------------------------------------------------------------------------|:----------------------|:--------------------------|
-| [PyTorch](https://pytorch.org/) | - | `yolov5s.pt` |
-| [TorchScript](https://pytorch.org/docs/stable/jit.html) | `torchscript` | `yolov5s.torchscript` |
-| [ONNX](https://onnx.ai/) | `onnx` | `yolov5s.onnx` |
-| [OpenVINO](https://docs.openvino.ai/latest/index.html) | `openvino` | `yolov5s_openvino_model/` |
-| [TensorRT](https://developer.nvidia.com/tensorrt) | `engine` | `yolov5s.engine` |
-| [CoreML](https://github.com/apple/coremltools) | `coreml` | `yolov5s.mlmodel` |
-| [TensorFlow SavedModel](https://www.tensorflow.org/guide/saved_model) | `saved_model` | `yolov5s_saved_model/` |
-| [TensorFlow GraphDef](https://www.tensorflow.org/api_docs/python/tf/Graph) | `pb` | `yolov5s.pb` |
-| [TensorFlow Lite](https://www.tensorflow.org/lite) | `tflite` | `yolov5s.tflite` |
-| [TensorFlow Edge TPU](https://coral.ai/docs/edgetpu/models-intro/) | `edgetpu` | `yolov5s_edgetpu.tflite` |
-| [TensorFlow.js](https://www.tensorflow.org/js) | `tfjs` | `yolov5s_web_model/` |
-| [PaddlePaddle](https://github.com/PaddlePaddle) | `paddle` | `yolov5s_paddle_model/` |
-
-## Benchmarks
-
-Benchmarks below run on a Colab Pro with the YOLOv5 tutorial notebook . To reproduce:
-
-```bash
-python benchmarks.py --weights yolov5s.pt --imgsz 640 --device 0
-```
-
-### Colab Pro V100 GPU
-
-```
-benchmarks: weights=/content/yolov5/yolov5s.pt, imgsz=640, batch_size=1, data=/content/yolov5/data/coco128.yaml, device=0, half=False, test=False
-Checking setup...
-YOLOv5 🚀 v6.1-135-g7926afc torch 1.10.0+cu111 CUDA:0 (Tesla V100-SXM2-16GB, 16160MiB)
-Setup complete ✅ (8 CPUs, 51.0 GB RAM, 46.7/166.8 GB disk)
-
-Benchmarks complete (458.07s)
- Format mAP@0.5:0.95 Inference time (ms)
-0 PyTorch 0.4623 10.19
-1 TorchScript 0.4623 6.85
-2 ONNX 0.4623 14.63
-3 OpenVINO NaN NaN
-4 TensorRT 0.4617 1.89
-5 CoreML NaN NaN
-6 TensorFlow SavedModel 0.4623 21.28
-7 TensorFlow GraphDef 0.4623 21.22
-8 TensorFlow Lite NaN NaN
-9 TensorFlow Edge TPU NaN NaN
-10 TensorFlow.js NaN NaN
-```
-
-### Colab Pro CPU
-
-```
-benchmarks: weights=/content/yolov5/yolov5s.pt, imgsz=640, batch_size=1, data=/content/yolov5/data/coco128.yaml, device=cpu, half=False, test=False
-Checking setup...
-YOLOv5 🚀 v6.1-135-g7926afc torch 1.10.0+cu111 CPU
-Setup complete ✅ (8 CPUs, 51.0 GB RAM, 41.5/166.8 GB disk)
-
-Benchmarks complete (241.20s)
- Format mAP@0.5:0.95 Inference time (ms)
-0 PyTorch 0.4623 127.61
-1 TorchScript 0.4623 131.23
-2 ONNX 0.4623 69.34
-3 OpenVINO 0.4623 66.52
-4 TensorRT NaN NaN
-5 CoreML NaN NaN
-6 TensorFlow SavedModel 0.4623 123.79
-7 TensorFlow GraphDef 0.4623 121.57
-8 TensorFlow Lite 0.4623 316.61
-9 TensorFlow Edge TPU NaN NaN
-10 TensorFlow.js NaN NaN
-```
-
-## Export a Trained YOLOv5 Model
-
-This command exports a pretrained YOLOv5s model to TorchScript and ONNX formats. `yolov5s.pt` is the 'small' model, the second-smallest model available. Other options are `yolov5n.pt`, `yolov5m.pt`, `yolov5l.pt` and `yolov5x.pt`, along with their P6 counterparts i.e. `yolov5s6.pt` or you own custom training checkpoint i.e. `runs/exp/weights/best.pt`. For details on all available models please see our README [table](https://github.com/ultralytics/yolov5#pretrained-checkpoints).
-
-```bash
-python export.py --weights yolov5s.pt --include torchscript onnx
-```
-
-💡 ProTip: Add `--half` to export models at FP16 half precision for smaller file sizes
-
-Output:
-
-```bash
-export: data=data/coco128.yaml, weights=['yolov5s.pt'], imgsz=[640, 640], batch_size=1, device=cpu, half=False, inplace=False, train=False, keras=False, optimize=False, int8=False, dynamic=False, simplify=False, opset=12, verbose=False, workspace=4, nms=False, agnostic_nms=False, topk_per_class=100, topk_all=100, iou_thres=0.45, conf_thres=0.25, include=['torchscript', 'onnx']
-YOLOv5 🚀 v6.2-104-ge3e5122 Python-3.8.0 torch-1.12.1+cu113 CPU
-
-Downloading https://github.com/ultralytics/yolov5/releases/download/v6.2/yolov5s.pt to yolov5s.pt...
-100% 14.1M/14.1M [00:00<00:00, 274MB/s]
-
-Fusing layers...
-YOLOv5s summary: 213 layers, 7225885 parameters, 0 gradients
-
-PyTorch: starting from yolov5s.pt with output shape (1, 25200, 85) (14.1 MB)
-
-TorchScript: starting export with torch 1.12.1+cu113...
-TorchScript: export success ✅ 1.7s, saved as yolov5s.torchscript (28.1 MB)
-
-ONNX: starting export with onnx 1.12.0...
-ONNX: export success ✅ 2.3s, saved as yolov5s.onnx (28.0 MB)
-
-Export complete (5.5s)
-Results saved to /content/yolov5
-Detect: python detect.py --weights yolov5s.onnx
-Validate: python val.py --weights yolov5s.onnx
-PyTorch Hub: model = torch.hub.load('ultralytics/yolov5', 'custom', 'yolov5s.onnx')
-Visualize: https://netron.app/
-```
-
-The 3 exported models will be saved alongside the original PyTorch model:
-
-
-
-[Netron Viewer](https://github.com/lutzroeder/netron) is recommended for visualizing exported models:
-
-
-
-## Exported Model Usage Examples
-
-`detect.py` runs inference on exported models:
-
-```bash
-python detect.py --weights yolov5s.pt # PyTorch
- yolov5s.torchscript # TorchScript
- yolov5s.onnx # ONNX Runtime or OpenCV DNN with dnn=True
- yolov5s_openvino_model # OpenVINO
- yolov5s.engine # TensorRT
- yolov5s.mlmodel # CoreML (macOS only)
- yolov5s_saved_model # TensorFlow SavedModel
- yolov5s.pb # TensorFlow GraphDef
- yolov5s.tflite # TensorFlow Lite
- yolov5s_edgetpu.tflite # TensorFlow Edge TPU
- yolov5s_paddle_model # PaddlePaddle
-```
-
-`val.py` runs validation on exported models:
-
-```bash
-python val.py --weights yolov5s.pt # PyTorch
- yolov5s.torchscript # TorchScript
- yolov5s.onnx # ONNX Runtime or OpenCV DNN with dnn=True
- yolov5s_openvino_model # OpenVINO
- yolov5s.engine # TensorRT
- yolov5s.mlmodel # CoreML (macOS Only)
- yolov5s_saved_model # TensorFlow SavedModel
- yolov5s.pb # TensorFlow GraphDef
- yolov5s.tflite # TensorFlow Lite
- yolov5s_edgetpu.tflite # TensorFlow Edge TPU
- yolov5s_paddle_model # PaddlePaddle
-```
-
-Use PyTorch Hub with exported YOLOv5 models:
-
-```python
-import torch
-
-# Model
-model = torch.hub.load('ultralytics/yolov5', 'custom', 'yolov5s.pt')
-model = torch.hub.load('ultralytics/yolov5', 'custom', 'yolov5s.torchscript ') # TorchScript
-model = torch.hub.load('ultralytics/yolov5', 'custom', 'yolov5s.onnx') # ONNX Runtime
-model = torch.hub.load('ultralytics/yolov5', 'custom', 'yolov5s_openvino_model') # OpenVINO
-model = torch.hub.load('ultralytics/yolov5', 'custom', 'yolov5s.engine') # TensorRT
-model = torch.hub.load('ultralytics/yolov5', 'custom', 'yolov5s.mlmodel') # CoreML (macOS Only)
-model = torch.hub.load('ultralytics/yolov5', 'custom', 'yolov5s_saved_model') # TensorFlow SavedModel
-model = torch.hub.load('ultralytics/yolov5', 'custom', 'yolov5s.pb') # TensorFlow GraphDef
-model = torch.hub.load('ultralytics/yolov5', 'custom', 'yolov5s.tflite') # TensorFlow Lite
-model = torch.hub.load('ultralytics/yolov5', 'custom', 'yolov5s_edgetpu.tflite') # TensorFlow Edge TPU
-model = torch.hub.load('ultralytics/yolov5', 'custom', 'yolov5s_paddle_model') # PaddlePaddle
-
-# Images
-img = 'https://ultralytics.com/images/zidane.jpg' # or file, Path, PIL, OpenCV, numpy, list
-
-# Inference
-results = model(img)
-
-# Results
-results.print() # or .show(), .save(), .crop(), .pandas(), etc.
-```
-
-## OpenCV DNN inference
-
-OpenCV inference with ONNX models:
-
-```bash
-python export.py --weights yolov5s.pt --include onnx
-
-python detect.py --weights yolov5s.onnx --dnn # detect
-python val.py --weights yolov5s.onnx --dnn # validate
-```
-
-## C++ Inference
-
-YOLOv5 OpenCV DNN C++ inference on exported ONNX model examples:
-
-- [https://github.com/Hexmagic/ONNX-yolov5/blob/master/src/test.cpp](https://github.com/Hexmagic/ONNX-yolov5/blob/master/src/test.cpp)
-- [https://github.com/doleron/yolov5-opencv-cpp-python](https://github.com/doleron/yolov5-opencv-cpp-python)
-
-YOLOv5 OpenVINO C++ inference examples:
-
-- [https://github.com/dacquaviva/yolov5-openvino-cpp-python](https://github.com/dacquaviva/yolov5-openvino-cpp-python)
-- [https://github.com/UNeedCryDear/yolov5-seg-opencv-dnn-cpp](https://github.com/UNeedCryDear/yolov5-seg-opencv-dnn-cpp)
-
-## TensorFlow.js Web Browser Inference
-
-- [https://aukerul-shuvo.github.io/YOLOv5_TensorFlow-JS/](https://aukerul-shuvo.github.io/YOLOv5_TensorFlow-JS/)
-
-## Supported Environments
-
-Ultralytics provides a range of ready-to-use environments, each pre-installed with essential dependencies such as [CUDA](https://developer.nvidia.com/cuda), [CUDNN](https://developer.nvidia.com/cudnn), [Python](https://www.python.org/), and [PyTorch](https://pytorch.org/), to kickstart your projects.
-
-- **Free GPU Notebooks**:
-- **Google Cloud**: [GCP Quickstart Guide](../environments/google_cloud_quickstart_tutorial.md)
-- **Amazon**: [AWS Quickstart Guide](../environments/aws_quickstart_tutorial.md)
-- **Azure**: [AzureML Quickstart Guide](../environments/azureml_quickstart_tutorial.md)
-- **Docker**: [Docker Quickstart Guide](../environments/docker_image_quickstart_tutorial.md)
-
-## Project Status
-
-
-
-This badge indicates that all [YOLOv5 GitHub Actions](https://github.com/ultralytics/yolov5/actions) Continuous Integration (CI) tests are successfully passing. These CI tests rigorously check the functionality and performance of YOLOv5 across various key aspects: [training](https://github.com/ultralytics/yolov5/blob/master/train.py), [validation](https://github.com/ultralytics/yolov5/blob/master/val.py), [inference](https://github.com/ultralytics/yolov5/blob/master/detect.py), [export](https://github.com/ultralytics/yolov5/blob/master/export.py), and [benchmarks](https://github.com/ultralytics/yolov5/blob/master/benchmarks.py). They ensure consistent and reliable operation on macOS, Windows, and Ubuntu, with tests conducted every 24 hours and upon each new commit.
diff --git a/ultralytics-main/docs/en/yolov5/tutorials/model_pruning_and_sparsity.md b/ultralytics-main/docs/en/yolov5/tutorials/model_pruning_and_sparsity.md
deleted file mode 100644
index fddd1c6..0000000
--- a/ultralytics-main/docs/en/yolov5/tutorials/model_pruning_and_sparsity.md
+++ /dev/null
@@ -1,110 +0,0 @@
----
-comments: true
-description: Improve YOLOv5 model efficiency by pruning with Ultralytics. Understand the process, conduct tests and view the impact on accuracy and sparsity. Test-maintained API environments.
-keywords: YOLOv5, YOLO, Ultralytics, model pruning, PyTorch, machine learning, deep learning, computer vision, object detection
----
-
-📚 This guide explains how to apply **pruning** to YOLOv5 🚀 models.
-
-## Before You Start
-
-Clone repo and install [requirements.txt](https://github.com/ultralytics/yolov5/blob/master/requirements.txt) in a [**Python>=3.8.0**](https://www.python.org/) environment, including [**PyTorch>=1.8**](https://pytorch.org/get-started/locally/). [Models](https://github.com/ultralytics/yolov5/tree/master/models) and [datasets](https://github.com/ultralytics/yolov5/tree/master/data) download automatically from the latest YOLOv5 [release](https://github.com/ultralytics/yolov5/releases).
-
-```bash
-git clone https://github.com/ultralytics/yolov5 # clone
-cd yolov5
-pip install -r requirements.txt # install
-```
-
-## Test Normally
-
-Before pruning we want to establish a baseline performance to compare to. This command tests YOLOv5x on COCO val2017 at image size 640 pixels. `yolov5x.pt` is the largest and most accurate model available. Other options are `yolov5s.pt`, `yolov5m.pt` and `yolov5l.pt`, or you own checkpoint from training a custom dataset `./weights/best.pt`. For details on all available models please see our README [table](https://github.com/ultralytics/yolov5#pretrained-checkpoints).
-
-```bash
-python val.py --weights yolov5x.pt --data coco.yaml --img 640 --half
-```
-
-Output:
-
-```shell
-val: data=/content/yolov5/data/coco.yaml, weights=['yolov5x.pt'], batch_size=32, imgsz=640, conf_thres=0.001, iou_thres=0.65, task=val, device=, workers=8, single_cls=False, augment=False, verbose=False, save_txt=False, save_hybrid=False, save_conf=False, save_json=True, project=runs/val, name=exp, exist_ok=False, half=True, dnn=False
-YOLOv5 🚀 v6.0-224-g4c40933 torch 1.10.0+cu111 CUDA:0 (Tesla V100-SXM2-16GB, 16160MiB)
-
-Fusing layers...
-Model Summary: 444 layers, 86705005 parameters, 0 gradients
-val: Scanning '/content/datasets/coco/val2017.cache' images and labels... 4952 found, 48 missing, 0 empty, 0 corrupt: 100% 5000/5000 [00:00, ?it/s]
- Class Images Labels P R mAP@.5 mAP@.5:.95: 100% 157/157 [01:12<00:00, 2.16it/s]
- all 5000 36335 0.732 0.628 0.683 0.496
-Speed: 0.1ms pre-process, 5.2ms inference, 1.7ms NMS per image at shape (32, 3, 640, 640) # <--- base speed
-
-Evaluating pycocotools mAP... saving runs/val/exp2/yolov5x_predictions.json...
-...
- Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.507 # <--- base mAP
- Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.689
- Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=100 ] = 0.552
- Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.345
- Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.559
- Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.652
- Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 1 ] = 0.381
- Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 10 ] = 0.630
- Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.682
- Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.526
- Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.731
- Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.829
-Results saved to runs/val/exp
-```
-
-## Test YOLOv5x on COCO (0.30 sparsity)
-
-We repeat the above test with a pruned model by using the `torch_utils.prune()` command. We update `val.py` to prune YOLOv5x to 0.3 sparsity:
-
-
-
-30% pruned output:
-
-```bash
-val: data=/content/yolov5/data/coco.yaml, weights=['yolov5x.pt'], batch_size=32, imgsz=640, conf_thres=0.001, iou_thres=0.65, task=val, device=, workers=8, single_cls=False, augment=False, verbose=False, save_txt=False, save_hybrid=False, save_conf=False, save_json=True, project=runs/val, name=exp, exist_ok=False, half=True, dnn=False
-YOLOv5 🚀 v6.0-224-g4c40933 torch 1.10.0+cu111 CUDA:0 (Tesla V100-SXM2-16GB, 16160MiB)
-
-Fusing layers...
-Model Summary: 444 layers, 86705005 parameters, 0 gradients
-Pruning model... 0.3 global sparsity
-val: Scanning '/content/datasets/coco/val2017.cache' images and labels... 4952 found, 48 missing, 0 empty, 0 corrupt: 100% 5000/5000 [00:00, ?it/s]
- Class Images Labels P R mAP@.5 mAP@.5:.95: 100% 157/157 [01:11<00:00, 2.19it/s]
- all 5000 36335 0.724 0.614 0.671 0.478
-Speed: 0.1ms pre-process, 5.2ms inference, 1.7ms NMS per image at shape (32, 3, 640, 640) # <--- prune mAP
-
-Evaluating pycocotools mAP... saving runs/val/exp3/yolov5x_predictions.json...
-...
- Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.489 # <--- prune mAP
- Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.677
- Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=100 ] = 0.537
- Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.334
- Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.542
- Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.635
- Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 1 ] = 0.370
- Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 10 ] = 0.612
- Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.664
- Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.496
- Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.722
- Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.803
-Results saved to runs/val/exp3
-```
-
-In the results we can observe that we have achieved a **sparsity of 30%** in our model after pruning, which means that 30% of the model's weight parameters in `nn.Conv2d` layers are equal to 0. **Inference time is essentially unchanged**, while the model's **AP and AR scores a slightly reduced**.
-
-## Supported Environments
-
-Ultralytics provides a range of ready-to-use environments, each pre-installed with essential dependencies such as [CUDA](https://developer.nvidia.com/cuda), [CUDNN](https://developer.nvidia.com/cudnn), [Python](https://www.python.org/), and [PyTorch](https://pytorch.org/), to kickstart your projects.
-
-- **Free GPU Notebooks**:
-- **Google Cloud**: [GCP Quickstart Guide](../environments/google_cloud_quickstart_tutorial.md)
-- **Amazon**: [AWS Quickstart Guide](../environments/aws_quickstart_tutorial.md)
-- **Azure**: [AzureML Quickstart Guide](../environments/azureml_quickstart_tutorial.md)
-- **Docker**: [Docker Quickstart Guide](../environments/docker_image_quickstart_tutorial.md)
-
-## Project Status
-
-
-
-This badge indicates that all [YOLOv5 GitHub Actions](https://github.com/ultralytics/yolov5/actions) Continuous Integration (CI) tests are successfully passing. These CI tests rigorously check the functionality and performance of YOLOv5 across various key aspects: [training](https://github.com/ultralytics/yolov5/blob/master/train.py), [validation](https://github.com/ultralytics/yolov5/blob/master/val.py), [inference](https://github.com/ultralytics/yolov5/blob/master/detect.py), [export](https://github.com/ultralytics/yolov5/blob/master/export.py), and [benchmarks](https://github.com/ultralytics/yolov5/blob/master/benchmarks.py). They ensure consistent and reliable operation on macOS, Windows, and Ubuntu, with tests conducted every 24 hours and upon each new commit.
diff --git a/ultralytics-main/docs/en/yolov5/tutorials/multi_gpu_training.md b/ultralytics-main/docs/en/yolov5/tutorials/multi_gpu_training.md
deleted file mode 100644
index 35c17fd..0000000
--- a/ultralytics-main/docs/en/yolov5/tutorials/multi_gpu_training.md
+++ /dev/null
@@ -1,190 +0,0 @@
----
-comments: true
-description: Learn how to train datasets on single or multiple GPUs using YOLOv5. Includes setup, training modes and result profiling for efficient leveraging of multiple GPUs.
-keywords: YOLOv5, multi-GPU Training, YOLOv5 training, deep learning, machine learning, object detection, Ultralytics
----
-
-📚 This guide explains how to properly use **multiple** GPUs to train a dataset with YOLOv5 🚀 on single or multiple machine(s).
-
-## Before You Start
-
-Clone repo and install [requirements.txt](https://github.com/ultralytics/yolov5/blob/master/requirements.txt) in a [**Python>=3.8.0**](https://www.python.org/) environment, including [**PyTorch>=1.8**](https://pytorch.org/get-started/locally/). [Models](https://github.com/ultralytics/yolov5/tree/master/models) and [datasets](https://github.com/ultralytics/yolov5/tree/master/data) download automatically from the latest YOLOv5 [release](https://github.com/ultralytics/yolov5/releases).
-
-```bash
-git clone https://github.com/ultralytics/yolov5 # clone
-cd yolov5
-pip install -r requirements.txt # install
-```
-
-💡 ProTip! **Docker Image** is recommended for all Multi-GPU trainings. See [Docker Quickstart Guide](https://docs.ultralytics.com/yolov5/environments/docker_image_quickstart_tutorial/)
-
-💡 ProTip! `torch.distributed.run` replaces `torch.distributed.launch` in **PyTorch>=1.9**. See [docs](https://pytorch.org/docs/stable/distributed.html) for details.
-
-## Training
-
-Select a pretrained model to start training from. Here we select [YOLOv5s](https://github.com/ultralytics/yolov5/blob/master/models/yolov5s.yaml), the smallest and fastest model available. See our README [table](https://github.com/ultralytics/yolov5#pretrained-checkpoints) for a full comparison of all models. We will train this model with Multi-GPU on the [COCO](https://github.com/ultralytics/yolov5/blob/master/data/scripts/get_coco.sh) dataset.
-
-
-
-### Single GPU
-
-```bash
-python train.py --batch 64 --data coco.yaml --weights yolov5s.pt --device 0
-```
-
-### Multi-GPU [DataParallel](https://pytorch.org/docs/stable/nn.html#torch.nn.DataParallel) Mode (⚠️ not recommended)
-
-You can increase the `device` to use Multiple GPUs in DataParallel mode.
-
-```bash
-python train.py --batch 64 --data coco.yaml --weights yolov5s.pt --device 0,1
-```
-
-This method is slow and barely speeds up training compared to using just 1 GPU.
-
-### Multi-GPU [DistributedDataParallel](https://pytorch.org/docs/stable/nn.html#torch.nn.parallel.DistributedDataParallel) Mode (✅ recommended)
-
-You will have to pass `python -m torch.distributed.run --nproc_per_node`, followed by the usual arguments.
-
-```bash
-python -m torch.distributed.run --nproc_per_node 2 train.py --batch 64 --data coco.yaml --weights yolov5s.pt --device 0,1
-```
-
-`--nproc_per_node` specifies how many GPUs you would like to use. In the example above, it is 2.
-`--batch ` is the total batch-size. It will be divided evenly to each GPU. In the example above, it is 64/2=32 per GPU.
-
-The code above will use GPUs `0... (N-1)`.
-
-
- Use specific GPUs (click to expand)
-
-You can do so by simply passing `--device` followed by your specific GPUs. For example, in the code below, we will use GPUs `2,3`.
-
-```bash
-python -m torch.distributed.run --nproc_per_node 2 train.py --batch 64 --data coco.yaml --cfg yolov5s.yaml --weights '' --device 2,3
-```
-
-
-
-
- Use SyncBatchNorm (click to expand)
-
-[SyncBatchNorm](https://pytorch.org/docs/master/generated/torch.nn.SyncBatchNorm.html) could increase accuracy for multiple gpu training, however, it will slow down training by a significant factor. It is **only** available for Multiple GPU DistributedDataParallel training.
-
-It is best used when the batch-size on **each** GPU is small (<= 8).
-
-To use SyncBatchNorm, simple pass `--sync-bn` to the command like below,
-
-```bash
-python -m torch.distributed.run --nproc_per_node 2 train.py --batch 64 --data coco.yaml --cfg yolov5s.yaml --weights '' --sync-bn
-```
-
-
-
-
- Use Multiple machines (click to expand)
-
-This is **only** available for Multiple GPU DistributedDataParallel training.
-
-Before we continue, make sure the files on all machines are the same, dataset, codebase, etc. Afterward, make sure the machines can communicate to each other.
-
-You will have to choose a master machine(the machine that the others will talk to). Note down its address(`master_addr`) and choose a port(`master_port`). I will use `master_addr = 192.168.1.1` and `master_port = 1234` for the example below.
-
-To use it, you can do as the following,
-
-```bash
-# On master machine 0
-python -m torch.distributed.run --nproc_per_node G --nnodes N --node_rank 0 --master_addr "192.168.1.1" --master_port 1234 train.py --batch 64 --data coco.yaml --cfg yolov5s.yaml --weights ''
-```
-
-```bash
-# On machine R
-python -m torch.distributed.run --nproc_per_node G --nnodes N --node_rank R --master_addr "192.168.1.1" --master_port 1234 train.py --batch 64 --data coco.yaml --cfg yolov5s.yaml --weights ''
-```
-
-where `G` is number of GPU per machine, `N` is the number of machines, and `R` is the machine number from `0...(N-1)`. Let's say I have two machines with two GPUs each, it would be `G = 2` , `N = 2`, and `R = 1` for the above.
-
-Training will not start until all `N` machines are connected. Output will only be shown on master machine!
-
-
-
-### Notes
-
-- Windows support is untested, Linux is recommended.
-- `--batch ` must be a multiple of the number of GPUs.
-- GPU 0 will take slightly more memory than the other GPUs as it maintains EMA and is responsible for checkpointing etc.
-- If you get `RuntimeError: Address already in use`, it could be because you are running multiple trainings at a time. To fix this, simply use a different port number by adding `--master_port` like below,
-
-```bash
-python -m torch.distributed.run --master_port 1234 --nproc_per_node 2 ...
-```
-
-## Results
-
-DDP profiling results on an [AWS EC2 P4d instance](https://docs.ultralytics.com/yolov5/environments/aws_quickstart_tutorial/) with 8x A100 SXM4-40GB for YOLOv5l for 1 COCO epoch.
-
-
- Profiling code
-
-```bash
-# prepare
-t=ultralytics/yolov5:latest && sudo docker pull $t && sudo docker run -it --ipc=host --gpus all -v "$(pwd)"/coco:/usr/src/coco $t
-pip3 install torch==1.9.0+cu111 torchvision==0.10.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html
-cd .. && rm -rf app && git clone https://github.com/ultralytics/yolov5 -b master app && cd app
-cp data/coco.yaml data/coco_profile.yaml
-
-# profile
-python train.py --batch-size 16 --data coco_profile.yaml --weights yolov5l.pt --epochs 1 --device 0
-python -m torch.distributed.run --nproc_per_node 2 train.py --batch-size 32 --data coco_profile.yaml --weights yolov5l.pt --epochs 1 --device 0,1
-python -m torch.distributed.run --nproc_per_node 4 train.py --batch-size 64 --data coco_profile.yaml --weights yolov5l.pt --epochs 1 --device 0,1,2,3
-python -m torch.distributed.run --nproc_per_node 8 train.py --batch-size 128 --data coco_profile.yaml --weights yolov5l.pt --epochs 1 --device 0,1,2,3,4,5,6,7
-```
-
-
-
-| GPUs A100 | batch-size | CUDA_mem device0 (G) | COCO train | COCO val |
-|--------------|------------|------------------------------|--------------------|------------------|
-| 1x | 16 | 26GB | 20:39 | 0:55 |
-| 2x | 32 | 26GB | 11:43 | 0:57 |
-| 4x | 64 | 26GB | 5:57 | 0:55 |
-| 8x | 128 | 26GB | 3:09 | 0:57 |
-
-## FAQ
-
-If an error occurs, please read the checklist below first! (It could save your time)
-
-
- Checklist (click to expand)
-
-
-
Have you properly read this post?
-
Have you tried to re-clone the codebase? The code changes daily.
-
Have you tried to search for your error? Someone may have already encountered it in this repo or in another and have the solution.
-
Have you installed all the requirements listed on top (including the correct Python and Pytorch versions)?
-
Have you tried in other environments listed in the "Environments" section below?
-
Have you tried with another dataset like coco128 or coco2017? It will make it easier to find the root cause.
-
-
-If you went through all the above, feel free to raise an Issue by giving as much detail as possible following the template.
-
-
-
-## Supported Environments
-
-Ultralytics provides a range of ready-to-use environments, each pre-installed with essential dependencies such as [CUDA](https://developer.nvidia.com/cuda), [CUDNN](https://developer.nvidia.com/cudnn), [Python](https://www.python.org/), and [PyTorch](https://pytorch.org/), to kickstart your projects.
-
-- **Free GPU Notebooks**:
-- **Google Cloud**: [GCP Quickstart Guide](../environments/google_cloud_quickstart_tutorial.md)
-- **Amazon**: [AWS Quickstart Guide](../environments/aws_quickstart_tutorial.md)
-- **Azure**: [AzureML Quickstart Guide](../environments/azureml_quickstart_tutorial.md)
-- **Docker**: [Docker Quickstart Guide](../environments/docker_image_quickstart_tutorial.md)
-
-## Project Status
-
-
-
-This badge indicates that all [YOLOv5 GitHub Actions](https://github.com/ultralytics/yolov5/actions) Continuous Integration (CI) tests are successfully passing. These CI tests rigorously check the functionality and performance of YOLOv5 across various key aspects: [training](https://github.com/ultralytics/yolov5/blob/master/train.py), [validation](https://github.com/ultralytics/yolov5/blob/master/val.py), [inference](https://github.com/ultralytics/yolov5/blob/master/detect.py), [export](https://github.com/ultralytics/yolov5/blob/master/export.py), and [benchmarks](https://github.com/ultralytics/yolov5/blob/master/benchmarks.py). They ensure consistent and reliable operation on macOS, Windows, and Ubuntu, with tests conducted every 24 hours and upon each new commit.
-
-## Credits
-
-We would like to thank @MagicFrogSJTU, who did all the heavy lifting, and @glenn-jocher for guiding us along the way.
diff --git a/ultralytics-main/docs/en/yolov5/tutorials/neural_magic_pruning_quantization.md b/ultralytics-main/docs/en/yolov5/tutorials/neural_magic_pruning_quantization.md
deleted file mode 100644
index 37c89c1..0000000
--- a/ultralytics-main/docs/en/yolov5/tutorials/neural_magic_pruning_quantization.md
+++ /dev/null
@@ -1,264 +0,0 @@
----
-comments: true
-description: Explore how to achieve exceptional AI performance with DeepSparse's incredible inference speed. Discover how to deploy YOLOv5, and learn about model sparsification and fine-tuning with SparseML.
-keywords: YOLOv5, DeepSparse, Ultralytics, Neural Magic, sparsification, inference runtime, deep learning, deployment, model fine-tuning, SparseML, AI performance, GPU-class performance
----
-
-
-
-Welcome to software-delivered AI.
-
-This guide explains how to deploy YOLOv5 with Neural Magic's DeepSparse.
-
-DeepSparse is an inference runtime with exceptional performance on CPUs. For instance, compared to the ONNX Runtime baseline, DeepSparse offers a 5.8x speed-up for YOLOv5s, running on the same machine!
-
-
-
-
-
-For the first time, your deep learning workloads can meet the performance demands of production without the complexity and costs of hardware accelerators. Put simply, DeepSparse gives you the performance of GPUs and the simplicity of software:
-
-- **Flexible Deployments**: Run consistently across cloud, data center, and edge with any hardware provider from Intel to AMD to ARM
-- **Infinite Scalability**: Scale vertically to 100s of cores, out with standard Kubernetes, or fully-abstracted with Serverless
-- **Easy Integration**: Clean APIs for integrating your model into an application and monitoring it in production
-
-### How Does DeepSparse Achieve GPU-Class Performance?
-
-DeepSparse takes advantage of model sparsity to gain its performance speedup.
-
-Sparsification through pruning and quantization is a broadly studied technique, allowing order-of-magnitude reductions in the size and compute needed to execute a network, while maintaining high accuracy. DeepSparse is sparsity-aware, meaning it skips the zeroed out parameters, shrinking amount of compute in a forward pass. Since the sparse computation is now memory bound, DeepSparse executes the network depth-wise, breaking the problem into Tensor Columns, vertical stripes of computation that fit in cache.
-
-
-
-
-
-Sparse networks with compressed computation, executed depth-wise in cache, allows DeepSparse to deliver GPU-class performance on CPUs!
-
-### How Do I Create A Sparse Version of YOLOv5 Trained on My Data?
-
-Neural Magic's open-source model repository, SparseZoo, contains pre-sparsified checkpoints of each YOLOv5 model. Using SparseML, which is integrated with Ultralytics, you can fine-tune a sparse checkpoint onto your data with a single CLI command.
-
-[Checkout Neural Magic's YOLOv5 documentation for more details](https://docs.neuralmagic.com/computer-vision/object-detection/).
-
-## DeepSparse Usage
-
-We will walk through an example benchmarking and deploying a sparse version of YOLOv5s with DeepSparse.
-
-### Install DeepSparse
-
-Run the following to install DeepSparse. We recommend you use a virtual environment with Python.
-
-```bash
-pip install "deepsparse[server,yolo,onnxruntime]"
-```
-
-### Collect an ONNX File
-
-DeepSparse accepts a model in the ONNX format, passed either as:
-
-- A SparseZoo stub which identifies an ONNX file in the SparseZoo
-- A local path to an ONNX model in a filesystem
-
-The examples below use the standard dense and pruned-quantized YOLOv5s checkpoints, identified by the following SparseZoo stubs:
-
-```bash
-zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/base-none
-zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/pruned65_quant-none
-```
-
-### Deploy a Model
-
-DeepSparse offers convenient APIs for integrating your model into an application.
-
-To try the deployment examples below, pull down a sample image and save it as `basilica.jpg` with the following:
-
-```bash
-wget -O basilica.jpg https://raw.githubusercontent.com/neuralmagic/deepsparse/main/src/deepsparse/yolo/sample_images/basilica.jpg
-```
-
-#### Python API
-
-`Pipelines` wrap pre-processing and output post-processing around the runtime, providing a clean interface for adding DeepSparse to an application. The DeepSparse-Ultralytics integration includes an out-of-the-box `Pipeline` that accepts raw images and outputs the bounding boxes.
-
-Create a `Pipeline` and run inference:
-
-```python
-from deepsparse import Pipeline
-
-# list of images in local filesystem
-images = ["basilica.jpg"]
-
-# create Pipeline
-model_stub = "zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/pruned65_quant-none"
-yolo_pipeline = Pipeline.create(
- task="yolo",
- model_path=model_stub,
-)
-
-# run inference on images, receive bounding boxes + classes
-pipeline_outputs = yolo_pipeline(images=images, iou_thres=0.6, conf_thres=0.001)
-print(pipeline_outputs)
-```
-
-If you are running in the cloud, you may get an error that open-cv cannot find `libGL.so.1`. Running the following on Ubuntu installs it:
-
-```
-apt-get install libgl1
-```
-
-#### HTTP Server
-
-DeepSparse Server runs on top of the popular FastAPI web framework and Uvicorn web server. With just a single CLI command, you can easily setup a model service endpoint with DeepSparse. The Server supports any Pipeline from DeepSparse, including object detection with YOLOv5, enabling you to send raw images to the endpoint and receive the bounding boxes.
-
-Spin up the Server with the pruned-quantized YOLOv5s:
-
-```bash
-deepsparse.server \
- --task yolo \
- --model_path zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/pruned65_quant-none
-```
-
-An example request, using Python's `requests` package:
-
-```python
-import requests, json
-
-# list of images for inference (local files on client side)
-path = ['basilica.jpg']
-files = [('request', open(img, 'rb')) for img in path]
-
-# send request over HTTP to /predict/from_files endpoint
-url = 'http://0.0.0.0:5543/predict/from_files'
-resp = requests.post(url=url, files=files)
-
-# response is returned in JSON
-annotations = json.loads(resp.text) # dictionary of annotation results
-bounding_boxes = annotations["boxes"]
-labels = annotations["labels"]
-```
-
-#### Annotate CLI
-
-You can also use the annotate command to have the engine save an annotated photo on disk. Try --source 0 to annotate your live webcam feed!
-
-```bash
-deepsparse.object_detection.annotate --model_filepath zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/pruned65_quant-none --source basilica.jpg
-```
-
-Running the above command will create an `annotation-results` folder and save the annotated image inside.
-
-
-
-
-
-## Benchmarking Performance
-
-We will compare DeepSparse's throughput to ONNX Runtime's throughput on YOLOv5s, using DeepSparse's benchmarking script.
-
-The benchmarks were run on an AWS `c6i.8xlarge` instance (16 cores).
-
-### Batch 32 Performance Comparison
-
-#### ONNX Runtime Baseline
-
-At batch 32, ONNX Runtime achieves 42 images/sec with the standard dense YOLOv5s:
-
-```bash
-deepsparse.benchmark zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/base-none -s sync -b 32 -nstreams 1 -e onnxruntime
-
-> Original Model Path: zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/base-none
-> Batch Size: 32
-> Scenario: sync
-> Throughput (items/sec): 41.9025
-```
-
-#### DeepSparse Dense Performance
-
-While DeepSparse offers its best performance with optimized sparse models, it also performs well with the standard dense YOLOv5s.
-
-At batch 32, DeepSparse achieves 70 images/sec with the standard dense YOLOv5s, a **1.7x performance improvement over ORT**!
-
-```bash
-deepsparse.benchmark zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/base-none -s sync -b 32 -nstreams 1
-
-> Original Model Path: zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/base-none
-> Batch Size: 32
-> Scenario: sync
-> Throughput (items/sec): 69.5546
-```
-
-#### DeepSparse Sparse Performance
-
-When sparsity is applied to the model, DeepSparse's performance gains over ONNX Runtime is even stronger.
-
-At batch 32, DeepSparse achieves 241 images/sec with the pruned-quantized YOLOv5s, a **5.8x performance improvement over ORT**!
-
-```bash
-deepsparse.benchmark zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/pruned65_quant-none -s sync -b 32 -nstreams 1
-
-> Original Model Path: zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/pruned65_quant-none
-> Batch Size: 32
-> Scenario: sync
-> Throughput (items/sec): 241.2452
-```
-
-### Batch 1 Performance Comparison
-
-DeepSparse is also able to gain a speed-up over ONNX Runtime for the latency-sensitive, batch 1 scenario.
-
-#### ONNX Runtime Baseline
-
-At batch 1, ONNX Runtime achieves 48 images/sec with the standard, dense YOLOv5s.
-
-```bash
-deepsparse.benchmark zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/base-none -s sync -b 1 -nstreams 1 -e onnxruntime
-
-> Original Model Path: zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/base-none
-> Batch Size: 1
-> Scenario: sync
-> Throughput (items/sec): 48.0921
-```
-
-#### DeepSparse Sparse Performance
-
-At batch 1, DeepSparse achieves 135 items/sec with a pruned-quantized YOLOv5s, **a 2.8x performance gain over ONNX Runtime!**
-
-```bash
-deepsparse.benchmark zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/pruned65_quant-none -s sync -b 1 -nstreams 1
-
-> Original Model Path: zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/pruned65_quant-none
-> Batch Size: 1
-> Scenario: sync
-> Throughput (items/sec): 134.9468
-```
-
-Since `c6i.8xlarge` instances have VNNI instructions, DeepSparse's throughput can be pushed further if weights are pruned in blocks of 4.
-
-At batch 1, DeepSparse achieves 180 items/sec with a 4-block pruned-quantized YOLOv5s, a **3.7x performance gain over ONNX Runtime!**
-
-```bash
-deepsparse.benchmark zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/pruned35_quant-none-vnni -s sync -b 1 -nstreams 1
-
-> Original Model Path: zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/pruned35_quant-none-vnni
-> Batch Size: 1
-> Scenario: sync
-> Throughput (items/sec): 179.7375
-```
-
-## Get Started With DeepSparse
-
-**Research or Testing?** DeepSparse Community is free for research and testing. Get started with our [Documentation](https://docs.neuralmagic.com/).
diff --git a/ultralytics-main/docs/en/yolov5/tutorials/pytorch_hub_model_loading.md b/ultralytics-main/docs/en/yolov5/tutorials/pytorch_hub_model_loading.md
deleted file mode 100644
index 4cc828d..0000000
--- a/ultralytics-main/docs/en/yolov5/tutorials/pytorch_hub_model_loading.md
+++ /dev/null
@@ -1,372 +0,0 @@
----
-comments: true
-description: Detailed guide on loading YOLOv5 from PyTorch Hub. Includes examples & tips on inference settings, multi-GPU inference, training and more.
-keywords: Ultralytics, YOLOv5, PyTorch, loading YOLOv5, PyTorch Hub, inference, multi-GPU inference, training
----
-
-📚 This guide explains how to load YOLOv5 🚀 from PyTorch Hub at [https://pytorch.org/hub/ultralytics_yolov5](https://pytorch.org/hub/ultralytics_yolov5).
-
-## Before You Start
-
-Install [requirements.txt](https://github.com/ultralytics/yolov5/blob/master/requirements.txt) in a [**Python>=3.8.0**](https://www.python.org/) environment, including [**PyTorch>=1.8**](https://pytorch.org/get-started/locally/). [Models](https://github.com/ultralytics/yolov5/tree/master/models) and [datasets](https://github.com/ultralytics/yolov5/tree/master/data) download automatically from the latest YOLOv5 [release](https://github.com/ultralytics/yolov5/releases).
-
-```bash
-pip install -r https://raw.githubusercontent.com/ultralytics/yolov5/master/requirements.txt
-```
-
-💡 ProTip: Cloning [https://github.com/ultralytics/yolov5](https://github.com/ultralytics/yolov5) is **not** required 😃
-
-## Load YOLOv5 with PyTorch Hub
-
-### Simple Example
-
-This example loads a pretrained YOLOv5s model from PyTorch Hub as `model` and passes an image for inference. `'yolov5s'` is the lightest and fastest YOLOv5 model. For details on all available models please see the [README](https://github.com/ultralytics/yolov5#pretrained-checkpoints).
-
-```python
-import torch
-
-# Model
-model = torch.hub.load('ultralytics/yolov5', 'yolov5s')
-
-# Image
-im = 'https://ultralytics.com/images/zidane.jpg'
-
-# Inference
-results = model(im)
-
-results.pandas().xyxy[0]
-# xmin ymin xmax ymax confidence class name
-# 0 749.50 43.50 1148.0 704.5 0.874023 0 person
-# 1 433.50 433.50 517.5 714.5 0.687988 27 tie
-# 2 114.75 195.75 1095.0 708.0 0.624512 0 person
-# 3 986.00 304.00 1028.0 420.0 0.286865 27 tie
-```
-
-### Detailed Example
-
-This example shows **batched inference** with **PIL** and **OpenCV** image sources. `results` can be **printed** to console, **saved** to `runs/hub`, **showed** to screen on supported environments, and returned as **tensors** or **pandas** dataframes.
-
-```python
-import cv2
-import torch
-from PIL import Image
-
-# Model
-model = torch.hub.load('ultralytics/yolov5', 'yolov5s')
-
-# Images
-for f in 'zidane.jpg', 'bus.jpg':
- torch.hub.download_url_to_file('https://ultralytics.com/images/' + f, f) # download 2 images
-im1 = Image.open('zidane.jpg') # PIL image
-im2 = cv2.imread('bus.jpg')[..., ::-1] # OpenCV image (BGR to RGB)
-
-# Inference
-results = model([im1, im2], size=640) # batch of images
-
-# Results
-results.print()
-results.save() # or .show()
-
-results.xyxy[0] # im1 predictions (tensor)
-results.pandas().xyxy[0] # im1 predictions (pandas)
-# xmin ymin xmax ymax confidence class name
-# 0 749.50 43.50 1148.0 704.5 0.874023 0 person
-# 1 433.50 433.50 517.5 714.5 0.687988 27 tie
-# 2 114.75 195.75 1095.0 708.0 0.624512 0 person
-# 3 986.00 304.00 1028.0 420.0 0.286865 27 tie
-```
-
-
-
-
-For all inference options see YOLOv5 `AutoShape()` forward [method](https://github.com/ultralytics/yolov5/blob/30e4c4f09297b67afedf8b2bcd851833ddc9dead/models/common.py#L243-L252).
-
-### Inference Settings
-
-YOLOv5 models contain various inference attributes such as **confidence threshold**, **IoU threshold**, etc. which can be set by:
-
-```python
-model.conf = 0.25 # NMS confidence threshold
-iou = 0.45 # NMS IoU threshold
-agnostic = False # NMS class-agnostic
-multi_label = False # NMS multiple labels per box
-classes = None # (optional list) filter by class, i.e. = [0, 15, 16] for COCO persons, cats and dogs
-max_det = 1000 # maximum number of detections per image
-amp = False # Automatic Mixed Precision (AMP) inference
-
-results = model(im, size=320) # custom inference size
-```
-
-### Device
-
-Models can be transferred to any device after creation:
-
-```python
-model.cpu() # CPU
-model.cuda() # GPU
-model.to(device) # i.e. device=torch.device(0)
-```
-
-Models can also be created directly on any `device`:
-
-```python
-model = torch.hub.load('ultralytics/yolov5', 'yolov5s', device='cpu') # load on CPU
-```
-
-💡 ProTip: Input images are automatically transferred to the correct model device before inference.
-
-### Silence Outputs
-
-Models can be loaded silently with `_verbose=False`:
-
-```python
-model = torch.hub.load('ultralytics/yolov5', 'yolov5s', _verbose=False) # load silently
-```
-
-### Input Channels
-
-To load a pretrained YOLOv5s model with 4 input channels rather than the default 3:
-
-```python
-model = torch.hub.load('ultralytics/yolov5', 'yolov5s', channels=4)
-```
-
-In this case the model will be composed of pretrained weights **except for** the very first input layer, which is no longer the same shape as the pretrained input layer. The input layer will remain initialized by random weights.
-
-### Number of Classes
-
-To load a pretrained YOLOv5s model with 10 output classes rather than the default 80:
-
-```python
-model = torch.hub.load('ultralytics/yolov5', 'yolov5s', classes=10)
-```
-
-In this case the model will be composed of pretrained weights **except for** the output layers, which are no longer the same shape as the pretrained output layers. The output layers will remain initialized by random weights.
-
-### Force Reload
-
-If you run into problems with the above steps, setting `force_reload=True` may help by discarding the existing cache and force a fresh download of the latest YOLOv5 version from PyTorch Hub.
-
-```python
-model = torch.hub.load('ultralytics/yolov5', 'yolov5s', force_reload=True) # force reload
-```
-
-### Screenshot Inference
-
-To run inference on your desktop screen:
-
-```python
-import torch
-from PIL import ImageGrab
-
-# Model
-model = torch.hub.load('ultralytics/yolov5', 'yolov5s')
-
-# Image
-im = ImageGrab.grab() # take a screenshot
-
-# Inference
-results = model(im)
-```
-
-### Multi-GPU Inference
-
-YOLOv5 models can be loaded to multiple GPUs in parallel with threaded inference:
-
-```python
-import torch
-import threading
-
-
-def run(model, im):
- results = model(im)
- results.save()
-
-
-# Models
-model0 = torch.hub.load('ultralytics/yolov5', 'yolov5s', device=0)
-model1 = torch.hub.load('ultralytics/yolov5', 'yolov5s', device=1)
-
-# Inference
-threading.Thread(target=run, args=[model0, 'https://ultralytics.com/images/zidane.jpg'], daemon=True).start()
-threading.Thread(target=run, args=[model1, 'https://ultralytics.com/images/bus.jpg'], daemon=True).start()
-```
-
-### Training
-
-To load a YOLOv5 model for training rather than inference, set `autoshape=False`. To load a model with randomly initialized weights (to train from scratch) use `pretrained=False`. You must provide your own training script in this case. Alternatively see our YOLOv5 [Train Custom Data Tutorial](https://docs.ultralytics.com/yolov5/tutorials/train_custom_data) for model training.
-
-```python
-import torch
-
-model = torch.hub.load('ultralytics/yolov5', 'yolov5s', autoshape=False) # load pretrained
-model = torch.hub.load('ultralytics/yolov5', 'yolov5s', autoshape=False, pretrained=False) # load scratch
-```
-
-### Base64 Results
-
-For use with API services. See https://github.com/ultralytics/yolov5/pull/2291 and [Flask REST API](https://github.com/ultralytics/yolov5/tree/master/utils/flask_rest_api) example for details.
-
-```python
-results = model(im) # inference
-
-results.ims # array of original images (as np array) passed to model for inference
-results.render() # updates results.ims with boxes and labels
-for im in results.ims:
- buffered = BytesIO()
- im_base64 = Image.fromarray(im)
- im_base64.save(buffered, format="JPEG")
- print(base64.b64encode(buffered.getvalue()).decode('utf-8')) # base64 encoded image with results
-```
-
-### Cropped Results
-
-Results can be returned and saved as detection crops:
-
-```python
-results = model(im) # inference
-crops = results.crop(save=True) # cropped detections dictionary
-```
-
-### Pandas Results
-
-Results can be returned as [Pandas DataFrames](https://pandas.pydata.org/):
-
-```python
-results = model(im) # inference
-results.pandas().xyxy[0] # Pandas DataFrame
-```
-
-
- Pandas Output (click to expand)
-
-```python
-print(results.pandas().xyxy[0])
-# xmin ymin xmax ymax confidence class name
-# 0 749.50 43.50 1148.0 704.5 0.874023 0 person
-# 1 433.50 433.50 517.5 714.5 0.687988 27 tie
-# 2 114.75 195.75 1095.0 708.0 0.624512 0 person
-# 3 986.00 304.00 1028.0 420.0 0.286865 27 tie
-```
-
-
-
-### Sorted Results
-
-Results can be sorted by column, i.e. to sort license plate digit detection left-to-right (x-axis):
-
-```python
-results = model(im) # inference
-results.pandas().xyxy[0].sort_values('xmin') # sorted left-right
-```
-
-### Box-Cropped Results
-
-Results can be returned and saved as detection crops:
-
-```python
-results = model(im) # inference
-crops = results.crop(save=True) # cropped detections dictionary
-```
-
-### JSON Results
-
-Results can be returned in JSON format once converted to `.pandas()` dataframes using the `.to_json()` method. The JSON format can be modified using the `orient` argument. See pandas `.to_json()` [documentation](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_json.html) for details.
-
-```python
-results = model(ims) # inference
-results.pandas().xyxy[0].to_json(orient="records") # JSON img1 predictions
-```
-
-
- JSON Output (click to expand)
-
-```json
-[
- {
- "xmin": 749.5,
- "ymin": 43.5,
- "xmax": 1148.0,
- "ymax": 704.5,
- "confidence": 0.8740234375,
- "class": 0,
- "name": "person"
- },
- {
- "xmin": 433.5,
- "ymin": 433.5,
- "xmax": 517.5,
- "ymax": 714.5,
- "confidence": 0.6879882812,
- "class": 27,
- "name": "tie"
- },
- {
- "xmin": 115.25,
- "ymin": 195.75,
- "xmax": 1096.0,
- "ymax": 708.0,
- "confidence": 0.6254882812,
- "class": 0,
- "name": "person"
- },
- {
- "xmin": 986.0,
- "ymin": 304.0,
- "xmax": 1028.0,
- "ymax": 420.0,
- "confidence": 0.2873535156,
- "class": 27,
- "name": "tie"
- }
-]
-```
-
-
-
-## Custom Models
-
-This example loads a custom 20-class [VOC](https://github.com/ultralytics/yolov5/blob/master/data/VOC.yaml)-trained YOLOv5s model `'best.pt'` with PyTorch Hub.
-
-```python
-import torch
-
-model = torch.hub.load('ultralytics/yolov5', 'custom', path='path/to/best.pt') # local model
-model = torch.hub.load('path/to/yolov5', 'custom', path='path/to/best.pt', source='local') # local repo
-```
-
-## TensorRT, ONNX and OpenVINO Models
-
-PyTorch Hub supports inference on most YOLOv5 export formats, including custom trained models. See [TFLite, ONNX, CoreML, TensorRT Export tutorial](https://docs.ultralytics.com/yolov5/tutorials/model_export) for details on exporting models.
-
-💡 ProTip: **TensorRT** may be up to 2-5X faster than PyTorch on [**GPU benchmarks**](https://github.com/ultralytics/yolov5/pull/6963)
-💡 ProTip: **ONNX** and **OpenVINO** may be up to 2-3X faster than PyTorch on [**CPU benchmarks**](https://github.com/ultralytics/yolov5/pull/6613)
-
-```python
-import torch
-
-model = torch.hub.load('ultralytics/yolov5', 'custom', path='yolov5s.pt') # PyTorch
-model = torch.hub.load('ultralytics/yolov5', 'custom', path='yolov5s.torchscript') # TorchScript
-model = torch.hub.load('ultralytics/yolov5', 'custom', path='yolov5s.onnx') # ONNX
-model = torch.hub.load('ultralytics/yolov5', 'custom', path='yolov5s_openvino_model/') # OpenVINO
-model = torch.hub.load('ultralytics/yolov5', 'custom', path='yolov5s.engine') # TensorRT
-model = torch.hub.load('ultralytics/yolov5', 'custom', path='yolov5s.mlmodel') # CoreML (macOS-only)
-model = torch.hub.load('ultralytics/yolov5', 'custom', path='yolov5s.tflite') # TFLite
-model = torch.hub.load('ultralytics/yolov5', 'custom', path='yolov5s_paddle_model/') # PaddlePaddle
-```
-
-## Supported Environments
-
-Ultralytics provides a range of ready-to-use environments, each pre-installed with essential dependencies such as [CUDA](https://developer.nvidia.com/cuda), [CUDNN](https://developer.nvidia.com/cudnn), [Python](https://www.python.org/), and [PyTorch](https://pytorch.org/), to kickstart your projects.
-
-- **Free GPU Notebooks**:
-- **Google Cloud**: [GCP Quickstart Guide](../environments/google_cloud_quickstart_tutorial.md)
-- **Amazon**: [AWS Quickstart Guide](../environments/aws_quickstart_tutorial.md)
-- **Azure**: [AzureML Quickstart Guide](../environments/azureml_quickstart_tutorial.md)
-- **Docker**: [Docker Quickstart Guide](../environments/docker_image_quickstart_tutorial.md)
-
-## Project Status
-
-
-
-This badge indicates that all [YOLOv5 GitHub Actions](https://github.com/ultralytics/yolov5/actions) Continuous Integration (CI) tests are successfully passing. These CI tests rigorously check the functionality and performance of YOLOv5 across various key aspects: [training](https://github.com/ultralytics/yolov5/blob/master/train.py), [validation](https://github.com/ultralytics/yolov5/blob/master/val.py), [inference](https://github.com/ultralytics/yolov5/blob/master/detect.py), [export](https://github.com/ultralytics/yolov5/blob/master/export.py), and [benchmarks](https://github.com/ultralytics/yolov5/blob/master/benchmarks.py). They ensure consistent and reliable operation on macOS, Windows, and Ubuntu, with tests conducted every 24 hours and upon each new commit.
diff --git a/ultralytics-main/docs/en/yolov5/tutorials/roboflow_datasets_integration.md b/ultralytics-main/docs/en/yolov5/tutorials/roboflow_datasets_integration.md
deleted file mode 100644
index c3a83be..0000000
--- a/ultralytics-main/docs/en/yolov5/tutorials/roboflow_datasets_integration.md
+++ /dev/null
@@ -1,73 +0,0 @@
----
-comments: true
-description: Learn how to use Roboflow for organizing, labelling, preparing, and hosting your datasets for YOLOv5 models. Enhance your model deployments with our platform.
-keywords: Ultralytics, YOLOv5, Roboflow, data organization, data labelling, data preparation, model deployment, active learning, machine learning pipeline
----
-
-# Roboflow Datasets
-
-You can now use Roboflow to organize, label, prepare, version, and host your datasets for training YOLOv5 🚀 models. Roboflow is free to use with YOLOv5 if you make your workspace public.
-
-!!! Question "Licensing"
-
- Ultralytics offers two licensing options:
-
- - The [AGPL-3.0 License](https://github.com/ultralytics/ultralytics/blob/main/LICENSE), an [OSI-approved](https://opensource.org/licenses/) open-source license ideal for students and enthusiasts.
- - The [Enterprise License](https://ultralytics.com/license) for businesses seeking to incorporate our AI models into their products and services.
-
- For more details see [Ultralytics Licensing](https://ultralytics.com/license).
-
-## Upload
-
-You can upload your data to Roboflow via [web UI](https://docs.roboflow.com/adding-data), [REST API](https://docs.roboflow.com/adding-data/upload-api), or [Python](https://docs.roboflow.com/python).
-
-## Labeling
-
-After uploading data to Roboflow, you can label your data and review previous labels.
-
-[![Roboflow Annotate](https://roboflow-darknet.s3.us-east-2.amazonaws.com/roboflow-annotate.gif)](https://roboflow.com/annotate)
-
-## Versioning
-
-You can make versions of your dataset with different preprocessing and offline augmentation options. YOLOv5 does online augmentations natively, so be intentional when layering Roboflow's offline augmentations on top.
-
-![Roboflow Preprocessing](https://roboflow-darknet.s3.us-east-2.amazonaws.com/robolfow-preprocessing.png)
-
-## Exporting Data
-
-You can download your data in YOLOv5 format to quickly begin training.
-
-```
-from roboflow import Roboflow
-rf = Roboflow(api_key="YOUR API KEY HERE")
-project = rf.workspace().project("YOUR PROJECT")
-dataset = project.version("YOUR VERSION").download("yolov5")
-```
-
-## Custom Training
-
-We have released a custom training tutorial demonstrating all of the above capabilities. You can access the code here:
-
-[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/roboflow-ai/yolov5-custom-training-tutorial/blob/main/yolov5-custom-training.ipynb)
-
-## Active Learning
-
-The real world is messy and your model will invariably encounter situations your dataset didn't anticipate. Using [active learning](https://blog.roboflow.com/what-is-active-learning/) is an important strategy to iteratively improve your dataset and model. With the Roboflow and YOLOv5 integration, you can quickly make improvements on your model deployments by using a battle tested machine learning pipeline.
-
-
-
-## Supported Environments
-
-Ultralytics provides a range of ready-to-use environments, each pre-installed with essential dependencies such as [CUDA](https://developer.nvidia.com/cuda), [CUDNN](https://developer.nvidia.com/cudnn), [Python](https://www.python.org/), and [PyTorch](https://pytorch.org/), to kickstart your projects.
-
-- **Free GPU Notebooks**:
-- **Google Cloud**: [GCP Quickstart Guide](../environments/google_cloud_quickstart_tutorial.md)
-- **Amazon**: [AWS Quickstart Guide](../environments/aws_quickstart_tutorial.md)
-- **Azure**: [AzureML Quickstart Guide](../environments/azureml_quickstart_tutorial.md)
-- **Docker**: [Docker Quickstart Guide](../environments/docker_image_quickstart_tutorial.md)
-
-## Project Status
-
-
-
-This badge indicates that all [YOLOv5 GitHub Actions](https://github.com/ultralytics/yolov5/actions) Continuous Integration (CI) tests are successfully passing. These CI tests rigorously check the functionality and performance of YOLOv5 across various key aspects: [training](https://github.com/ultralytics/yolov5/blob/master/train.py), [validation](https://github.com/ultralytics/yolov5/blob/master/val.py), [inference](https://github.com/ultralytics/yolov5/blob/master/detect.py), [export](https://github.com/ultralytics/yolov5/blob/master/export.py), and [benchmarks](https://github.com/ultralytics/yolov5/blob/master/benchmarks.py). They ensure consistent and reliable operation on macOS, Windows, and Ubuntu, with tests conducted every 24 hours and upon each new commit.
diff --git a/ultralytics-main/docs/en/yolov5/tutorials/running_on_jetson_nano.md b/ultralytics-main/docs/en/yolov5/tutorials/running_on_jetson_nano.md
deleted file mode 100644
index 8db446c..0000000
--- a/ultralytics-main/docs/en/yolov5/tutorials/running_on_jetson_nano.md
+++ /dev/null
@@ -1,319 +0,0 @@
----
-comments: true
-description: Detailed guide on deploying trained models on NVIDIA Jetson using TensorRT and DeepStream SDK. Optimize the inference performance on Jetson with Ultralytics.
-keywords: TensorRT, NVIDIA Jetson, DeepStream SDK, deployment, Ultralytics, YOLO, Machine Learning, AI, Deep Learning, model optimization, inference performance
----
-
-# Deploy on NVIDIA Jetson using TensorRT and DeepStream SDK
-
-📚 This guide explains how to deploy a trained model into NVIDIA Jetson Platform and perform inference using TensorRT and DeepStream SDK. Here we use TensorRT to maximize the inference performance on the Jetson platform.
-
-## Hardware Verification
-
-We have tested and verified this guide on the following Jetson devices
-
-- [Seeed reComputer J1010 built with Jetson Nano module](https://www.seeedstudio.com/Jetson-10-1-A0-p-5336.html)
-- [Seeed reComputer J2021 built with Jetson Xavier NX module](https://www.seeedstudio.com/reComputer-J2021-p-5438.html)
-
-## Before You Start
-
-Make sure you have properly installed **JetPack SDK** with all the **SDK Components** and **DeepStream SDK** on the Jetson device as this includes CUDA, TensorRT and DeepStream SDK which are needed for this guide.
-
-JetPack SDK provides a full development environment for hardware-accelerated AI-at-the-edge development. All Jetson modules and developer kits are supported by JetPack SDK.
-
-There are two major installation methods including,
-
-1. SD Card Image Method
-2. NVIDIA SDK Manager Method
-
-You can find a very detailed installation guide from NVIDIA [official website](https://developer.nvidia.com/jetpack-sdk-461). You can also find guides corresponding to the above-mentioned [reComputer J1010](https://wiki.seeedstudio.com/reComputer_J1010_J101_Flash_Jetpack) and [reComputer J2021](https://wiki.seeedstudio.com/reComputer_J2021_J202_Flash_Jetpack).
-
-## Install Necessary Packages
-
-- **Step 1.** Access the terminal of Jetson device, install pip and upgrade it
-
-```sh
-sudo apt update
-sudo apt install -y python3-pip
-pip3 install --upgrade pip
-```
-
-- **Step 2.** Clone the following repo
-
-```sh
-git clone https://github.com/ultralytics/yolov5
-```
-
-- **Step 3.** Open **requirements.txt**
-
-```sh
-cd yolov5
-vi requirements.txt
-```
-
-- **Step 5.** Edit the following lines. Here you need to press **i** first to enter editing mode. Press **ESC**, then type **:wq** to save and quit
-
-```sh
-# torch>=1.8.0
-# torchvision>=0.9.0
-```
-
-**Note:** torch and torchvision are excluded for now because they will be installed later.
-
-- **Step 6.** install the below dependency
-
-```sh
-sudo apt install -y libfreetype6-dev
-```
-
-- **Step 7.** Install the necessary packages
-
-```sh
-pip3 install -r requirements.txt
-```
-
-## Install PyTorch and Torchvision
-
-We cannot install PyTorch and Torchvision from pip because they are not compatible to run on Jetson platform which is based on **ARM aarch64 architecture**. Therefore, we need to manually install pre-built PyTorch pip wheel and compile/ install Torchvision from source.
-
-Visit [this page](https://forums.developer.nvidia.com/t/pytorch-for-jetson) to access all the PyTorch and Torchvision links.
-
-Here are some of the versions supported by JetPack 4.6 and above.
-
-**PyTorch v1.10.0**
-
-Supported by JetPack 4.4 (L4T R32.4.3) / JetPack 4.4.1 (L4T R32.4.4) / JetPack 4.5 (L4T R32.5.0) / JetPack 4.5.1 (L4T R32.5.1) / JetPack 4.6 (L4T R32.6.1) with Python 3.6
-
-- **file_name:** torch-1.10.0-cp36-cp36m-linux_aarch64.whl
-- **URL:** [https://nvidia.box.com/shared/static/fjtbno0vpo676a25cgvuqc1wty0fkkg6.whl](https://nvidia.box.com/shared/static/fjtbno0vpo676a25cgvuqc1wty0fkkg6.whl)
-
-**PyTorch v1.12.0**
-
-Supported by JetPack 5.0 (L4T R34.1.0) / JetPack 5.0.1 (L4T R34.1.1) / JetPack 5.0.2 (L4T R35.1.0) with Python 3.8
-
-- **file_name:** torch-1.12.0a0+2c916ef.nv22.3-cp38-cp38-linux_aarch64.whl
-- **URL:** [https://developer.download.nvidia.com/compute/redist/jp/v50/pytorch/torch-1.12.0a0+2c916ef.nv22.3-cp38-cp38-linux_aarch64.whl](https://developer.download.nvidia.com/compute/redist/jp/v50/pytorch/torch-1.12.0a0+2c916ef.nv22.3-cp38-cp38-linux_aarch64.whl)
-
-- **Step 1.** Install torch according to your JetPack version in the following format
-
-```sh
-wget -O
-pip3 install
-```
-
-For example, here we are running **JP4.6.1**, and therefore we choose **PyTorch v1.10.0**
-
-```sh
-cd ~
-sudo apt-get install -y libopenblas-base libopenmpi-dev
-wget https://nvidia.box.com/shared/static/fjtbno0vpo676a25cgvuqc1wty0fkkg6.whl -O torch-1.10.0-cp36-cp36m-linux_aarch64.whl
-pip3 install torch-1.10.0-cp36-cp36m-linux_aarch64.whl
-```
-
-- **Step 2.** Install torchvision depending on the version of PyTorch that you have installed. For example, we chose **PyTorch v1.10.0**, which means, we need to choose **Torchvision v0.11.1**
-
-```sh
-sudo apt install -y libjpeg-dev zlib1g-dev
-git clone --branch v0.11.1 https://github.com/pytorch/vision torchvision
-cd torchvision
-sudo python3 setup.py install
-```
-
-Here a list of the corresponding torchvision version that you need to install according to the PyTorch version:
-
-- PyTorch v1.10 - torchvision v0.11.1
-- PyTorch v1.12 - torchvision v0.13.0
-
-## DeepStream Configuration for YOLOv5
-
-- **Step 1.** Clone the following repo
-
-```sh
-cd ~
-git clone https://github.com/marcoslucianops/DeepStream-Yolo
-```
-
-- **Step 2.** Copy **gen_wts_yoloV5.py** from **DeepStream-Yolo/utils** into **yolov5** directory
-
-```sh
-cp DeepStream-Yolo/utils/gen_wts_yoloV5.py yolov5
-```
-
-- **Step 3.** Inside the yolov5 repo, download **pt file** from YOLOv5 releases (example for YOLOv5s 6.1)
-
-```sh
-cd yolov5
-wget https://github.com/ultralytics/yolov5/releases/download/v6.1/yolov5s.pt
-```
-
-- **Step 4.** Generate the **cfg** and **wts** files
-
-```sh
-python3 gen_wts_yoloV5.py -w yolov5s.pt
-```
-
-**Note**: To change the inference size (default: 640)
-
-```sh
--s SIZE
---size SIZE
--s HEIGHT WIDTH
---size HEIGHT WIDTH
-
-Example for 1280:
-
--s 1280
-or
--s 1280 1280
-```
-
-- **Step 5.** Copy the generated **cfg** and **wts** files into the **DeepStream-Yolo** folder
-
-```sh
-cp yolov5s.cfg ~/DeepStream-Yolo
-cp yolov5s.wts ~/DeepStream-Yolo
-```
-
-- **Step 6.** Open the **DeepStream-Yolo** folder and compile the library
-
-```sh
-cd ~/DeepStream-Yolo
-CUDA_VER=11.4 make -C nvdsinfer_custom_impl_Yolo # for DeepStream 6.1
-CUDA_VER=10.2 make -C nvdsinfer_custom_impl_Yolo # for DeepStream 6.0.1 / 6.0
-```
-
-- **Step 7.** Edit the **config_infer_primary_yoloV5.txt** file according to your model
-
-```sh
-[property]
-...
-custom-network-config=yolov5s.cfg
-model-file=yolov5s.wts
-...
-```
-
-- **Step 8.** Edit the **deepstream_app_config** file
-
-```sh
-...
-[primary-gie]
-...
-config-file=config_infer_primary_yoloV5.txt
-```
-
-- **Step 9.** Change the video source in **deepstream_app_config** file. Here a default video file is loaded as you can see below
-
-```sh
-...
-[source0]
-...
-uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4
-```
-
-## Run the Inference
-
-```sh
-deepstream-app -c deepstream_app_config.txt
-```
-
-
-
-The above result is running on **Jetson Xavier NX** with **FP32** and **YOLOv5s 640x640**. We can see that the **FPS** is around **30**.
-
-## INT8 Calibration
-
-If you want to use INT8 precision for inference, you need to follow the steps below
-
-- **Step 1.** Install OpenCV
-
-```sh
-sudo apt-get install libopencv-dev
-```
-
-- **Step 2.** Compile/recompile the **nvdsinfer_custom_impl_Yolo** library with OpenCV support
-
-```sh
-cd ~/DeepStream-Yolo
-CUDA_VER=11.4 OPENCV=1 make -C nvdsinfer_custom_impl_Yolo # for DeepStream 6.1
-CUDA_VER=10.2 OPENCV=1 make -C nvdsinfer_custom_impl_Yolo # for DeepStream 6.0.1 / 6.0
-```
-
-- **Step 3.** For COCO dataset, download the [val2017](https://drive.google.com/file/d/1gbvfn7mcsGDRZ_luJwtITL-ru2kK99aK/view?usp=sharing), extract, and move to **DeepStream-Yolo** folder
-
-- **Step 4.** Make a new directory for calibration images
-
-```sh
-mkdir calibration
-```
-
-- **Step 5.** Run the following to select 1000 random images from COCO dataset to run calibration
-
-```sh
-for jpg in $(ls -1 val2017/*.jpg | sort -R | head -1000); do \
- cp ${jpg} calibration/; \
-done
-```
-
-**Note:** NVIDIA recommends at least 500 images to get a good accuracy. On this example, 1000 images are chosen to get better accuracy (more images = more accuracy). Higher INT8_CALIB_BATCH_SIZE values will result in more accuracy and faster calibration speed. Set it according to you GPU memory. You can set it from **head -1000**. For example, for 2000 images, **head -2000**. This process can take a long time.
-
-- **Step 6.** Create the **calibration.txt** file with all selected images
-
-```sh
-realpath calibration/*jpg > calibration.txt
-```
-
-- **Step 7.** Set environment variables
-
-```sh
-export INT8_CALIB_IMG_PATH=calibration.txt
-export INT8_CALIB_BATCH_SIZE=1
-```
-
-- **Step 8.** Update the **config_infer_primary_yoloV5.txt** file
-
-From
-
-```sh
-...
-model-engine-file=model_b1_gpu0_fp32.engine
-#int8-calib-file=calib.table
-...
-network-mode=0
-...
-```
-
-To
-
-```sh
-...
-model-engine-file=model_b1_gpu0_int8.engine
-int8-calib-file=calib.table
-...
-network-mode=1
-...
-```
-
-- **Step 9.** Run the inference
-
-```sh
-deepstream-app -c deepstream_app_config.txt
-```
-
-
-
-The above result is running on **Jetson Xavier NX** with **INT8** and **YOLOv5s 640x640**. We can see that the **FPS** is around **60**.
-
-## Benchmark results
-
-The following table summarizes how different models perform on **Jetson Xavier NX**.
-
-| Model Name | Precision | Inference Size | Inference Time (ms) | FPS |
-|------------|-----------|----------------|---------------------|-----|
-| YOLOv5s | FP32 | 320x320 | 16.66 | 60 |
-| | FP32 | 640x640 | 33.33 | 30 |
-| | INT8 | 640x640 | 16.66 | 60 |
-| YOLOv5n | FP32 | 640x640 | 16.66 | 60 |
-
-### Additional
-
-This tutorial is written by our friends at seeed @lakshanthad and Elaine
diff --git a/ultralytics-main/docs/en/yolov5/tutorials/test_time_augmentation.md b/ultralytics-main/docs/en/yolov5/tutorials/test_time_augmentation.md
deleted file mode 100644
index 6a585ef..0000000
--- a/ultralytics-main/docs/en/yolov5/tutorials/test_time_augmentation.md
+++ /dev/null
@@ -1,164 +0,0 @@
----
-comments: true
-description: Boost your YOLOv5 performance with our step-by-step guide on Test-Time Augmentation (TTA). Learn to enhance your model's mAP and Recall during testing and inference.
-keywords: YOLOv5, Ultralytics, Test-Time Augmentation, TTA, mAP, Recall, model performance, guide
----
-
-# Test-Time Augmentation (TTA)
-
-📚 This guide explains how to use Test Time Augmentation (TTA) during testing and inference for improved mAP and Recall with YOLOv5 🚀.
-
-## Before You Start
-
-Clone repo and install [requirements.txt](https://github.com/ultralytics/yolov5/blob/master/requirements.txt) in a [**Python>=3.8.0**](https://www.python.org/) environment, including [**PyTorch>=1.8**](https://pytorch.org/get-started/locally/). [Models](https://github.com/ultralytics/yolov5/tree/master/models) and [datasets](https://github.com/ultralytics/yolov5/tree/master/data) download automatically from the latest YOLOv5 [release](https://github.com/ultralytics/yolov5/releases).
-
-```bash
-git clone https://github.com/ultralytics/yolov5 # clone
-cd yolov5
-pip install -r requirements.txt # install
-```
-
-## Test Normally
-
-Before trying TTA we want to establish a baseline performance to compare to. This command tests YOLOv5x on COCO val2017 at image size 640 pixels. `yolov5x.pt` is the largest and most accurate model available. Other options are `yolov5s.pt`, `yolov5m.pt` and `yolov5l.pt`, or you own checkpoint from training a custom dataset `./weights/best.pt`. For details on all available models please see our README [table](https://github.com/ultralytics/yolov5#pretrained-checkpoints).
-
-```bash
-python val.py --weights yolov5x.pt --data coco.yaml --img 640 --half
-```
-
-Output:
-
-```shell
-val: data=./data/coco.yaml, weights=['yolov5x.pt'], batch_size=32, imgsz=640, conf_thres=0.001, iou_thres=0.65, task=val, device=, single_cls=False, augment=False, verbose=False, save_txt=False, save_hybrid=False, save_conf=False, save_json=True, project=runs/val, name=exp, exist_ok=False, half=True
-YOLOv5 🚀 v5.0-267-g6a3ee7c torch 1.9.0+cu102 CUDA:0 (Tesla P100-PCIE-16GB, 16280.875MB)
-
-Fusing layers...
-Model Summary: 476 layers, 87730285 parameters, 0 gradients
-
-val: Scanning '../datasets/coco/val2017' images and labels...4952 found, 48 missing, 0 empty, 0 corrupted: 100% 5000/5000 [00:01<00:00, 2846.03it/s]
-val: New cache created: ../datasets/coco/val2017.cache
- Class Images Labels P R mAP@.5 mAP@.5:.95: 100% 157/157 [02:30<00:00, 1.05it/s]
- all 5000 36335 0.746 0.626 0.68 0.49
-Speed: 0.1ms pre-process, 22.4ms inference, 1.4ms NMS per image at shape (32, 3, 640, 640) # <--- baseline speed
-
-Evaluating pycocotools mAP... saving runs/val/exp/yolov5x_predictions.json...
-...
- Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.504 # <--- baseline mAP
- Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.688
- Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=100 ] = 0.546
- Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.351
- Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.551
- Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.644
- Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 1 ] = 0.382
- Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 10 ] = 0.628
- Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.681 # <--- baseline mAR
- Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.524
- Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.735
- Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.826
-```
-
-## Test with TTA
-
-Append `--augment` to any existing `val.py` command to enable TTA, and increase the image size by about 30% for improved results. Note that inference with TTA enabled will typically take about 2-3X the time of normal inference as the images are being left-right flipped and processed at 3 different resolutions, with the outputs merged before NMS. Part of the speed decrease is simply due to larger image sizes (832 vs 640), while part is due to the actual TTA operations.
-
-```bash
-python val.py --weights yolov5x.pt --data coco.yaml --img 832 --augment --half
-```
-
-Output:
-
-```shell
-val: data=./data/coco.yaml, weights=['yolov5x.pt'], batch_size=32, imgsz=832, conf_thres=0.001, iou_thres=0.6, task=val, device=, single_cls=False, augment=True, verbose=False, save_txt=False, save_hybrid=False, save_conf=False, save_json=True, project=runs/val, name=exp, exist_ok=False, half=True
-YOLOv5 🚀 v5.0-267-g6a3ee7c torch 1.9.0+cu102 CUDA:0 (Tesla P100-PCIE-16GB, 16280.875MB)
-
-Fusing layers...
-/usr/local/lib/python3.7/dist-packages/torch/nn/functional.py:718: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /pytorch/c10/core/TensorImpl.h:1156.)
- return torch.max_pool2d(input, kernel_size, stride, padding, dilation, ceil_mode)
-Model Summary: 476 layers, 87730285 parameters, 0 gradients
-val: Scanning '../datasets/coco/val2017' images and labels...4952 found, 48 missing, 0 empty, 0 corrupted: 100% 5000/5000 [00:01<00:00, 2885.61it/s]
-val: New cache created: ../datasets/coco/val2017.cache
- Class Images Labels P R mAP@.5 mAP@.5:.95: 100% 157/157 [07:29<00:00, 2.86s/it]
- all 5000 36335 0.718 0.656 0.695 0.503
-Speed: 0.2ms pre-process, 80.6ms inference, 2.7ms NMS per image at shape (32, 3, 832, 832) # <--- TTA speed
-
-Evaluating pycocotools mAP... saving runs/val/exp2/yolov5x_predictions.json...
-...
- Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.516 # <--- TTA mAP
- Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.701
- Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=100 ] = 0.562
- Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.361
- Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.564
- Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.656
- Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 1 ] = 0.388
- Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 10 ] = 0.640
- Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.696 # <--- TTA mAR
- Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.553
- Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.744
- Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.833
-```
-
-## Inference with TTA
-
-`detect.py` TTA inference operates identically to `val.py` TTA: simply append `--augment` to any existing `detect.py` command:
-
-```bash
-python detect.py --weights yolov5s.pt --img 832 --source data/images --augment
-```
-
-Output:
-
-```bash
-YOLOv5 🚀 v5.0-267-g6a3ee7c torch 1.9.0+cu102 CUDA:0 (Tesla P100-PCIE-16GB, 16280.875MB)
-
-Downloading https://github.com/ultralytics/yolov5/releases/download/v5.0/yolov5s.pt to yolov5s.pt...
-100% 14.1M/14.1M [00:00<00:00, 81.9MB/s]
-
-Fusing layers...
-Model Summary: 224 layers, 7266973 parameters, 0 gradients
-image 1/2 /content/yolov5/data/images/bus.jpg: 832x640 4 persons, 1 bus, 1 fire hydrant, Done. (0.029s)
-image 2/2 /content/yolov5/data/images/zidane.jpg: 480x832 3 persons, 3 ties, Done. (0.024s)
-Results saved to runs/detect/exp
-Done. (0.156s)
-```
-
-
-
-### PyTorch Hub TTA
-
-TTA is automatically integrated into all [YOLOv5 PyTorch Hub](https://pytorch.org/hub/ultralytics_yolov5) models, and can be accessed by passing `augment=True` at inference time.
-
-```python
-import torch
-
-# Model
-model = torch.hub.load('ultralytics/yolov5', 'yolov5s') # or yolov5m, yolov5x, custom
-
-# Images
-img = 'https://ultralytics.com/images/zidane.jpg' # or file, PIL, OpenCV, numpy, multiple
-
-# Inference
-results = model(img, augment=True) # <--- TTA inference
-
-# Results
-results.print() # or .show(), .save(), .crop(), .pandas(), etc.
-```
-
-### Customize
-
-You can customize the TTA ops applied in the YOLOv5 `forward_augment()` method [here](https://github.com/ultralytics/yolov5/blob/8c6f9e15bfc0000d18b976a95b9d7c17d407ec91/models/yolo.py#L125-L137).
-
-## Supported Environments
-
-Ultralytics provides a range of ready-to-use environments, each pre-installed with essential dependencies such as [CUDA](https://developer.nvidia.com/cuda), [CUDNN](https://developer.nvidia.com/cudnn), [Python](https://www.python.org/), and [PyTorch](https://pytorch.org/), to kickstart your projects.
-
-- **Free GPU Notebooks**:
-- **Google Cloud**: [GCP Quickstart Guide](../environments/google_cloud_quickstart_tutorial.md)
-- **Amazon**: [AWS Quickstart Guide](../environments/aws_quickstart_tutorial.md)
-- **Azure**: [AzureML Quickstart Guide](../environments/azureml_quickstart_tutorial.md)
-- **Docker**: [Docker Quickstart Guide](../environments/docker_image_quickstart_tutorial.md)
-
-## Project Status
-
-
-
-This badge indicates that all [YOLOv5 GitHub Actions](https://github.com/ultralytics/yolov5/actions) Continuous Integration (CI) tests are successfully passing. These CI tests rigorously check the functionality and performance of YOLOv5 across various key aspects: [training](https://github.com/ultralytics/yolov5/blob/master/train.py), [validation](https://github.com/ultralytics/yolov5/blob/master/val.py), [inference](https://github.com/ultralytics/yolov5/blob/master/detect.py), [export](https://github.com/ultralytics/yolov5/blob/master/export.py), and [benchmarks](https://github.com/ultralytics/yolov5/blob/master/benchmarks.py). They ensure consistent and reliable operation on macOS, Windows, and Ubuntu, with tests conducted every 24 hours and upon each new commit.
diff --git a/ultralytics-main/docs/en/yolov5/tutorials/tips_for_best_training_results.md b/ultralytics-main/docs/en/yolov5/tutorials/tips_for_best_training_results.md
deleted file mode 100644
index 10dcff3..0000000
--- a/ultralytics-main/docs/en/yolov5/tutorials/tips_for_best_training_results.md
+++ /dev/null
@@ -1,65 +0,0 @@
----
-comments: true
-description: Our comprehensive guide provides insights on how to train your YOLOv5 system to get the best mAP. Master dataset preparation, model selection, training settings, and more.
-keywords: Ultralytics, YOLOv5, Training guide, dataset preparation, model selection, training settings, mAP results, Machine Learning, Object Detection
----
-
-📚 This guide explains how to produce the best mAP and training results with YOLOv5 🚀.
-
-Most of the time good results can be obtained with no changes to the models or training settings, **provided your dataset is sufficiently large and well labelled**. If at first you don't get good results, there are steps you might be able to take to improve, but we always recommend users **first train with all default settings** before considering any changes. This helps establish a performance baseline and spot areas for improvement.
-
-If you have questions about your training results **we recommend you provide the maximum amount of information possible** if you expect a helpful response, including results plots (train losses, val losses, P, R, mAP), PR curve, confusion matrix, training mosaics, test results and dataset statistics images such as labels.png. All of these are located in your `project/name` directory, typically `yolov5/runs/train/exp`.
-
-We've put together a full guide for users looking to get the best results on their YOLOv5 trainings below.
-
-## Dataset
-
-- **Images per class.** ≥ 1500 images per class recommended
-- **Instances per class.** ≥ 10000 instances (labeled objects) per class recommended
-- **Image variety.** Must be representative of deployed environment. For real-world use cases we recommend images from different times of day, different seasons, different weather, different lighting, different angles, different sources (scraped online, collected locally, different cameras) etc.
-- **Label consistency.** All instances of all classes in all images must be labelled. Partial labelling will not work.
-- **Label accuracy.** Labels must closely enclose each object. No space should exist between an object and it's bounding box. No objects should be missing a label.
-- **Label verification.** View `train_batch*.jpg` on train start to verify your labels appear correct, i.e. see [example](https://docs.ultralytics.com/yolov5/tutorials/train_custom_data#local-logging) mosaic.
-- **Background images.** Background images are images with no objects that are added to a dataset to reduce False Positives (FP). We recommend about 0-10% background images to help reduce FPs (COCO has 1000 background images for reference, 1% of the total). No labels are required for background images.
-
-
-
-## Model Selection
-
-Larger models like YOLOv5x and [YOLOv5x6](https://github.com/ultralytics/yolov5/releases/tag/v5.0) will produce better results in nearly all cases, but have more parameters, require more CUDA memory to train, and are slower to run. For **mobile** deployments we recommend YOLOv5s/m, for **cloud** deployments we recommend YOLOv5l/x. See our README [table](https://github.com/ultralytics/yolov5#pretrained-checkpoints) for a full comparison of all models.
-
-
-
-- **Start from Pretrained weights.** Recommended for small to medium-sized datasets (i.e. [VOC](https://github.com/ultralytics/yolov5/blob/master/data/VOC.yaml), [VisDrone](https://github.com/ultralytics/yolov5/blob/master/data/VisDrone.yaml), [GlobalWheat](https://github.com/ultralytics/yolov5/blob/master/data/GlobalWheat2020.yaml)). Pass the name of the model to the `--weights` argument. Models download automatically from the [latest YOLOv5 release](https://github.com/ultralytics/yolov5/releases).
-
-```shell
-python train.py --data custom.yaml --weights yolov5s.pt
- yolov5m.pt
- yolov5l.pt
- yolov5x.pt
- custom_pretrained.pt
-```
-
-- **Start from Scratch.** Recommended for large datasets (i.e. [COCO](https://github.com/ultralytics/yolov5/blob/master/data/coco.yaml), [Objects365](https://github.com/ultralytics/yolov5/blob/master/data/Objects365.yaml), [OIv6](https://storage.googleapis.com/openimages/web/index.html)). Pass the model architecture YAML you are interested in, along with an empty `--weights ''` argument:
-
-```bash
-python train.py --data custom.yaml --weights '' --cfg yolov5s.yaml
- yolov5m.yaml
- yolov5l.yaml
- yolov5x.yaml
-```
-
-## Training Settings
-
-Before modifying anything, **first train with default settings to establish a performance baseline**. A full list of train.py settings can be found in the [train.py](https://github.com/ultralytics/yolov5/blob/master/train.py) argparser.
-
-- **Epochs.** Start with 300 epochs. If this overfits early then you can reduce epochs. If overfitting does not occur after 300 epochs, train longer, i.e. 600, 1200 etc. epochs.
-- **Image size.** COCO trains at native resolution of `--img 640`, though due to the high amount of small objects in the dataset it can benefit from training at higher resolutions such as `--img 1280`. If there are many small objects then custom datasets will benefit from training at native or higher resolution. Best inference results are obtained at the same `--img` as the training was run at, i.e. if you train at `--img 1280` you should also test and detect at `--img 1280`.
-- **Batch size.** Use the largest `--batch-size` that your hardware allows for. Small batch sizes produce poor batchnorm statistics and should be avoided.
-- **Hyperparameters.** Default hyperparameters are in [hyp.scratch-low.yaml](https://github.com/ultralytics/yolov5/blob/master/data/hyps/hyp.scratch-low.yaml). We recommend you train with default hyperparameters first before thinking of modifying any. In general, increasing augmentation hyperparameters will reduce and delay overfitting, allowing for longer trainings and higher final mAP. Reduction in loss component gain hyperparameters like `hyp['obj']` will help reduce overfitting in those specific loss components. For an automated method of optimizing these hyperparameters, see our [Hyperparameter Evolution Tutorial](https://docs.ultralytics.com/yolov5/tutorials/hyperparameter_evolution).
-
-## Further Reading
-
-If you'd like to know more, a good place to start is Karpathy's 'Recipe for Training Neural Networks', which has great ideas for training that apply broadly across all ML domains: [https://karpathy.github.io/2019/04/25/recipe/](https://karpathy.github.io/2019/04/25/recipe/)
-
-Good luck 🍀 and let us know if you have any other questions!
diff --git a/ultralytics-main/docs/en/yolov5/tutorials/train_custom_data.md b/ultralytics-main/docs/en/yolov5/tutorials/train_custom_data.md
deleted file mode 100644
index c6e501c..0000000
--- a/ultralytics-main/docs/en/yolov5/tutorials/train_custom_data.md
+++ /dev/null
@@ -1,224 +0,0 @@
----
-comments: true
-description: Learn how to train your data on custom datasets using YOLOv5. Simple and updated guide on collection and organization of images, labelling, model training and deployment.
-keywords: YOLOv5, train on custom dataset, image collection, model training, object detection, image labelling, Ultralytics, PyTorch, machine learning
----
-
-📚 This guide explains how to train your own **custom dataset** with [YOLOv5](https://github.com/ultralytics/yolov5) 🚀.
-
-## Before You Start
-
-Clone repo and install [requirements.txt](https://github.com/ultralytics/yolov5/blob/master/requirements.txt) in a [**Python>=3.8.0**](https://www.python.org/) environment, including [**PyTorch>=1.8**](https://pytorch.org/get-started/locally/). [Models](https://github.com/ultralytics/yolov5/tree/master/models) and [datasets](https://github.com/ultralytics/yolov5/tree/master/data) download automatically from the latest YOLOv5 [release](https://github.com/ultralytics/yolov5/releases).
-
-```bash
-git clone https://github.com/ultralytics/yolov5 # clone
-cd yolov5
-pip install -r requirements.txt # install
-```
-
-## Train On Custom Data
-
-
-
-
-
-
-Creating a custom model to detect your objects is an iterative process of collecting and organizing images, labeling your objects of interest, training a model, deploying it into the wild to make predictions, and then using that deployed model to collect examples of edge cases to repeat and improve.
-
-!!! Question "Licensing"
-
- Ultralytics offers two licensing options:
-
- - The [AGPL-3.0 License](https://github.com/ultralytics/ultralytics/blob/main/LICENSE), an [OSI-approved](https://opensource.org/licenses/) open-source license ideal for students and enthusiasts.
- - The [Enterprise License](https://ultralytics.com/license) for businesses seeking to incorporate our AI models into their products and services.
-
- For more details see [Ultralytics Licensing](https://ultralytics.com/license).
-
-YOLOv5 models must be trained on labelled data in order to learn classes of objects in that data. There are two options for creating your dataset before you start training:
-
-## Option 1: Create a Roboflow Dataset
-
-### 1.1 Collect Images
-
-Your model will learn by example. Training on images similar to the ones it will see in the wild is of the utmost importance. Ideally, you will collect a wide variety of images from the same configuration (camera, angle, lighting, etc.) as you will ultimately deploy your project.
-
-If this is not possible, you can start from [a public dataset](https://universe.roboflow.com/?ref=ultralytics) to train your initial model and then [sample images from the wild during inference](https://blog.roboflow.com/computer-vision-active-learning-tips/?ref=ultralytics) to improve your dataset and model iteratively.
-
-### 1.2 Create Labels
-
-Once you have collected images, you will need to annotate the objects of interest to create a ground truth for your model to learn from.
-
-
-
-[Roboflow Annotate](https://roboflow.com/annotate?ref=ultralytics) is a simple web-based tool for managing and labeling your images with your team and exporting them in [YOLOv5's annotation format](https://roboflow.com/formats/yolov5-pytorch-txt?ref=ultralytics).
-
-### 1.3 Prepare Dataset for YOLOv5
-
-Whether you [label your images with Roboflow](https://roboflow.com/annotate?ref=ultralytics) or not, you can use it to convert your dataset into YOLO format, create a YOLOv5 YAML configuration file, and host it for importing into your training script.
-
-[Create a free Roboflow account](https://app.roboflow.com/?model=yolov5&ref=ultralytics) and upload your dataset to a `Public` workspace, label any unannotated images, then generate and export a version of your dataset in `YOLOv5 Pytorch` format.
-
-Note: YOLOv5 does online augmentation during training, so we do not recommend applying any augmentation steps in Roboflow for training with YOLOv5. But we recommend applying the following preprocessing steps:
-
-
-
-- **Auto-Orient** - to strip EXIF orientation from your images.
-- **Resize (Stretch)** - to the square input size of your model (640x640 is the YOLOv5 default).
-
-Generating a version will give you a snapshot of your dataset, so you can always go back and compare your future model training runs against it, even if you add more images or change its configuration later.
-
-
-
-Export in `YOLOv5 Pytorch` format, then copy the snippet into your training script or notebook to download your dataset.
-
-
-
-## Option 2: Create a Manual Dataset
-
-### 2.1 Create `dataset.yaml`
-
-[COCO128](https://www.kaggle.com/ultralytics/coco128) is an example small tutorial dataset composed of the first 128 images in [COCO](https://cocodataset.org/) train2017. These same 128 images are used for both training and validation to verify our training pipeline is capable of overfitting. [data/coco128.yaml](https://github.com/ultralytics/yolov5/blob/master/data/coco128.yaml), shown below, is the dataset config file that defines 1) the dataset root directory `path` and relative paths to `train` / `val` / `test` image directories (or `*.txt` files with image paths) and 2) a class `names` dictionary:
-
-```yaml
-# Train/val/test sets as 1) dir: path/to/imgs, 2) file: path/to/imgs.txt, or 3) list: [path/to/imgs1, path/to/imgs2, ..]
-path: ../datasets/coco128 # dataset root dir
-train: images/train2017 # train images (relative to 'path') 128 images
-val: images/train2017 # val images (relative to 'path') 128 images
-test: # test images (optional)
-
-# Classes (80 COCO classes)
-names:
- 0: person
- 1: bicycle
- 2: car
- # ...
- 77: teddy bear
- 78: hair drier
- 79: toothbrush
-```
-
-### 2.2 Create Labels
-
-After using an annotation tool to label your images, export your labels to **YOLO format**, with one `*.txt` file per image (if no objects in image, no `*.txt` file is required). The `*.txt` file specifications are:
-
-- One row per object
-- Each row is `class x_center y_center width height` format.
-- Box coordinates must be in **normalized xywh** format (from 0 to 1). If your boxes are in pixels, divide `x_center` and `width` by image width, and `y_center` and `height` by image height.
-- Class numbers are zero-indexed (start from 0).
-
-
-
-The label file corresponding to the above image contains 2 persons (class `0`) and a tie (class `27`):
-
-
-
-### 2.3 Organize Directories
-
-Organize your train and val images and labels according to the example below. YOLOv5 assumes `/coco128` is inside a `/datasets` directory **next to** the `/yolov5` directory. **YOLOv5 locates labels automatically for each image** by replacing the last instance of `/images/` in each image path with `/labels/`. For example:
-
-```bash
-../datasets/coco128/images/im0.jpg # image
-../datasets/coco128/labels/im0.txt # label
-```
-
-
-
-## 3. Select a Model
-
-Select a pretrained model to start training from. Here we select [YOLOv5s](https://github.com/ultralytics/yolov5/blob/master/models/yolov5s.yaml), the second-smallest and fastest model available. See our README [table](https://github.com/ultralytics/yolov5#pretrained-checkpoints) for a full comparison of all models.
-
-
-
-## 4. Train
-
-Train a YOLOv5s model on COCO128 by specifying dataset, batch-size, image size and either pretrained `--weights yolov5s.pt` (recommended), or randomly initialized `--weights '' --cfg yolov5s.yaml` (not recommended). Pretrained weights are auto-downloaded from the [latest YOLOv5 release](https://github.com/ultralytics/yolov5/releases).
-
-```bash
-python train.py --img 640 --epochs 3 --data coco128.yaml --weights yolov5s.pt
-```
-
-!!! Tip "Tip"
-
- 💡 Add `--cache ram` or `--cache disk` to speed up training (requires significant RAM/disk resources).
-
-!!! Tip "Tip"
-
- 💡 Always train from a local dataset. Mounted or network drives like Google Drive will be very slow.
-
-All training results are saved to `runs/train/` with incrementing run directories, i.e. `runs/train/exp2`, `runs/train/exp3` etc. For more details see the Training section of our tutorial notebook.
-
-## 5. Visualize
-
-### Comet Logging and Visualization 🌟 NEW
-
-[Comet](https://bit.ly/yolov5-readme-comet) is now fully integrated with YOLOv5. Track and visualize model metrics in real time, save your hyperparameters, datasets, and model checkpoints, and visualize your model predictions with [Comet Custom Panels](https://bit.ly/yolov5-colab-comet-panels)! Comet makes sure you never lose track of your work and makes it easy to share results and collaborate across teams of all sizes!
-
-Getting started is easy:
-
-```shell
-pip install comet_ml # 1. install
-export COMET_API_KEY= # 2. paste API key
-python train.py --img 640 --epochs 3 --data coco128.yaml --weights yolov5s.pt # 3. train
-```
-
-To learn more about all the supported Comet features for this integration, check out the [Comet Tutorial](https://docs.ultralytics.com/yolov5/tutorials/comet_logging_integration). If you'd like to learn more about Comet, head over to our [documentation](https://bit.ly/yolov5-colab-comet-docs). Get started by trying out the Comet Colab Notebook: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1RG0WOQyxlDlo5Km8GogJpIEJlg_5lyYO?usp=sharing)
-
-
-
-### ClearML Logging and Automation 🌟 NEW
-
-[ClearML](https://clear.ml/) is completely integrated into YOLOv5 to track your experimentation, manage dataset versions and even remotely execute training runs. To enable ClearML:
-
-- `pip install clearml`
-- run `clearml-init` to connect to a ClearML server
-
-You'll get all the great expected features from an experiment manager: live updates, model upload, experiment comparison etc. but ClearML also tracks uncommitted changes and installed packages for example. Thanks to that ClearML Tasks (which is what we call experiments) are also reproducible on different machines! With only 1 extra line, we can schedule a YOLOv5 training task on a queue to be executed by any number of ClearML Agents (workers).
-
-You can use ClearML Data to version your dataset and then pass it to YOLOv5 simply using its unique ID. This will help you keep track of your data without adding extra hassle. Explore the [ClearML Tutorial](https://docs.ultralytics.com/yolov5/tutorials/clearml_logging_integration) for details!
-
-
-
-
-### Local Logging
-
-Training results are automatically logged with [Tensorboard](https://www.tensorflow.org/tensorboard) and [CSV](https://github.com/ultralytics/yolov5/pull/4148) loggers to `runs/train`, with a new experiment directory created for each new training as `runs/train/exp2`, `runs/train/exp3`, etc.
-
-This directory contains train and val statistics, mosaics, labels, predictions and augmented mosaics, as well as metrics and charts including precision-recall (PR) curves and confusion matrices.
-
-
-
-Results file `results.csv` is updated after each epoch, and then plotted as `results.png` (below) after training completes. You can also plot any `results.csv` file manually:
-
-```python
-from utils.plots import plot_results
-
-plot_results('path/to/results.csv') # plot 'results.csv' as 'results.png'
-```
-
-
-
-## Next Steps
-
-Once your model is trained you can use your best checkpoint `best.pt` to:
-
-- Run [CLI](https://github.com/ultralytics/yolov5#quick-start-examples) or [Python](https://docs.ultralytics.com/yolov5/tutorials/pytorch_hub_model_loading) inference on new images and videos
-- [Validate](https://github.com/ultralytics/yolov5/blob/master/val.py) accuracy on train, val and test splits
-- [Export](https://docs.ultralytics.com/yolov5/tutorials/model_export) to TensorFlow, Keras, ONNX, TFlite, TF.js, CoreML and TensorRT formats
-- [Evolve](https://docs.ultralytics.com/yolov5/tutorials/hyperparameter_evolution) hyperparameters to improve performance
-- [Improve](https://docs.roboflow.com/adding-data/upload-api?ref=ultralytics) your model by sampling real-world images and adding them to your dataset
-
-## Supported Environments
-
-Ultralytics provides a range of ready-to-use environments, each pre-installed with essential dependencies such as [CUDA](https://developer.nvidia.com/cuda), [CUDNN](https://developer.nvidia.com/cudnn), [Python](https://www.python.org/), and [PyTorch](https://pytorch.org/), to kickstart your projects.
-
-- **Free GPU Notebooks**:
-- **Google Cloud**: [GCP Quickstart Guide](../environments/google_cloud_quickstart_tutorial.md)
-- **Amazon**: [AWS Quickstart Guide](../environments/aws_quickstart_tutorial.md)
-- **Azure**: [AzureML Quickstart Guide](../environments/azureml_quickstart_tutorial.md)
-- **Docker**: [Docker Quickstart Guide](../environments/docker_image_quickstart_tutorial.md)
-
-## Project Status
-
-
-
-This badge indicates that all [YOLOv5 GitHub Actions](https://github.com/ultralytics/yolov5/actions) Continuous Integration (CI) tests are successfully passing. These CI tests rigorously check the functionality and performance of YOLOv5 across various key aspects: [training](https://github.com/ultralytics/yolov5/blob/master/train.py), [validation](https://github.com/ultralytics/yolov5/blob/master/val.py), [inference](https://github.com/ultralytics/yolov5/blob/master/detect.py), [export](https://github.com/ultralytics/yolov5/blob/master/export.py), and [benchmarks](https://github.com/ultralytics/yolov5/blob/master/benchmarks.py). They ensure consistent and reliable operation on macOS, Windows, and Ubuntu, with tests conducted every 24 hours and upon each new commit.
diff --git a/ultralytics-main/docs/en/yolov5/tutorials/transfer_learning_with_frozen_layers.md b/ultralytics-main/docs/en/yolov5/tutorials/transfer_learning_with_frozen_layers.md
deleted file mode 100644
index 8fb0da8..0000000
--- a/ultralytics-main/docs/en/yolov5/tutorials/transfer_learning_with_frozen_layers.md
+++ /dev/null
@@ -1,155 +0,0 @@
----
-comments: true
-description: Learn to freeze YOLOv5 layers for efficient transfer learning. Optimize your model retraining with less resources and faster training times.
-keywords: YOLOv5, freeze layers, transfer learning, model retraining, Ultralytics
----
-
-📚 This guide explains how to **freeze** YOLOv5 🚀 layers when **transfer learning**. Transfer learning is a useful way to quickly retrain a model on new data without having to retrain the entire network. Instead, part of the initial weights are frozen in place, and the rest of the weights are used to compute loss and are updated by the optimizer. This requires less resources than normal training and allows for faster training times, though it may also result in reductions to final trained accuracy.
-
-## Before You Start
-
-Clone repo and install [requirements.txt](https://github.com/ultralytics/yolov5/blob/master/requirements.txt) in a [**Python>=3.8.0**](https://www.python.org/) environment, including [**PyTorch>=1.8**](https://pytorch.org/get-started/locally/). [Models](https://github.com/ultralytics/yolov5/tree/master/models) and [datasets](https://github.com/ultralytics/yolov5/tree/master/data) download automatically from the latest YOLOv5 [release](https://github.com/ultralytics/yolov5/releases).
-
-```bash
-git clone https://github.com/ultralytics/yolov5 # clone
-cd yolov5
-pip install -r requirements.txt # install
-```
-
-## Freeze Backbone
-
-All layers that match the train.py `freeze` list in train.py will be frozen by setting their gradients to zero before training starts.
-
-```python
-# Freeze
-freeze = [f'model.{x}.' for x in range(freeze)] # layers to freeze
-for k, v in model.named_parameters():
- v.requires_grad = True # train all layers
- if any(x in k for x in freeze):
- print(f'freezing {k}')
- v.requires_grad = False
-```
-
-To see a list of module names:
-
-```python
-for k, v in model.named_parameters():
- print(k)
-
-"""Output:
-model.0.conv.conv.weight
-model.0.conv.bn.weight
-model.0.conv.bn.bias
-model.1.conv.weight
-model.1.bn.weight
-model.1.bn.bias
-model.2.cv1.conv.weight
-model.2.cv1.bn.weight
-...
-model.23.m.0.cv2.bn.weight
-model.23.m.0.cv2.bn.bias
-model.24.m.0.weight
-model.24.m.0.bias
-model.24.m.1.weight
-model.24.m.1.bias
-model.24.m.2.weight
-model.24.m.2.bias
-"""
-```
-
-Looking at the model architecture we can see that the model backbone is layers 0-9:
-
-```yaml
-# YOLOv5 v6.0 backbone
-backbone:
- # [from, number, module, args]
- - [-1, 1, Conv, [64, 6, 2, 2]] # 0-P1/2
- - [-1, 1, Conv, [128, 3, 2]] # 1-P2/4
- - [-1, 3, C3, [128]]
- - [-1, 1, Conv, [256, 3, 2]] # 3-P3/8
- - [-1, 6, C3, [256]]
- - [-1, 1, Conv, [512, 3, 2]] # 5-P4/16
- - [-1, 9, C3, [512]]
- - [-1, 1, Conv, [1024, 3, 2]] # 7-P5/32
- - [-1, 3, C3, [1024]]
- - [-1, 1, SPPF, [1024, 5]] # 9
-
-
-# YOLOv5 v6.0 head
-head:
- - [-1, 1, Conv, [512, 1, 1]]
- - [-1, 1, nn.Upsample, [None, 2, 'nearest']]
- - [[-1, 6], 1, Concat, [1]] # cat backbone P4
- - [-1, 3, C3, [512, False]] # 13
-
- - [-1, 1, Conv, [256, 1, 1]]
- - [-1, 1, nn.Upsample, [None, 2, 'nearest']]
- - [[-1, 4], 1, Concat, [1]] # cat backbone P3
- - [-1, 3, C3, [256, False]] # 17 (P3/8-small)
-
- - [-1, 1, Conv, [256, 3, 2]]
- - [[-1, 14], 1, Concat, [1]] # cat head P4
- - [-1, 3, C3, [512, False]] # 20 (P4/16-medium)
-
- - [-1, 1, Conv, [512, 3, 2]]
- - [[-1, 10], 1, Concat, [1]] # cat head P5
- - [-1, 3, C3, [1024, False]] # 23 (P5/32-large)
-
- - [[17, 20, 23], 1, Detect, [nc]] # Detect(P3, P4, P5)
-```
-
-so we can define the freeze list to contain all modules with 'model.0.' - 'model.9.' in their names:
-
-```bash
-python train.py --freeze 10
-```
-
-## Freeze All Layers
-
-To freeze the full model except for the final output convolution layers in Detect(), we set freeze list to contain all modules with 'model.0.' - 'model.23.' in their names:
-
-```bash
-python train.py --freeze 24
-```
-
-## Results
-
-We train YOLOv5m on VOC on both of the above scenarios, along with a default model (no freezing), starting from the official COCO pretrained `--weights yolov5m.pt`:
-
-```bash
-train.py --batch 48 --weights yolov5m.pt --data voc.yaml --epochs 50 --cache --img 512 --hyp hyp.finetune.yaml
-```
-
-### Accuracy Comparison
-
-The results show that freezing speeds up training, but reduces final accuracy slightly.
-
-![Freezing training mAP50 results](https://user-images.githubusercontent.com/26833433/98394454-11579f80-205b-11eb-8e57-d8318e1cc2f8.png)
-
-![Freezing training mAP50-95 results](https://user-images.githubusercontent.com/26833433/98394459-13216300-205b-11eb-871b-49e20691a423.png)
-
-
-
-### GPU Utilization Comparison
-
-Interestingly, the more modules are frozen the less GPU memory is required to train, and the lower GPU utilization. This indicates that larger models, or models trained at larger --image-size may benefit from freezing in order to train faster.
-
-![Training GPU memory allocated percent](https://user-images.githubusercontent.com/26833433/98394920-c2f6d080-205b-11eb-9611-fd68522b4e0e.png)
-
-![Training GPU memory utilization percent](https://user-images.githubusercontent.com/26833433/98394918-bf634980-205b-11eb-948d-311036ef9325.png)
-
-## Supported Environments
-
-Ultralytics provides a range of ready-to-use environments, each pre-installed with essential dependencies such as [CUDA](https://developer.nvidia.com/cuda), [CUDNN](https://developer.nvidia.com/cudnn), [Python](https://www.python.org/), and [PyTorch](https://pytorch.org/), to kickstart your projects.
-
-- **Free GPU Notebooks**:
-- **Google Cloud**: [GCP Quickstart Guide](../environments/google_cloud_quickstart_tutorial.md)
-- **Amazon**: [AWS Quickstart Guide](../environments/aws_quickstart_tutorial.md)
-- **Azure**: [AzureML Quickstart Guide](../environments/azureml_quickstart_tutorial.md)
-- **Docker**: [Docker Quickstart Guide](../environments/docker_image_quickstart_tutorial.md)
-
-## Project Status
-
-
-
-This badge indicates that all [YOLOv5 GitHub Actions](https://github.com/ultralytics/yolov5/actions) Continuous Integration (CI) tests are successfully passing. These CI tests rigorously check the functionality and performance of YOLOv5 across various key aspects: [training](https://github.com/ultralytics/yolov5/blob/master/train.py), [validation](https://github.com/ultralytics/yolov5/blob/master/val.py), [inference](https://github.com/ultralytics/yolov5/blob/master/detect.py), [export](https://github.com/ultralytics/yolov5/blob/master/export.py), and [benchmarks](https://github.com/ultralytics/yolov5/blob/master/benchmarks.py). They ensure consistent and reliable operation on macOS, Windows, and Ubuntu, with tests conducted every 24 hours and upon each new commit.
diff --git a/ultralytics-main/docs/overrides/assets/favicon.ico b/ultralytics-main/docs/overrides/assets/favicon.ico
deleted file mode 100644
index 7aa5066..0000000
Binary files a/ultralytics-main/docs/overrides/assets/favicon.ico and /dev/null differ
diff --git a/ultralytics-main/docs/overrides/javascript/extra.js b/ultralytics-main/docs/overrides/javascript/extra.js
deleted file mode 100644
index 3233a64..0000000
--- a/ultralytics-main/docs/overrides/javascript/extra.js
+++ /dev/null
@@ -1,69 +0,0 @@
-// Function that applies light/dark theme based on the user's preference
-const applyAutoTheme = () => {
- // Determine the user's preferred color scheme
- const prefersLight = window.matchMedia("(prefers-color-scheme: light)").matches;
- const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
-
- // Apply the appropriate attributes based on the user's preference
- if (prefersLight) {
- document.body.setAttribute("data-md-color-scheme", "default");
- document.body.setAttribute("data-md-color-primary", "indigo");
- } else if (prefersDark) {
- document.body.setAttribute("data-md-color-scheme", "slate");
- document.body.setAttribute("data-md-color-primary", "black");
- }
-};
-
-// Function that checks and applies light/dark theme based on the user's preference (if auto theme is enabled)
-function checkAutoTheme() {
- // Array of supported language codes -> each language has its own palette (stored in local storage)
- const supportedLangCodes = ["en", "zh", "ko", "ja", "ru", "de", "fr", "es", "pt", "it", "tr", "vi", "nl"];
- // Get the URL path
- const path = window.location.pathname;
- // Extract the language code from the URL (assuming it's in the format /xx/...)
- const langCode = path.split("/")[1];
- // Check if the extracted language code is in the supported languages
- const isValidLangCode = supportedLangCodes.includes(langCode);
- // Construct the local storage key based on the language code if valid, otherwise default to the root key
- const localStorageKey = isValidLangCode ? `/${langCode}/.__palette` : "/.__palette";
- // Retrieve the palette from local storage using the constructed key
- const palette = localStorage.getItem(localStorageKey);
- if (palette) {
- // Check if the palette's index is 0 (auto theme)
- const paletteObj = JSON.parse(palette);
- if (paletteObj && paletteObj.index === 0) {
- applyAutoTheme();
- }
- }
-}
-
-// Run function when the script loads
-checkAutoTheme();
-
-// Re-run the function when the user's preference changes (when the user changes their system theme)
-window.matchMedia("(prefers-color-scheme: light)").addEventListener("change", checkAutoTheme);
-window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", checkAutoTheme);
-
-// Re-run the function when the palette changes (e.g. user switched from dark theme to auto theme)
-// ! We can't use window.addEventListener("storage", checkAutoTheme) because it will NOT be triggered on the current tab
-// ! So we have to use the following workaround:
-// Get the palette input for auto theme
-var autoThemeInput = document.getElementById("__palette_1");
-if (autoThemeInput) {
- // Add a click event listener to the input
- autoThemeInput.addEventListener("click", function () {
- // Check if the auto theme is selected
- if (autoThemeInput.checked) {
- // Re-run the function after a short delay (to ensure that the palette has been updated)
- setTimeout(applyAutoTheme);
- }
- });
-}
-
-// Add iframe navigation
-window.onhashchange = function() {
- window.parent.postMessage({
- type: 'navigation',
- hash: window.location.pathname + window.location.search + window.location.hash
- }, '*');
-};
diff --git a/ultralytics-main/docs/overrides/main.html b/ultralytics-main/docs/overrides/main.html
deleted file mode 100644
index bc088ce..0000000
--- a/ultralytics-main/docs/overrides/main.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-{% extends "base.html" %}
-
-{% block announce %}
-