cyto_dl.models.im2im.multi_task module#
- class cyto_dl.models.im2im.multi_task.MultiTaskIm2Im(*args, **kwargs)[source]#
Bases:
BaseModel
- Parameters:
backbone (nn.Module) – backbone network, parameters are shared between task heads
task_heads (Dict) – task-specific heads
x_key (str) – key of input image in batch
save_dir=”./” – directory to save images during training and validation
save_images_every_n_epochs=1 – Frequency to save out images during training
inference_args (Dict = {}) – Arguments passed to monai’s [sliding window inferer](https://docs.monai.io/en/stable/inferers.html#sliding-window-inference)
inference_heads (Union[List, None] = None) – Optional list of heads to run during inference. Defaults to running all heads.
compile (False) – Whether to compile the model using torch.compile
**base_kwargs – Additional arguments passed to BaseModel