From 649f61bb03f666ff8d5bc7c98b18f12b7783f06c Mon Sep 17 00:00:00 2001 From: MalteEbner Date: Thu, 4 Jun 2026 10:31:22 +0200 Subject: [PATCH] SAM3: Prevent using transformers 5.10 It is broken, see https://github.com/huggingface/transformers/issues/46402 --- plugins/sam3_segmentation/pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/sam3_segmentation/pyproject.toml b/plugins/sam3_segmentation/pyproject.toml index c27c4fe..1897d9b 100644 --- a/plugins/sam3_segmentation/pyproject.toml +++ b/plugins/sam3_segmentation/pyproject.toml @@ -6,7 +6,9 @@ requires-python = ">=3.10" dependencies = [ "lightly_studio>=0.4.13", "torch", - "transformers>=4.57.2", + # For why to avoid transformers 5.10, see + # https://github.com/huggingface/transformers/issues/46402 + "transformers>=4.57.2,<5.10", "Pillow", "numpy", "huggingface-hub>=0.34",