You're looking at a specific version of this model. Jump to the model overview.

afiaka87/ldm-autoedit:d0d04e11

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
text
string
(required) Text to use for the model's prediction.
edit
string
(optional) an existing image you want to edit
negative
string
(optional) Negate the model's prediction for this text from the model's prediction for the target text.
aesthetic_rating
integer
9

Max: 9

Number between 0 and 9 representing the aesthetic rating. Will initialize the prompt CLIP embed with the respective aesthetic embed.
aesthetic_weight
number
0.5

Max: 1

Weight of the aesthetic embedding in the average prompt embedding.
batch_size
integer
1

Min: 1

Max: 32

Batch size.
width
integer (enum)
256

Options:

128, 192, 256, 320, 384

Target width
height
integer (enum)
256

Options:

128, 192, 256, 320, 384

Target height
iterations
integer
10

Min: 1

Max: 30

Number of iterations to run the model for.
starting_radius
number
5

Min: 0.1

size of noise blur at the start of editing (larger = coarser changes)
ending_radius
number
0.1

Min: 0.1

Max: 5

size of noise blur at the end of editing (smaller = editing fine details)
starting_threshold
number
0.6

Min: 0.05

Max: 1

how much of the image to replace at the start of editing (1 = inpaint the entire image)
ending_threshold
number
0.5

Min: 0.1

Max: 1

how much of the image to replace at the end of editing
guidance_scale
number
5

Min: -10

Max: 100

Controls how much the image should look like the prompt
seed
integer
-1

Min: -1

(optional) Seed for the random number generator.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'items': {'items': {'format': 'uri', 'type': 'string'}, 'type': 'array'},
 'title': 'Output',
 'type': 'array',
 'x-cog-array-type': 'iterator'}