
lightweight-ai / test_ip
- Public
- 58 runs
Run lightweight-ai/test_ip 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 |
---|---|---|---|
huggingface_token |
string
|
Paste huggingface token
|
|
prompt |
string
|
A bohemian-style female travel blogger with sun-kissed skin and messy beach waves
|
Prompt for generated image
|
num_inference_steps |
integer
|
28
Min: 1 Max: 50 |
Number of inference steps
|
input_img |
string
|
Path to input image
|
|
mask_img |
string
|
Path to mask image
|
|
coords_type |
string
|
key_in
|
Type of coordinate input
|
width |
integer
|
1408
|
Width of output image
|
height |
integer
|
784
|
Height of output image
|
dilate_kernel_size |
integer
|
20
|
Size of dilation kernel
|
output_dir |
string
|
./results
|
Output directory
|
{
"type": "object",
"title": "Input",
"required": [
"input_img",
"mask_img"
],
"properties": {
"width": {
"type": "integer",
"title": "Width",
"default": 1408,
"x-order": 6,
"description": "Width of output image"
},
"height": {
"type": "integer",
"title": "Height",
"default": 784,
"x-order": 7,
"description": "Height of output image"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "A bohemian-style female travel blogger with sun-kissed skin and messy beach waves",
"x-order": 1,
"description": "Prompt for generated image"
},
"mask_img": {
"type": "string",
"title": "Mask Img",
"format": "uri",
"x-order": 4,
"description": "Path to mask image"
},
"input_img": {
"type": "string",
"title": "Input Img",
"format": "uri",
"x-order": 3,
"description": "Path to input image"
},
"output_dir": {
"type": "string",
"title": "Output Dir",
"default": "./results",
"x-order": 9,
"description": "Output directory"
},
"coords_type": {
"type": "string",
"title": "Coords Type",
"default": "key_in",
"x-order": 5,
"description": "Type of coordinate input"
},
"huggingface_token": {
"type": "string",
"title": "Huggingface Token",
"x-order": 0,
"description": "Paste huggingface token"
},
"dilate_kernel_size": {
"type": "integer",
"title": "Dilate Kernel Size",
"default": 20,
"x-order": 8,
"description": "Size of dilation kernel"
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 28,
"maximum": 50,
"minimum": 1,
"x-order": 2,
"description": "Number of inference steps"
}
}
}
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"
}