CommunityToolkit.Aspire.Hosting.StableDiffusionCpp
📦 CommunityToolkit.Aspire.Hosting.StableDiffusionCppv13.5.06Functions
3Types
3 types and 11 members
Types
Functions
method
addHuggingFaceModelbuilderAdds a Hugging Face model that is downloaded before the container starts.
addHuggingFaceModel(repository: string, fileName: string, revision?: string): StableDiffusionCppModelResourcemethod
addNamedHuggingFaceModelbuilderAdds a named Hugging Face model that is downloaded before the container starts.
addNamedHuggingFaceModel(name: string, repository: string, fileName: string, revision?: string): StableDiffusionCppModelResourcemethod
addStableDiffusionCppbuilderAdds a stable-diffusion.cpp container resource using an official image.
addStableDiffusionCpp(name: string, imageVariant?: StableDiffusionCppImageVariant, port?: number, modelsDirectory?: string): StableDiffusionCppResourcemethod
withGPUSupportbuilderAdds the container runtime arguments required by the selected GPU backend.
withGPUSupport(): StableDiffusionCppResourcemethod
withHuggingFaceTokenbuilderSupplies a Hugging Face access token for gated or private repositories.
withHuggingFaceToken(token: ParameterResource): StableDiffusionCppResourcemethod
withVaeTilingbuilderProcesses VAE images in tiles to reduce peak memory usage during image decoding.
withVaeTiling(): StableDiffusionCppResource