cellmap_flow.dashboard.routes.finetune.annotation_core

The models to annotate for, a new annotation volume, and the user’s settings.

Routes: GET /api/finetune/models, POST /api/finetune/create-volume, and GET and POST /api/finetune/user-prefs.

Attributes

logger

Functions

serve_new_volume(geometry, corrections_dir, ...[, ...])

Write a new volume with geometry into corrections_dir and serve it.

get_finetune_models()

create_annotation_volume()

get_user_prefs()

set_user_prefs()

Module Contents

cellmap_flow.dashboard.routes.finetune.annotation_core.logger
cellmap_flow.dashboard.routes.finetune.annotation_core.serve_new_volume(geometry, corrections_dir, dataset_path, model_name, annotation_dtype='uint8')

Write a new volume with geometry into corrections_dir and serve it.

The volume records the dashboard’s current normalization and postprocessing chains, so the trainer can reproduce the inference-side normalization and the finetuned model’s YAML the postprocessing. Returns (volume_id, zarr_path, url), the URL as the browser reaches MinIO. Registering the volume is the caller’s.

cellmap_flow.dashboard.routes.finetune.annotation_core.get_finetune_models()
cellmap_flow.dashboard.routes.finetune.annotation_core.create_annotation_volume()
cellmap_flow.dashboard.routes.finetune.annotation_core.get_user_prefs()
cellmap_flow.dashboard.routes.finetune.annotation_core.set_user_prefs()