text(_:)
Creates a concept structure that includes a short text description.
Declaration
static func text(_ text: String) -> ImagePlaygroundConceptParameters
- text:
The text that describes the image. Your text must be relatively short, so specify single words or brief sentences. If you specify a string that exceeds the model’s supported maximum string length, the system tries to extract important or interesting concepts and use those instead.
Return Value
A concept object that encapsulates the specified text.
Discussion
Call this method when you want to use short strings to generate an image. The system passes short strings in their entirety as input to the diffusion model. If you provide a long string, the system tries to extract only the relevant details and pass those to the model instead.