forgepix.app · Focus • Astro • Long Exposure
ForgePix Beta — automatic focus stacking and computational photography for macro, astro and long‑exposure series. Local‑first, AI optional. It’s usable and tested, but young — expect the occasional rough edge and please report issues.
See the current capability status and RC acceptance criteria for verified behavior and open work. ForgePix has not established feature or image-quality parity with Siril, PixInsight, GraXpert or RC Astro.
Focus Stacking + Astro + Long Exposure. Drop your photos in, get a finished image out — in the best possible quality for further editing. Self‑contained, free (MIT), cross‑platform (Windows / macOS / Linux).
- ✓ Analyses focus series
- ✓ Removes rejects automatically
- ✓ Computes the optimal frame count
- ✓ Long exposure without an ND filter
- ✓ Astro + macro in one app
- ✓ Works without AI (fully local, no server)
A soft focus series becomes one fully sharp image — and you see what happens at every step:
| 1 · Input (series) | 2 · Analysis | 3 · Focus map | 4 · Result |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
| 9 frames, each only partly sharp | shaky dropped, optimal frame count | which area from which photo | fully sharp, ready to edit |
📖 Full guide: docs/GUIDE.en.md · 🇩🇪 Anleitung
| Start screen | Macro module |
|---|---|
![]() |
![]() |
| Camera‑Raw editor | Astro module |
![]() |
![]() |
(Short version — the full guide has every option.)
- One‑click Automatic (Beginner & Pro) — picks the usable frames, aligns, merges to a fully‑sharp image, sharpens gently. In Beginner mode just drop a folder: ForgePix guesses the module (file types / names / EXIF sample) and runs. In → done.
- Four modules, one app: 🔬 Macro (focus stacking, Product/Coin/Food presets), 🌌 Astro (star stacking), 🌗 Hybrid (Moon/Sun mosaic + Focus+Astro) and 📷 Long exposure (no ND filter — silky water/clouds, trails, virtual exposure‑time slider).
- Own engine (OpenCV/NumPy) — no external stacking software. Large stacks are streamed (memory‑friendly); RAW development & sharpness analysis run across all CPU cores (cached).
- Focus tools (macro): series & focus‑map analysis, DOF/bracketing assistant with EXIF read‑out, stack‑confidence score, and a decision panel with clickable findings and a “why these settings?” rationale.
- Astro: auto‑detected calibration (darks/flats/bias), star alignment (translation or field rotation) plus TPS local registration (field‑curvature fix), hot/cold‑pixel fix, sigma / winsor / linear‑fit rejection, drizzle‑lite and true drizzle (pixfrac drop), binning, multi‑session stacking, asinh / MTF / GHS stretch, real photometric color calibration (PCC/SPCC) via Siril (Gaia DR3) or an own astroquery path (lite fallback always works), explainable sub‑grading, 32‑bit linear + FITS export, live preview while stacking, and automatic GraXpert/StarNet++. Dual‑band (Hα/OIII) with HOO / synthetic SHO / Foraxx / Bicolor.
- Focus merge methods: Laplacian pyramid, depth‑map, weighted average (Method A), à‑trous wavelet, and halofix (dual‑output halo retouch) — with Helicon‑style Radius/Smoothing.
- HDR & long exposure: Exposure Fusion or radiance‑map tonemapping; deghosting; comet/trail gap‑fill; sigma‑clipping and freeze‑foreground (Sequator‑style).
- Built‑in editors: Camera‑Raw (exposure, tone curve, per‑color HSL, lens corrections — lensfun auto or manual vignette/distortion/CA, crop/rotate, histogram, mask brush) and a retouch brush over halos/ghosting.
- RAW faithfully developed to 16‑bit (DHT/DCB/VNG/AHD, AMaZE where available); EXIF/provenance preserved.
- Export & workflow: before/after slider, film strip, ghost map/deghost, export presets (Instagram/WhatsApp/Web/4K/Print), batch & watch folder, quick‑export chips, resume last folder.
- Pre-flight, measurement report and advice: Before stacking, ForgePix reads only the FITS headers and states what it sees — count, camera, filter, exposure, temperature span, nights — and warns about two cameras in one folder or too few frames before the computation starts. After the run the linear stack is measured (sky, gradient, star count, FWHM, roundness, channel ratios, signal-to-noise) and a rule set turns that into advice with reason, action and the concrete switch — clickable in the interface. Deterministic and offline; every rule is a test, and missing measurements trigger none.
- Fully keyboard‑operable, German & English UI, AI strictly optional (local or API).
Automatic works completely without AI (settings derived from the measured sharpness profile). No Ollama, no server, no model download. Optionally connect an OpenAI‑compatible server (Ollama / llama.cpp / LM Studio / vLLM) or a provider with API key (OpenAI / OpenRouter). The "Find local AI" button locates a running server on your own machine and fills it in; if there is none, it says what is missing. Nothing is downloaded without explicit consent. This optional language assistant advises & checks settings; it does not process image pixels. “The software explains why it chose these settings.” You can add a free‑text wish (e.g. “silky water, people sharp”) and the suggestion also gets EXIF basics + the focus map. Setup states exactly what is sent — a few preview frames, the sharpness profile, EXIF basics and your wish; no original files, no location data.
The separate local AI image tools use four ForgePix-trained models for noise reduction, background correction, blur reduction and star removal. After creating or importing a linear result, open Tools → Local AI: noise, background, detail and stars …. Choose a linear FITS or TIFF stack, select a function and strength, then explicitly enable experimental processing. Raw Bayer frames must first be calibrated and debayered; JPEG previews are not accepted. The bundled models run locally with ONNX Runtime and need no server or external astronomy application. They are explicitly experimental: measured on real frames, only the denoiser holds up — for sharpening, star separation and background the classical built-in path is better. The numbers are in docs/KI_MODELLE.md.
Windows x64 packages automatically prefer a compatible graphics processor via DirectML. The dialog also offers Processor only. The actual backend and any CPU fallback are shown; see GPU acceleration for platform scope and requirements.
These models are experimental, change pixel values and may alter faint structures, flux or star shapes. They are never enabled by automatic processing. Results are written separately as Float32 FITS and TIFF; before/after previews use the same display stretch. Star removal also saves a signed difference layer for reconstruction. Camera generalization and photometry are not qualified. An additional denoiser training run was rejected on a fresh test set; the bundled denoiser does not beat the earlier research baseline in aggregate pixel error. See the model cards and limitations and training evidence.
The same opt-in processing is available from source:
python focus_stack_gui.py --ai-restore --input linear_stack.fits --model forgepix-denoise-mono-v2 --strength 0.5 --experimental
Use the model IDs forgepix-background-mono-v2, forgepix-deblur-mono-v2 or
forgepix-starless-mono-v2 for the other functions. In a prebuilt package,
replace python focus_stack_gui.py with the ForgePix executable.
Pros can optionally connect Siril (if installed) — used both as an alternative astro engine and for real photometric color calibration (plate‑solve + Gaia DR3 SPCC) — and hand off to GraXpert / StarNet++. None of it is required: without Siril/network, PCC falls back to the built‑in star‑based calibration.
Ready‑made packages for macOS · Windows · Linux are on the Releases page (no Python needed):
- macOS:
ForgePix-macOS.zip→ unzip, openForgePix.app. - Windows:
ForgePix-Windows.zip→ unzip, runForgePix.exe. - Linux:
ForgePix-Linux.tar.gz→ extract, run./ForgePix/ForgePix.
First launch on macOS/Windows: right‑click → “Open” (the app isn’t notarised yet — enable signing).
python3 -m pip install -r requirements.txt python3 focus_stack_gui.py
- macOS: double‑click
ForgePix.app(optionalexiftoolfor EXIF copy). - Windows:
run.bat· Linux:./run.sh
- Open the app → pick a module (Macro / Astro / Hybrid / Long exposure).
- 🌱 Beginner (default): pick a folder (or drag it onto the window) → ⚡ Start. Done.
- 🛠️ Pro: guided wizard with all controls, AI server, external tools, etc.
Every setting has a ? with a plain‑language explanation. The recommended frame count per module is shown right in its group — details in the guide.
Curated test datasets (good and deliberately bad frames) are a sample download: astro subs (M 42 / IC 5146, Bayer FITS), a landscape RAW and a macro focus series — just drop the folder onto the window.
In the Setup menu (⚙) → "External tools" you set paths to GraXpert, StarNet++, Siril and Cosmic Clarity (or leave empty = auto‑detect). None of it is required — ForgePix is fully local without any of them, and every step gracefully falls back.
For Astro the optional pro chain runs in the right order, and — importantly — image filters never touch the stars: stretch → StarNet++ (remove stars) → GraXpert (background + AI denoise) → Cosmic Clarity (AI sharpening, a free BlurXTerminator alternative) on the starless nebula only → boost → the untouched stars are blended back. ForgePix can also drive Siril’s bundled Python scripts headless (AberrationRemover, AutoBGE, …).
Extra AI, fully local via onnxruntime: --upscale runs
Real‑ESRGAN 2× super‑resolution on the result (any module). Heavy steps can optionally run on
a remote GPU host (FORGEPIX_GRAXPERT_REMOTE) — but the default and fallback are always local.
German & English built in (switch top‑right, applies on restart). Add your own language:
copy lang/de.json, translate the values, save as e.g. lang/fr.json — it appears in the
language menu automatically.
Photo keys (Lightroom-style): Space before/after · ← → switch image · A analyse · S stack · E editor · G ghost map · F focus map · R retouch. Commands: ⌘O folder · ⌘↩ automatic · ⌘E export · ⎋ stop/back · ⌘1–4 modules · ⌘B beginner/pro · ⌘D DOF · F1 = full overview. Dropping a folder on the window starts the analysis.
./run_tests.sh # or: python3 -m unittest discover -s testsEngine tests (standard library, no pytest needed) cover focus analysis, long exposure, astro (registration, palettes, binning, calibration), stacker, mosaic, export, parallel helper, module guessing, AI context, i18n completeness (incl. an unwrapped‑string guard) and a GUI smoke test.
MIT (see LICENSE). Built only on permissive components: OpenCV, NumPy, rawpy, tifffile,
psdtags, PySide6 (LGPL). Astro methods inspired by Siril (re‑implemented,
no GPL code copied).








