Skip to content

Add pixi installation instructions#482

Merged
giswqs merged 4 commits intomainfrom
add-pixi-installation
Jan 25, 2026
Merged

Add pixi installation instructions#482
giswqs merged 4 commits intomainfrom
add-pixi-installation

Conversation

@giswqs
Copy link
Member

@giswqs giswqs commented Jan 25, 2026

This PR adds comprehensive pixi installation instructions to address issues #471 and #476.

Summary

Added detailed pixi installation guide similar to the GeoAI QGIS plugin, providing users with a more reliable installation method that avoids common dependency conflicts.

Changes

  • Added pixi installation section to docs/installation.md with step-by-step instructions
  • Updated main README.md to recommend pixi as the preferred installation method
  • Included configurations for GPU (CUDA 12.x, 13.x) and CPU environments
  • Added SAM 3 setup instructions including HuggingFace authentication

Addresses

Benefits

  • Faster and more reliable dependency resolution than conda/mamba
  • Avoids numpy version conflicts between buildingregulariser and sam3
  • Works reliably on Windows where pip/uv installations can fail
  • Provides clear GPU/CPU configuration examples

The instructions mirror the structure and detail of the GeoAI package QGIS plugin installation guide, as requested.

Copilot AI review requested due to automatic review settings January 25, 2026 16:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces pixi-based installation as the recommended way to install segment-geospatial, with detailed environment examples (GPU/CPU) and SAM 3 setup guidance to avoid dependency conflicts (especially around NumPy and PyTorch/CUDA).

Changes:

  • Added a step-by-step pixi installation section to docs/installation.md, including CUDA 12.x/13.x GPU and CPU pixi.toml templates, environment verification, and SAM 3 + Hugging Face setup instructions.
  • Updated README.md to recommend pixi as the preferred installation method and to provide a concise quick-start snippet that links to the full installation guide.
  • Retained existing PyPI/conda/Docker installation sections, positioning pixi as the most reliable path, especially on Windows.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
docs/installation.md Adds a comprehensive pixi-based installation guide with GPU/CPU environment configurations, PyTorch/CUDA verification, and SAM 3 + Hugging Face authentication instructions.
README.md Introduces a new “Install with pixi (Recommended)” section that summarizes the pixi workflow and links to the detailed docs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +95 to +111
#### For CPU:

```toml
[workspace]
channels = ["https://prefix.dev/conda-forge"]
name = "geo"
platforms = ["linux-64", "win-64"]

[dependencies]
python = "3.12.*"
pytorch-cpu = ">=2.7.1,<3"
segment-geospatial = ">=1.2.0"
sam3 = ">=0.1.0.20251211"
jupyterlab = "*"
ipykernel = "*"
libopenblas = ">=0.3.30"
```
Copy link

Copilot AI Jan 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this CPU-only pixi configuration, the platforms field only lists "linux-64" and "win-64" even though the installation section above explicitly targets Linux and macOS as well; this will prevent macOS users from using the provided pixi.toml as-is. In addition, this CPU environment still includes sam3 as a dependency even though the note below states that SAM 3 currently requires an NVIDIA GPU with CUDA support and cannot be used on CPU-only systems, which can confuse users and add an unnecessary heavy dependency. Consider either clarifying that this CPU environment is intended only for Linux/Windows and removing macOS from the earlier instructions, or adding macOS platforms here, and also removing sam3 (or clearly marking it as optional) from the CPU dependency list so CPU users are not misled into thinking SAM 3 will work for them.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

github-actions bot commented Jan 25, 2026

@github-actions github-actions bot temporarily deployed to pull request January 25, 2026 16:07 Inactive
giswqs and others added 3 commits January 25, 2026 11:08
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@giswqs giswqs merged commit de7ad6f into main Jan 25, 2026
9 checks passed
@giswqs giswqs deleted the add-pixi-installation branch January 25, 2026 16:11
@github-actions github-actions bot temporarily deployed to pull request January 25, 2026 16:12 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The version conflict of numpy caused the installation of SAM3 to fail.

2 participants