You're looking at a specific version of this model. Jump to the model overview.
andreasjansson /twinpainting:c3815559
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 |
---|---|---|---|
background_prompt |
string
|
Prompt used for the white pixels of 'mask'
|
|
foreground_prompt |
string
|
Prompt used for the black pixels of 'mask'
|
|
mask |
string
|
Black and white image. White pixels will be generated based on 'background_prompt' and black pixels use 'foreground_prompt'. Will be resized to 512x512 pixels
|
|
num_inference_steps |
integer
|
25
Min: 1 Max: 500 |
Number of denoising steps
|
guidance_scale |
number
|
7.5
Min: 1 Max: 20 |
Scale for classifier-free guidance, applies to background_prompt and foreground_prompt
|
final_guidance_scale |
number
|
2
Min: 1 Max: 20 |
Guidance scale for final masking step
|
border_blur_radius |
number
|
15
Min: 1 Max: 100 |
Blur radius for border between foreground and background that will be inpainted
|
min_border |
number
|
0.25
Max: 1 |
Lower threshold for blurred border to use for inpainting mask
|
max_border |
number
|
0.9
Max: 1 |
Upper threshold for blurred border to use for inpainting mask
|
seed |
integer
|
Random seed. Leave blank to randomize the seed
|
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{'items': {'format': 'uri', 'type': 'string'},
'title': 'Output',
'type': 'array',
'x-cog-array-type': 'iterator'}