Function: createSdxsTextToImage()
createSdxsTextToImage(
config,runtime?):Promise<SdxsTextToImage>
Defined in: extensions/cv/tasks/sdxsTextToImage.ts:94
Creates an SDXS text-to-image runner.
It validates the exported method schemas, pre-allocates the static execution tensors, and registers disposal hooks that release all native memory.
Parameters
config
SDXS pipeline configuration containing the model and tokenizer paths. See SdxsTextToImageModel.
runtime?
any
Optional worklet runtime thread on which to run generation.
Returns
Promise<SdxsTextToImage>
A promise resolving to the instantiated SdxsTextToImage runner.
Throws
With code LOAD_FAILED if model or tokenizer
fails to load, or SCHEMA_MISMATCH if model schema does not match SDXS spec.