611 lines
30 KiB
JSON
611 lines
30 KiB
JSON
{
|
|
"url": "https://replicate.com/batouresearch/magic-style-transfer",
|
|
"owner": "batouresearch",
|
|
"name": "magic-style-transfer",
|
|
"description": "Restyle an image with the style of another one. I strongly suggest to upscale the results with Clarity AI",
|
|
"visibility": "public",
|
|
"github_url": "https://github.com/BatouResearch/Cog-Face-to-Anything/tree/magic-style-transfer",
|
|
"paper_url": null,
|
|
"license_url": null,
|
|
"run_count": 0,
|
|
"cover_image_url": "https://replicate.delivery/pbxt/CgdTGuA9wdoWGhVUMgpPIv9mh4rpLnYYViUmeLKV8wF2QGRJA/out-0.png",
|
|
"default_example": {
|
|
"id": "imodeq3bqxpre5bebcdqoi75l4",
|
|
"model": "batouresearch/magic-style-transfer",
|
|
"version": "3b5fa5d360c361090f11164292e45cc5d14cea8d089591d47c580cac9ec1c7ca",
|
|
"status": "succeeded",
|
|
"input": {
|
|
"image": "https://replicate.delivery/pbxt/KbUKCMMihGkSc5MXYYYkjEI6hlf1GNmGgwugu6JfSQATqiCN/3d.jpeg",
|
|
"prompt": "modern interior living room",
|
|
"ip_image": "https://replicate.delivery/pbxt/KbUKD3uoQjyTzdWbeAqYrypl0RWVJc0gI5UHHa3yYWNaqIoc/DALL%C2%B7E%202024-03-20%2017.57.33%20-%20Create%20a%20professional%20photograph%20of%20a%20modern%20interior%20design.%20This%20image%20should%20capture%20a%20living%20room%20space%20that%20combines%20contemporary%20elegance%20with%20c.webp",
|
|
"ip_scale": 1,
|
|
"strength": 1,
|
|
"scheduler": "K_EULER",
|
|
"lora_scale": 0.9,
|
|
"num_outputs": 1,
|
|
"guidance_scale": 4,
|
|
"resizing_scale": 1,
|
|
"apply_watermark": true,
|
|
"negative_prompt": "",
|
|
"background_color": "#A2A2A2",
|
|
"num_inference_steps": 30,
|
|
"condition_canny_scale": 0.5,
|
|
"condition_depth_scale": 0.5
|
|
},
|
|
"output": [
|
|
"https://replicate.delivery/pbxt/CgdTGuA9wdoWGhVUMgpPIv9mh4rpLnYYViUmeLKV8wF2QGRJA/out-0.png"
|
|
],
|
|
"logs": "Using seed: 28214\nPrompt: modern interior living room\nOriginal width:1024, height:1024\nAspect Ratio: 1.00\nnew_width:1024, new_height:1024\nYou have 2 ControlNets and you have passed 1 prompts. The conditionings will be fixed across the prompts.\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:13, 2.17it/s]\n 7%|▋ | 2/30 [00:00<00:10, 2.69it/s]\n 10%|█ | 3/30 [00:01<00:10, 2.59it/s]\n 13%|█▎ | 4/30 [00:01<00:10, 2.55it/s]\n 17%|█▋ | 5/30 [00:01<00:09, 2.52it/s]\n 20%|██ | 6/30 [00:02<00:09, 2.51it/s]\n 23%|██▎ | 7/30 [00:02<00:09, 2.50it/s]\n 27%|██▋ | 8/30 [00:03<00:08, 2.49it/s]\n 30%|███ | 9/30 [00:03<00:08, 2.49it/s]\n 33%|███▎ | 10/30 [00:03<00:08, 2.49it/s]\n 37%|███▋ | 11/30 [00:04<00:07, 2.49it/s]\n 40%|████ | 12/30 [00:04<00:07, 2.49it/s]\n 43%|████▎ | 13/30 [00:05<00:06, 2.49it/s]\n 47%|████▋ | 14/30 [00:05<00:06, 2.49it/s]\n 50%|█████ | 15/30 [00:05<00:06, 2.49it/s]\n 53%|█████▎ | 16/30 [00:06<00:05, 2.49it/s]\n 57%|█████▋ | 17/30 [00:06<00:05, 2.48it/s]\n 60%|██████ | 18/30 [00:07<00:04, 2.48it/s]\n 63%|██████▎ | 19/30 [00:07<00:04, 2.48it/s]\n 67%|██████▋ | 20/30 [00:08<00:04, 2.49it/s]\n 70%|███████ | 21/30 [00:08<00:03, 2.48it/s]\n 73%|███████▎ | 22/30 [00:08<00:03, 2.49it/s]\n 77%|███████▋ | 23/30 [00:09<00:02, 2.49it/s]\n 80%|████████ | 24/30 [00:09<00:02, 2.49it/s]\n 83%|████████▎ | 25/30 [00:10<00:02, 2.49it/s]\n 87%|████████▋ | 26/30 [00:10<00:01, 2.49it/s]\n 90%|█████████ | 27/30 [00:10<00:01, 2.49it/s]\n 93%|█████████▎| 28/30 [00:11<00:00, 2.49it/s]\n 97%|█████████▋| 29/30 [00:11<00:00, 2.49it/s]\n100%|██████████| 30/30 [00:12<00:00, 2.49it/s]\n100%|██████████| 30/30 [00:12<00:00, 2.49it/s]",
|
|
"error": null,
|
|
"metrics": {
|
|
"predict_time": 14.568553,
|
|
"total_time": 168.721412
|
|
},
|
|
"created_at": "2024-03-20T16:58:43.897037Z",
|
|
"started_at": "2024-03-20T17:01:18.049896Z",
|
|
"completed_at": "2024-03-20T17:01:32.618449Z",
|
|
"urls": {
|
|
"get": "https://api.replicate.com/v1/predictions/imodeq3bqxpre5bebcdqoi75l4",
|
|
"cancel": "https://api.replicate.com/v1/predictions/imodeq3bqxpre5bebcdqoi75l4/cancel"
|
|
}
|
|
},
|
|
"latest_version": {
|
|
"id": "3b5fa5d360c361090f11164292e45cc5d14cea8d089591d47c580cac9ec1c7ca",
|
|
"created_at": "2024-03-20T16:29:29.505365+00:00",
|
|
"cog_version": "0.9.5",
|
|
"openapi_schema": {
|
|
"info": {
|
|
"title": "Cog",
|
|
"version": "0.1.0"
|
|
},
|
|
"paths": {
|
|
"/": {
|
|
"get": {
|
|
"summary": "Root",
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"title": "Response Root Get"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
}
|
|
},
|
|
"operationId": "root__get"
|
|
}
|
|
},
|
|
"/shutdown": {
|
|
"post": {
|
|
"summary": "Start Shutdown",
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"title": "Response Start Shutdown Shutdown Post"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
}
|
|
},
|
|
"operationId": "start_shutdown_shutdown_post"
|
|
}
|
|
},
|
|
"/predictions": {
|
|
"post": {
|
|
"summary": "Predict",
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/PredictionResponse"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"parameters": [
|
|
{
|
|
"in": "header",
|
|
"name": "prefer",
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Prefer"
|
|
},
|
|
"required": false
|
|
}
|
|
],
|
|
"description": "Run a single prediction on the model",
|
|
"operationId": "predict_predictions_post",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/PredictionRequest"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/health-check": {
|
|
"get": {
|
|
"summary": "Healthcheck",
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"title": "Response Healthcheck Health Check Get"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
}
|
|
},
|
|
"operationId": "healthcheck_health_check_get"
|
|
}
|
|
},
|
|
"/predictions/{prediction_id}": {
|
|
"put": {
|
|
"summary": "Predict Idempotent",
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/PredictionResponse"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "prediction_id",
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Prediction ID"
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"in": "header",
|
|
"name": "prefer",
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Prefer"
|
|
},
|
|
"required": false
|
|
}
|
|
],
|
|
"description": "Run a single prediction on the model (idempotent creation).",
|
|
"operationId": "predict_idempotent_predictions__prediction_id__put",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/components/schemas/PredictionRequest"
|
|
}
|
|
],
|
|
"title": "Prediction Request"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/predictions/{prediction_id}/cancel": {
|
|
"post": {
|
|
"summary": "Cancel",
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"title": "Response Cancel Predictions Prediction Id Cancel Post"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "prediction_id",
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Prediction ID"
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"description": "Cancel a running prediction",
|
|
"operationId": "cancel_predictions__prediction_id__cancel_post"
|
|
}
|
|
}
|
|
},
|
|
"openapi": "3.0.2",
|
|
"components": {
|
|
"schemas": {
|
|
"Input": {
|
|
"type": "object",
|
|
"title": "Input",
|
|
"properties": {
|
|
"seed": {
|
|
"type": "integer",
|
|
"title": "Seed",
|
|
"x-order": 15,
|
|
"description": "Random seed. Leave blank to randomize the seed"
|
|
},
|
|
"image": {
|
|
"type": "string",
|
|
"title": "Image",
|
|
"format": "uri",
|
|
"x-order": 1,
|
|
"description": "Input image"
|
|
},
|
|
"prompt": {
|
|
"type": "string",
|
|
"title": "Prompt",
|
|
"default": "An astronaut riding a rainbow unicorn",
|
|
"x-order": 0,
|
|
"description": "Input prompt"
|
|
},
|
|
"ip_image": {
|
|
"type": "string",
|
|
"title": "Ip Image",
|
|
"format": "uri",
|
|
"x-order": 2,
|
|
"description": "Input image for img2img or inpaint mode"
|
|
},
|
|
"ip_scale": {
|
|
"type": "number",
|
|
"title": "Ip Scale",
|
|
"default": 0.3,
|
|
"maximum": 1,
|
|
"minimum": 0,
|
|
"x-order": 6,
|
|
"description": "IP Adapter strength."
|
|
},
|
|
"strength": {
|
|
"type": "number",
|
|
"title": "Strength",
|
|
"default": 0.9,
|
|
"maximum": 1,
|
|
"minimum": 0,
|
|
"x-order": 7,
|
|
"description": "When img2img is active, the denoising strength. 1 means total destruction of the input image."
|
|
},
|
|
"scheduler": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/components/schemas/scheduler"
|
|
}
|
|
],
|
|
"default": "K_EULER",
|
|
"x-order": 13,
|
|
"description": "scheduler"
|
|
},
|
|
"lora_scale": {
|
|
"type": "number",
|
|
"title": "Lora Scale",
|
|
"default": 0.9,
|
|
"maximum": 1,
|
|
"minimum": 0,
|
|
"x-order": 5,
|
|
"description": "LoRA additive scale. Only applicable on trained models."
|
|
},
|
|
"num_outputs": {
|
|
"type": "integer",
|
|
"title": "Num Outputs",
|
|
"default": 1,
|
|
"maximum": 4,
|
|
"minimum": 1,
|
|
"x-order": 12,
|
|
"description": "Number of images to output"
|
|
},
|
|
"lora_weights": {
|
|
"type": "string",
|
|
"title": "Lora Weights",
|
|
"x-order": 17,
|
|
"description": "Replicate LoRA weights to use. Leave blank to use the default weights."
|
|
},
|
|
"guidance_scale": {
|
|
"type": "number",
|
|
"title": "Guidance Scale",
|
|
"default": 4,
|
|
"maximum": 50,
|
|
"minimum": 1,
|
|
"x-order": 14,
|
|
"description": "Scale for classifier-free guidance"
|
|
},
|
|
"resizing_scale": {
|
|
"type": "number",
|
|
"title": "Resizing Scale",
|
|
"default": 1,
|
|
"maximum": 10,
|
|
"minimum": 1,
|
|
"x-order": 10,
|
|
"description": "If you want the image to have a solid margin. Scale of the solid margin. 1.0 means no resizing."
|
|
},
|
|
"apply_watermark": {
|
|
"type": "boolean",
|
|
"title": "Apply Watermark",
|
|
"default": true,
|
|
"x-order": 16,
|
|
"description": "Applies a watermark to enable determining if an image is generated in downstream applications. If you have other provisions for generating or deploying images safely, you can use this to disable watermarking."
|
|
},
|
|
"negative_prompt": {
|
|
"type": "string",
|
|
"title": "Negative Prompt",
|
|
"default": "",
|
|
"x-order": 8,
|
|
"description": "Input Negative Prompt"
|
|
},
|
|
"background_color": {
|
|
"type": "string",
|
|
"title": "Background Color",
|
|
"default": "#A2A2A2",
|
|
"x-order": 9,
|
|
"description": "When passing an image with alpha channel, it will be replaced with this color"
|
|
},
|
|
"num_inference_steps": {
|
|
"type": "integer",
|
|
"title": "Num Inference Steps",
|
|
"default": 30,
|
|
"maximum": 500,
|
|
"minimum": 1,
|
|
"x-order": 11,
|
|
"description": "Number of denoising steps"
|
|
},
|
|
"condition_canny_scale": {
|
|
"type": "number",
|
|
"title": "Condition Canny Scale",
|
|
"default": 0.15,
|
|
"maximum": 2,
|
|
"minimum": 0,
|
|
"x-order": 4,
|
|
"description": "The bigger this number is, the more ControlNet interferes"
|
|
},
|
|
"condition_depth_scale": {
|
|
"type": "number",
|
|
"title": "Condition Depth Scale",
|
|
"default": 0.35,
|
|
"maximum": 2,
|
|
"minimum": 0,
|
|
"x-order": 3,
|
|
"description": "The bigger this number is, the more ControlNet interferes"
|
|
}
|
|
}
|
|
},
|
|
"Output": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
},
|
|
"title": "Output"
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"starting",
|
|
"processing",
|
|
"succeeded",
|
|
"canceled",
|
|
"failed"
|
|
],
|
|
"type": "string",
|
|
"title": "Status",
|
|
"description": "An enumeration."
|
|
},
|
|
"scheduler": {
|
|
"enum": [
|
|
"DDIM",
|
|
"DPMSolverMultistep",
|
|
"HeunDiscrete",
|
|
"KarrasDPM",
|
|
"K_EULER_ANCESTRAL",
|
|
"K_EULER",
|
|
"PNDM"
|
|
],
|
|
"type": "string",
|
|
"title": "scheduler",
|
|
"description": "An enumeration."
|
|
},
|
|
"WebhookEvent": {
|
|
"enum": [
|
|
"start",
|
|
"output",
|
|
"logs",
|
|
"completed"
|
|
],
|
|
"type": "string",
|
|
"title": "WebhookEvent",
|
|
"description": "An enumeration."
|
|
},
|
|
"ValidationError": {
|
|
"type": "object",
|
|
"title": "ValidationError",
|
|
"required": [
|
|
"loc",
|
|
"msg",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"loc": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "integer"
|
|
}
|
|
]
|
|
},
|
|
"title": "Location"
|
|
},
|
|
"msg": {
|
|
"type": "string",
|
|
"title": "Message"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"title": "Error Type"
|
|
}
|
|
}
|
|
},
|
|
"PredictionRequest": {
|
|
"type": "object",
|
|
"title": "PredictionRequest",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"title": "Id"
|
|
},
|
|
"input": {
|
|
"$ref": "#/components/schemas/Input"
|
|
},
|
|
"webhook": {
|
|
"type": "string",
|
|
"title": "Webhook",
|
|
"format": "uri",
|
|
"maxLength": 65536,
|
|
"minLength": 1
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"title": "Created At",
|
|
"format": "date-time"
|
|
},
|
|
"output_file_prefix": {
|
|
"type": "string",
|
|
"title": "Output File Prefix"
|
|
},
|
|
"webhook_events_filter": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/WebhookEvent"
|
|
},
|
|
"default": [
|
|
"start",
|
|
"output",
|
|
"logs",
|
|
"completed"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"PredictionResponse": {
|
|
"type": "object",
|
|
"title": "PredictionResponse",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"title": "Id"
|
|
},
|
|
"logs": {
|
|
"type": "string",
|
|
"title": "Logs",
|
|
"default": ""
|
|
},
|
|
"error": {
|
|
"type": "string",
|
|
"title": "Error"
|
|
},
|
|
"input": {
|
|
"$ref": "#/components/schemas/Input"
|
|
},
|
|
"output": {
|
|
"$ref": "#/components/schemas/Output"
|
|
},
|
|
"status": {
|
|
"$ref": "#/components/schemas/Status"
|
|
},
|
|
"metrics": {
|
|
"type": "object",
|
|
"title": "Metrics"
|
|
},
|
|
"version": {
|
|
"type": "string",
|
|
"title": "Version"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"title": "Created At",
|
|
"format": "date-time"
|
|
},
|
|
"started_at": {
|
|
"type": "string",
|
|
"title": "Started At",
|
|
"format": "date-time"
|
|
},
|
|
"completed_at": {
|
|
"type": "string",
|
|
"title": "Completed At",
|
|
"format": "date-time"
|
|
}
|
|
}
|
|
},
|
|
"HTTPValidationError": {
|
|
"type": "object",
|
|
"title": "HTTPValidationError",
|
|
"properties": {
|
|
"detail": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/ValidationError"
|
|
},
|
|
"title": "Detail"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |