marblewarsgame / any-style-transfer
- Public
- 436 runs
Run marblewarsgame/any-style-transfer 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 |
---|---|---|---|
content |
string
|
Content image.
|
|
style |
string
|
Style image.
|
|
colorize |
boolean
|
True
|
Whether use color correction in the output.
|
high_res |
boolean
|
False
|
Whether output high resolution image (1024 instead if 512).
|
alpha |
number
|
0.75
Max: 1 |
alpha=1.0 corresponds to maximum content preservation, alpha=0.0 is maximum stylization.
|
content_loss |
boolean
|
False
|
Whether use experimental content loss.
|
{
"type": "object",
"title": "Input",
"required": [
"content",
"style"
],
"properties": {
"alpha": {
"type": "number",
"title": "Alpha",
"default": 0.75,
"maximum": 1,
"minimum": 0,
"x-order": 4,
"description": "alpha=1.0 corresponds to maximum content preservation, alpha=0.0 is maximum stylization."
},
"style": {
"type": "string",
"title": "Style",
"format": "uri",
"x-order": 1,
"description": "Style image."
},
"content": {
"type": "string",
"title": "Content",
"format": "uri",
"x-order": 0,
"description": "Content image."
},
"colorize": {
"type": "boolean",
"title": "Colorize",
"default": true,
"x-order": 2,
"description": "Whether use color correction in the output."
},
"high_res": {
"type": "boolean",
"title": "High Res",
"default": false,
"x-order": 3,
"description": "Whether output high resolution image (1024 instead if 512)."
},
"content_loss": {
"type": "boolean",
"title": "Content Loss",
"default": false,
"x-order": 5,
"description": "Whether use experimental content loss."
}
}
}
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"
}