Command line
lucem info <image> Describe an imagelucem doctor Which compute runtimes are usablelucem autotune [--runtime NAME] [--sides 256,1024,2048] [--operators-only | --models-only] Tune this device once: the operators and every modellucem run <spec.json> <image> <output> [--block N] [--runtime NAME] Run a pipeline over a whole imagelucem sample <output.ome.zarr> [--size N] [--depth N] Write a synthetic image (a volume with --depth)lucem ops [--json] Every pipeline operation: family, types, parameterslucem hist stains | tissue | cells <image> … Histology: stain vectors, tissue, cellslucem session run <session.json> <image>... [--out DIR] [--runtime NAME] Run an analysis saved by the app on many imageslucem serve [--data DIR] [--bind ADDR] … Serve the images under DIR to enrolled clientslucem clients enroll | list | revoke Who may connect to `serve`lucem fetch <host:port> … List a server's images, or read a tile of one--runtime (or LUCEM_RUNTIME) chooses cuda, wgpu or cpu; by default the first usable.
Tuning a device
Section titled “Tuning a device”The first time an operator or a model meets a device and an image size, CubeCL compiles its
kernels and benchmarks the candidates it has (a model’s convolutions: every layer, at every tile
shape). The choices are kept in the user cache folder, so it happens once, but that once can take
minutes on a first image. lucem autotune does it ahead of time for everything: lucem’s operators
over a grid of image sizes, then every model plugin found (each runs <plugin> tune: its installed
models on every tile shape), on every usable runtime. The app has the same as File › Tune this
device, and Python as lucem.runtime.autotune().