Ctrl K
ComunidadGuías…

models/t2i.schema.json

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Configuration schema for image-generation models served by stable-diffusion.cpp",
  "properties": {
    "models": {
      "description": "List of image-generation models",
      "items": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "description": "Name of the model (the API model id and the SD_CPP_MODEL label; not a cache directory)",
            "type": "string"
          },
          "components": {
            "description": "Weight files that make up the model, stored in the shared cache at <repository>/<file>",
            "items": {
              "additionalProperties": false,
              "properties": {
                "role": {
                  "description": "Role of the component in stable-diffusion.cpp",
                  "enum": ["diffusion", "uncond", "llm", "vae", "clip", "t5"],
                  "type": "string"
                },
                "repository": {
                  "description": "Hugging Face repository containing the file",
                  "type": "string"
                },
                "file": {
                  "description": "Path of the file inside the repository",
                  "type": "string"
                }
              },
              "required": ["role", "repository", "file"],
              "type": "object"
            },
            "type": "array"
          },
          "args": {
            "description": "Extra sd-server flags applied when this model is loaded (e.g. sampling tuning such as --flow-shift)",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": ["name", "components"],
        "type": "object"
      },
      "type": "array"
    },
    "version": {
      "description": "Configuration version",
      "type": "string"
    }
  },
  "required": ["version", "models"],
  "title": "Image Models Configuration",
  "type": "object"
}