Run an active learning loop for iterative segmentation refinement
Source:R/training.R
sg_active_learning_loop.RdOrchestrates a human-in-the-loop (HITL) active learning workflow: segment, review, correct, retrain, repeat.
Usage
sg_active_learning_loop(
image,
model = "cellpose",
n_rounds = 5L,
patches_per_round = 10L,
patch_size = 256L,
initial_model = "cyto3"
)Arguments
- image
An
sg_imageobject.- model
Character. Segmentation backend to use. Currently only
"cellpose"is supported. Default"cellpose".- n_rounds
Integer. Number of active learning rounds. Default
5L.- patches_per_round
Integer. Patches sampled per round. Default
10L.- patch_size
Integer. Patch size in pixels. Default
256L.- initial_model
Character. Initial model name. Default
"cyto3".