543 lines
26 KiB
JSON
543 lines
26 KiB
JSON
{
|
|
"url": "https://replicate.com/fofr/face-to-many",
|
|
"owner": "fofr",
|
|
"name": "face-to-many",
|
|
"description": "Turn a face into 3D, emoji, pixel art, video game, claymation or toy",
|
|
"visibility": "public",
|
|
"github_url": "https://github.com/fofr/cog-face-to-many",
|
|
"paper_url": null,
|
|
"license_url": "https://github.com/fofr/cog-face-to-many/blob/main/weights_licenses.md",
|
|
"run_count": 0,
|
|
"cover_image_url": "https://tjzk.replicate.delivery/models_models_featured_image/583bfb50-534d-4835-a856-80bd2abb332e/mona-list-emoji.webp",
|
|
"default_example": {
|
|
"id": "pft2dadbcdnh25z5ktctsj3sze",
|
|
"model": "fofr/face-to-many",
|
|
"version": "edc6439ac55af138defbca7c472b38bcdd62c61797e8e0c2fae88696cd8afb25",
|
|
"status": "succeeded",
|
|
"input": {
|
|
"image": "https://replicate.delivery/pbxt/KW7Getr2zD5ECxySdBZtLmPa322lNkXrpkMdKcmxeaDmq2b1/MTk4MTczMTkzNzI1Mjg5NjYy.webp",
|
|
"style": "Clay",
|
|
"prompt": "a person in a post apocalyptic war game",
|
|
"negative_prompt": "",
|
|
"prompt_strength": 4.5,
|
|
"denoising_strength": 0.65,
|
|
"instant_id_strength": 0.8
|
|
},
|
|
"output": [
|
|
"https://replicate.delivery/pbxt/R1ayGe5efoQbaoRzgDEJdLsIZ20lWRiprvoW1F4uKAZIha6kA/ComfyUI_00001_.png"
|
|
],
|
|
"logs": "Random seed set to: 3672888193\nChecking inputs\n✅ /tmp/inputs/input.webp\n====================================\nRunning workflow\ngot prompt\nExecuting node 3, title: LoRA Stacker, class type: LoRA Stacker\nExecuting node 2, title: Efficient Loader, class type: Efficient Loader\nRequested to load SDXLClipModel\nLoading 1 new model\n----------------------------------------\n\u001b[36mEfficient Loader Models Cache:\u001b[0m\nCkpt:\n[1] albedobaseXL_v13\nLora:\n[1] base_ckpt: albedobaseXL_v13\nlora(mod,clip): ClayAnimationRedm(1,1)\nExecuting node 41, title: Apply InstantID, class type: ApplyInstantID\nExecuting node 51, title: VAE Encode, class type: VAEEncode\nExecuting node 4, title: KSampler (Efficient), class type: KSampler (Efficient)\nRequested to load SDXL\nRequested to load ControlNet\nRequested to load ControlNet\nLoading 3 new models\n 0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:05, 3.26it/s]\n 10%|█ | 2/20 [00:00<00:05, 3.26it/s]\n 15%|█▌ | 3/20 [00:00<00:05, 3.28it/s]\n 20%|██ | 4/20 [00:01<00:04, 3.28it/s]\n 25%|██▌ | 5/20 [00:01<00:04, 3.28it/s]\n 30%|███ | 6/20 [00:01<00:04, 3.29it/s]\n 35%|███▌ | 7/20 [00:02<00:03, 3.27it/s]\n 40%|████ | 8/20 [00:02<00:03, 3.27it/s]\n 45%|████▌ | 9/20 [00:02<00:03, 3.29it/s]\n 50%|█████ | 10/20 [00:03<00:03, 3.29it/s]\n 55%|█████▌ | 11/20 [00:03<00:02, 3.29it/s]\n 60%|██████ | 12/20 [00:03<00:02, 3.30it/s]\n 65%|██████▌ | 13/20 [00:03<00:02, 3.30it/s]\n 70%|███████ | 14/20 [00:04<00:01, 3.30it/s]\n 75%|███████▌ | 15/20 [00:04<00:01, 3.30it/s]\n 80%|████████ | 16/20 [00:04<00:01, 3.32it/s]\n 85%|████████▌ | 17/20 [00:05<00:00, 3.32it/s]\n 90%|█████████ | 18/20 [00:05<00:00, 3.33it/s]\n 95%|█████████▌| 19/20 [00:05<00:00, 3.37it/s]\n100%|██████████| 20/20 [00:06<00:00, 3.41it/s]\n100%|██████████| 20/20 [00:06<00:00, 3.31it/s]\nExecuting node 5, title: Save Image, class type: SaveImage\nPrompt executed in 20.70 seconds\noutputs: {'4': {'images': []}, '5': {'images': [{'filename': 'ComfyUI_00001_.png', 'subfolder': '', 'type': 'output'}]}}\n====================================\nContents of /tmp/outputs:\nComfyUI_00001_.png",
|
|
"error": null,
|
|
"metrics": {
|
|
"predict_time": 23.016322,
|
|
"total_time": 23.051238
|
|
},
|
|
"created_at": "2024-03-05T13:45:50.761895Z",
|
|
"started_at": "2024-03-05T13:45:50.796811Z",
|
|
"completed_at": "2024-03-05T13:46:13.813133Z",
|
|
"urls": {
|
|
"get": "https://api.replicate.com/v1/predictions/pft2dadbcdnh25z5ktctsj3sze",
|
|
"cancel": "https://api.replicate.com/v1/predictions/pft2dadbcdnh25z5ktctsj3sze/cancel"
|
|
}
|
|
},
|
|
"latest_version": {
|
|
"id": "a07f252abbbd832009640b27f063ea52d87d7a23a185ca165bec23b5adc8deaf",
|
|
"created_at": "2024-04-09T11:22:38.160380+00:00",
|
|
"cog_version": "0.8.6",
|
|
"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": 8,
|
|
"description": "Fix the random seed for reproducibility"
|
|
},
|
|
"image": {
|
|
"type": "string",
|
|
"title": "Image",
|
|
"format": "uri",
|
|
"x-order": 0,
|
|
"description": "An image of a person to be converted"
|
|
},
|
|
"style": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/components/schemas/style"
|
|
}
|
|
],
|
|
"default": "3D",
|
|
"x-order": 1,
|
|
"description": "Style to convert to"
|
|
},
|
|
"prompt": {
|
|
"type": "string",
|
|
"title": "Prompt",
|
|
"default": "a person",
|
|
"x-order": 2
|
|
},
|
|
"lora_scale": {
|
|
"type": "number",
|
|
"title": "Lora Scale",
|
|
"default": 1,
|
|
"maximum": 1,
|
|
"minimum": 0,
|
|
"x-order": 10,
|
|
"description": "How strong the LoRA will be"
|
|
},
|
|
"custom_lora_url": {
|
|
"type": "string",
|
|
"title": "Custom Lora Url",
|
|
"x-order": 9,
|
|
"description": "URL to a Replicate custom LoRA. Must be in the format https://replicate.delivery/pbxt/[id]/trained_model.tar or https://pbxt.replicate.delivery/[id]/trained_model.tar"
|
|
},
|
|
"negative_prompt": {
|
|
"type": "string",
|
|
"title": "Negative Prompt",
|
|
"default": "",
|
|
"x-order": 3,
|
|
"description": "Things you do not want in the image"
|
|
},
|
|
"prompt_strength": {
|
|
"type": "number",
|
|
"title": "Prompt Strength",
|
|
"default": 4.5,
|
|
"maximum": 20,
|
|
"minimum": 0,
|
|
"x-order": 5,
|
|
"description": "Strength of the prompt. This is the CFG scale, higher numbers lead to stronger prompt, lower numbers will keep more of a likeness to the original."
|
|
},
|
|
"denoising_strength": {
|
|
"type": "number",
|
|
"title": "Denoising Strength",
|
|
"default": 0.65,
|
|
"maximum": 1,
|
|
"minimum": 0,
|
|
"x-order": 4,
|
|
"description": "How much of the original image to keep. 1 is the complete destruction of the original image, 0 is the original image"
|
|
},
|
|
"instant_id_strength": {
|
|
"type": "number",
|
|
"title": "Instant Id Strength",
|
|
"default": 1,
|
|
"maximum": 1,
|
|
"minimum": 0,
|
|
"x-order": 7,
|
|
"description": "How strong the InstantID will be."
|
|
},
|
|
"control_depth_strength": {
|
|
"type": "number",
|
|
"title": "Control Depth Strength",
|
|
"default": 0.8,
|
|
"maximum": 1,
|
|
"minimum": 0,
|
|
"x-order": 6,
|
|
"description": "Strength of depth controlnet. The bigger this is, the more controlnet affects the output."
|
|
}
|
|
}
|
|
},
|
|
"style": {
|
|
"enum": [
|
|
"3D",
|
|
"Emoji",
|
|
"Video game",
|
|
"Pixels",
|
|
"Clay",
|
|
"Toy"
|
|
],
|
|
"type": "string",
|
|
"title": "style",
|
|
"description": "An enumeration."
|
|
},
|
|
"Output": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
},
|
|
"title": "Output"
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"starting",
|
|
"processing",
|
|
"succeeded",
|
|
"canceled",
|
|
"failed"
|
|
],
|
|
"type": "string",
|
|
"title": "Status",
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |