From e10cf5b268b33395e33d04eefc24c86f18c703c9 Mon Sep 17 00:00:00 2001 From: Vaasudevan Srinivasan Date: Fri, 19 Dec 2025 21:40:04 -0400 Subject: [PATCH 1/3] Update pyproject.toml --- pyproject.toml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2ac9d3a5..c2b5227e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,10 +76,12 @@ samgeo3 = [ "buildingregulariser", "leafmap", "localtileserver", + "psutil; platform_system == 'Windows'", "spacy", - "triton>=3.5.1; sys_platform == 'linux'", - "triton-windows>=3.3.0.post19; sys_platform == 'windows'", - "transformers>=5.0.0rc0", + "tokenizers", + "triton; platform_system == 'Linux'", + "triton-windows; platform_system == 'Windows'", + "transformers", "xarray" ] text = [ From 5e01b6d53f065a4223376d35892d81b8c04d1f42 Mon Sep 17 00:00:00 2001 From: Vaasudevan Srinivasan Date: Fri, 19 Dec 2025 21:44:53 -0400 Subject: [PATCH 2/3] Update pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c2b5227e..9b56243c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,7 +78,7 @@ samgeo3 = [ "localtileserver", "psutil; platform_system == 'Windows'", "spacy", - "tokenizers", + "tokenizers==0.22.1", "triton; platform_system == 'Linux'", "triton-windows; platform_system == 'Windows'", "transformers", From d670de6282b3baa02692134fbd18028adab3a84d Mon Sep 17 00:00:00 2001 From: Vaasudevan Srinivasan Date: Fri, 19 Dec 2025 21:51:56 -0400 Subject: [PATCH 3/3] installation instructions using `uv` --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b6e7ca59..bd53f506 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ conda install -c conda-forge groundingdino-py segment-anything-fast ### Install SAM 3 on Windows -It is a bit tricky to install SAM 3 on Windows. Run the following commands on Windows to install SamGeo: +Run the following commands to install SamGeo using `conda`: ```bash conda create -n geo python=3.12 @@ -110,6 +110,13 @@ pip install "segment-geospatial[samgeo3]" pip install triton-windows ipykernel jupyterlab ``` +`uv` based installation +```bash +uv venv --python=3.16 +uv pip install torch torchvision --index-url https://download.pytorch.org/whl/cu128 +uv pip install segment-geospatial[samgeo3] +``` + ## Examples - [Segmenting remote sensing imagery](https://samgeo.gishub.org/examples/satellite)