otx.core.model.diffusion#
Class definition for diffusion model entity used in OTX.
Classes
|
OTX Diffusion model. |
- class otx.core.model.diffusion.OTXDiffusionModel(optimizer: OptimizerCallable = <function _default_optimizer_callable>, scheduler: LRSchedulerCallable | LRSchedulerListCallable = <function _default_scheduler_callable>, metric: MetricCallable = <function _diffusion_metric_callable>, label_info: int = 0, **kwargs)[source]#
Bases:
OTXModel
[DiffusionBatchDataEntity
,DiffusionBatchPredEntity
]OTX Diffusion model.
- on_test_start() None [source]#
Called at the beginning of testing.
Don’t configure the metric here. Do it in constructor.
- on_validation_start() None [source]#
Called at the beginning of validation.
Don’t configure the metric here. Do it in constructor.