Skip to content

Releases

v0.0.6

Choose a tag to compare

@jesusdpa1 jesusdpa1 released this 22 Nov 01:05
54a8f02

Multi-resolution Cell Overlay LOD Pyramid (density heatmap → anti-aliased centroids → crisp
contours with dark halo & nucleus/cytoplasm distinction), Plugin-Contributed Pipeline Tabs
(Histology tab right after Process), Async WebGPU CubeCL Compute in the standalone browser
worker, ML Plugin Binary Distribution (lucem plugins list|install), Spatial Inspection &
Editing UX
(Split curtain compare, Hover Cell Tooltip, Pinned Single-Cell Inspector, interactive
box/ellipse/ruler edge & corner resizing), Determinate Job Progress Card, and refreshed
Lucem branding (hand-sketched cell logo with dark + cream light theme, Matemasie wordmark,
and Help › About Lucem).

Added

  • Multi-resolution Cell Overlay Pyramid (LOD): detected cells now render smoothly across all
    zoom levels — macro spatial density heatmap → mid-zoom anti-aliased centroid disks → micro-zoom
    crisp contours with dark outer halo, configurable outline width, and nucleus/cytoplasm distinction
    (Auto LOD, Outlines, Fill + outline, Centroids, Density).
  • Plugin-contributed Pipeline tabs: domain plugins add their own menu tab directly in the
    Pipeline bar (Edit · Sources · Process · Histology · Script · Model · Output).
  • Spatial inspection & editing UX:
    • Interactive edge, corner, and endpoint resizing for rectangles, ellipses, and rulers (with
      Shift aspect-ratio lock and Escape cancel).
    • Draggable vertical Split curtain compare mode alongside Hold to compare.
    • Floating Hover Cell Tooltip and Pinned Single-Cell Inspector (morphology + per-channel
      measurement bars) with one-click Merge and Delete cell editing.
  • Determinate Job Progress Card: floating non-blocking progress card showing active stage,
    determinate progress bar, percentage, and one-click Cancel.
  • Help › About Lucem & refreshed branding: theme-aware hand-sketched cell logo (dark + cream
    light mode), Matemasie wordmark, GPU-composited web loader, and Help › About Lucem,
    Documentation, and Report an issue.
  • ML plugin binary distribution (lucem plugins): lucem plugins list and
    lucem plugins install <stardist|instanseg|sam|all> download SHA-256 verified binaries from
    GitHub Releases.
  • Async WebGPU CubeCL compute in standalone browser worker: lucem-engine-web opens WebGPU
    asynchronously and evaluates GPU pipelines directly in the browser without a server.

Fixed

  • Avoided Atomics.wait main-thread panics in standalone browser WASM (TileService, ChunkCache).
  • Fixed Hold to compare turning the canvas black when raw channels were hidden without active results.
  • Fixed Chrome web loader SVG freezing half-drawn during WebGL2 startup.

Install

The library crates from crates.io: cargo add lucem (core, io, ops, ml) and the others
(lucem-hist, lucem-pipeline, lucem-view, lucem-hub). The app and the lucem
command build from this tag: cargo install --git https://github.com/neuro-kitchen/lucem --tag v0.0.6 lucem-cli.
ML model plugins (lucem-ml-stardist, lucem-ml-instanseg, lucem-ml-sam) are attached
below and installed with lucem plugins install all.

Python: pip install lucem, with extras hist, app, web or all (pip install "lucem[all]").

v0.0.5

Choose a tag to compare

@jesusdpa1 jesusdpa1 released this 22 Nov 11:53
5e82d75

Publication-ready Figure composer workspace, Zero-Freeze ML Cell Detection (StarDist and
InstanSeg) with canonical 512×512 batched-volume inference and server-side viewport
rasterization, Edge-Snapping Sobel Magic Wand, pure-Rust syntect code editor & @lucem.op
pipeline scripts
with zero-copy /dev/shm IPC, lucem[web] Python wheel, and a 108-page
documentation & interactive Python course overhaul
.

Added

  • Figure Publication Composer workspace (5th tab) (lucem-app-core): MVVM multi-panel
    publication figure builder with All channels + Merge and Pipeline stages presets,
    interactive scroll-wheel zoom and drag-to-pan per panel, Linked zoom / Single view toggle,
    one-click ROI crop sync, calibrated scale bars (Auto or 25 µm–1 mm), Dark/White/Black
    artboard backgrounds, and high-DPI Export PNG / SVG.
  • Server-side cell & tile viewport rasterization (hist/raster) (lucem-hist,
    lucem-app-core): QuPath/Cytomine-style viewport raster endpoint that renders visible cell and
    nucleus boundaries on the server into a compact ~20 KB PNG overlay so slides with 100k+ cells
    render and pan at 60 FPS in the browser without downloading megabytes of polygon JSON.
  • Canonical 512×512 batched-volume ML inference & VRAM eviction (lucem-core::compute::batch,
    lucem-model-stardist, lucem-model-instanseg, lucem-hist): fixed 512×512 (384 + 2×64)
    tile shapes eliminate per-ROI CubeCL autotune stalls (28–32 ms/tile warm on CUDA),
    LUCEM_ML_BATCH (1..=8) scales batch volume to GPU VRAM, and idle ML plugins are automatically
    evicted on model switch.
  • Edge-Snapping Sobel Magic Wand (lucem-app-core): multi-channel Sobel gradient-magnitude
    edge barrier, 3×3 neighborhood adaptive seed statistics, 1-pass morphological hole closing,
    drag-to-add sweep, Alt-to-erase, and a Snap to edges toolbar toggle.
  • Code editor, @lucem.op scripts & /dev/shm Python pool (lucem-app-core, lucem-py):
    pure-Rust syntect syntax highlighting on desktop and WebAssembly, @lucem.op parameter comment
    parser with live UI sliders, zero-copy /dev/shm shared-memory IPC in the warm Python worker
    pool, native ruff lint/format buttons, and 7 runnable playground/ scripts.
  • lucem[web] (lucem-web) Python package & lucem.web.serve() (bindings/python):
    platform-independent wheel bundling the browser WebAssembly app (uv run lucem web --open).
  • Live Pixel Probe HUD (lucem-app-core): bottom status bar displays real-time cursor (x, y)
    coordinates in µm and raw per-channel intensity values under the cursor.
  • Documentation & Python Course overhaul (108 pages) (docs/): single-row header, side-by-side
    hero showcase, Learn › Python interactive 3-module course, Reference › Python API,
    Coming from QuPath / napari migration guides, Performance & Architecture guide, and
    llms.txt.

Changed

  • Zero-bounce GPU pipeline & histology ops (lucem-ops, lucem-pipeline, lucem-hist,
    lucem-io): added CubeCL device kernels for MaskUnion, MaskIntersect, MaskSubtract,
    MaskInvert, MaskImage, ChannelRatio, NormalizedDiff, and ChannelProduct; kept cell
    detection linear combinations, Euclidean distance Gaussian smoothing, watershed inversion, SLIC
    channel averaging, and run_spec block normalization/halo-cropping on the GPU; cached multi-channel
    Zarr chunks in GLOBAL_CHUNK_CACHE; replaced HashMap-based trace_labels contour chaining with
    a flat Rayon-parallel sorted-edge tracer (~15× faster on 100k+ cells).

Fixed

  • Browser WASM panics after remote histology completes: guarded std::time::SystemTime::now()
    in Session::push and rayon::par_iter() in Hierarchy::build on wasm32-unknown-unknown, and
    unconditionally routed served-browser histology and pipeline compute to lucem serve.
  • Multiview channel bleed: non-active channels in Multiview grid cards no longer inherit DAPI
    when channel 0 is toggled off.

Install

The library crates from crates.io: cargo add lucem (core, io, ops, ml) and the others
(lucem-hist, lucem-pipeline, lucem-view, lucem-hub). The app and the lucem
command build from this tag: cargo install --git https://github.com/neuro-kitchen/lucem --tag v0.0.5 lucem-cli.

Python: pip install lucem==0.0.5.

v0.0.4

Choose a tag to compare

@github-actions github-actions released this 19 Nov 20:10
378b714

Fused GPU pipeline & memory budgets, native OME-Zarr v0.5 / Zarr v3 reading, 22 new GPU
operations
(52 built-in ops), 3D Volume Viewer in the browser with six-sided clipping and
depth-cued rendering, warm Python script workers & public plugin template, and an M3 Expressive +
Instagram Edits-inspired UX overhaul
with live Before ↔ After previews.

Added

  • Native OME-Zarr v0.5 / Zarr v3 reader (lucem-io): opens v0.5 containers (zarr.json with
    attributes.ome.multiscales, c/ chunk key encoding, zstd/gzip/blosc/bytes codecs) alongside
    OME-Zarr v0.4.
  • 22 new GPU operations (52 built-in ops in lucem-pipeline / lucem-ops): Frangi, Sato,
    Invert, LogContrast, SigmoidContrast, ChannelRatio, NormalizedDiff, ChannelProduct,
    Bilateral, BlackTophat, LiThreshold, TriangleThreshold, SauvolaThreshold,
    NiblackThreshold, HysteresisThreshold, FillHoles, RemoveSmallHoles, Skeletonize,
    DistanceTransform, ExpandLabels, ClearBorder, and FindBoundaries.
  • Fused GPU EvalCache & unified memory budgets (lucem-core, lucem-pipeline, lucem serve --memory): fused PointwiseOp/PointwiseRun CubeCL kernel, size-classed GPU scratch pooling,
    shared GLOBAL_CHUNK_CACHE, and persistent PipelineTiles cache.
  • 3D Volume Viewer upgrades (lucem-view, lucem-app-core): six-sided GPU VolumeClip
    planes, VolumeMode::DepthCue, OrbitCamera::{xy, xz, yz, isometric} presets, and a pure-CPU
    software ray-marcher fallback (render_volume_rgba_cpu) so 3D volumes render live in the browser.
  • Warm Python worker pool & plugin template (lucem-app-core, templates/lucem-plugin-template):
    persistent warm Python workers with PEP 723 auto-provisioned uv venvs, drop-in .py/.rs
    script ops, .lucem-recipe.json & Macro Recorder export, and a ready-to-publish starter plugin
    repository template.
  • Visual Effect Strip & live Before ↔ After hover previews: non-blocking bottom Visual Effect
    Strip with inline primary parameter tuning, floating animated Before ↔ After hover preview card
    across all operation dropdown menus and "What's next?" tonal cards, and a Hold to compare
    floating pill on the Explore canvas.
  • 2D & 3D 60-second Guided Walkthroughs: interactive auto-checking onboarding missions for both
    2D fluorescence and 3D volumes with an M3 Expressive 3-segment progress bar.
  • Notification Toast + bottom-bar Bell popover, Close image (Ctrl+W) in the Lucem
    menu above Quit, searchable F1 shortcuts, intent-aware F3 op search, and inline Docs ↗
    kernel links.

Changed

  • A pairing code never reaches a log. lucem serve shows one only on a terminal; with none (a
    container) it says how to get one: podman exec -it <container> lucem clients pair, which now
    also shows the page's sign-in link (--page URL, or LUCEM_PAGE_URL, set to
    http://localhost:8443 in the image). Signing a browser in to a container is now that one
    command instead of reading the container's log.
  • M3 Expressive UI polish: Split Button (Visual strip | ▾) in Layers, conversational
    "What's next?" tonal cards, PanelRight toggle moved into panel headers, upgraded 84 px
    Levels histogram, shared ‹ value › stepper widget, and right-click channel context menus.

Fixed

  • Browser stability: guarded desktop-only Settings › Environment and local script creation on
    wasm32, fixed disabled ops still showing a cyan overlay in remote compute, kept Pipeline
    floating toolbars permanently visible after panning, and ensured every_icon_used_is_bundled
    passes for all icons (Grip, Bell, Package).

Install

The library crates from crates.io: cargo add lucem (core, io, ops, ml) and the others
(lucem-hist, lucem-pipeline, lucem-view, lucem-hub). The app and the lucem
command build from this tag: cargo install --git https://github.com/neuro-kitchen/lucem --tag <this tag> lucem-cli.

v0.0.3

Choose a tag to compare

@github-actions github-actions released this 19 Nov 01:35
de96b56

lucem in the browser, two ways: the docs viewer (neuro-kitchen.github.io/lucem/viewer/,
nothing to install, files read in the page) and the container's page (lucem serve --web:
the server's images, processing and histology on its GPU). The same app as the desktop's.

Added

  • The docs viewer (GitHub Pages): the app built for the browser with its engine in a worker,
    opening OME-Zarr folders and pictures you pick, and the samples (zstd-compressed files); your
    session is kept in the browser and reopens after a reload (picked files: pick the folder again).
    A Viewer tab and "Try it in your browser" in the docs.
  • lucem serve --web: the page, its sign-in by link (#pair=…), WebTransport (a WebSocket
    where a browser has none), protobuf tiles in their stored type, a tile cache, planes of a volume
    in one request, --samples. A served page runs its views' processing and the histology steps on
    the server (the hist plugin: tissue, cells, classifiers); it only draws.
  • Server plugins (ServerPlugin, as dsp-kitchen's) and histology as a service
    (lucem_hist::service).
  • Images on a paired server in the desktop app (lucem://host:port/path).
  • The container image serves the page (TCP and UDP 8443), with the smoke test's page checks.
  • keybindings.toml (from kitchen 0.0.8) and settings.toml (look, compute, the Segment
    model; edits apply while the app runs) in the configuration folder.
  • The session reopens after a restart (desktop: the config folder).
  • Opening, as for a PDF: File › Open file… (the file chooser: no question from the
    browser) and Open project… (a project or an OME-Zarr); never "folder". What is picked
    opens at once, and a file or an OME-Zarr dropped on the page opens with no question at all.
  • OME-Zarr with zstd chunks reads (desktop and page).
  • lucem bench-codecs (zstd, LZ4, Pcodec on an image's tiles).

Changed

  • dsp-kitchen's layout: histology/, lucem-session, lucem-table, platform/ (desktop, web,
    served images per target).
  • The latest dependencies; kitchen from crates.io; the Agents prototype removed.
  • The docs' accent is lucem's teal (was rose).
  • CI, as dsp-kitchen's and faster: only what a change can affect runs; a pull request into
    versions/* gets cargo check, the release pull request the full run; the workspace cache is
    saved by merges (a pull request's own cache helps no other), mold links.
  • The container image takes the release's binary (--build-arg BINARIES=prebuilt): its job
    compiles nothing and holds exactly what the release publishes; .containerignore keeps
    environments, secrets and local folders out.

Fixed

  • A device that failed is not looked for again every frame (the 3D view spun CPU and GPU).
  • A click on a pop-up no longer reaches the button under it.
  • The docs viewer's engine no longer re-runs its static constructors at every call (CubeCL's
    registries: seconds per request on a large image) and adds picked files in linear time.
  • The nvidia image target builds: the slim base had no CA certificates for NVIDIA's
    repository (it could not install NVRTC).

Install

The library crates from crates.io: cargo add lucem (core, io, ops, ml) and the others
(lucem-hist, lucem-pipeline, lucem-view, lucem-hub). The app and the lucem
command build from this tag: cargo install --git https://github.com/neuro-kitchen/lucem --tag <this tag> lucem-cli.

v0.0.2

Choose a tag to compare

@github-actions github-actions released this 13 Nov 21:22
66af738

The Python packages (lucem, with histology, the desktop app and the model plugins as extras;
built from the repository for now, on PyPI from a later release); InstanSeg's
nucleus models on Burn, and both model plugins 3–10× faster on a GPU; lucem autotune for the
whole machine; pairing codes kept out of logs; releases from a tag of main by trusted
publishing to crates.io and PyPI; brush size from the keyboard.

Release process

  • Releases come from a v* tag of main (.github/workflows/release.yml, as kitchen and
    dsp-kitchen): the tag is checked against the workspace version and CHANGELOG.md, the crates are
    packaged and checked by cargo-deny, the library crates go to crates.io by trusted publishing
    (environment crates-io, approved by a maintainer; crates already at that version are skipped),
    then the GitHub release takes this file's section as its notes. The app, the CLI and the MCP
    server stay off crates.io until kitchen-agent is published.
  • The Python packages go to PyPI from the same tag once the repository variable PUBLISH_PYPI
    is true (until then a tag publishes the crates and the GitHub release only), by trusted
    publishing (approved by a maintainer): lucem and lucem-hist (abi3 wheels for CPython 3.12+ on Linux x86_64, glibc
    2.34+, Windows x64 and macOS arm64, and lucem's sdist) in the environment pypi; the app and
    the model plugins (lucem-app, lucem-ml-stardist, lucem-ml-sam) each in its own
    (pypi-app, pypi-ml-stardist, pypi-ml-sam), so a failure there holds up nothing else.
    The extras' pins are checked against the workspace version. The "Private :: Do Not Upload"
    classifier that blocked uploads is gone.

Added

  • Python packages, as dsp-kitchen's (built from the repository, pip install ./bindings/python,
    until they are on PyPI): lucem gives lucem.runtime, lucem.io
    (images of any size read by block, plane or region; OME-Zarr written block by block),
    lucem.ops (every operator of the catalog on NumPy arrays, and pipelines that stay on the
    device), lucem.custom (your own functions over an image of any size, with halos and objects
    joined across blocks) and lucem.ml (the model plugins: found, asked for their models, run on
    an array). Extras: lucem[hist] adds lucem.hist (stains and deconvolution, tissue, cells
    found or grown from a model's nuclei, the app's steps built in Python or read from a
    session.json and run through the app's engine, tables and GeoJSON); lucem[app] the desktop
    app (lucem app); lucem[stardist], lucem[sam], lucem[instanseg] and lucem[ml] the model plugins
    as programs, kept apart from lucem as before (their weights download on first use); lucem[all]
    everything. The lucem-hist wheel is the whole extension built with histology, and lucem
    loads it in place of its own when it is there: one device per runtime. The binding crates
    (lucem-py-core, lucem-py-hist) register into the one extension, lucem-py.
  • InstanSeg on Burn: the lucem-ml-instanseg plugin runs InstanSeg's published brightfield
    and single-channel nucleus models (Apache-2.0) on CUDA, wgpu or the CPU, as StarDist does
    (models/instanseg). Each bioimage.io package is fetched and checked (SHA-256). Its
    TorchScript archive is read in Rust, with no PyTorch: a small pickle reader and the zip, then
    kept as safetensors with the model's thresholds. The postprocessing is ported from the
    archive's own code: seeds, the pixel classifier, fragments and holes, overlaps joined. The
    published test images give the published nuclei. pip install "lucem[instanseg]" (also in
    lucem[ml]). The channel-invariant "nuclei and cells" model is not ported yet.
  • lucem autotune, one tuning for the whole machine (as dsp-kitchen's): lucem's operators
    over a grid of image sizes, then every model plugin found (<plugin> tune: each installed model
    on every tile shape), on every usable runtime; the choices and compiled kernels are kept in the
    user cache folder. Also File › Tune this device in the app and lucem.runtime.autotune().
    The model plugins have a bench command (timings per phase, cold and warm).
  • Brush size from the keyboard: Ctrl+= and Ctrl+−
    (the commands Brush bigger and Brush smaller, wherever the focus is), next to [ and
    ] on the image; the toolbar's stepper and the keys share one step.

Security

  • Pairing codes exist only when asked for and are never written where a log could keep them:
    lucem serve no longer makes one at every start (--pair asks for one, shown on the
    terminal); lucem clients pair shows its code on the terminal itself (/dev/tty, CONOUT$),
    not on standard output, so a redirect, a pipe or a service's log never holds it (a script
    takes it from --out FILE, readable by its owner only). lucem clients codes lists the live codes without their secrets and
    --cancel ID|all cancels them. Code scanning had flagged codes in cleartext logs.

Changed

  • The models are Burn modules: StarDist and InstanSeg are #[derive(Module)] structs of
    burn::nn layers (InstanSeg's mirroring its PyTorch classes), loaded by name with Burn's
    SafetensorsStore (InstanSeg's through its PyTorch adapter), instead of hand-written tensor
    functions and readers. The published outputs are still met: InstanSeg exactly, StarDist to 1e-6
    in single precision.

  • The models are 3–10× faster on a GPU (RTX 2070, CUDA, warm):

    Image InstanSeg before → now StarDist before → now
    512² 1,179 → 111 ms 225 → 39 ms
    1024² 4,136 → 503 ms 541 → 200 ms
    2048² 21,666 → 2,790 ms 2,226 → 696 ms
    4096² — → 11,106 ms 10,914 → 3,336 ms

    Half precision on the GPU, for the weights, the activations and the data to and from the
    device (half the bytes moved); BatchNorm folded into InstanSeg's convolutions at load; the 3 × 3
    layers of 64 channels and more as tensor-core matrix products, because Burn's own tensor-core
    convolution asks more shared memory than a Turing GPU has for them and falls back to its direct
    kernel (about 15× slower); when a matrix product cannot launch on a device, the direct
    convolutions take over for the rest of the run. InstanSeg's postprocessing works in logits a
    window row at a time (no exponential per pixel), compares only windows that touch, and fills
    holes near each nucleus only (512²: 499 → 14 ms). InstanSeg in half precision still gives the
    published nuclei exactly; StarDist's maps move by at most 1.8e-3 (probability) and 0.1 px
    (distances), same nuclei. LUCEM_INSTANSEG_PRECISION / LUCEM_STARDIST_PRECISION=f32 and
    …_CONV=direct choose the single-precision, direct path (bit-faithful, slower).

  • Channels open as the OME-Zarr file marks them (omero active; shown when it does not say):
    a 59-marker PhenoCycler image opens with its chosen few, the rest in the list.

  • The workspace's data list (.data/) holds only images and OME-Zarr containers: licences,
    notes, archives and raw formats lucem does not open (.qptiff, .zip) are left out.

Fixed

  • Model plugins run on the app's compute runtime: the app passes its own (CUDA, wgpu, CPU) to
    every plugin it starts. A plugin left to its default could open a second runtime on the same
    GPU (wgpu beside the app's CUDA), share its memory and run out of it.
  • Out of GPU memory in a model is reported as such, with what to do; it no longer switches the
    models' fast convolutions off (only a matrix product the device cannot launch does).
  • CI runs green again: the app's device uses the CPU there (LUCEM_RUNTIME=cpu; it opened
    wgpu, whose device thread panics on a runner without a GPU, failing every app test after it),
    and cargo-deny allows kitchen's repository as a git source (kitchen-agent is not on crates.io
    yet). A test of the activity view found another test's Rulers entry in the shared log; the
    Python test compares the version to the installed package's instead of a fixed 0.1.0.

Documentation

  • The README says what lucem is now (it described an empty skeleton), with the app's screenshot
    (dark or light as the reader's theme), installing the library crates from crates.io, and every
    crate; the docs site shows the screenshot on its front page and the App page. The sample image is
    credited (© PerkinElmer / Akoya Biosciences, CC BY 4.0).

Install

The library crates from crates.io: cargo add lucem (core, io, ops, ml) and the others
(lucem-hist, lucem-pipeline, lucem-view, lucem-hub). The app and the lucem
command build from this tag: cargo install --git https://github.com/neuro-kitchen/lucem --tag <this tag> lucem-cli.