From bab3582c070faf127caac3e9e4f563e3c398cd5d Mon Sep 17 00:00:00 2001 From: Matvezy Date: Thu, 22 Jan 2026 06:21:05 +0000 Subject: [PATCH 1/5] new models --- roboflow/util/model_processor.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/roboflow/util/model_processor.py b/roboflow/util/model_processor.py index 6216005c..cd0fe2db 100644 --- a/roboflow/util/model_processor.py +++ b/roboflow/util/model_processor.py @@ -246,12 +246,21 @@ def _process_yolo(model_type: str, model_path: str, filename: str) -> str: def _process_rfdetr(model_type: str, model_path: str, filename: str) -> str: _supported_types = [ + # Detection models "rfdetr-base", - "rfdetr-large", "rfdetr-nano", "rfdetr-small", "rfdetr-medium", - "rfdetr-seg-preview", + "rfdetr-large", + "rfdetr-xlarge", + "rfdetr-2xlarge", + # Segmentation models + "rfdetr-seg-nano", + "rfdetr-seg-small", + "rfdetr-seg-medium", + "rfdetr-seg-large", + "rfdetr-seg-xlarge", + "rfdetr-seg-2xlarge", ] if model_type not in _supported_types: raise ValueError(f"Model type {model_type} not supported. Supported types are {_supported_types}") From 4014eeb14de1f2fc5ace5d7dad9beca771377f83 Mon Sep 17 00:00:00 2001 From: Matvezy Date: Fri, 23 Jan 2026 22:49:35 +0000 Subject: [PATCH 2/5] fix test? --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6173fc4b..6fde80e1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,6 +26,9 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + - name: 📦 Install libheif (Ubuntu) + if: matrix.os == 'ubuntu-latest' + run: sudo apt-get install -y libheif-dev - name: 🦾 Install dependencies run: | python -m pip install --upgrade pip From 497005ec36a4b8b3498b7c8932766d2ec8da71e6 Mon Sep 17 00:00:00 2001 From: Matvezy Date: Fri, 23 Jan 2026 22:54:59 +0000 Subject: [PATCH 3/5] pi_heif python 3.9 fix --- .github/workflows/test.yml | 3 --- requirements.txt | 3 ++- roboflow/util/image_utils.py | 9 +++++++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6fde80e1..6173fc4b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,9 +26,6 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - name: 📦 Install libheif (Ubuntu) - if: matrix.os == 'ubuntu-latest' - run: sudo apt-get install -y libheif-dev - name: 🦾 Install dependencies run: | python -m pip install --upgrade pip diff --git a/requirements.txt b/requirements.txt index 71092638..81d180c2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,8 @@ numpy>=1.18.5 opencv-python-headless==4.10.0.84 Pillow>=7.1.2 # https://github.com/roboflow/roboflow-python/issues/390 -pi-heif<2 +# pi-heif 1.x requires Python 3.10+ +pi-heif<2; python_version >= "3.10" pillow-avif-plugin<2 python-dateutil python-dotenv diff --git a/roboflow/util/image_utils.py b/roboflow/util/image_utils.py index 2f3b2c1f..a92d0b31 100644 --- a/roboflow/util/image_utils.py +++ b/roboflow/util/image_utils.py @@ -5,13 +5,18 @@ import urllib # Third-party imports -import pi_heif # type: ignore[import-untyped] import pillow_avif # type: ignore[import-untyped] import requests import yaml from PIL import Image -pi_heif.register_heif_opener(thumbnails=False) # Register for HEIF/HEIC +# pi-heif requires Python 3.10+ +try: + import pi_heif # type: ignore[import-untyped] + + pi_heif.register_heif_opener(thumbnails=False) # Register for HEIF/HEIC +except ImportError: + pass pillow_avif = pillow_avif # Reference pillow_avif to not remove import by accident From 98649fb4587bebc750b85c6b56c19a543ecc5727 Mon Sep 17 00:00:00 2001 From: Matvezy Date: Fri, 23 Jan 2026 22:56:25 +0000 Subject: [PATCH 4/5] pi_heif python 3.9 fix --- roboflow/util/image_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roboflow/util/image_utils.py b/roboflow/util/image_utils.py index a92d0b31..6e159df9 100644 --- a/roboflow/util/image_utils.py +++ b/roboflow/util/image_utils.py @@ -12,7 +12,7 @@ # pi-heif requires Python 3.10+ try: - import pi_heif # type: ignore[import-untyped] + import pi_heif # type: ignore[import-untyped,import-not-found] pi_heif.register_heif_opener(thumbnails=False) # Register for HEIF/HEIC except ImportError: From bc04cc51363e21e4747330f9d55a5fbc24b29f33 Mon Sep 17 00:00:00 2001 From: Matvezy Date: Fri, 23 Jan 2026 22:59:29 +0000 Subject: [PATCH 5/5] version bump --- roboflow/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roboflow/__init__.py b/roboflow/__init__.py index 2bdaec47..6954ce23 100644 --- a/roboflow/__init__.py +++ b/roboflow/__init__.py @@ -15,7 +15,7 @@ from roboflow.models import CLIPModel, GazeModel # noqa: F401 from roboflow.util.general import write_line -__version__ = "1.2.12" +__version__ = "1.2.13" def check_key(api_key, model, notebook, num_retries=0):