Skip to content

LucidFrame-v2.1.0

Choose a tag to compare

@Cosmos-0118 Cosmos-0118 released this 26 Oct 16:32
· 13 commits to main since this release
4ffa321

LucidFrame 2.1

LucidFrame can now repair a damaged image before and after upscaling. Blocky JPEGs and out-of-focus photos are cleaned up first, and small or damaged faces are rebuilt afterwards. Several models work together, all on your own machine, and the app decides by itself what each image needs.

Install

  • Windows 10/11: download LucidFrame-2.1.0-win-x64.exe and run it. It's a one-click, per-user install with no admin prompt. If SmartScreen warns about an unknown publisher, choose More info → Run anyway (builds are not code-signed yet).
  • macOS (Apple Silicon): download the .dmg and drag LucidFrame to Applications. The first time, right-click the app and choose Open (not notarized yet).
  • Linux (64-bit): download the .AppImage (chmod +x it and run) or the .deb. On Ubuntu 24.04+ the AppImage may need --no-sandbox.
  • From source: npm install && npm start (Node.js 22.12 or newer). The first start downloads the AI models (about 180 MB, hash-checked) and then works offline.

Installers contain every model and never download anything. They are about 115 MB larger than 2.0 because of the new models.

What's new

  • Restore pipeline. Each image can go through three stages:
    1. Clean up blur and compression. A 1× repair model removes JPEG block artifacts and reduces blur before upscaling, so the upscaler doesn't enlarge the damage into mosaics.
    2. Upscale with the model you chose.
    3. Restore faces. YuNet finds faces, GFPGAN 1.4 rebuilds each one, and the result is colour-matched and blended back in. Small or blurry faces come out sharp, where the photo model alone often garbles them.
  • It decides for you. In Auto, cleanup runs only on images it detects as blocky or soft, and face restoration acts on small or damaged faces and leaves large, already-detailed ones alone. Each stage can be set to Auto, On/Always or Off in the new Restore section of the sidebar, or with --cleanup and --faces on the command line.
  • It tells you what it did. The result bar shows "Blur reduced", "Compression blocks removed" or "1 face restored", and the CLI prints the same.
  • Easier to judge results. When the comparison is zoomed out, a hint offers one click to inspect the detail at 100%, since a 4× upscale looks almost identical to the original at fit-to-window size.
  • Credits and licences are now under Help, and the licence texts ship in every installer.
  • Command line. New --cleanup auto|on|off, --faces auto|always|off and --face-strength. The self-check (npm run doctor, or Help → Run self-check…) now exercises each Restore stage.

How well does it work?

Perceptual distance to the original (LPIPS, lower is better) on the face region of a test portrait, 4× results:

Input Photo model only With Restore (Auto)
Out of focus, JPEG q60 0.426 0.055
320 px wide, JPEG q15 0.109 0.079
192 px wide, JPEG q20 0.119 0.100
384 px wide, JPEG q70 (mild) 0.032 0.029

The last row shows Auto leaving a lightly compressed image essentially alone. Side-by-side images and the full table are in the README.

Fixes

  • Redo did nothing. The Redo button requeued the file but never started the queue, so you had to press Upscale again. It now runs immediately.
  • Faster and safer model setup. The model files are no longer stored in the git repository; they are release assets that the app downloads and verifies by SHA-256 when running from source, which keeps clones small. A corrupt or partial download is never used.
  • GPU safeguard. If a graphics driver returns an implausible face (garbage or NaNs), LucidFrame redoes the faces on the CPU instead of saving a broken result.

Known limitations

  • Face restoration invents plausible detail, so a person's likeness can change slightly. It is on Auto by default; switch it to Off if fidelity matters more than looks.
  • Block-aligned pixel art can be mistaken for compression. Set cleanup to Off for it.
  • The test results come from synthetic degradations of one public-domain portrait, plus checks on other photos. They are not a benchmark.
  • GPU acceleration is untested on real hardware. The new stages use the same device selection and fall back to CPU. If something looks wrong on your GPU, run Help → Run self-check… (or npm run doctor) and include the output in an issue.
  • On CPU, face restoration takes about 2 to 3 seconds per face on a 4-core machine; Photo and Anime upscaling are as slow as before (roughly 90 to 105 seconds per input megapixel).
  • No Intel-Mac build, and Linux installers run on CPU, as before.

Credits

Upscaling and cleanup models by Philip Hofmann (Phhofm), CC BY 4.0. Face restoration by GFPGAN (Tencent ARC Lab, Apache-2.0). Face detection by YuNet (Shiqi Yu et al., MIT). See NOTICES.md for every third-party component.

What's Changed

Full Changelog: v2.0.0...v2.1.0