From 95c848228f08911fbeb10569395d9e283d043363 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sun, 24 Nov 2024 22:30:06 +0100 Subject: [PATCH] Try uv pip install for Benchmarks --- .github/workflows/ci.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cd574204f5..311ea0438d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -102,21 +102,19 @@ jobs: python-version: ["3.11"] model: [yolo11n] steps: + - uses: astral-sh/setup-uv@v3 - 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: | - # Warnings: uv causes numpy errors during benchmarking - python -m pip install --upgrade pip wheel - pip install -e ".[export]" "coverage[toml]" --extra-index-url https://download.pytorch.org/whl/cpu + uv pip install --system -e ".[export]" "coverage[toml]" --extra-index-url https://download.pytorch.org/whl/cpu - name: Check environment run: | yolo checks - pip list + uv pip list - name: Benchmark DetectionModel shell: bash run: coverage run -a --source=ultralytics -m ultralytics.cfg.__init__ benchmark model='path with spaces/${{ matrix.model }}.pt' imgsz=160 verbose=0.309