You're looking at a specific version of this model. Jump to the model overview.
adirik /leditsplusplus:18916a95
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 |
---|---|---|---|
image |
string
|
Input image to edit.
|
|
num_inversion_steps |
integer
|
50
Min: 1 Max: 200 |
Number of image inversion steps.
|
source_prompt |
string
|
|
Prompt describing the input image that will be used for guidance during inversion. Guidance is disabled if the `source_prompt` is ``.
|
source_guidance_scale |
number
|
3.5
Min: 1 Max: 25 |
Strength of guidance during inversion.
|
skip |
number
|
0.15
Max: 1 |
Portion of initial steps that will be ignored for inversion and subsequent generation. Lower values will lead to stronger changes to the input image.
|
negative_prompt |
string
|
Negative prompt for the first text encoder to guide the image generation. *optional*, defaults to None.
|
|
negative_prompt2 |
string
|
Negative prompt for the second text encoder to guide the image generation. *optional*, defaults to None if *negative_prompt* is also left empty, alternatively defaults to *negative_prompt* otherwise.
|
|
editing_prompts |
string
|
Comma separated objects to add, remove or edit. Defaults to None, which inverts and reconstructs the input image.
|
|
reverse_editing_directions |
string
|
Comma separated True or False boolean values indicating whether the corresponding prompt in `editing_prompts` should be increased or decreased to add, remove or edit. *optional*, defaults to `False`
|
|
edit_guidance_scale |
string
|
Comma separated float values for each change specified in editing prompts list. *optional*, defaults to 5 if left empty.
|
|
edit_warmup_steps |
integer
|
0
Max: 100 |
Number of diffusion steps (for each prompt) for which guidance is not applied
|
edit_threshold |
string
|
Comma separated edit threshold float values for each editing prompt, threshold values should be proportional to the image region that is modified. *optional*, defaults to 0.9 if left empty.
|
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}