Files
2024-11-05 14:37:40 +00:00

567 lines
28 KiB
JSON

{
"url": "https://replicate.com/ai-forever/kandinsky-2.2",
"owner": "ai-forever",
"name": "kandinsky-2.2",
"description": "multilingual text2image latent diffusion model",
"visibility": "public",
"github_url": "https://github.com/chenxwh/Kandinsky-2/tree/v2.2",
"paper_url": null,
"license_url": "https://github.com/ai-forever/Kandinsky-2/blob/main/license",
"run_count": 0,
"cover_image_url": "https://tjzk.replicate.delivery/models_models_featured_image/618e68d3-fba3-4fd0-a060-cdd46b2ab7cf/out-0_2.jpg",
"default_example": {
"id": "3tsx2ijbtsa47m4mwbifyiglxm",
"model": "ai-forever/kandinsky-2.2",
"version": "424befb1eae6af8363edb846ae98a11111a39740988baebd279d73fe3ecc92c2",
"status": "succeeded",
"input": {
"width": 1024,
"height": 1024,
"prompt": "A moss covered astronaut with a black background",
"num_outputs": 1,
"num_inference_steps": 75
},
"output": [
"https://replicate.delivery/pbxt/Lca3IEjcKoJBBVS6ajROkK37sDzPsmjYxIcFzxPZp65wZzTE/out-0.png"
],
"logs": "Using seed: 4697\n 0%| | 0/25 [00:00<?, ?it/s]\n 20%|██ | 5/25 [00:00<00:00, 40.13it/s]\n 40%|████ | 10/25 [00:00<00:00, 40.19it/s]\n 60%|██████ | 15/25 [00:00<00:00, 40.05it/s]\n 80%|████████ | 20/25 [00:00<00:00, 39.66it/s]\n100%|██████████| 25/25 [00:00<00:00, 39.93it/s]\n100%|██████████| 25/25 [00:00<00:00, 39.90it/s]\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, username, watermark, signature']\n 0%| | 0/25 [00:00<?, ?it/s]\n 16%|█▌ | 4/25 [00:00<00:00, 37.91it/s]\n 36%|███▌ | 9/25 [00:00<00:00, 39.60it/s]\n 56%|█████▌ | 14/25 [00:00<00:00, 39.87it/s]\n 76%|███████▌ | 19/25 [00:00<00:00, 40.26it/s]\n 96%|█████████▌| 24/25 [00:00<00:00, 40.42it/s]\n100%|██████████| 25/25 [00:00<00:00, 40.12it/s]\n 0%| | 0/75 [00:00<?, ?it/s]\n 1%|▏ | 1/75 [00:00<00:14, 5.06it/s]\n 4%|▍ | 3/75 [00:00<00:08, 8.75it/s]\n 7%|▋ | 5/75 [00:00<00:06, 10.26it/s]\n 9%|▉ | 7/75 [00:00<00:06, 11.00it/s]\n 12%|█▏ | 9/75 [00:00<00:05, 11.45it/s]\n 15%|█▍ | 11/75 [00:01<00:05, 11.72it/s]\n 17%|█▋ | 13/75 [00:01<00:05, 11.89it/s]\n 20%|██ | 15/75 [00:01<00:04, 12.01it/s]\n 23%|██▎ | 17/75 [00:01<00:04, 12.09it/s]\n 25%|██▌ | 19/75 [00:01<00:04, 12.12it/s]\n 28%|██▊ | 21/75 [00:01<00:04, 12.16it/s]\n 31%|███ | 23/75 [00:02<00:04, 12.19it/s]\n 33%|███▎ | 25/75 [00:02<00:04, 12.21it/s]\n 36%|███▌ | 27/75 [00:02<00:03, 12.20it/s]\n 39%|███▊ | 29/75 [00:02<00:03, 12.21it/s]\n 41%|████▏ | 31/75 [00:02<00:03, 12.12it/s]\n 44%|████▍ | 33/75 [00:02<00:03, 12.11it/s]\n 47%|████▋ | 35/75 [00:02<00:03, 12.04it/s]\n 49%|████▉ | 37/75 [00:03<00:03, 11.90it/s]\n 52%|█████▏ | 39/75 [00:03<00:03, 11.98it/s]\n 55%|█████▍ | 41/75 [00:03<00:02, 12.04it/s]\n 57%|█████▋ | 43/75 [00:03<00:02, 12.08it/s]\n 60%|██████ | 45/75 [00:03<00:02, 12.12it/s]\n 63%|██████▎ | 47/75 [00:03<00:02, 12.09it/s]\n 65%|██████▌ | 49/75 [00:04<00:02, 12.06it/s]\n 68%|██████▊ | 51/75 [00:04<00:01, 12.10it/s]\n 71%|███████ | 53/75 [00:04<00:01, 12.14it/s]\n 73%|███████▎ | 55/75 [00:04<00:01, 12.14it/s]\n 76%|███████▌ | 57/75 [00:04<00:01, 12.16it/s]\n 79%|███████▊ | 59/75 [00:04<00:01, 12.18it/s]\n 81%|████████▏ | 61/75 [00:05<00:01, 12.11it/s]\n 84%|████████▍ | 63/75 [00:05<00:00, 12.15it/s]\n 87%|████████▋ | 65/75 [00:05<00:00, 12.14it/s]\n 89%|████████▉ | 67/75 [00:05<00:00, 12.14it/s]\n 92%|█████████▏| 69/75 [00:05<00:00, 12.16it/s]\n 95%|█████████▍| 71/75 [00:05<00:00, 12.19it/s]\n 97%|█████████▋| 73/75 [00:06<00:00, 12.17it/s]\n100%|██████████| 75/75 [00:06<00:00, 12.18it/s]\n100%|██████████| 75/75 [00:06<00:00, 11.92it/s]",
"error": null,
"metrics": {
"predict_time": 9.029294,
"total_time": 8.996641
},
"created_at": "2023-07-12T22:22:51.044455Z",
"started_at": "2023-07-12T22:22:51.011802Z",
"completed_at": "2023-07-12T22:23:00.041096Z",
"urls": {
"get": "https://api.replicate.com/v1/predictions/3tsx2ijbtsa47m4mwbifyiglxm",
"cancel": "https://api.replicate.com/v1/predictions/3tsx2ijbtsa47m4mwbifyiglxm/cancel"
}
},
"latest_version": {
"id": "ad9d7879fbffa2874e1d909d1d37d9bc682889cc65b31f7bb00d2362619f194a",
"created_at": "2024-04-10T14:54:34.535852+00:00",
"cog_version": "0.9.4",
"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": 7,
"description": "Random seed. Leave blank to randomize the seed"
},
"width": {
"allOf": [
{
"$ref": "#/components/schemas/width"
}
],
"default": 512,
"x-order": 2,
"description": "Width of output image. Lower the setting if hits memory limits."
},
"height": {
"allOf": [
{
"$ref": "#/components/schemas/height"
}
],
"default": 512,
"x-order": 3,
"description": "Height of output image. Lower the setting if hits memory limits."
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "A moss covered astronaut with a black background",
"x-order": 0,
"description": "Input prompt"
},
"num_outputs": {
"type": "integer",
"title": "Num Outputs",
"default": 1,
"maximum": 4,
"minimum": 1,
"x-order": 6,
"description": "Number of images to output."
},
"output_format": {
"allOf": [
{
"$ref": "#/components/schemas/output_format"
}
],
"default": "webp",
"x-order": 8,
"description": "Output image format"
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"x-order": 1,
"description": "Specify things to not see in the output"
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 75,
"maximum": 500,
"minimum": 1,
"x-order": 4,
"description": "Number of denoising steps"
},
"num_inference_steps_prior": {
"type": "integer",
"title": "Num Inference Steps Prior",
"default": 25,
"maximum": 500,
"minimum": 1,
"x-order": 5,
"description": "Number of denoising steps for priors"
}
}
},
"width": {
"enum": [
384,
512,
576,
640,
704,
768,
960,
1024,
1152,
1280,
1536,
1792,
2048
],
"type": "integer",
"title": "width",
"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."
},
"height": {
"enum": [
384,
512,
576,
640,
704,
768,
960,
1024,
1152,
1280,
1536,
1792,
2048
],
"type": "integer",
"title": "height",
"description": "An enumeration."
},
"WebhookEvent": {
"enum": [
"start",
"output",
"logs",
"completed"
],
"type": "string",
"title": "WebhookEvent",
"description": "An enumeration."
},
"output_format": {
"enum": [
"webp",
"jpeg",
"png"
],
"type": "string",
"title": "output_format",
"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"
}
}
}
}
}
}
}
}