← Back to Leaderboard
Acecret3350

cecret3350/AnyStitch

HF Paper ↗

Depth-guided diffusion stitching for large-parallax panoramas

View on GitHub ↗
LLM TrainerQuickstart ↓
Engineering Health (Methodology)
B+ · 73/100
Maintenance Activity
● Updated yesterday
Latest Release
Rolling commits (main)
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption7/25
Release Cadence11/20
License Clarity20/20
Local AIGPUCLI
Total Stars
★ 34
24h Growth
+2
7d Growth
+29
Forks
2

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

cecret3350/AnyStitch Star History (2026-09-01 - 2026-12-01) ALL-TIME STAR HISTORY (2026-09 – 2026-12) +33 in 91d · avg +0/day 38 19 0 2026-09-01: ★ 12026-09-12: ★ 32026-09-19: ★ 32026-09-26: ★ 32026-10-03: ★ 32026-10-10: ★ 32026-10-17: ★ 32026-10-24: ★ 32026-10-31: ★ 32026-11-06: ★ 42026-11-12: ★ 42026-11-18: ★ 52026-11-24: ★ 52026-12-01: ★ 34 ★ 34 09-01 10-16 12-01

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

AnyStitch separates geometric alignment from image synthesis. DA3NESTED-GIANT-LARGE estimates a depth map and camera pose for each overlapping photograph. Those estimates drive reprojection into a chosen target view, after which a diffusion model generates the panorama patch by patch. This gives the pipeline a way to handle depth-dependent displacement caused by camera translation rather than forcing all scene depths into one planar warp.

The Python CLI has separate entry points for v1 (stitch.py) and paper reproduction (stitch_old.py), and setuptools discovers the stitching and diffsynth packages. The runtime includes PyTorch, torchvision, transformers==4.57.6, OpenCV, Pillow, and safetensors. The diffusion stack draws its text encoder and VAE from FLUX.2-klein-9B and its transformer and tokenizer from FLUX.2-klein-base-9B. --lora is the exposed interface for selecting a local stitching adapter; additional geometry backends are listed as future work, not current options.

Key Capabilities & Differentiators

Custom scenes require at least two overlapping photos with the same aspect ratio, named in camera order. The default is an average camera pose with cylindrical projection. The CLI also exposes rectilinear and equirectangular projections and can anchor the output to the last camera. --intermediates saves the per-view reprojections, the pre-stitch, and the panorama after each patch, making it possible to distinguish misalignment already present in the geometry stage from changes introduced later by diffusion.

The bundled RISWMR subset contains 14 two-view scenes with matching saved outputs for the paper checkpoint and v1. Its preset uses the last camera, rectilinear projection, center-first generation, 40 diffusion steps, panorama seed 219, and recorded per-scene geometry seeds. AnyStitchSyn adds 2,192 training pairs rendered from 950 InteriorGS scenes, with geometry and ground-truth targets at an intermediate camera pose for three projections. These are concrete evaluation and research assets, not evidence of a complete training workflow on the main branch.

Trade-offs & Limitations

A conventional feature-matching, homography, and blending pipeline avoids running multiple neural models and is a useful baseline when rotation dominates or an approximately planar scene aligns well. AnyStitch is a better candidate when translation prevents foreground and background from aligning together. Its quality still depends on inferred depth and poses, and diffusion may synthesize plausible content that no input captured. A clean seam is therefore not proof of geometric or photometric fidelity.

Local execution can keep photos on the workstation, but it shifts model storage, cache provisioning, and CUDA compatibility onto the operator. The 14-scene two-view subset is useful for regression testing, not for establishing quality or scaling limits on arbitrary captures. The separate two-stage pipeline behind the 104.47 MP demo and cleaned-up training code are not part of the documented main-branch workflow. Apache-2.0 applies to the repository; review the terms for external weights, adapters, and data separately before commercial use or redistribution.

Hardware & Deployment Guide

The package requires Python 3.10 or later, while the installation path uses Python 3.11 on Linux with an NVIDIA GPU, CUDA 12.4 PyTorch 2.6.0 and torchvision 0.21.0 wheels, and a Git-pinned Depth Anything 3 dependency. FLUX weights default to ModelScope and can be switched to Hugging Face; DA3 downloads from Hugging Face. For offline runs, stage the task LoRA and both model caches, configure DIFFSYNTH_MODEL_BASE_PATH and DA3_CACHE_DIR, then set DIFFSYNTH_SKIP_DOWNLOAD=true and HF_HUB_OFFLINE=1.

V1 is the path for new photos and uses a 675 MB LoRA. Keep stitch_old.py and the 169 MB paper LoRA together for paper reproduction. For pixel-level comparisons, match the saved-output environment beyond the quick-start pins: it used an NVIDIA A800, Python 3.11.13, xFormers 0.0.29, and specific numerical and image-library versions. No minimum VRAM or timing figures are provided. Profile both geometry and diffusion on representative inputs before committing to a GPU size or batch throughput.

Geometry: DA3NESTED-GIANT-LARGE estimates depth and camera pose for each input before reprojection.
Generation: FLUX.2-klein 9B-family components and a task-specific LoRA synthesize the panorama patch by patch.
View control: Custom scenes default to cylindrical projection and an average camera pose; rectilinear and equirectangular projections are also exposed.
Diagnostics: --intermediates saves individual reprojections, the pre-stitch, and the panorama after each patch.
Reproducibility: The bundled 14-scene RISWMR subset includes paper and v1 outputs; its preset uses 40 diffusion steps and panorama seed 219.
Research assets: AnyStitchSyn provides 2,192 training pairs from 950 InteriorGS scenes, with sample geometry and targets for three projections.
Best For

Researchers and imaging engineers evaluating large-parallax stitching, comparing target viewpoints, or reproducing the bundled two-view results on a local NVIDIA GPU.

Skip If

You need strictly source-faithful output, a ready-to-run training workflow, or the separate pipeline used for the 104.47 MP demo.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodologyReport inaccuracy

Quick Start & Installation

Local AIGPUCLI
git clone --branch main https://github.com/cecret3350/AnyStitch.git
cd AnyStitch

conda create -n anystitch python=3.11 -y
conda activate anystitch
python -m pip install torch==2.6.0 torchvision==0.21.0 --index-url https://download.pytorch.org/whl/cu124
python -m pip install 'torch==2.6.0' 'torchvision==0.21.0' \
  'depth-anything-3 @ git+https://github.com/ByteDance-Seed/Depth-Anything-3.git@ed6989a23cd389e975ed9f7cbd7385396e6d867e' -e .

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/cecret3350/AnyStitch.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

cecret3350/AnyStitch Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about AnyStitch

How do I integrate AnyStitch into a local image-processing workflow?

Use stitch.py with the v1 LoRA for new scenes, pass an ordered image directory with --scene, and write to a separate directory with --output. Custom scenes default to cylindrical projection and an average camera pose. Use --target-view last to anchor the panorama to the last input camera and --intermediates to inspect the projections and patch-by-patch output.

What GPU and VRAM should I budget for?

Use the documented Linux/NVIDIA CUDA stack as the starting point. An NVIDIA A800 was used for the bundled reference outputs, but that does not establish a minimum GPU or VRAM requirement. Measure peak VRAM and wall-clock time on representative scenes before setting canvas sizes or running jobs concurrently; include both DA3 geometry estimation and FLUX diffusion in the measurement.

Can I use it commercially and run it without network access?

The repository is Apache-2.0, but that license alone does not establish commercial-use or redistribution rights for the DA3 and FLUX weights, the task LoRA, or the training data. Check their terms and access requirements separately. Inference can run offline once the LoRA and all required base-model files are local and both model caches are configured.

When should I choose AnyStitch over conventional panorama stitching?

Start with a feature-matching and blending stitcher if the shots were taken mostly by rotation, align well with a single warp, or must preserve recorded content. Test AnyStitch when camera translation creates depth-dependent misalignment or you need a chosen target viewpoint. Inspect synthesized regions: they can look coherent without being faithful to what was photographed.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining cecret3350/AnyStitch? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature cecret3350/AnyStitch on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare