image stitching for microscopy with GPU acceleration support.
./setup_ubuntu_22_04.shInstalls conda (if needed), creates image-stitcher environment, and installs dependencies.
./setup_cuda_22.04.shAdds CuPy for optimal NVIDIA GPU performance (compatible with Driver 535.x).
Note: If you haven't enabled script execution in PowerShell, you may need to run this first:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserThen run the setup:
.\setup_windows_11.ps1Installs conda (if needed), creates image-stitcher environment, and installs dependencies.
.\setup_cuda_windows_11.ps1Adds CuPy for optimal NVIDIA GPU performance.
python create_desktop_shortcut.pyCreates a desktop launcher that auto-activates the conda environment.
./run_guiOr manually:
conda activate image-stitcher
python -m image_stitcher.stitcher_guiThe GUI includes a Compute Backend dropdown that allows you to select the tensor backend:
- Auto (Recommended) - Automatically selects the best available backend
- NumPy (CPU) - CPU-only processing using NumPy
- PyTorch (GPU/CPU) - Uses PyTorch with GPU acceleration if available
- CuPy (NVIDIA GPU) - Maximum performance with NVIDIA GPU acceleration
The dropdown shows the actual backend status (GPU/CPU).. Backend selection affects the registration process performance significantly.
This repository is set up with ruff for linting and formatting, and mypy for type checking. The shell scripts in the dev directory can be used to invoke these tools and should be run from the repository root.
You can install them with pip install mypy ruff