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

afiaka87 /ldm-autoedit:bdd8cf66

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
(optional) Text to use for the model's prediction.
edit
string
path to the 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 (enum)
1

Options:

1, 2, 3, 4, 6, 8

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
25

Min: 25

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': {'properties': {'image': {'format': 'uri',
                                              'title': 'Image',
                                              'type': 'string'},
                                    'similarity': {'title': 'Similarity',
                                                   'type': 'number'}},
                     'required': ['image', 'similarity'],
                     'title': 'AutoEditOutput',
                     'type': 'object'},
           'type': 'array'},
 'title': 'Output',
 'type': 'array',
 'x-cog-array-type': 'iterator'}