zhouzhengjun
/
lora_inpainting
SDRV_2.0
- Public
- 15K runs
-
A100 (80GB)
Prediction
zhouzhengjun/lora_inpainting:09ab002e951e7392d69715a8176d82e88f465eff1629542545b6cc73d47d4e28IDcetaikvoenehte5grjpcauywkuStatusSucceededSourceWebHardware–Total durationCreatedInput
- width
- 512
- height
- 512
- prompt
- a woman face of <1>
- lora_urls
- https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors
- scheduler
- K_EULER_ANCESTRAL
- lora_scales
- 0.7
- num_outputs
- 1
- adapter_type
- sketch
- guidance_scale
- 3.62
- prompt_strength
- 0.98
- num_inference_steps
- 36
{ "init": "https://replicate.delivery/pbxt/IdzNWFUoN9sQLs58ej9qUvAd2WLr6swgdDOYqsApiN0Kkt0b/Aman1.png", "mask": "https://replicate.delivery/pbxt/IdzNWCPe59l4JWpkYfdj9CvY8pXPkbUJCfQtnm4qtjgKaSgT/Aman.png", "width": 512, "height": 512, "prompt": "a woman face of <1>", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.7", "num_outputs": 1, "adapter_type": "sketch", "guidance_scale": 3.62, "prompt_strength": 0.98, "num_inference_steps": 36 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zhouzhengjun/lora_inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zhouzhengjun/lora_inpainting:09ab002e951e7392d69715a8176d82e88f465eff1629542545b6cc73d47d4e28", { input: { init: "https://replicate.delivery/pbxt/IdzNWFUoN9sQLs58ej9qUvAd2WLr6swgdDOYqsApiN0Kkt0b/Aman1.png", mask: "https://replicate.delivery/pbxt/IdzNWCPe59l4JWpkYfdj9CvY8pXPkbUJCfQtnm4qtjgKaSgT/Aman.png", width: 512, height: 512, prompt: "a woman face of <1>", lora_urls: "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", scheduler: "K_EULER_ANCESTRAL", lora_scales: "0.7", num_outputs: 1, adapter_type: "sketch", guidance_scale: 3.62, prompt_strength: 0.98, num_inference_steps: 36 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run zhouzhengjun/lora_inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zhouzhengjun/lora_inpainting:09ab002e951e7392d69715a8176d82e88f465eff1629542545b6cc73d47d4e28", input={ "init": "https://replicate.delivery/pbxt/IdzNWFUoN9sQLs58ej9qUvAd2WLr6swgdDOYqsApiN0Kkt0b/Aman1.png", "mask": "https://replicate.delivery/pbxt/IdzNWCPe59l4JWpkYfdj9CvY8pXPkbUJCfQtnm4qtjgKaSgT/Aman.png", "width": 512, "height": 512, "prompt": "a woman face of <1>", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.7", "num_outputs": 1, "adapter_type": "sketch", "guidance_scale": 3.62, "prompt_strength": 0.98, "num_inference_steps": 36 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run zhouzhengjun/lora_inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "09ab002e951e7392d69715a8176d82e88f465eff1629542545b6cc73d47d4e28", "input": { "init": "https://replicate.delivery/pbxt/IdzNWFUoN9sQLs58ej9qUvAd2WLr6swgdDOYqsApiN0Kkt0b/Aman1.png", "mask": "https://replicate.delivery/pbxt/IdzNWCPe59l4JWpkYfdj9CvY8pXPkbUJCfQtnm4qtjgKaSgT/Aman.png", "width": 512, "height": 512, "prompt": "a woman face of <1>", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.7", "num_outputs": 1, "adapter_type": "sketch", "guidance_scale": 3.62, "prompt_strength": 0.98, "num_inference_steps": 36 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-04-13T09:56:58.338984Z", "created_at": "2023-04-13T09:56:31.084952Z", "data_removed": false, "error": null, "id": "cetaikvoenehte5grjpcauywku", "input": { "init": "https://replicate.delivery/pbxt/IdzNWFUoN9sQLs58ej9qUvAd2WLr6swgdDOYqsApiN0Kkt0b/Aman1.png", "mask": "https://replicate.delivery/pbxt/IdzNWCPe59l4JWpkYfdj9CvY8pXPkbUJCfQtnm4qtjgKaSgT/Aman.png", "width": 512, "height": 512, "prompt": "a woman face of <1>", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.7", "num_outputs": 1, "adapter_type": "sketch", "guidance_scale": 3.62, "prompt_strength": 0.98, "num_inference_steps": 36 }, "logs": "Using seed: 50939\nGenerating image of 665 x 1000 with prompt: a woman face of <1>\nThe requested LoRAs are loaded.\n 0%| | 0/35 [00:00<?, ?it/s]\n 3%|▎ | 1/35 [00:00<00:23, 1.47it/s]\n 6%|▌ | 2/35 [00:01<00:22, 1.45it/s]\n 9%|▊ | 3/35 [00:02<00:22, 1.44it/s]\n 11%|█▏ | 4/35 [00:02<00:21, 1.44it/s]\n 14%|█▍ | 5/35 [00:03<00:20, 1.44it/s]\n 17%|█▋ | 6/35 [00:04<00:20, 1.44it/s]\n 20%|██ | 7/35 [00:04<00:19, 1.44it/s]\n 23%|██▎ | 8/35 [00:05<00:18, 1.44it/s]\n 26%|██▌ | 9/35 [00:06<00:18, 1.44it/s]\n 29%|██▊ | 10/35 [00:06<00:17, 1.44it/s]\n 31%|███▏ | 11/35 [00:07<00:16, 1.44it/s]\n 34%|███▍ | 12/35 [00:08<00:16, 1.43it/s]\n 37%|███▋ | 13/35 [00:09<00:15, 1.43it/s]\n 40%|████ | 14/35 [00:09<00:14, 1.43it/s]\n 43%|████▎ | 15/35 [00:10<00:13, 1.43it/s]\n 46%|████▌ | 16/35 [00:11<00:13, 1.43it/s]\n 49%|████▊ | 17/35 [00:11<00:12, 1.42it/s]\n 51%|█████▏ | 18/35 [00:12<00:11, 1.42it/s]\n 54%|█████▍ | 19/35 [00:13<00:11, 1.42it/s]\n 57%|█████▋ | 20/35 [00:13<00:10, 1.42it/s]\n 60%|██████ | 21/35 [00:14<00:09, 1.42it/s]\n 63%|██████▎ | 22/35 [00:15<00:09, 1.42it/s]\n 66%|██████▌ | 23/35 [00:16<00:08, 1.41it/s]\n 69%|██████▊ | 24/35 [00:16<00:07, 1.41it/s]\n 71%|███████▏ | 25/35 [00:17<00:07, 1.41it/s]\n 74%|███████▍ | 26/35 [00:18<00:06, 1.41it/s]\n 77%|███████▋ | 27/35 [00:18<00:05, 1.41it/s]\n 80%|████████ | 28/35 [00:19<00:04, 1.41it/s]\n 83%|████████▎ | 29/35 [00:20<00:04, 1.41it/s]\n 86%|████████▌ | 30/35 [00:21<00:03, 1.41it/s]\n 89%|████████▊ | 31/35 [00:21<00:02, 1.41it/s]\n 91%|█████████▏| 32/35 [00:22<00:02, 1.41it/s]\n 94%|█████████▍| 33/35 [00:23<00:01, 1.41it/s]\n 97%|█████████▋| 34/35 [00:23<00:00, 1.40it/s]\n100%|██████████| 35/35 [00:24<00:00, 1.40it/s]\n100%|██████████| 35/35 [00:24<00:00, 1.42it/s]", "metrics": { "predict_time": 27.13898, "total_time": 27.254032 }, "output": [ "https://replicate.delivery/pbxt/C5UGKpo2MMJrNlmCNXNlXDDJe2dz97PbqHPnRVfzukApPYxQA/out-0.png" ], "started_at": "2023-04-13T09:56:31.200004Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/cetaikvoenehte5grjpcauywku", "cancel": "https://api.replicate.com/v1/predictions/cetaikvoenehte5grjpcauywku/cancel" }, "version": "09ab002e951e7392d69715a8176d82e88f465eff1629542545b6cc73d47d4e28" }
Generated inUsing seed: 50939 Generating image of 665 x 1000 with prompt: a woman face of <1> The requested LoRAs are loaded. 0%| | 0/35 [00:00<?, ?it/s] 3%|▎ | 1/35 [00:00<00:23, 1.47it/s] 6%|▌ | 2/35 [00:01<00:22, 1.45it/s] 9%|▊ | 3/35 [00:02<00:22, 1.44it/s] 11%|█▏ | 4/35 [00:02<00:21, 1.44it/s] 14%|█▍ | 5/35 [00:03<00:20, 1.44it/s] 17%|█▋ | 6/35 [00:04<00:20, 1.44it/s] 20%|██ | 7/35 [00:04<00:19, 1.44it/s] 23%|██▎ | 8/35 [00:05<00:18, 1.44it/s] 26%|██▌ | 9/35 [00:06<00:18, 1.44it/s] 29%|██▊ | 10/35 [00:06<00:17, 1.44it/s] 31%|███▏ | 11/35 [00:07<00:16, 1.44it/s] 34%|███▍ | 12/35 [00:08<00:16, 1.43it/s] 37%|███▋ | 13/35 [00:09<00:15, 1.43it/s] 40%|████ | 14/35 [00:09<00:14, 1.43it/s] 43%|████▎ | 15/35 [00:10<00:13, 1.43it/s] 46%|████▌ | 16/35 [00:11<00:13, 1.43it/s] 49%|████▊ | 17/35 [00:11<00:12, 1.42it/s] 51%|█████▏ | 18/35 [00:12<00:11, 1.42it/s] 54%|█████▍ | 19/35 [00:13<00:11, 1.42it/s] 57%|█████▋ | 20/35 [00:13<00:10, 1.42it/s] 60%|██████ | 21/35 [00:14<00:09, 1.42it/s] 63%|██████▎ | 22/35 [00:15<00:09, 1.42it/s] 66%|██████▌ | 23/35 [00:16<00:08, 1.41it/s] 69%|██████▊ | 24/35 [00:16<00:07, 1.41it/s] 71%|███████▏ | 25/35 [00:17<00:07, 1.41it/s] 74%|███████▍ | 26/35 [00:18<00:06, 1.41it/s] 77%|███████▋ | 27/35 [00:18<00:05, 1.41it/s] 80%|████████ | 28/35 [00:19<00:04, 1.41it/s] 83%|████████▎ | 29/35 [00:20<00:04, 1.41it/s] 86%|████████▌ | 30/35 [00:21<00:03, 1.41it/s] 89%|████████▊ | 31/35 [00:21<00:02, 1.41it/s] 91%|█████████▏| 32/35 [00:22<00:02, 1.41it/s] 94%|█████████▍| 33/35 [00:23<00:01, 1.41it/s] 97%|█████████▋| 34/35 [00:23<00:00, 1.40it/s] 100%|██████████| 35/35 [00:24<00:00, 1.40it/s] 100%|██████████| 35/35 [00:24<00:00, 1.42it/s]
Prediction
zhouzhengjun/lora_inpainting:09ab002e951e7392d69715a8176d82e88f465eff1629542545b6cc73d47d4e28IDoysvmhi5kbfrdm76uwi5xl7fymStatusSucceededSourceWebHardware–Total durationCreatedInput
- width
- 512
- height
- 512
- prompt
- a man , sitting on a park bench
- lora_urls
- https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors
- scheduler
- K_EULER_ANCESTRAL
- lora_scales
- 0.5
- num_outputs
- 1
- adapter_type
- sketch
- guidance_scale
- 3.57
- prompt_strength
- 0.98
- num_inference_steps
- 55
{ "init": "https://replicate.delivery/pbxt/Idz8kFiRTKJp84UexgeCfDae92Se5Zmn5D9HDDaqIxpLKmef/Adog.png", "mask": "https://replicate.delivery/pbxt/Idz8jjSHL4jsMzQQYHLpGZUph9jB44PD6U8E1qsRlfgzcMw5/Amask1.png", "width": 512, "height": 512, "prompt": "a man , sitting on a park bench", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.5", "num_outputs": 1, "adapter_type": "sketch", "guidance_scale": 3.57, "prompt_strength": 0.98, "num_inference_steps": 55 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zhouzhengjun/lora_inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zhouzhengjun/lora_inpainting:09ab002e951e7392d69715a8176d82e88f465eff1629542545b6cc73d47d4e28", { input: { init: "https://replicate.delivery/pbxt/Idz8kFiRTKJp84UexgeCfDae92Se5Zmn5D9HDDaqIxpLKmef/Adog.png", mask: "https://replicate.delivery/pbxt/Idz8jjSHL4jsMzQQYHLpGZUph9jB44PD6U8E1qsRlfgzcMw5/Amask1.png", width: 512, height: 512, prompt: "a man , sitting on a park bench", lora_urls: "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", scheduler: "K_EULER_ANCESTRAL", lora_scales: "0.5", num_outputs: 1, adapter_type: "sketch", guidance_scale: 3.57, prompt_strength: 0.98, num_inference_steps: 55 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run zhouzhengjun/lora_inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zhouzhengjun/lora_inpainting:09ab002e951e7392d69715a8176d82e88f465eff1629542545b6cc73d47d4e28", input={ "init": "https://replicate.delivery/pbxt/Idz8kFiRTKJp84UexgeCfDae92Se5Zmn5D9HDDaqIxpLKmef/Adog.png", "mask": "https://replicate.delivery/pbxt/Idz8jjSHL4jsMzQQYHLpGZUph9jB44PD6U8E1qsRlfgzcMw5/Amask1.png", "width": 512, "height": 512, "prompt": "a man , sitting on a park bench", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.5", "num_outputs": 1, "adapter_type": "sketch", "guidance_scale": 3.57, "prompt_strength": 0.98, "num_inference_steps": 55 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run zhouzhengjun/lora_inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "09ab002e951e7392d69715a8176d82e88f465eff1629542545b6cc73d47d4e28", "input": { "init": "https://replicate.delivery/pbxt/Idz8kFiRTKJp84UexgeCfDae92Se5Zmn5D9HDDaqIxpLKmef/Adog.png", "mask": "https://replicate.delivery/pbxt/Idz8jjSHL4jsMzQQYHLpGZUph9jB44PD6U8E1qsRlfgzcMw5/Amask1.png", "width": 512, "height": 512, "prompt": "a man , sitting on a park bench", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.5", "num_outputs": 1, "adapter_type": "sketch", "guidance_scale": 3.57, "prompt_strength": 0.98, "num_inference_steps": 55 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-04-13T09:41:07.535448Z", "created_at": "2023-04-13T09:40:54.676235Z", "data_removed": false, "error": null, "id": "oysvmhi5kbfrdm76uwi5xl7fym", "input": { "init": "https://replicate.delivery/pbxt/Idz8kFiRTKJp84UexgeCfDae92Se5Zmn5D9HDDaqIxpLKmef/Adog.png", "mask": "https://replicate.delivery/pbxt/Idz8jjSHL4jsMzQQYHLpGZUph9jB44PD6U8E1qsRlfgzcMw5/Amask1.png", "width": 512, "height": 512, "prompt": "a man , sitting on a park bench", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.5", "num_outputs": 1, "adapter_type": "sketch", "guidance_scale": 3.57, "prompt_strength": 0.98, "num_inference_steps": 55 }, "logs": "Using seed: 16660\nGenerating image of 512 x 512 with prompt: a man , sitting on a park bench\nThe requested LoRAs are loaded.\n 0%| | 0/53 [00:00<?, ?it/s]\n 2%|▏ | 1/53 [00:00<00:11, 4.61it/s]\n 4%|▍ | 2/53 [00:00<00:10, 4.84it/s]\n 6%|▌ | 3/53 [00:00<00:10, 4.91it/s]\n 8%|▊ | 4/53 [00:00<00:09, 4.93it/s]\n 9%|▉ | 5/53 [00:01<00:09, 4.89it/s]\n 11%|█▏ | 6/53 [00:01<00:09, 4.91it/s]\n 13%|█▎ | 7/53 [00:01<00:09, 4.94it/s]\n 15%|█▌ | 8/53 [00:01<00:09, 4.95it/s]\n 17%|█▋ | 9/53 [00:01<00:08, 4.95it/s]\n 19%|█▉ | 10/53 [00:02<00:08, 4.92it/s]\n 21%|██ | 11/53 [00:02<00:08, 4.93it/s]\n 23%|██▎ | 12/53 [00:02<00:08, 4.95it/s]\n 25%|██▍ | 13/53 [00:02<00:08, 4.96it/s]\n 26%|██▋ | 14/53 [00:02<00:07, 4.96it/s]\n 28%|██▊ | 15/53 [00:03<00:07, 4.93it/s]\n 30%|███ | 16/53 [00:03<00:07, 4.94it/s]\n 32%|███▏ | 17/53 [00:03<00:07, 4.95it/s]\n 34%|███▍ | 18/53 [00:03<00:07, 4.96it/s]\n 36%|███▌ | 19/53 [00:03<00:06, 4.95it/s]\n 38%|███▊ | 20/53 [00:04<00:06, 4.93it/s]\n 40%|███▉ | 21/53 [00:04<00:06, 4.94it/s]\n 42%|████▏ | 22/53 [00:04<00:06, 4.93it/s]\n 43%|████▎ | 23/53 [00:04<00:06, 4.95it/s]\n 45%|████▌ | 24/53 [00:04<00:05, 4.95it/s]\n 47%|████▋ | 25/53 [00:05<00:05, 4.95it/s]\n 49%|████▉ | 26/53 [00:05<00:05, 4.95it/s]\n 51%|█████ | 27/53 [00:05<00:05, 4.95it/s]\n 53%|█████▎ | 28/53 [00:05<00:05, 4.94it/s]\n 55%|█████▍ | 29/53 [00:05<00:04, 4.93it/s]\n 57%|█████▋ | 30/53 [00:06<00:04, 4.94it/s]\n 58%|█████▊ | 31/53 [00:06<00:04, 4.94it/s]\n 60%|██████ | 32/53 [00:06<00:04, 4.94it/s]\n 62%|██████▏ | 33/53 [00:06<00:04, 4.95it/s]\n 64%|██████▍ | 34/53 [00:06<00:03, 4.94it/s]\n 66%|██████▌ | 35/53 [00:07<00:03, 4.94it/s]\n 68%|██████▊ | 36/53 [00:07<00:03, 4.95it/s]\n 70%|██████▉ | 37/53 [00:07<00:03, 4.94it/s]\n 72%|███████▏ | 38/53 [00:07<00:03, 4.95it/s]\n 74%|███████▎ | 39/53 [00:07<00:02, 4.94it/s]\n 75%|███████▌ | 40/53 [00:08<00:02, 4.94it/s]\n 77%|███████▋ | 41/53 [00:08<00:02, 4.94it/s]\n 79%|███████▉ | 42/53 [00:08<00:02, 4.94it/s]\n 81%|████████ | 43/53 [00:08<00:02, 4.94it/s]\n 83%|████████▎ | 44/53 [00:08<00:01, 4.93it/s]\n 85%|████████▍ | 45/53 [00:09<00:01, 4.90it/s]\n 87%|████████▋ | 46/53 [00:09<00:01, 4.86it/s]\n 89%|████████▊ | 47/53 [00:09<00:01, 4.87it/s]\n 91%|█████████ | 48/53 [00:09<00:01, 4.88it/s]\n 92%|█████████▏| 49/53 [00:09<00:00, 4.89it/s]\n 94%|█████████▍| 50/53 [00:10<00:00, 4.90it/s]\n 96%|█████████▌| 51/53 [00:10<00:00, 4.88it/s]\n 98%|█████████▊| 52/53 [00:10<00:00, 4.87it/s]\n100%|██████████| 53/53 [00:10<00:00, 4.84it/s]\n100%|██████████| 53/53 [00:10<00:00, 4.92it/s]", "metrics": { "predict_time": 12.735919, "total_time": 12.859213 }, "output": [ "https://replicate.delivery/pbxt/CPxwJ8rbzTaJC5MLXzuLdlBWcG7Did8IbS2DOB0ytdkMAWME/out-0.png" ], "started_at": "2023-04-13T09:40:54.799529Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/oysvmhi5kbfrdm76uwi5xl7fym", "cancel": "https://api.replicate.com/v1/predictions/oysvmhi5kbfrdm76uwi5xl7fym/cancel" }, "version": "09ab002e951e7392d69715a8176d82e88f465eff1629542545b6cc73d47d4e28" }
Generated inUsing seed: 16660 Generating image of 512 x 512 with prompt: a man , sitting on a park bench The requested LoRAs are loaded. 0%| | 0/53 [00:00<?, ?it/s] 2%|▏ | 1/53 [00:00<00:11, 4.61it/s] 4%|▍ | 2/53 [00:00<00:10, 4.84it/s] 6%|▌ | 3/53 [00:00<00:10, 4.91it/s] 8%|▊ | 4/53 [00:00<00:09, 4.93it/s] 9%|▉ | 5/53 [00:01<00:09, 4.89it/s] 11%|█▏ | 6/53 [00:01<00:09, 4.91it/s] 13%|█▎ | 7/53 [00:01<00:09, 4.94it/s] 15%|█▌ | 8/53 [00:01<00:09, 4.95it/s] 17%|█▋ | 9/53 [00:01<00:08, 4.95it/s] 19%|█▉ | 10/53 [00:02<00:08, 4.92it/s] 21%|██ | 11/53 [00:02<00:08, 4.93it/s] 23%|██▎ | 12/53 [00:02<00:08, 4.95it/s] 25%|██▍ | 13/53 [00:02<00:08, 4.96it/s] 26%|██▋ | 14/53 [00:02<00:07, 4.96it/s] 28%|██▊ | 15/53 [00:03<00:07, 4.93it/s] 30%|███ | 16/53 [00:03<00:07, 4.94it/s] 32%|███▏ | 17/53 [00:03<00:07, 4.95it/s] 34%|███▍ | 18/53 [00:03<00:07, 4.96it/s] 36%|███▌ | 19/53 [00:03<00:06, 4.95it/s] 38%|███▊ | 20/53 [00:04<00:06, 4.93it/s] 40%|███▉ | 21/53 [00:04<00:06, 4.94it/s] 42%|████▏ | 22/53 [00:04<00:06, 4.93it/s] 43%|████▎ | 23/53 [00:04<00:06, 4.95it/s] 45%|████▌ | 24/53 [00:04<00:05, 4.95it/s] 47%|████▋ | 25/53 [00:05<00:05, 4.95it/s] 49%|████▉ | 26/53 [00:05<00:05, 4.95it/s] 51%|█████ | 27/53 [00:05<00:05, 4.95it/s] 53%|█████▎ | 28/53 [00:05<00:05, 4.94it/s] 55%|█████▍ | 29/53 [00:05<00:04, 4.93it/s] 57%|█████▋ | 30/53 [00:06<00:04, 4.94it/s] 58%|█████▊ | 31/53 [00:06<00:04, 4.94it/s] 60%|██████ | 32/53 [00:06<00:04, 4.94it/s] 62%|██████▏ | 33/53 [00:06<00:04, 4.95it/s] 64%|██████▍ | 34/53 [00:06<00:03, 4.94it/s] 66%|██████▌ | 35/53 [00:07<00:03, 4.94it/s] 68%|██████▊ | 36/53 [00:07<00:03, 4.95it/s] 70%|██████▉ | 37/53 [00:07<00:03, 4.94it/s] 72%|███████▏ | 38/53 [00:07<00:03, 4.95it/s] 74%|███████▎ | 39/53 [00:07<00:02, 4.94it/s] 75%|███████▌ | 40/53 [00:08<00:02, 4.94it/s] 77%|███████▋ | 41/53 [00:08<00:02, 4.94it/s] 79%|███████▉ | 42/53 [00:08<00:02, 4.94it/s] 81%|████████ | 43/53 [00:08<00:02, 4.94it/s] 83%|████████▎ | 44/53 [00:08<00:01, 4.93it/s] 85%|████████▍ | 45/53 [00:09<00:01, 4.90it/s] 87%|████████▋ | 46/53 [00:09<00:01, 4.86it/s] 89%|████████▊ | 47/53 [00:09<00:01, 4.87it/s] 91%|█████████ | 48/53 [00:09<00:01, 4.88it/s] 92%|█████████▏| 49/53 [00:09<00:00, 4.89it/s] 94%|█████████▍| 50/53 [00:10<00:00, 4.90it/s] 96%|█████████▌| 51/53 [00:10<00:00, 4.88it/s] 98%|█████████▊| 52/53 [00:10<00:00, 4.87it/s] 100%|██████████| 53/53 [00:10<00:00, 4.84it/s] 100%|██████████| 53/53 [00:10<00:00, 4.92it/s]
Prediction
zhouzhengjun/lora_inpainting:5ee40dbfcd12b378b456834a7bc222ee19d09921d0263a5123e281059fc58670ID6auya62axzhxfmdj4zwvbmc4z4StatusSucceededSourceWebHardware–Total durationCreatedInput
- seed
- 20786
- width
- 768
- height
- 768
- prompt
- (((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,
- lora_urls
- https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors
- scheduler
- K_EULER_ANCESTRAL
- lora_scales
- 0.8
- num_outputs
- 1
- adapter_type
- sketch
- guidance_scale
- 3.62
- negative_prompt
- multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers
- prompt_strength
- 0.8
- num_inference_steps
- 40
{ "seed": 20786, "width": 768, "height": 768, "prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.8", "num_outputs": 1, "adapter_type": "sketch", "guidance_scale": 3.62, "negative_prompt": "multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", "prompt_strength": 0.8, "num_inference_steps": 40 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zhouzhengjun/lora_inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zhouzhengjun/lora_inpainting:5ee40dbfcd12b378b456834a7bc222ee19d09921d0263a5123e281059fc58670", { input: { seed: 20786, width: 768, height: 768, prompt: "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", lora_urls: "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", scheduler: "K_EULER_ANCESTRAL", lora_scales: "0.8", num_outputs: 1, adapter_type: "sketch", guidance_scale: 3.62, negative_prompt: "multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", prompt_strength: 0.8, num_inference_steps: 40 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run zhouzhengjun/lora_inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zhouzhengjun/lora_inpainting:5ee40dbfcd12b378b456834a7bc222ee19d09921d0263a5123e281059fc58670", input={ "seed": 20786, "width": 768, "height": 768, "prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.8", "num_outputs": 1, "adapter_type": "sketch", "guidance_scale": 3.62, "negative_prompt": "multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", "prompt_strength": 0.8, "num_inference_steps": 40 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run zhouzhengjun/lora_inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "5ee40dbfcd12b378b456834a7bc222ee19d09921d0263a5123e281059fc58670", "input": { "seed": 20786, "width": 768, "height": 768, "prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.8", "num_outputs": 1, "adapter_type": "sketch", "guidance_scale": 3.62, "negative_prompt": "multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", "prompt_strength": 0.8, "num_inference_steps": 40 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-04-20T06:43:42.580954Z", "created_at": "2023-04-20T06:43:36.279692Z", "data_removed": false, "error": null, "id": "6auya62axzhxfmdj4zwvbmc4z4", "input": { "seed": 20786, "width": 768, "height": 768, "prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.8", "num_outputs": 1, "adapter_type": "sketch", "guidance_scale": 3.62, "negative_prompt": "multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", "prompt_strength": 0.8, "num_inference_steps": 40 }, "logs": "Using seed: 20786\nGenerating image of 768 x 768 with prompt: (((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,\nThe requested LoRAs are loaded.\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['twintails, halterdress,']\n 0%| | 0/40 [00:00<?, ?it/s]\n 2%|▎ | 1/40 [00:00<00:05, 7.50it/s]\n 5%|▌ | 2/40 [00:00<00:05, 7.40it/s]\n 8%|▊ | 3/40 [00:00<00:04, 7.59it/s]\n 10%|█ | 4/40 [00:00<00:04, 7.77it/s]\n 12%|█▎ | 5/40 [00:00<00:04, 7.94it/s]\n 15%|█▌ | 6/40 [00:00<00:04, 8.05it/s]\n 18%|█▊ | 7/40 [00:00<00:04, 8.17it/s]\n 20%|██ | 8/40 [00:01<00:03, 8.24it/s]\n 22%|██▎ | 9/40 [00:01<00:03, 8.28it/s]\n 25%|██▌ | 10/40 [00:01<00:03, 8.29it/s]\n 28%|██▊ | 11/40 [00:01<00:03, 8.16it/s]\n 30%|███ | 12/40 [00:01<00:03, 8.19it/s]\n 32%|███▎ | 13/40 [00:01<00:03, 8.23it/s]\n 35%|███▌ | 14/40 [00:01<00:03, 8.27it/s]\n 38%|███▊ | 15/40 [00:01<00:03, 8.27it/s]\n 40%|████ | 16/40 [00:01<00:02, 8.27it/s]\n 42%|████▎ | 17/40 [00:02<00:02, 8.27it/s]\n 45%|████▌ | 18/40 [00:02<00:02, 8.26it/s]\n 48%|████▊ | 19/40 [00:02<00:02, 8.25it/s]\n 50%|█████ | 20/40 [00:02<00:02, 8.23it/s]\n 52%|█████▎ | 21/40 [00:02<00:02, 8.19it/s]\n 55%|█████▌ | 22/40 [00:02<00:02, 8.13it/s]\n 57%|█████▊ | 23/40 [00:02<00:02, 8.13it/s]\n 60%|██████ | 24/40 [00:02<00:01, 8.18it/s]\n 62%|██████▎ | 25/40 [00:03<00:01, 8.11it/s]\n 65%|██████▌ | 26/40 [00:03<00:01, 7.99it/s]\n 68%|██████▊ | 27/40 [00:03<00:01, 7.96it/s]\n 70%|███████ | 28/40 [00:03<00:01, 8.04it/s]\n 72%|███████▎ | 29/40 [00:03<00:01, 8.02it/s]\n 75%|███████▌ | 30/40 [00:03<00:01, 8.12it/s]\n 78%|███████▊ | 31/40 [00:03<00:01, 8.09it/s]\n 80%|████████ | 32/40 [00:03<00:00, 8.18it/s]\n 82%|████████▎ | 33/40 [00:04<00:00, 8.24it/s]\n 85%|████████▌ | 34/40 [00:04<00:00, 8.23it/s]\n 88%|████████▊ | 35/40 [00:04<00:00, 8.22it/s]\n 90%|█████████ | 36/40 [00:04<00:00, 8.17it/s]\n 92%|█████████▎| 37/40 [00:04<00:00, 8.14it/s]\n 95%|█████████▌| 38/40 [00:04<00:00, 8.19it/s]\n 98%|█████████▊| 39/40 [00:04<00:00, 8.24it/s]\n100%|██████████| 40/40 [00:04<00:00, 8.27it/s]\n100%|██████████| 40/40 [00:04<00:00, 8.14it/s]", "metrics": { "predict_time": 6.189562, "total_time": 6.301262 }, "output": [ "https://replicate.delivery/pbxt/XPsYcrlZzup2AVqrifVe2Er2TiSeS6rWR1t9owvfCHo1RkODB/out-0.png" ], "started_at": "2023-04-20T06:43:36.391392Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/6auya62axzhxfmdj4zwvbmc4z4", "cancel": "https://api.replicate.com/v1/predictions/6auya62axzhxfmdj4zwvbmc4z4/cancel" }, "version": "5ee40dbfcd12b378b456834a7bc222ee19d09921d0263a5123e281059fc58670" }
Generated inUsing seed: 20786 Generating image of 768 x 768 with prompt: (((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress, The requested LoRAs are loaded. The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['twintails, halterdress,'] 0%| | 0/40 [00:00<?, ?it/s] 2%|▎ | 1/40 [00:00<00:05, 7.50it/s] 5%|▌ | 2/40 [00:00<00:05, 7.40it/s] 8%|▊ | 3/40 [00:00<00:04, 7.59it/s] 10%|█ | 4/40 [00:00<00:04, 7.77it/s] 12%|█▎ | 5/40 [00:00<00:04, 7.94it/s] 15%|█▌ | 6/40 [00:00<00:04, 8.05it/s] 18%|█▊ | 7/40 [00:00<00:04, 8.17it/s] 20%|██ | 8/40 [00:01<00:03, 8.24it/s] 22%|██▎ | 9/40 [00:01<00:03, 8.28it/s] 25%|██▌ | 10/40 [00:01<00:03, 8.29it/s] 28%|██▊ | 11/40 [00:01<00:03, 8.16it/s] 30%|███ | 12/40 [00:01<00:03, 8.19it/s] 32%|███▎ | 13/40 [00:01<00:03, 8.23it/s] 35%|███▌ | 14/40 [00:01<00:03, 8.27it/s] 38%|███▊ | 15/40 [00:01<00:03, 8.27it/s] 40%|████ | 16/40 [00:01<00:02, 8.27it/s] 42%|████▎ | 17/40 [00:02<00:02, 8.27it/s] 45%|████▌ | 18/40 [00:02<00:02, 8.26it/s] 48%|████▊ | 19/40 [00:02<00:02, 8.25it/s] 50%|█████ | 20/40 [00:02<00:02, 8.23it/s] 52%|█████▎ | 21/40 [00:02<00:02, 8.19it/s] 55%|█████▌ | 22/40 [00:02<00:02, 8.13it/s] 57%|█████▊ | 23/40 [00:02<00:02, 8.13it/s] 60%|██████ | 24/40 [00:02<00:01, 8.18it/s] 62%|██████▎ | 25/40 [00:03<00:01, 8.11it/s] 65%|██████▌ | 26/40 [00:03<00:01, 7.99it/s] 68%|██████▊ | 27/40 [00:03<00:01, 7.96it/s] 70%|███████ | 28/40 [00:03<00:01, 8.04it/s] 72%|███████▎ | 29/40 [00:03<00:01, 8.02it/s] 75%|███████▌ | 30/40 [00:03<00:01, 8.12it/s] 78%|███████▊ | 31/40 [00:03<00:01, 8.09it/s] 80%|████████ | 32/40 [00:03<00:00, 8.18it/s] 82%|████████▎ | 33/40 [00:04<00:00, 8.24it/s] 85%|████████▌ | 34/40 [00:04<00:00, 8.23it/s] 88%|████████▊ | 35/40 [00:04<00:00, 8.22it/s] 90%|█████████ | 36/40 [00:04<00:00, 8.17it/s] 92%|█████████▎| 37/40 [00:04<00:00, 8.14it/s] 95%|█████████▌| 38/40 [00:04<00:00, 8.19it/s] 98%|█████████▊| 39/40 [00:04<00:00, 8.24it/s] 100%|██████████| 40/40 [00:04<00:00, 8.27it/s] 100%|██████████| 40/40 [00:04<00:00, 8.14it/s]
Prediction
zhouzhengjun/lora_inpainting:5ee40dbfcd12b378b456834a7bc222ee19d09921d0263a5123e281059fc58670IDfh5kc5a52ndplbpabowbjzkzpqStatusSucceededSourceWebHardware–Total durationCreatedInput
- width
- 768
- height
- 768
- prompt
- (((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,
- lora_urls
- https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors
- scheduler
- K_EULER_ANCESTRAL
- lora_scales
- 0.8
- num_outputs
- 1
- adapter_type
- sketch
- guidance_scale
- 3.57
- negative_prompt
- (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers
- prompt_strength
- 0.87
- num_inference_steps
- 31
{ "width": 768, "height": 768, "prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.8", "num_outputs": 1, "adapter_type": "sketch", "guidance_scale": 3.57, "negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", "prompt_strength": 0.87, "num_inference_steps": 31 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zhouzhengjun/lora_inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zhouzhengjun/lora_inpainting:5ee40dbfcd12b378b456834a7bc222ee19d09921d0263a5123e281059fc58670", { input: { width: 768, height: 768, prompt: "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", lora_urls: "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", scheduler: "K_EULER_ANCESTRAL", lora_scales: "0.8", num_outputs: 1, adapter_type: "sketch", guidance_scale: 3.57, negative_prompt: "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", prompt_strength: 0.87, num_inference_steps: 31 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run zhouzhengjun/lora_inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zhouzhengjun/lora_inpainting:5ee40dbfcd12b378b456834a7bc222ee19d09921d0263a5123e281059fc58670", input={ "width": 768, "height": 768, "prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.8", "num_outputs": 1, "adapter_type": "sketch", "guidance_scale": 3.57, "negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", "prompt_strength": 0.87, "num_inference_steps": 31 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run zhouzhengjun/lora_inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "5ee40dbfcd12b378b456834a7bc222ee19d09921d0263a5123e281059fc58670", "input": { "width": 768, "height": 768, "prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.8", "num_outputs": 1, "adapter_type": "sketch", "guidance_scale": 3.57, "negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", "prompt_strength": 0.87, "num_inference_steps": 31 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-04-20T10:40:16.854096Z", "created_at": "2023-04-20T10:40:11.656315Z", "data_removed": false, "error": null, "id": "fh5kc5a52ndplbpabowbjzkzpq", "input": { "width": 768, "height": 768, "prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.8", "num_outputs": 1, "adapter_type": "sketch", "guidance_scale": 3.57, "negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", "prompt_strength": 0.87, "num_inference_steps": 31 }, "logs": "Using seed: 41637\nGenerating image of 768 x 768 with prompt: (((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,\nThe requested LoRAs are loaded.\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['twintails, halterdress,']\n 0%| | 0/31 [00:00<?, ?it/s]\n 3%|▎ | 1/31 [00:00<00:04, 7.33it/s]\n 6%|▋ | 2/31 [00:00<00:03, 7.42it/s]\n 10%|▉ | 3/31 [00:00<00:03, 7.77it/s]\n 13%|█▎ | 4/31 [00:00<00:03, 7.96it/s]\n 16%|█▌ | 5/31 [00:00<00:03, 8.07it/s]\n 19%|█▉ | 6/31 [00:00<00:03, 8.09it/s]\n 23%|██▎ | 7/31 [00:00<00:02, 8.13it/s]\n 26%|██▌ | 8/31 [00:00<00:02, 8.21it/s]\n 29%|██▉ | 9/31 [00:01<00:02, 8.25it/s]\n 32%|███▏ | 10/31 [00:01<00:02, 8.28it/s]\n 35%|███▌ | 11/31 [00:01<00:02, 8.22it/s]\n 39%|███▊ | 12/31 [00:01<00:02, 8.26it/s]\n 42%|████▏ | 13/31 [00:01<00:02, 8.30it/s]\n 45%|████▌ | 14/31 [00:01<00:02, 8.31it/s]\n 48%|████▊ | 15/31 [00:01<00:01, 8.21it/s]\n 52%|█████▏ | 16/31 [00:01<00:01, 8.22it/s]\n 55%|█████▍ | 17/31 [00:02<00:01, 8.24it/s]\n 58%|█████▊ | 18/31 [00:02<00:01, 8.26it/s]\n 61%|██████▏ | 19/31 [00:02<00:01, 8.27it/s]\n 65%|██████▍ | 20/31 [00:02<00:01, 8.30it/s]\n 68%|██████▊ | 21/31 [00:02<00:01, 8.32it/s]\n 71%|███████ | 22/31 [00:02<00:01, 8.32it/s]\n 74%|███████▍ | 23/31 [00:02<00:00, 8.21it/s]\n 77%|███████▋ | 24/31 [00:02<00:00, 8.22it/s]\n 81%|████████ | 25/31 [00:03<00:00, 8.25it/s]\n 84%|████████▍ | 26/31 [00:03<00:00, 8.29it/s]\n 87%|████████▋ | 27/31 [00:03<00:00, 8.29it/s]\n 90%|█████████ | 28/31 [00:03<00:00, 8.27it/s]\n 94%|█████████▎| 29/31 [00:03<00:00, 8.29it/s]\n 97%|█████████▋| 30/31 [00:03<00:00, 8.30it/s]\n100%|██████████| 31/31 [00:03<00:00, 8.14it/s]\n100%|██████████| 31/31 [00:03<00:00, 8.19it/s]", "metrics": { "predict_time": 5.085828, "total_time": 5.197781 }, "output": [ "https://replicate.delivery/pbxt/AuF4csID2aJYAljPOge7vuWZmqAMVlK4EQ1Nkq4mlrGIR2ZIA/out-0.png" ], "started_at": "2023-04-20T10:40:11.768268Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/fh5kc5a52ndplbpabowbjzkzpq", "cancel": "https://api.replicate.com/v1/predictions/fh5kc5a52ndplbpabowbjzkzpq/cancel" }, "version": "5ee40dbfcd12b378b456834a7bc222ee19d09921d0263a5123e281059fc58670" }
Generated inUsing seed: 41637 Generating image of 768 x 768 with prompt: (((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress, The requested LoRAs are loaded. The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['twintails, halterdress,'] 0%| | 0/31 [00:00<?, ?it/s] 3%|▎ | 1/31 [00:00<00:04, 7.33it/s] 6%|▋ | 2/31 [00:00<00:03, 7.42it/s] 10%|▉ | 3/31 [00:00<00:03, 7.77it/s] 13%|█▎ | 4/31 [00:00<00:03, 7.96it/s] 16%|█▌ | 5/31 [00:00<00:03, 8.07it/s] 19%|█▉ | 6/31 [00:00<00:03, 8.09it/s] 23%|██▎ | 7/31 [00:00<00:02, 8.13it/s] 26%|██▌ | 8/31 [00:00<00:02, 8.21it/s] 29%|██▉ | 9/31 [00:01<00:02, 8.25it/s] 32%|███▏ | 10/31 [00:01<00:02, 8.28it/s] 35%|███▌ | 11/31 [00:01<00:02, 8.22it/s] 39%|███▊ | 12/31 [00:01<00:02, 8.26it/s] 42%|████▏ | 13/31 [00:01<00:02, 8.30it/s] 45%|████▌ | 14/31 [00:01<00:02, 8.31it/s] 48%|████▊ | 15/31 [00:01<00:01, 8.21it/s] 52%|█████▏ | 16/31 [00:01<00:01, 8.22it/s] 55%|█████▍ | 17/31 [00:02<00:01, 8.24it/s] 58%|█████▊ | 18/31 [00:02<00:01, 8.26it/s] 61%|██████▏ | 19/31 [00:02<00:01, 8.27it/s] 65%|██████▍ | 20/31 [00:02<00:01, 8.30it/s] 68%|██████▊ | 21/31 [00:02<00:01, 8.32it/s] 71%|███████ | 22/31 [00:02<00:01, 8.32it/s] 74%|███████▍ | 23/31 [00:02<00:00, 8.21it/s] 77%|███████▋ | 24/31 [00:02<00:00, 8.22it/s] 81%|████████ | 25/31 [00:03<00:00, 8.25it/s] 84%|████████▍ | 26/31 [00:03<00:00, 8.29it/s] 87%|████████▋ | 27/31 [00:03<00:00, 8.29it/s] 90%|█████████ | 28/31 [00:03<00:00, 8.27it/s] 94%|█████████▎| 29/31 [00:03<00:00, 8.29it/s] 97%|█████████▋| 30/31 [00:03<00:00, 8.30it/s] 100%|██████████| 31/31 [00:03<00:00, 8.14it/s] 100%|██████████| 31/31 [00:03<00:00, 8.19it/s]
Prediction
zhouzhengjun/lora_inpainting:a761ce874fc0b78757ad15cb1d83a8a8723615b52c849f1b53ff0863c8f3200aIDstk7xglmdbapnjkjtkvthxudmqStatusSucceededSourceWebHardware–Total durationCreatedInput
- width
- 768
- height
- 768
- prompt
- (((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,
- lora_urls
- https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors
- scheduler
- K_EULER_ANCESTRAL
- lora_scales
- 0.8
- num_outputs
- 1
- guidance_scale
- 5.43
- negative_prompt
- (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers
- prompt_strength
- 0.87
- num_inference_steps
- 31
{ "width": 768, "height": 768, "prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.8", "num_outputs": 1, "guidance_scale": 5.43, "negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", "prompt_strength": 0.87, "num_inference_steps": 31 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zhouzhengjun/lora_inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zhouzhengjun/lora_inpainting:a761ce874fc0b78757ad15cb1d83a8a8723615b52c849f1b53ff0863c8f3200a", { input: { width: 768, height: 768, prompt: "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", lora_urls: "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", scheduler: "K_EULER_ANCESTRAL", lora_scales: "0.8", num_outputs: 1, guidance_scale: 5.43, negative_prompt: "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", prompt_strength: 0.87, num_inference_steps: 31 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run zhouzhengjun/lora_inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zhouzhengjun/lora_inpainting:a761ce874fc0b78757ad15cb1d83a8a8723615b52c849f1b53ff0863c8f3200a", input={ "width": 768, "height": 768, "prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.8", "num_outputs": 1, "guidance_scale": 5.43, "negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", "prompt_strength": 0.87, "num_inference_steps": 31 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run zhouzhengjun/lora_inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "a761ce874fc0b78757ad15cb1d83a8a8723615b52c849f1b53ff0863c8f3200a", "input": { "width": 768, "height": 768, "prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.8", "num_outputs": 1, "guidance_scale": 5.43, "negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", "prompt_strength": 0.87, "num_inference_steps": 31 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-04-20T11:32:13.905781Z", "created_at": "2023-04-20T11:32:08.679681Z", "data_removed": false, "error": null, "id": "stk7xglmdbapnjkjtkvthxudmq", "input": { "width": 768, "height": 768, "prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "K_EULER_ANCESTRAL", "lora_scales": "0.8", "num_outputs": 1, "guidance_scale": 5.43, "negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", "prompt_strength": 0.87, "num_inference_steps": 31 }, "logs": "Using seed: 2422\nGenerating image of 768 x 768 with prompt: (((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,\nThe requested LoRAs are loaded.\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['twintails, halterdress,']\n 0%| | 0/31 [00:00<?, ?it/s]\n 3%|▎ | 1/31 [00:00<00:04, 7.35it/s]\n 6%|▋ | 2/31 [00:00<00:03, 7.71it/s]\n 10%|▉ | 3/31 [00:00<00:03, 7.84it/s]\n 13%|█▎ | 4/31 [00:00<00:03, 7.78it/s]\n 16%|█▌ | 5/31 [00:00<00:03, 7.90it/s]\n 19%|█▉ | 6/31 [00:00<00:03, 7.96it/s]\n 23%|██▎ | 7/31 [00:00<00:02, 8.04it/s]\n 26%|██▌ | 8/31 [00:01<00:02, 8.08it/s]\n 29%|██▉ | 9/31 [00:01<00:02, 8.08it/s]\n 32%|███▏ | 10/31 [00:01<00:02, 8.06it/s]\n 35%|███▌ | 11/31 [00:01<00:02, 8.13it/s]\n 39%|███▊ | 12/31 [00:01<00:02, 8.12it/s]\n 42%|████▏ | 13/31 [00:01<00:02, 8.11it/s]\n 45%|████▌ | 14/31 [00:01<00:02, 8.12it/s]\n 48%|████▊ | 15/31 [00:01<00:01, 8.16it/s]\n 52%|█████▏ | 16/31 [00:01<00:01, 8.16it/s]\n 55%|█████▍ | 17/31 [00:02<00:01, 8.15it/s]\n 58%|█████▊ | 18/31 [00:02<00:01, 8.17it/s]\n 61%|██████▏ | 19/31 [00:02<00:01, 8.20it/s]\n 65%|██████▍ | 20/31 [00:02<00:01, 8.22it/s]\n 68%|██████▊ | 21/31 [00:02<00:01, 8.22it/s]\n 71%|███████ | 22/31 [00:02<00:01, 8.22it/s]\n 74%|███████▍ | 23/31 [00:02<00:00, 8.25it/s]\n 77%|███████▋ | 24/31 [00:02<00:00, 8.21it/s]\n 81%|████████ | 25/31 [00:03<00:00, 8.20it/s]\n 84%|████████▍ | 26/31 [00:03<00:00, 8.21it/s]\n 87%|████████▋ | 27/31 [00:03<00:00, 8.14it/s]\n 90%|█████████ | 28/31 [00:03<00:00, 8.20it/s]\n 94%|█████████▎| 29/31 [00:03<00:00, 8.23it/s]\n 97%|█████████▋| 30/31 [00:03<00:00, 8.25it/s]\n100%|██████████| 31/31 [00:03<00:00, 8.26it/s]\n100%|██████████| 31/31 [00:03<00:00, 8.13it/s]", "metrics": { "predict_time": 5.125583, "total_time": 5.2261 }, "output": [ "https://replicate.delivery/pbxt/fuz9sEAPFixnNKAqgXMSHTXlgAwbhkujl15kfxmor6D9StzQA/out-0.png" ], "started_at": "2023-04-20T11:32:08.780198Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/stk7xglmdbapnjkjtkvthxudmq", "cancel": "https://api.replicate.com/v1/predictions/stk7xglmdbapnjkjtkvthxudmq/cancel" }, "version": "a761ce874fc0b78757ad15cb1d83a8a8723615b52c849f1b53ff0863c8f3200a" }
Generated inUsing seed: 2422 Generating image of 768 x 768 with prompt: (((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress, The requested LoRAs are loaded. The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['twintails, halterdress,'] 0%| | 0/31 [00:00<?, ?it/s] 3%|▎ | 1/31 [00:00<00:04, 7.35it/s] 6%|▋ | 2/31 [00:00<00:03, 7.71it/s] 10%|▉ | 3/31 [00:00<00:03, 7.84it/s] 13%|█▎ | 4/31 [00:00<00:03, 7.78it/s] 16%|█▌ | 5/31 [00:00<00:03, 7.90it/s] 19%|█▉ | 6/31 [00:00<00:03, 7.96it/s] 23%|██▎ | 7/31 [00:00<00:02, 8.04it/s] 26%|██▌ | 8/31 [00:01<00:02, 8.08it/s] 29%|██▉ | 9/31 [00:01<00:02, 8.08it/s] 32%|███▏ | 10/31 [00:01<00:02, 8.06it/s] 35%|███▌ | 11/31 [00:01<00:02, 8.13it/s] 39%|███▊ | 12/31 [00:01<00:02, 8.12it/s] 42%|████▏ | 13/31 [00:01<00:02, 8.11it/s] 45%|████▌ | 14/31 [00:01<00:02, 8.12it/s] 48%|████▊ | 15/31 [00:01<00:01, 8.16it/s] 52%|█████▏ | 16/31 [00:01<00:01, 8.16it/s] 55%|█████▍ | 17/31 [00:02<00:01, 8.15it/s] 58%|█████▊ | 18/31 [00:02<00:01, 8.17it/s] 61%|██████▏ | 19/31 [00:02<00:01, 8.20it/s] 65%|██████▍ | 20/31 [00:02<00:01, 8.22it/s] 68%|██████▊ | 21/31 [00:02<00:01, 8.22it/s] 71%|███████ | 22/31 [00:02<00:01, 8.22it/s] 74%|███████▍ | 23/31 [00:02<00:00, 8.25it/s] 77%|███████▋ | 24/31 [00:02<00:00, 8.21it/s] 81%|████████ | 25/31 [00:03<00:00, 8.20it/s] 84%|████████▍ | 26/31 [00:03<00:00, 8.21it/s] 87%|████████▋ | 27/31 [00:03<00:00, 8.14it/s] 90%|█████████ | 28/31 [00:03<00:00, 8.20it/s] 94%|█████████▎| 29/31 [00:03<00:00, 8.23it/s] 97%|█████████▋| 30/31 [00:03<00:00, 8.25it/s] 100%|██████████| 31/31 [00:03<00:00, 8.26it/s] 100%|██████████| 31/31 [00:03<00:00, 8.13it/s]
Prediction
zhouzhengjun/lora_inpainting:a761ce874fc0b78757ad15cb1d83a8a8723615b52c849f1b53ff0863c8f3200aIDgci2tybbbic2lvfpqhery3mqfiStatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedInput
- seed
- 282862334
- width
- 768
- height
- 768
- prompt
- (((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,
- lora_urls
- https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors
- scheduler
- DPMSolverMultistep
- lora_scales
- 0.8
- num_outputs
- 1
- guidance_scale
- 2.69
- negative_prompt
- (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers
- prompt_strength
- 0.87
- num_inference_steps
- 25
{ "seed": 282862334, "width": 768, "height": 768, "prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "DPMSolverMultistep", "lora_scales": "0.8", "num_outputs": 1, "guidance_scale": 2.69, "negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", "prompt_strength": 0.87, "num_inference_steps": 25 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zhouzhengjun/lora_inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zhouzhengjun/lora_inpainting:a761ce874fc0b78757ad15cb1d83a8a8723615b52c849f1b53ff0863c8f3200a", { input: { seed: 282862334, width: 768, height: 768, prompt: "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", lora_urls: "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", scheduler: "DPMSolverMultistep", lora_scales: "0.8", num_outputs: 1, guidance_scale: 2.69, negative_prompt: "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", prompt_strength: 0.87, num_inference_steps: 25 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run zhouzhengjun/lora_inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zhouzhengjun/lora_inpainting:a761ce874fc0b78757ad15cb1d83a8a8723615b52c849f1b53ff0863c8f3200a", input={ "seed": 282862334, "width": 768, "height": 768, "prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "DPMSolverMultistep", "lora_scales": "0.8", "num_outputs": 1, "guidance_scale": 2.69, "negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", "prompt_strength": 0.87, "num_inference_steps": 25 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run zhouzhengjun/lora_inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "a761ce874fc0b78757ad15cb1d83a8a8723615b52c849f1b53ff0863c8f3200a", "input": { "seed": 282862334, "width": 768, "height": 768, "prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "DPMSolverMultistep", "lora_scales": "0.8", "num_outputs": 1, "guidance_scale": 2.69, "negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", "prompt_strength": 0.87, "num_inference_steps": 25 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-08-10T11:09:34.004159Z", "created_at": "2023-08-10T11:09:29.335322Z", "data_removed": false, "error": null, "id": "gci2tybbbic2lvfpqhery3mqfi", "input": { "seed": 282862334, "width": 768, "height": 768, "prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,", "lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors", "scheduler": "DPMSolverMultistep", "lora_scales": "0.8", "num_outputs": 1, "guidance_scale": 2.69, "negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, multiple head, lowres, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, watermark, blurry, multiple girls, multiple faces, canvas frame, cartoon, ((multiple head)), ((bad art)), ((extra limbs)), ((b&w)), wierd colors, (((duplicate))), ((morbid)), ((mutilated)), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), ((bad anatomy)), (((bad proportions))), cloned face, (((disfigured))), out of frame, gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck))), video game, tiling, poorly drawn feet, mutated, cross-eye, body out of frame, Humpbacked, shadow, nude, naked, NSFW, bad quality, low quality, fused fingers, poorly drawn face, too many fingers", "prompt_strength": 0.87, "num_inference_steps": 25 }, "logs": "Using seed: 282862334\nGenerating image of 768 x 768 with prompt: (((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,\nThe requested LoRAs are loaded.\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['twintails, halterdress,']\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:03, 7.14it/s]\n 8%|▊ | 2/25 [00:00<00:03, 7.22it/s]\n 12%|█▏ | 3/25 [00:00<00:03, 7.01it/s]\n 16%|█▌ | 4/25 [00:00<00:03, 6.96it/s]\n 20%|██ | 5/25 [00:00<00:02, 7.04it/s]\n 24%|██▍ | 6/25 [00:00<00:02, 7.03it/s]\n 28%|██▊ | 7/25 [00:00<00:02, 7.11it/s]\n 32%|███▏ | 8/25 [00:01<00:02, 7.20it/s]\n 36%|███▌ | 9/25 [00:01<00:02, 7.17it/s]\n 40%|████ | 10/25 [00:01<00:02, 7.13it/s]\n 44%|████▍ | 11/25 [00:01<00:01, 7.27it/s]\n 48%|████▊ | 12/25 [00:01<00:01, 7.12it/s]\n 52%|█████▏ | 13/25 [00:01<00:01, 7.36it/s]\n 56%|█████▌ | 14/25 [00:01<00:01, 7.17it/s]\n 60%|██████ | 15/25 [00:02<00:01, 7.45it/s]\n 64%|██████▍ | 16/25 [00:02<00:01, 7.37it/s]\n 68%|██████▊ | 17/25 [00:02<00:01, 7.57it/s]\n 72%|███████▏ | 18/25 [00:02<00:00, 7.68it/s]\n 76%|███████▌ | 19/25 [00:02<00:00, 7.84it/s]\n 80%|████████ | 20/25 [00:02<00:00, 7.62it/s]\n 84%|████████▍ | 21/25 [00:02<00:00, 7.42it/s]\n 88%|████████▊ | 22/25 [00:03<00:00, 7.28it/s]\n 92%|█████████▏| 23/25 [00:03<00:00, 7.50it/s]\n 96%|█████████▌| 24/25 [00:03<00:00, 7.70it/s]\n100%|██████████| 25/25 [00:03<00:00, 7.79it/s]\n100%|██████████| 25/25 [00:03<00:00, 7.38it/s]", "metrics": { "predict_time": 4.698573, "total_time": 4.668837 }, "output": [ "https://replicate.delivery/pbxt/Gk4W4Ao1bM4EEBc4qTAhFQfJYafPTjkkEu6dEeWrZWRa7OxiA/out-0.png" ], "started_at": "2023-08-10T11:09:29.305586Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/gci2tybbbic2lvfpqhery3mqfi", "cancel": "https://api.replicate.com/v1/predictions/gci2tybbbic2lvfpqhery3mqfi/cancel" }, "version": "a761ce874fc0b78757ad15cb1d83a8a8723615b52c849f1b53ff0863c8f3200a" }
Generated inUsing seed: 282862334 Generating image of 768 x 768 with prompt: (((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress, The requested LoRAs are loaded. The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['twintails, halterdress,'] 0%| | 0/25 [00:00<?, ?it/s] 4%|▍ | 1/25 [00:00<00:03, 7.14it/s] 8%|▊ | 2/25 [00:00<00:03, 7.22it/s] 12%|█▏ | 3/25 [00:00<00:03, 7.01it/s] 16%|█▌ | 4/25 [00:00<00:03, 6.96it/s] 20%|██ | 5/25 [00:00<00:02, 7.04it/s] 24%|██▍ | 6/25 [00:00<00:02, 7.03it/s] 28%|██▊ | 7/25 [00:00<00:02, 7.11it/s] 32%|███▏ | 8/25 [00:01<00:02, 7.20it/s] 36%|███▌ | 9/25 [00:01<00:02, 7.17it/s] 40%|████ | 10/25 [00:01<00:02, 7.13it/s] 44%|████▍ | 11/25 [00:01<00:01, 7.27it/s] 48%|████▊ | 12/25 [00:01<00:01, 7.12it/s] 52%|█████▏ | 13/25 [00:01<00:01, 7.36it/s] 56%|█████▌ | 14/25 [00:01<00:01, 7.17it/s] 60%|██████ | 15/25 [00:02<00:01, 7.45it/s] 64%|██████▍ | 16/25 [00:02<00:01, 7.37it/s] 68%|██████▊ | 17/25 [00:02<00:01, 7.57it/s] 72%|███████▏ | 18/25 [00:02<00:00, 7.68it/s] 76%|███████▌ | 19/25 [00:02<00:00, 7.84it/s] 80%|████████ | 20/25 [00:02<00:00, 7.62it/s] 84%|████████▍ | 21/25 [00:02<00:00, 7.42it/s] 88%|████████▊ | 22/25 [00:03<00:00, 7.28it/s] 92%|█████████▏| 23/25 [00:03<00:00, 7.50it/s] 96%|█████████▌| 24/25 [00:03<00:00, 7.70it/s] 100%|██████████| 25/25 [00:03<00:00, 7.79it/s] 100%|██████████| 25/25 [00:03<00:00, 7.38it/s]
Want to make some of these yourself?
Run this model