Repository navigation
Releases
v0.0.6
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
Shiftaspect-ratio lock andEscapecancel). - 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.
- Interactive edge, corner, and endpoint resizing for rectangles, ellipses, and rulers (with
- 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),Matemasiewordmark, GPU-composited web loader, andHelp › About Lucem,
Documentation, andReport an issue. - ML plugin binary distribution (
lucem plugins):lucem plugins listand
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-webopens WebGPU
asynchronously and evaluates GPU pipelines directly in the browser without a server.
Fixed
- Avoided
Atomics.waitmain-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
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
FigurePublication 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 (Autoor25 µ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×512batched-volume ML inference & VRAM eviction (lucem-core::compute::batch,
lucem-model-stardist,lucem-model-instanseg,lucem-hist): fixed512×512(384 + 2×64)
tile shapes eliminate per-ROI CubeCL autotune stalls (28–32 ms/tilewarm 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.opscripts &/dev/shmPython pool (lucem-app-core,lucem-py):
pure-Rustsyntectsyntax highlighting on desktop and WebAssembly,@lucem.opparameter comment
parser with live UI sliders, zero-copy/dev/shmshared-memory IPC in the warm Python worker
pool, nativerufflint/format buttons, and 7 runnableplayground/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µmand 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 forMaskUnion,MaskIntersect,MaskSubtract,
MaskInvert,MaskImage,ChannelRatio,NormalizedDiff, andChannelProduct; kept cell
detection linear combinations, Euclidean distance Gaussian smoothing, watershed inversion, SLIC
channel averaging, andrun_specblock normalization/halo-cropping on the GPU; cached multi-channel
Zarr chunks inGLOBAL_CHUNK_CACHE; replacedHashMap-basedtrace_labelscontour 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()
inSession::pushandrayon::par_iter()inHierarchy::buildonwasm32-unknown-unknown, and
unconditionally routed served-browser histology and pipeline compute tolucem 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
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.jsonwith
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, andFindBoundaries. - Fused GPU
EvalCache& unified memory budgets (lucem-core,lucem-pipeline,lucem serve --memory): fusedPointwiseOp/PointwiseRunCubeCL kernel, size-classed GPU scratch pooling,
sharedGLOBAL_CHUNK_CACHE, and persistentPipelineTilescache. - 3D Volume Viewer upgrades (
lucem-view,lucem-app-core): six-sided GPUVolumeClip
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-provisioneduvvenvs, 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 theLucem
menu aboveQuit, searchableF1shortcuts, intent-awareF3op search, and inlineDocs ↗
kernel links.
Changed
- A pairing code never reaches a log.
lucem serveshows 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, orLUCEM_PAGE_URL, set to
http://localhost:8443in 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,PanelRighttoggle moved into panel headers, upgraded84 px
Levels histogram, shared‹ value ›stepper widget, and right-click channel context menus.
Fixed
- Browser stability: guarded desktop-only
Settings › Environmentand 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 ensuredevery_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
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 (thehistplugin: 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) andsettings.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/*getscargo 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;.containerignorekeeps
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
nvidiaimage 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
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 ofmain(.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
(environmentcrates-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
istrue(until then a tag publishes the crates and the GitHub release only), by trusted
publishing (approved by a maintainer):lucemandlucem-hist(abi3 wheels for CPython 3.12+ on Linux x86_64, glibc
2.34+, Windows x64 and macOS arm64, andlucem's sdist) in the environmentpypi; 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):lucemgiveslucem.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) andlucem.ml(the model plugins: found, asked for their models, run on
an array). Extras:lucem[hist]addslucem.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.jsonand run through the app's engine, tables and GeoJSON);lucem[app]the desktop
app (lucem app);lucem[stardist],lucem[sam],lucem[instanseg]andlucem[ml]the model plugins
as programs, kept apart from lucem as before (their weights download on first use);lucem[all]
everything. Thelucem-histwheel is the whole extension built with histology, andlucem
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-instansegplugin 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 andlucem.runtime.autotune().
The model plugins have abenchcommand (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 serveno longer makes one at every start (--pairasks for one, shown on the
terminal);lucem clients pairshows 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 codeslists the live codes without their secrets and
--cancel ID|allcancels them. Code scanning had flagged codes in cleartext logs.
Changed
-
The models are Burn modules: StarDist and InstanSeg are
#[derive(Module)]structs of
burn::nnlayers (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=f32and
…_CONV=directchoose the single-precision, direct path (bit-faithful, slower). -
Channels open as the OME-Zarr file marks them (
omeroactive; 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 fixed0.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.