1
0
Fork 0
onnx-web/api/schemas/extras.yaml

114 lines
2.2 KiB
YAML
Raw Normal View History

$id: https://github.com/ssube/onnx-web/blob/main/api/schemas/extras.yaml
$schema: https://json-schema.org/draft/2020-12/schema
$defs:
legacy_tuple:
type: array
items:
oneOf:
- type: boolean
- type: number
- type: string
2023-02-22 03:40:57 +00:00
textual_inversion:
type: object
required: [name, source]
properties:
name:
type: string
source:
type: string
format:
type: string
enum: [concept, embeddings]
label:
type: string
token:
type: string
2023-02-22 03:40:57 +00:00
base_model:
type: object
required: [name, source]
properties:
format:
type: string
enum: [onnx, pth, ckpt, safetensors]
half:
type: boolean
label:
type: string
name:
type: string
opset:
type: number
source:
type: string
correction_model:
allOf:
- $ref: "#/$defs/base_model"
diffusion_model:
allOf:
- $ref: "#/$defs/base_model"
- type: object
properties:
config:
type: string
2023-02-22 03:40:57 +00:00
inversions:
type: array
items:
$ref: "#/$defs/textual_inversion"
2023-02-17 02:55:05 +00:00
vae:
type: string
upscaling_model:
allOf:
- $ref: "#/$defs/base_model"
- type: object
required: [scale]
properties:
scale:
type: number
source_model:
type: object
required: [name, source]
properties:
format:
type: string
name:
type: string
source:
type: string
type: object
additionalProperties: False
properties:
diffusion:
type: array
items:
oneOf:
- $ref: "#/$defs/legacy_tuple"
- $ref: "#/$defs/diffusion_model"
correction:
type: array
items:
oneOf:
- $ref: "#/$defs/legacy_tuple"
- $ref: "#/$defs/correction_model"
upscaling:
type: array
items:
oneOf:
- $ref: "#/$defs/legacy_tuple"
- $ref: "#/$defs/upscaling_model"
sources:
type: array
items:
oneOf:
- $ref: "#/$defs/legacy_tuple"
- $ref: "#/$defs/source_model"
strings:
type: object
# /\w{2}/: translation: {}