Defined in: types/tti.ts:16
Configuration properties for the useTextToImage hook.
optionalinferenceCallback: (stepIdx) =>void
Defined in: types/tti.ts:43
Optional callback function that is triggered after each diffusion inference step. Useful for updating a progress bar during image generation.
number
The index of the current inference step.
void
model:
object
Defined in: types/tti.ts:20
Object containing the required model sources for the diffusion pipeline.
decoderSource:
ResourceSource
Source for the VAE decoder model binary, used to decode the final image.
encoderSource:
ResourceSource
Source for the text encoder model binary.
modelName:
TextToImageModelName
The built-in model name (e.g. 'bk-sdm-tiny-vpred-512'). Used for telemetry and hook reload triggers.
Pass one of the pre-built TTI constants (e.g. BK_SDM_TINY_VPRED_512) to populate all required fields.
schedulerSource:
ResourceSource
Source for the diffusion scheduler binary/config.
tokenizerSource:
ResourceSource
Source for the text tokenizer binary/config.
unetSource:
ResourceSource
Source for the UNet (noise predictor) model binary.
optionalpreventLoad:boolean
Defined in: types/tti.ts:49
Boolean that can prevent automatic model loading (and downloading the data if loaded for the first time) after running the hook.
Defaults to false.