ikun-ai
/
inpainting-xl
Huggingface-sdxl-inpainting is a sdxl model of the age inpainting fine-tuning, with inputs and outputs having the same height and width!
- Public
- 2.6K runs
-
A100 (80GB)
Prediction
ikun-ai/inpainting-xl:8f812406b5175472d941d5a228d0a0a210b7ce450aa442bc348eab36b44b98a2ID576ajulbtjodvvu4orlyvjinaeStatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedInput
- steps
- 20
- prompt
- a cute girl
- strength
- 0.8
- scheduler
- K_EULER_ANCESTRAL
- guidance_scale
- 8
- negative_prompt
- monochrome, lowres, bad anatomy, worst quality, low quality
{ "mask": "https://replicate.delivery/pbxt/JjLBqBHD7bxf988XzKFlJiBdcqR6omEjkCyxyKqi7zX8U3j0/1697378146539000mask.png", "image": "https://replicate.delivery/pbxt/JjLBq8YLUshnSntXPOCp7S1I1CadSU8Lch2fz6j7eAUq515g/out-0.png", "steps": 20, "prompt": "a cute girl", "strength": 0.8, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 8, "negative_prompt": "monochrome, lowres, bad anatomy, worst quality, low quality" }
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 ikun-ai/inpainting-xl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "ikun-ai/inpainting-xl:8f812406b5175472d941d5a228d0a0a210b7ce450aa442bc348eab36b44b98a2", { input: { mask: "https://replicate.delivery/pbxt/JjLBqBHD7bxf988XzKFlJiBdcqR6omEjkCyxyKqi7zX8U3j0/1697378146539000mask.png", image: "https://replicate.delivery/pbxt/JjLBq8YLUshnSntXPOCp7S1I1CadSU8Lch2fz6j7eAUq515g/out-0.png", steps: 20, prompt: "a cute girl", strength: 0.8, scheduler: "K_EULER_ANCESTRAL", guidance_scale: 8, negative_prompt: "monochrome, lowres, bad anatomy, worst quality, low quality" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
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 ikun-ai/inpainting-xl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "ikun-ai/inpainting-xl:8f812406b5175472d941d5a228d0a0a210b7ce450aa442bc348eab36b44b98a2", input={ "mask": "https://replicate.delivery/pbxt/JjLBqBHD7bxf988XzKFlJiBdcqR6omEjkCyxyKqi7zX8U3j0/1697378146539000mask.png", "image": "https://replicate.delivery/pbxt/JjLBq8YLUshnSntXPOCp7S1I1CadSU8Lch2fz6j7eAUq515g/out-0.png", "steps": 20, "prompt": "a cute girl", "strength": 0.8, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 8, "negative_prompt": "monochrome, lowres, bad anatomy, worst quality, low quality" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run ikun-ai/inpainting-xl 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": "8f812406b5175472d941d5a228d0a0a210b7ce450aa442bc348eab36b44b98a2", "input": { "mask": "https://replicate.delivery/pbxt/JjLBqBHD7bxf988XzKFlJiBdcqR6omEjkCyxyKqi7zX8U3j0/1697378146539000mask.png", "image": "https://replicate.delivery/pbxt/JjLBq8YLUshnSntXPOCp7S1I1CadSU8Lch2fz6j7eAUq515g/out-0.png", "steps": 20, "prompt": "a cute girl", "strength": 0.8, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 8, "negative_prompt": "monochrome, lowres, bad anatomy, worst quality, low quality" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-10-20T03:51:53.987675Z", "created_at": "2023-10-20T03:51:49.601208Z", "data_removed": false, "error": null, "id": "576ajulbtjodvvu4orlyvjinae", "input": { "mask": "https://replicate.delivery/pbxt/JjLBqBHD7bxf988XzKFlJiBdcqR6omEjkCyxyKqi7zX8U3j0/1697378146539000mask.png", "image": "https://replicate.delivery/pbxt/JjLBq8YLUshnSntXPOCp7S1I1CadSU8Lch2fz6j7eAUq515g/out-0.png", "steps": 20, "prompt": "a cute girl", "strength": 0.8, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 8, "negative_prompt": "monochrome, lowres, bad anatomy, worst quality, low quality" }, "logs": "Using seed: 21432\n 0%| | 0/16 [00:00<?, ?it/s]\n 6%|▋ | 1/16 [00:00<00:01, 7.67it/s]\n 12%|█▎ | 2/16 [00:00<00:01, 8.22it/s]\n 19%|█▉ | 3/16 [00:00<00:01, 8.37it/s]\n 25%|██▌ | 4/16 [00:00<00:01, 8.48it/s]\n 31%|███▏ | 5/16 [00:00<00:01, 8.52it/s]\n 38%|███▊ | 6/16 [00:00<00:01, 8.55it/s]\n 44%|████▍ | 7/16 [00:00<00:01, 8.56it/s]\n 50%|█████ | 8/16 [00:00<00:00, 8.56it/s]\n 56%|█████▋ | 9/16 [00:01<00:00, 8.57it/s]\n 62%|██████▎ | 10/16 [00:01<00:00, 8.58it/s]\n 69%|██████▉ | 11/16 [00:01<00:00, 8.59it/s]\n 75%|███████▌ | 12/16 [00:01<00:00, 8.59it/s]\n 81%|████████▏ | 13/16 [00:01<00:00, 8.60it/s]\n 88%|████████▊ | 14/16 [00:01<00:00, 8.60it/s]\n 94%|█████████▍| 15/16 [00:01<00:00, 8.59it/s]\n100%|██████████| 16/16 [00:01<00:00, 8.59it/s]\n100%|██████████| 16/16 [00:01<00:00, 8.53it/s]", "metrics": { "predict_time": 4.43507, "total_time": 4.386467 }, "output": "https://replicate.delivery/pbxt/D7inPYGMpOpbANULfUoS3bFblByDoJe0PJvefelhvBMJrVfbE/output.png", "started_at": "2023-10-20T03:51:49.552605Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/576ajulbtjodvvu4orlyvjinae", "cancel": "https://api.replicate.com/v1/predictions/576ajulbtjodvvu4orlyvjinae/cancel" }, "version": "8f812406b5175472d941d5a228d0a0a210b7ce450aa442bc348eab36b44b98a2" }
Generated inUsing seed: 21432 0%| | 0/16 [00:00<?, ?it/s] 6%|▋ | 1/16 [00:00<00:01, 7.67it/s] 12%|█▎ | 2/16 [00:00<00:01, 8.22it/s] 19%|█▉ | 3/16 [00:00<00:01, 8.37it/s] 25%|██▌ | 4/16 [00:00<00:01, 8.48it/s] 31%|███▏ | 5/16 [00:00<00:01, 8.52it/s] 38%|███▊ | 6/16 [00:00<00:01, 8.55it/s] 44%|████▍ | 7/16 [00:00<00:01, 8.56it/s] 50%|█████ | 8/16 [00:00<00:00, 8.56it/s] 56%|█████▋ | 9/16 [00:01<00:00, 8.57it/s] 62%|██████▎ | 10/16 [00:01<00:00, 8.58it/s] 69%|██████▉ | 11/16 [00:01<00:00, 8.59it/s] 75%|███████▌ | 12/16 [00:01<00:00, 8.59it/s] 81%|████████▏ | 13/16 [00:01<00:00, 8.60it/s] 88%|████████▊ | 14/16 [00:01<00:00, 8.60it/s] 94%|█████████▍| 15/16 [00:01<00:00, 8.59it/s] 100%|██████████| 16/16 [00:01<00:00, 8.59it/s] 100%|██████████| 16/16 [00:01<00:00, 8.53it/s]
Prediction
ikun-ai/inpainting-xl:8f812406b5175472d941d5a228d0a0a210b7ce450aa442bc348eab36b44b98a2IDqfuiddlbweqgguyezl4u5ozgoyStatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedInput
- steps
- 20
- prompt
- a cute dog
- strength
- 0.8
- scheduler
- K_EULER_ANCESTRAL
- guidance_scale
- 8
- negative_prompt
- monochrome, lowres, bad anatomy, worst quality, low quality
{ "mask": "https://replicate.delivery/pbxt/JjLE4mcG0N7FupsWF85ISfA72fDBmB1W3AnPxJwE4RfAzzQL/1696756684893000mask.png", "image": "https://replicate.delivery/pbxt/JjLE4sNWRS9ep4mTUHWqX3PsbtCsUKbt3C83LAQLCUrkFiow/a%20cute%20rabbit.png", "steps": 20, "prompt": "a cute dog", "strength": 0.8, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 8, "negative_prompt": "monochrome, lowres, bad anatomy, worst quality, low quality" }
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 ikun-ai/inpainting-xl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "ikun-ai/inpainting-xl:8f812406b5175472d941d5a228d0a0a210b7ce450aa442bc348eab36b44b98a2", { input: { mask: "https://replicate.delivery/pbxt/JjLE4mcG0N7FupsWF85ISfA72fDBmB1W3AnPxJwE4RfAzzQL/1696756684893000mask.png", image: "https://replicate.delivery/pbxt/JjLE4sNWRS9ep4mTUHWqX3PsbtCsUKbt3C83LAQLCUrkFiow/a%20cute%20rabbit.png", steps: 20, prompt: "a cute dog", strength: 0.8, scheduler: "K_EULER_ANCESTRAL", guidance_scale: 8, negative_prompt: "monochrome, lowres, bad anatomy, worst quality, low quality" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
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 ikun-ai/inpainting-xl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "ikun-ai/inpainting-xl:8f812406b5175472d941d5a228d0a0a210b7ce450aa442bc348eab36b44b98a2", input={ "mask": "https://replicate.delivery/pbxt/JjLE4mcG0N7FupsWF85ISfA72fDBmB1W3AnPxJwE4RfAzzQL/1696756684893000mask.png", "image": "https://replicate.delivery/pbxt/JjLE4sNWRS9ep4mTUHWqX3PsbtCsUKbt3C83LAQLCUrkFiow/a%20cute%20rabbit.png", "steps": 20, "prompt": "a cute dog", "strength": 0.8, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 8, "negative_prompt": "monochrome, lowres, bad anatomy, worst quality, low quality" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run ikun-ai/inpainting-xl 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": "8f812406b5175472d941d5a228d0a0a210b7ce450aa442bc348eab36b44b98a2", "input": { "mask": "https://replicate.delivery/pbxt/JjLE4mcG0N7FupsWF85ISfA72fDBmB1W3AnPxJwE4RfAzzQL/1696756684893000mask.png", "image": "https://replicate.delivery/pbxt/JjLE4sNWRS9ep4mTUHWqX3PsbtCsUKbt3C83LAQLCUrkFiow/a%20cute%20rabbit.png", "steps": 20, "prompt": "a cute dog", "strength": 0.8, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 8, "negative_prompt": "monochrome, lowres, bad anatomy, worst quality, low quality" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-10-20T03:54:13.626405Z", "created_at": "2023-10-20T03:54:10.780552Z", "data_removed": false, "error": null, "id": "qfuiddlbweqgguyezl4u5ozgoy", "input": { "mask": "https://replicate.delivery/pbxt/JjLE4mcG0N7FupsWF85ISfA72fDBmB1W3AnPxJwE4RfAzzQL/1696756684893000mask.png", "image": "https://replicate.delivery/pbxt/JjLE4sNWRS9ep4mTUHWqX3PsbtCsUKbt3C83LAQLCUrkFiow/a%20cute%20rabbit.png", "steps": 20, "prompt": "a cute dog", "strength": 0.8, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 8, "negative_prompt": "monochrome, lowres, bad anatomy, worst quality, low quality" }, "logs": "Using seed: 12631\n 0%| | 0/16 [00:00<?, ?it/s]\n 12%|█▎ | 2/16 [00:00<00:00, 15.91it/s]\n 25%|██▌ | 4/16 [00:00<00:00, 15.98it/s]\n 38%|███▊ | 6/16 [00:00<00:00, 15.89it/s]\n 50%|█████ | 8/16 [00:00<00:00, 16.00it/s]\n 62%|██████▎ | 10/16 [00:00<00:00, 16.07it/s]\n 75%|███████▌ | 12/16 [00:00<00:00, 16.11it/s]\n 88%|████████▊ | 14/16 [00:00<00:00, 16.14it/s]\n100%|██████████| 16/16 [00:01<00:00, 15.82it/s]\n100%|██████████| 16/16 [00:01<00:00, 15.95it/s]", "metrics": { "predict_time": 2.888571, "total_time": 2.845853 }, "output": "https://replicate.delivery/pbxt/kKoy6aof3qVzJCK5KRwc5PWe0mtXJd0xKAMFew0bPZELfqfNC/output.png", "started_at": "2023-10-20T03:54:10.737834Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/qfuiddlbweqgguyezl4u5ozgoy", "cancel": "https://api.replicate.com/v1/predictions/qfuiddlbweqgguyezl4u5ozgoy/cancel" }, "version": "8f812406b5175472d941d5a228d0a0a210b7ce450aa442bc348eab36b44b98a2" }
Generated inUsing seed: 12631 0%| | 0/16 [00:00<?, ?it/s] 12%|█▎ | 2/16 [00:00<00:00, 15.91it/s] 25%|██▌ | 4/16 [00:00<00:00, 15.98it/s] 38%|███▊ | 6/16 [00:00<00:00, 15.89it/s] 50%|█████ | 8/16 [00:00<00:00, 16.00it/s] 62%|██████▎ | 10/16 [00:00<00:00, 16.07it/s] 75%|███████▌ | 12/16 [00:00<00:00, 16.11it/s] 88%|████████▊ | 14/16 [00:00<00:00, 16.14it/s] 100%|██████████| 16/16 [00:01<00:00, 15.82it/s] 100%|██████████| 16/16 [00:01<00:00, 15.95it/s]
Want to make some of these yourself?
Run this model