GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - samuelvoltarius/ForgePix: ForgePix (Beta) — automatic focus stacking & computational photography for macro, astro and long-exposure series. Runs locally, AI optional. Free, MIT.

BranchesTags
Open more actions menu

Latest commit

 

History

368 Commits
368 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
ForgePix.app/Contents
ForgePix.app/Contents
 
 
assets
assets
 
 
core
core
 
 
docs
docs
 
 
lang
lang
 
 
site
site
 
 
tests
tests
 
 
training
training
 
 
ui
ui
 
 
.gitignore
.gitignore
 
 
CHANGELOG.de.md
CHANGELOG.de.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLAUDE.md
CLAUDE.md
 
 
LICENSE
LICENSE
 
 
README.de.md
README.de.md
 
 
README.md
README.md
 
 
einrichten.py
einrichten.py
 
 
focus_stack_gui.py
focus_stack_gui.py
 
 
requirements-core.txt
requirements-core.txt
 
 
requirements.txt
requirements.txt
 
 
run.bat
run.bat
 
 
run.sh
run.sh
 
 
run_tests.sh
run_tests.sh
 
 
testdaten_holen.py
testdaten_holen.py
 
 

Repository files navigation

ForgePix ⚡

forgepix.app · Focus • Astro • Long Exposure

🇩🇪 Deutsche Version

tests release license: MIT status: beta

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.

ForgePix modules

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).

Why ForgePix?

  • ✓ 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)

How it works

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
Input Analysis Focus map 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
Start Macro
Camera‑Raw editor Astro module
Editor Astro

Highlights

(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).

Runs everywhere — AI is optional

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.

Download (prebuilt)

Ready‑made packages for macOS · Windows · Linux are on the Releases page (no Python needed):

  • macOS: ForgePix-macOS.zip → unzip, open ForgePix.app.
  • Windows: ForgePix-Windows.zip → unzip, run ForgePix.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).

From source

python3 -m pip install -r requirements.txt
python3 focus_stack_gui.py
  • macOS: double‑click ForgePix.app (optional exiftool for EXIF copy).
  • Windows: run.bat · Linux: ./run.sh

First steps

  1. Open the app → pick a module (Macro / Astro / Hybrid / Long exposure).
  2. 🌱 Beginner (default): pick a folder (or drag it onto the window) → ⚡ Start. Done.
  3. 🛠️ 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.

Sample data to try

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.

External tools & AI backends (all optional)

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.

Languages

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.

Keyboard shortcuts

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.

Tests

./run_tests.sh        # or: python3 -m unittest discover -s tests

Engine 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.

License

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).

About

ForgePix (Beta) — automatic focus stacking & computational photography for macro, astro and long-exposure series. Runs locally, AI optional. Free, MIT.

forgepix.app

Topics

astrophotographycomputational-photographyfocus-stackingimage-processinglong-exposuremacro-photographyopencvphotographypyside6raw-photography

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.