fottoai / refine-inpaint
Remove object from image with mask
- Public
- 1.5K runs
Run fottoai/refine-inpaint with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
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 |
---|---|---|---|
original_image |
string
|
Original Image Url
|
|
mask_image |
string
|
Mask Image Url
|
|
pad_out |
integer
|
32
|
Pad out to modulo
|
iters |
integer
|
3
|
Number of Iteration
|
min_side |
integer
|
128
|
Min Side
|
max_scale |
integer
|
10
|
Min Scale
|
pixel_budget |
integer
|
400000
|
Pixel Budget
|
{
"type": "object",
"title": "Input",
"required": [
"original_image",
"mask_image"
],
"properties": {
"iters": {
"type": "integer",
"title": "Iters",
"default": 3,
"x-order": 3,
"description": "Number of Iteration"
},
"pad_out": {
"type": "integer",
"title": "Pad Out",
"default": 32,
"x-order": 2,
"description": "Pad out to modulo"
},
"min_side": {
"type": "integer",
"title": "Min Side",
"default": 128,
"x-order": 4,
"description": "Min Side"
},
"max_scale": {
"type": "integer",
"title": "Max Scale",
"default": 10,
"x-order": 5,
"description": "Min Scale"
},
"mask_image": {
"type": "string",
"title": "Mask Image",
"format": "uri",
"x-order": 1,
"description": "Mask Image Url"
},
"pixel_budget": {
"type": "integer",
"title": "Pixel Budget",
"default": 400000,
"x-order": 6,
"description": "Pixel Budget"
},
"original_image": {
"type": "string",
"title": "Original Image",
"format": "uri",
"x-order": 0,
"description": "Original Image Url"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}