prediction_worker
A thread worker function running CAREamics prediction.
predict_worker(careamist, pred_data, configuration, update_queue) #
Model prediction worker.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
careamist | CAREamist | CAREamist instance. | required |
pred_data | NDArray | str | Prediction data source. | required |
configuration | BaseConfig | careamics configuration. | required |
update_queue | Queue | Queue used to send updates to the UI. | required |
Yields:
| Type | Description |
|---|---|
Generator[PredictionUpdate, None, None] | Updates. |