Python script
Your own Python code: read inputs, compute, write outputs.
How it works
Open the code (Edit code) and write run(ctx). Read files from ctx.inputs["in"], write with ctx.output("table", "name.csv"), stream live values with ctx.telemetry("loss", value) and report ctx.progress(50). Use any package installed on the worker (numpy, PyTorch, OpenCV...). Return a dict to output it as metrics.
Inputs
| Input | Takes | What it is |
|---|---|---|
Inputsin | Anything | Optional. Takes several connections. |
Outputs
| Output | Gives | What it is |
|---|---|---|
Tabletable | Table | |
Filesfiles | Files | |
Resultresult | Metrics json | |
Live telemetrytelemetry | Live telemetry | What the block sends while it runs, for views such as Chart or 3D view. |
Settings
| Setting | Default | What it does |
|---|---|---|
Steps (example setting)steps |
60 | From 1 to 100000 |
Where it runs
On one of your computers with the EsaSim worker: Any worker.
In its code, settings are ctx.params["key"], inputs ctx.inputs["id"] and outputs ctx.output("id", "name.ext"); see Custom blocks.
More in Processing
Curate and splitRemoves the images the checks flagged (or a person rejected), balances the classes and splits train and validation, with a before/after report.Embedding mapLays the embeddings out on a plane (UMAP or PCA): clusters, classes that mix and odd images, with the flags of the checks.Find duplicatesFinds copies of the same picture (resized, recompressed, slightly cropped) and, with embeddings, images that show the same thing; keeps one per group.Image previewsSmall previews of the images to look at (the flagged ones, a sample of the rest), with what the tables say about each, for a Review grid.Image quality checkOpens every image and measures its size, sharpness, exposure and contrast; flags broken, small, blurred, dark, bright or flat images with the reason.Labels to 3D modelsTurns labelled volumes (a CT segmentation, any label map or masks) into a clean 3D model per structure: one coloured GLB scene per case for the 3D view, and STL files for 3D printing.