UNPKG

@huggingface/tasks

Version:
55 lines (54 loc) 1.67 kB
{ "$id": "/inference/schemas/text-to-image/input.json", "$schema": "http://json-schema.org/draft-06/schema#", "description": "Inputs for Text To Image inference", "title": "TextToImageInput", "type": "object", "properties": { "inputs": { "description": "The input text data (sometimes called \"prompt\")", "type": "string" }, "parameters": { "description": "Additional inference parameters for Text To Image", "$ref": "#/$defs/TextToImageParameters" } }, "$defs": { "TextToImageParameters": { "title": "TextToImageParameters", "type": "object", "properties": { "guidance_scale": { "type": "number", "description": "A higher guidance scale value encourages the model to generate images closely linked to the text prompt, but values too high may cause saturation and other artifacts." }, "negative_prompt": { "type": "string", "description": "One prompt to guide what NOT to include in image generation." }, "num_inference_steps": { "type": "integer", "description": "The number of denoising steps. More denoising steps usually lead to a higher quality image at the expense of slower inference." }, "width": { "type": "integer", "description": "The width in pixels of the output image" }, "height": { "type": "integer", "description": "The height in pixels of the output image" }, "scheduler": { "type": "string", "description": "Override the scheduler with a compatible one." }, "seed": { "type": "integer", "description": "Seed for the random number generator." } } } }, "required": ["inputs"] }