2023-02-11 04:41:24 +00:00
|
|
|
$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:
|
2023-02-11 05:06:30 +00:00
|
|
|
- type: boolean
|
2023-02-11 04:41:24 +00:00
|
|
|
- type: number
|
2023-02-11 05:06:30 +00:00
|
|
|
- type: string
|
2023-02-11 04:41:24 +00:00
|
|
|
|
2023-02-22 03:40:57 +00:00
|
|
|
textual_inversion:
|
|
|
|
type: object
|
|
|
|
required: [name, source]
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
source:
|
|
|
|
type: string
|
|
|
|
|
2023-02-11 04:41:24 +00:00
|
|
|
base_model:
|
|
|
|
type: object
|
|
|
|
required: [name, source]
|
|
|
|
properties:
|
|
|
|
format:
|
|
|
|
type: string
|
|
|
|
enum: [onnx, pth, ckpt, safetensors]
|
|
|
|
half:
|
|
|
|
type: boolean
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
opset:
|
|
|
|
type: number
|
|
|
|
source:
|
|
|
|
type: string
|
|
|
|
|
|
|
|
correction_model:
|
|
|
|
allOf:
|
|
|
|
- $ref: "#/$defs/base_model"
|
|
|
|
|
|
|
|
diffusion_model:
|
|
|
|
allOf:
|
|
|
|
- $ref: "#/$defs/base_model"
|
2023-02-12 20:10:30 +00:00
|
|
|
- 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
|
2023-02-11 04:41:24 +00:00
|
|
|
|
|
|
|
upscaling_model:
|
|
|
|
allOf:
|
|
|
|
- $ref: "#/$defs/base_model"
|
|
|
|
- type: object
|
|
|
|
required: [scale]
|
|
|
|
properties:
|
|
|
|
scale:
|
|
|
|
type: number
|
|
|
|
|
2023-02-17 01:01:26 +00:00
|
|
|
source_model:
|
|
|
|
type: object
|
|
|
|
required: [name, source]
|
|
|
|
properties:
|
|
|
|
format:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
source:
|
|
|
|
type: string
|
|
|
|
|
2023-02-11 04:41:24 +00:00
|
|
|
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"
|
2023-02-17 01:01:26 +00:00
|
|
|
sources:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
oneOf:
|
|
|
|
- $ref: "#/$defs/legacy_tuple"
|
|
|
|
- $ref: "#/$defs/source_model"
|