From 9f92a5992afb61a19feb3c600643f9eae458d184 Mon Sep 17 00:00:00 2001 From: Ryan Avery Date: Wed, 29 Apr 2026 15:31:40 -0700 Subject: [PATCH] Bump torch to 2.11 and torchvision to 0.26 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pin torch and torchvision directly so installs pick up 2.11 instead of whatever older version timm/torchmetrics happen to drag in. Drop Python 3.9 from requires-python — torch 2.11 wheels start at cp310. --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9df1b67..a492cd2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ name = "sam3" dynamic = ["version"] description = "SAM3 (Segment Anything Model 3) implementation" readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.10" license = {file = "LICENSE"} authors = [ {name = "Meta AI Research"} @@ -33,6 +33,8 @@ dependencies = [ "iopath>=0.1.10", "typing_extensions", "huggingface_hub", + "torch>=2.11,<2.12", + "torchvision>=0.26,<0.27", ] [project.optional-dependencies]