Manually update bfl schemas

This commit is contained in:
Paul
2024-08-08 09:53:49 +00:00
parent 529662ecf4
commit e4b0235e29
3 changed files with 112 additions and 34 deletions
+37 -5
View File
@@ -286,9 +286,16 @@
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 3,
"x-order": 6,
"description": "Random seed. Set for reproducible generation"
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 2,
"description": "Input image for image to image mode. The aspect ratio of your output will match this image"
},
"prompt": {
"type": "string",
"title": "Prompt",
@@ -301,9 +308,18 @@
"default": 3.5,
"maximum": 10,
"minimum": 0,
"x-order": 2,
"x-order": 5,
"description": "Guidance for generated image. Ignored for flux-schnell"
},
"num_outputs": {
"type": "integer",
"title": "Num Outputs",
"default": 1,
"maximum": 4,
"minimum": 1,
"x-order": 4,
"description": "Number of outputs to generate"
},
"aspect_ratio": {
"allOf": [
{
@@ -321,7 +337,7 @@
}
],
"default": "webp",
"x-order": 4,
"x-order": 7,
"description": "Format of the output images"
},
"output_quality": {
@@ -330,8 +346,24 @@
"default": 80,
"maximum": 100,
"minimum": 0,
"x-order": 5,
"x-order": 8,
"description": "Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs"
},
"prompt_strength": {
"type": "number",
"title": "Prompt Strength",
"default": 0.8,
"maximum": 1,
"minimum": 0,
"x-order": 3,
"description": "Prompt strength when using img2img. 1.0 corresponds to full destruction of information in image"
},
"disable_safety_checker": {
"type": "boolean",
"title": "Disable Safety Checker",
"default": false,
"x-order": 9,
"description": "Disable safety checker for generated images. This feature is only available through the API. See [https://replicate.com/docs/how-does-replicate-work#safety](https://replicate.com/docs/how-does-replicate-work#safety)"
}
}
},
@@ -531,4 +563,4 @@
}
}
}
}
}
+60 -21
View File
@@ -285,38 +285,63 @@
"prompt"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 6,
"description": "Random seed. Set for reproducible generation"
},
"steps": {
"type": "integer",
"title": "Steps",
"default": 25,
"maximum": 60,
"maximum": 50,
"minimum": 1,
"x-order": 3,
"description": "Number of diffusion steps"
},
"width": {
"type": "integer",
"title": "Width",
"default": 1024,
"maximum": 2048,
"minimum": 256,
"x-order": 1,
"description": "Width of the generated image"
},
"height": {
"type": "integer",
"title": "Height",
"default": 1024,
"maximum": 2048,
"minimum": 256,
"x-order": 2,
"description": "Height of the generated image"
"description": "Number of diffusion steps"
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 0,
"description": "Text prompt for image generation"
},
"guidance": {
"type": "number",
"title": "Guidance",
"default": 3,
"maximum": 5,
"minimum": 2,
"x-order": 3,
"description": "Controls the balance between adherence to the text prompt and image quality/diversity. Higher values make the output more closely match the prompt but may reduce overall image quality. Lower values allow for more creative freedom but might produce results less relevant to the prompt."
},
"interval": {
"type": "number",
"title": "Interval",
"default": 2,
"maximum": 4,
"minimum": 1,
"x-order": 4,
"description": "Interval is a setting that increases the variance in possible outputs letting the model be a tad more dynamic in what outputs it may produce in terms of composition, color, detail, and prompt interpretation. Setting this value low will ensure strong prompt following with more consistent outputs, setting it higher will produce more dynamic or varied outputs."
},
"aspect_ratio": {
"allOf": [
{
"$ref": "#/components/schemas/aspect_ratio"
}
],
"default": "1:1",
"x-order": 1,
"description": "Aspect ratio for the generated image"
},
"safety_tolerance": {
"type": "integer",
"title": "Safety Tolerance",
"default": 2,
"maximum": 5,
"minimum": 1,
"x-order": 5,
"description": "Safety tolerance, 1 is most strict and 5 is most permissive"
}
}
},
@@ -348,6 +373,20 @@
"title": "WebhookEvent",
"description": "An enumeration."
},
"aspect_ratio": {
"enum": [
"1:1",
"16:9",
"2:3",
"3:2",
"4:5",
"5:4",
"9:16"
],
"type": "string",
"title": "aspect_ratio",
"description": "An enumeration."
},
"ValidationError": {
"type": "object",
"title": "ValidationError",
@@ -490,4 +529,4 @@
}
}
}
}
}
+15 -8
View File
@@ -294,14 +294,14 @@
"x-order": 0,
"description": "Prompt for generated image"
},
"guidance": {
"type": "number",
"title": "Guidance",
"default": 3.5,
"maximum": 10,
"minimum": 0,
"num_outputs": {
"type": "integer",
"title": "Num Outputs",
"default": 1,
"maximum": 4,
"minimum": 1,
"x-order": 2,
"description": "Guidance for generated image. Ignored for flux-schnell"
"description": "Number of outputs to generate"
},
"aspect_ratio": {
"allOf": [
@@ -331,6 +331,13 @@
"minimum": 0,
"x-order": 5,
"description": "Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs"
},
"disable_safety_checker": {
"type": "boolean",
"title": "Disable Safety Checker",
"default": false,
"x-order": 6,
"description": "Disable safety checker for generated images. This feature is only available through the API. See [https://replicate.com/docs/how-does-replicate-work#safety](https://replicate.com/docs/how-does-replicate-work#safety)"
}
}
},
@@ -530,4 +537,4 @@
}
}
}
}
}