Skip to content

Fix bounding box conversion from yolo format #1946

Fix bounding box conversion from yolo format

Fix bounding box conversion from yolo format #1946

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test_and_lint:
name: Test and lint
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install wheel
run: python -m pip install --upgrade wheel
- name: Install PyTorch on Linux and Windows
if: >
matrix.operating-system == 'ubuntu-latest' ||
matrix.operating-system == 'windows-latest'
run: >
pip install torch==2.2.0 torchvision==0.17.0
--extra-index-url https://download.pytorch.org/whl/cpu
- name: Install PyTorch on MacOS
if: matrix.operating-system == 'macos-latest'
run: pip install torch==2.2.0 torchvision==0.17.0
- name: Install dev requirements
run: pip install -r requirements-dev.txt
- name: Install dependencies
run: |
pip install .[tests]
- name: Cleanup the build directory
uses: JesseTG/[email protected]
with:
path: build
- name: Run PyTest
run: pytest
check_code_formatting_types:
name: Check code formatting with ruff and mypy
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install dev requirements
run: pip install -r requirements-dev.txt
- name: Run checks
run: pre-commit run --files $(find albumentations -type f)
check_transforms_docs:
name: Check that transforms docs are not outdated
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install dependencies
run: |
pip install .
pip install pytest
- name: Run checks
run: python tools/make_transforms_docs.py check README.md