CoreMlDiffusion

Defines the CoreMlDiffusion contract for the SDAI domain layer.

Author

Dmitriy Moroz

Functions

Link copied to clipboard
abstract suspend fun interrupt()

Performs the SDAI side effect handled by interrupt.

Link copied to clipboard
abstract fun observeStatus(): Flow<LocalDiffusionStatus>

Loads SDAI data through observeStatus.

Link copied to clipboard
abstract suspend fun process(payload: ImageToImagePayload, modelPath: String): String
abstract suspend fun process(payload: TextToImagePayload, modelPath: String): String

Executes the process step in the SDAI domain layer.