pnyompen / sd-controlnet-lora
SD1.5 Canny controlnet with LoRA support.
- Public
- 548.6K runs
-
T4
- GitHub
Prediction
pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244IDnsqe78gr5srge0cgw6k8pbv89gStatusSucceededSourceWebHardwareT4Total durationCreatedInput
- prompt
- An astronaut riding a rainbow unicorn, In the style of oil painting
- img2img
- strength
- 1
- scheduler
- KarrasDPM
- lora_scale
- 0.95
- num_outputs
- 1
- guidance_scale
- 7.5
- condition_scale
- 0.5
- negative_prompt
- worst quality, photorealistic
- ip_adapter_scale
- 0.1
- num_inference_steps
- 15
- auto_generate_caption
- generated_caption_weight
- 0.1
{ "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "An astronaut riding a rainbow unicorn, In the style of oil painting", "img2img": true, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": true, "generated_caption_weight": 0.1 }
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 pnyompen/sd-controlnet-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244", { input: { image: "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", prompt: "An astronaut riding a rainbow unicorn, In the style of oil painting", img2img: true, strength: 1, scheduler: "KarrasDPM", lora_scale: 0.95, num_outputs: 1, guidance_scale: 7.5, condition_scale: 0.5, negative_prompt: "worst quality, photorealistic ", ip_adapter_scale: 0.1, num_inference_steps: 15, auto_generate_caption: true, generated_caption_weight: 0.1 } } ); // 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 pnyompen/sd-controlnet-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244", input={ "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "An astronaut riding a rainbow unicorn, In the style of oil painting", "img2img": True, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": True, "generated_caption_weight": 0.1 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run pnyompen/sd-controlnet-lora 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": "pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244", "input": { "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "An astronaut riding a rainbow unicorn, In the style of oil painting", "img2img": true, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": true, "generated_caption_weight": 0.1 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-07-23T22:11:22.266318Z", "created_at": "2024-07-23T22:11:17.166000Z", "data_removed": false, "error": null, "id": "nsqe78gr5srge0cgw6k8pbv89g", "input": { "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "An astronaut riding a rainbow unicorn, In the style of oil painting", "img2img": true, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": true, "generated_caption_weight": 0.1 }, "logs": "Using seed: 60585\nOriginal width:1024, height:1024\nAspect Ratio: 1.00\nnew_width:512, new_height:512\nauto_generate_caption mode\nGenerating captions\nGenerated captions ['portrait of a beautiful young woman in a city street']\nGenerating captions took: 0.4332544803619385\nPrompt: (\"An astronaut riding a rainbow unicorn, In the style of oil painting\", \"portrait of a beautiful young woman in a city street\").blend(1, 0.1)\nimg2img mode\n 0%| | 0/15 [00:00<?, ?it/s]\n 7%|▋ | 1/15 [00:00<00:01, 9.49it/s]\n 13%|█▎ | 2/15 [00:00<00:02, 6.12it/s]\n 20%|██ | 3/15 [00:00<00:02, 5.51it/s]\n 27%|██▋ | 4/15 [00:00<00:02, 5.29it/s]\n 33%|███▎ | 5/15 [00:00<00:01, 5.05it/s]\n 40%|████ | 6/15 [00:01<00:01, 4.93it/s]\n 47%|████▋ | 7/15 [00:01<00:01, 4.90it/s]\n 53%|█████▎ | 8/15 [00:01<00:01, 4.88it/s]\n 60%|██████ | 9/15 [00:01<00:01, 4.86it/s]\n 67%|██████▋ | 10/15 [00:01<00:01, 4.85it/s]\n 73%|███████▎ | 11/15 [00:02<00:00, 4.85it/s]\n 80%|████████ | 12/15 [00:02<00:00, 4.81it/s]\n 87%|████████▋ | 13/15 [00:02<00:00, 4.81it/s]\n 93%|█████████▎| 14/15 [00:02<00:00, 4.80it/s]\n100%|██████████| 15/15 [00:03<00:00, 4.81it/s]\n100%|██████████| 15/15 [00:03<00:00, 4.98it/s]", "metrics": { "predict_time": 5.077333746, "total_time": 5.100318 }, "output": [ "https://replicate.delivery/czjl/mdTFmveZmU1LN6ryofjfQgTsS9YQ4zqh02UInvXlJ9jUk7WmA/out-0.png" ], "started_at": "2024-07-23T22:11:17.188984Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/nsqe78gr5srge0cgw6k8pbv89g", "cancel": "https://api.replicate.com/v1/predictions/nsqe78gr5srge0cgw6k8pbv89g/cancel" }, "version": "45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244" }
Generated inUsing seed: 60585 Original width:1024, height:1024 Aspect Ratio: 1.00 new_width:512, new_height:512 auto_generate_caption mode Generating captions Generated captions ['portrait of a beautiful young woman in a city street'] Generating captions took: 0.4332544803619385 Prompt: ("An astronaut riding a rainbow unicorn, In the style of oil painting", "portrait of a beautiful young woman in a city street").blend(1, 0.1) img2img mode 0%| | 0/15 [00:00<?, ?it/s] 7%|▋ | 1/15 [00:00<00:01, 9.49it/s] 13%|█▎ | 2/15 [00:00<00:02, 6.12it/s] 20%|██ | 3/15 [00:00<00:02, 5.51it/s] 27%|██▋ | 4/15 [00:00<00:02, 5.29it/s] 33%|███▎ | 5/15 [00:00<00:01, 5.05it/s] 40%|████ | 6/15 [00:01<00:01, 4.93it/s] 47%|████▋ | 7/15 [00:01<00:01, 4.90it/s] 53%|█████▎ | 8/15 [00:01<00:01, 4.88it/s] 60%|██████ | 9/15 [00:01<00:01, 4.86it/s] 67%|██████▋ | 10/15 [00:01<00:01, 4.85it/s] 73%|███████▎ | 11/15 [00:02<00:00, 4.85it/s] 80%|████████ | 12/15 [00:02<00:00, 4.81it/s] 87%|████████▋ | 13/15 [00:02<00:00, 4.81it/s] 93%|█████████▎| 14/15 [00:02<00:00, 4.80it/s] 100%|██████████| 15/15 [00:03<00:00, 4.81it/s] 100%|██████████| 15/15 [00:03<00:00, 4.98it/s]
Prediction
pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244ID3pqjgq7hb5rge0cgw6ksdgbctrStatusSucceededSourceWebHardwareT4Total durationCreatedInput
- prompt
- In the style of anime
- img2img
- strength
- 1
- scheduler
- KarrasDPM
- lora_scale
- 0.95
- num_outputs
- 1
- guidance_scale
- 7.5
- condition_scale
- 0.5
- negative_prompt
- worst quality, photorealistic
- ip_adapter_scale
- 0.1
- num_inference_steps
- 15
- auto_generate_caption
- generated_caption_weight
- 0.1
{ "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "In the style of anime", "img2img": true, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": true, "generated_caption_weight": 0.1 }
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 pnyompen/sd-controlnet-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244", { input: { image: "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", prompt: "In the style of anime", img2img: true, strength: 1, scheduler: "KarrasDPM", lora_scale: 0.95, num_outputs: 1, guidance_scale: 7.5, condition_scale: 0.5, negative_prompt: "worst quality, photorealistic ", ip_adapter_scale: 0.1, num_inference_steps: 15, auto_generate_caption: true, generated_caption_weight: 0.1 } } ); // 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 pnyompen/sd-controlnet-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244", input={ "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "In the style of anime", "img2img": True, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": True, "generated_caption_weight": 0.1 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run pnyompen/sd-controlnet-lora 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": "pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244", "input": { "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "In the style of anime", "img2img": true, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": true, "generated_caption_weight": 0.1 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-07-23T22:13:23.411485Z", "created_at": "2024-07-23T22:13:18.297000Z", "data_removed": false, "error": null, "id": "3pqjgq7hb5rge0cgw6ksdgbctr", "input": { "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "In the style of anime", "img2img": true, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": true, "generated_caption_weight": 0.1 }, "logs": "Using seed: 51138\nOriginal width:1024, height:1024\nAspect Ratio: 1.00\nnew_width:512, new_height:512\nauto_generate_caption mode\nGenerating captions\nGenerated captions ['portrait of a woman in a shirt and necklace in a city']\nGenerating captions took: 0.40878772735595703\nPrompt: (\"In the style of anime\", \"portrait of a woman in a shirt and necklace in a city\").blend(1, 0.1)\nimg2img mode\n 0%| | 0/15 [00:00<?, ?it/s]\n 7%|▋ | 1/15 [00:00<00:01, 9.98it/s]\n 13%|█▎ | 2/15 [00:00<00:02, 5.90it/s]\n 20%|██ | 3/15 [00:00<00:02, 5.23it/s]\n 27%|██▋ | 4/15 [00:00<00:02, 4.72it/s]\n 33%|███▎ | 5/15 [00:01<00:02, 4.61it/s]\n 40%|████ | 6/15 [00:01<00:01, 4.59it/s]\n 47%|████▋ | 7/15 [00:01<00:01, 4.57it/s]\n 53%|█████▎ | 8/15 [00:01<00:01, 4.54it/s]\n 60%|██████ | 9/15 [00:01<00:01, 4.44it/s]\n 67%|██████▋ | 10/15 [00:02<00:01, 4.46it/s]\n 73%|███████▎ | 11/15 [00:02<00:00, 4.48it/s]\n 80%|████████ | 12/15 [00:02<00:00, 4.49it/s]\n 87%|████████▋ | 13/15 [00:02<00:00, 4.44it/s]\n 93%|█████████▎| 14/15 [00:03<00:00, 4.40it/s]\n100%|██████████| 15/15 [00:03<00:00, 4.41it/s]\n100%|██████████| 15/15 [00:03<00:00, 4.61it/s]", "metrics": { "predict_time": 5.099305963, "total_time": 5.114485 }, "output": [ "https://replicate.delivery/czjl/HP59BJqpTjqWBpp4VZKjny6JlBf4f95kv5SRzYLcmbBD0dLTA/out-0.png" ], "started_at": "2024-07-23T22:13:18.312179Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/3pqjgq7hb5rge0cgw6ksdgbctr", "cancel": "https://api.replicate.com/v1/predictions/3pqjgq7hb5rge0cgw6ksdgbctr/cancel" }, "version": "45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244" }
Generated inUsing seed: 51138 Original width:1024, height:1024 Aspect Ratio: 1.00 new_width:512, new_height:512 auto_generate_caption mode Generating captions Generated captions ['portrait of a woman in a shirt and necklace in a city'] Generating captions took: 0.40878772735595703 Prompt: ("In the style of anime", "portrait of a woman in a shirt and necklace in a city").blend(1, 0.1) img2img mode 0%| | 0/15 [00:00<?, ?it/s] 7%|▋ | 1/15 [00:00<00:01, 9.98it/s] 13%|█▎ | 2/15 [00:00<00:02, 5.90it/s] 20%|██ | 3/15 [00:00<00:02, 5.23it/s] 27%|██▋ | 4/15 [00:00<00:02, 4.72it/s] 33%|███▎ | 5/15 [00:01<00:02, 4.61it/s] 40%|████ | 6/15 [00:01<00:01, 4.59it/s] 47%|████▋ | 7/15 [00:01<00:01, 4.57it/s] 53%|█████▎ | 8/15 [00:01<00:01, 4.54it/s] 60%|██████ | 9/15 [00:01<00:01, 4.44it/s] 67%|██████▋ | 10/15 [00:02<00:01, 4.46it/s] 73%|███████▎ | 11/15 [00:02<00:00, 4.48it/s] 80%|████████ | 12/15 [00:02<00:00, 4.49it/s] 87%|████████▋ | 13/15 [00:02<00:00, 4.44it/s] 93%|█████████▎| 14/15 [00:03<00:00, 4.40it/s] 100%|██████████| 15/15 [00:03<00:00, 4.41it/s] 100%|██████████| 15/15 [00:03<00:00, 4.61it/s]
Prediction
pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244IDw5h9tn99jxrge0cgw6mvbr94j4StatusSucceededSourceWebHardwareT4Total durationCreatedInput
- prompt
- In the style of oil painting
- img2img
- strength
- 1
- scheduler
- KarrasDPM
- lora_scale
- 0.95
- num_outputs
- 1
- guidance_scale
- 7.5
- condition_scale
- 0.5
- negative_prompt
- worst quality, photorealistic
- ip_adapter_scale
- 0.1
- num_inference_steps
- 15
- auto_generate_caption
- generated_caption_weight
- 0.1
{ "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "In the style of oil painting", "img2img": true, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": true, "generated_caption_weight": 0.1 }
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 pnyompen/sd-controlnet-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244", { input: { image: "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", prompt: "In the style of oil painting", img2img: true, strength: 1, scheduler: "KarrasDPM", lora_scale: 0.95, num_outputs: 1, guidance_scale: 7.5, condition_scale: 0.5, negative_prompt: "worst quality, photorealistic ", ip_adapter_scale: 0.1, num_inference_steps: 15, auto_generate_caption: true, generated_caption_weight: 0.1 } } ); // 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 pnyompen/sd-controlnet-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244", input={ "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "In the style of oil painting", "img2img": True, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": True, "generated_caption_weight": 0.1 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run pnyompen/sd-controlnet-lora 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": "pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244", "input": { "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "In the style of oil painting", "img2img": true, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": true, "generated_caption_weight": 0.1 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-07-23T22:14:43.978236Z", "created_at": "2024-07-23T22:14:38.231000Z", "data_removed": false, "error": null, "id": "w5h9tn99jxrge0cgw6mvbr94j4", "input": { "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "In the style of oil painting", "img2img": true, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": true, "generated_caption_weight": 0.1 }, "logs": "Using seed: 8917\nOriginal width:1024, height:1024\nAspect Ratio: 1.00\nnew_width:512, new_height:512\nauto_generate_caption mode\nGenerating captions\nGenerated captions ['blonde haired woman in the middle of the street in an urban setting']\nGenerating captions took: 0.48294901847839355\nPrompt: (\"In the style of oil painting\", \"blonde haired woman in the middle of the street in an urban setting\").blend(1, 0.1)\nimg2img mode\n 0%| | 0/15 [00:00<?, ?it/s]\n 7%|▋ | 1/15 [00:00<00:01, 9.91it/s]\n 13%|█▎ | 2/15 [00:00<00:02, 5.96it/s]\n 20%|██ | 3/15 [00:00<00:02, 5.26it/s]\n 27%|██▋ | 4/15 [00:00<00:02, 4.79it/s]\n 33%|███▎ | 5/15 [00:00<00:02, 4.67it/s]\n 40%|████ | 6/15 [00:01<00:01, 4.63it/s]\n 47%|████▋ | 7/15 [00:01<00:01, 4.61it/s]\n 53%|█████▎ | 8/15 [00:01<00:01, 4.56it/s]\n 60%|██████ | 9/15 [00:01<00:01, 4.45it/s]\n 67%|██████▋ | 10/15 [00:02<00:01, 4.45it/s]\n 73%|███████▎ | 11/15 [00:02<00:00, 4.46it/s]\n 80%|████████ | 12/15 [00:02<00:00, 4.46it/s]\n 87%|████████▋ | 13/15 [00:02<00:00, 4.40it/s]\n 93%|█████████▎| 14/15 [00:03<00:00, 4.39it/s]\n100%|██████████| 15/15 [00:03<00:00, 4.40it/s]\n100%|██████████| 15/15 [00:03<00:00, 4.61it/s]", "metrics": { "predict_time": 5.729931134, "total_time": 5.747236 }, "output": [ "https://replicate.delivery/czjl/q2tT8iKira5kC54ETKu4ezsD3YIqccX4MxvxeFGY10enq7WmA/out-0.png" ], "started_at": "2024-07-23T22:14:38.248305Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/w5h9tn99jxrge0cgw6mvbr94j4", "cancel": "https://api.replicate.com/v1/predictions/w5h9tn99jxrge0cgw6mvbr94j4/cancel" }, "version": "45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244" }
Generated inUsing seed: 8917 Original width:1024, height:1024 Aspect Ratio: 1.00 new_width:512, new_height:512 auto_generate_caption mode Generating captions Generated captions ['blonde haired woman in the middle of the street in an urban setting'] Generating captions took: 0.48294901847839355 Prompt: ("In the style of oil painting", "blonde haired woman in the middle of the street in an urban setting").blend(1, 0.1) img2img mode 0%| | 0/15 [00:00<?, ?it/s] 7%|▋ | 1/15 [00:00<00:01, 9.91it/s] 13%|█▎ | 2/15 [00:00<00:02, 5.96it/s] 20%|██ | 3/15 [00:00<00:02, 5.26it/s] 27%|██▋ | 4/15 [00:00<00:02, 4.79it/s] 33%|███▎ | 5/15 [00:00<00:02, 4.67it/s] 40%|████ | 6/15 [00:01<00:01, 4.63it/s] 47%|████▋ | 7/15 [00:01<00:01, 4.61it/s] 53%|█████▎ | 8/15 [00:01<00:01, 4.56it/s] 60%|██████ | 9/15 [00:01<00:01, 4.45it/s] 67%|██████▋ | 10/15 [00:02<00:01, 4.45it/s] 73%|███████▎ | 11/15 [00:02<00:00, 4.46it/s] 80%|████████ | 12/15 [00:02<00:00, 4.46it/s] 87%|████████▋ | 13/15 [00:02<00:00, 4.40it/s] 93%|█████████▎| 14/15 [00:03<00:00, 4.39it/s] 100%|██████████| 15/15 [00:03<00:00, 4.40it/s] 100%|██████████| 15/15 [00:03<00:00, 4.61it/s]
Prediction
pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244IDj8t1g5qansrga0cgw6ms46dy3rStatusSucceededSourceWebHardwareT4Total durationCreatedInput
- prompt
- In the style of neon
- img2img
- strength
- 1
- scheduler
- KarrasDPM
- lora_scale
- 0.95
- num_outputs
- 1
- guidance_scale
- 7.5
- condition_scale
- 0.5
- negative_prompt
- worst quality, photorealistic
- ip_adapter_scale
- 0.1
- num_inference_steps
- 15
- auto_generate_caption
- generated_caption_weight
- 0.1
{ "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "In the style of neon", "img2img": true, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": true, "generated_caption_weight": 0.1 }
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 pnyompen/sd-controlnet-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244", { input: { image: "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", prompt: "In the style of neon", img2img: true, strength: 1, scheduler: "KarrasDPM", lora_scale: 0.95, num_outputs: 1, guidance_scale: 7.5, condition_scale: 0.5, negative_prompt: "worst quality, photorealistic ", ip_adapter_scale: 0.1, num_inference_steps: 15, auto_generate_caption: true, generated_caption_weight: 0.1 } } ); // 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 pnyompen/sd-controlnet-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244", input={ "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "In the style of neon", "img2img": True, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": True, "generated_caption_weight": 0.1 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run pnyompen/sd-controlnet-lora 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": "pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244", "input": { "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "In the style of neon", "img2img": true, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": true, "generated_caption_weight": 0.1 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-07-23T22:15:32.956759Z", "created_at": "2024-07-23T22:15:27.662000Z", "data_removed": false, "error": null, "id": "j8t1g5qansrga0cgw6ms46dy3r", "input": { "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "In the style of neon", "img2img": true, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": true, "generated_caption_weight": 0.1 }, "logs": "Using seed: 23783\nOriginal width:1024, height:1024\nAspect Ratio: 1.00\nnew_width:512, new_height:512\nauto_generate_caption mode\nGenerating captions\nGenerated captions ['brunette woman with long hair in colorful shirt standing in street surrounded by cars']\nGenerating captions took: 0.5154166221618652\nPrompt: (\"In the style of neon\", \"brunette woman with long hair in colorful shirt standing in street surrounded by cars\").blend(1, 0.1)\nimg2img mode\n 0%| | 0/15 [00:00<?, ?it/s]\n 7%|▋ | 1/15 [00:00<00:01, 9.81it/s]\n 13%|█▎ | 2/15 [00:00<00:02, 5.83it/s]\n 20%|██ | 3/15 [00:00<00:02, 5.22it/s]\n 27%|██▋ | 4/15 [00:00<00:02, 4.78it/s]\n 33%|███▎ | 5/15 [00:01<00:02, 4.61it/s]\n 40%|████ | 6/15 [00:01<00:01, 4.59it/s]\n 47%|████▋ | 7/15 [00:01<00:01, 4.57it/s]\n 53%|█████▎ | 8/15 [00:01<00:01, 4.52it/s]\n 60%|██████ | 9/15 [00:01<00:01, 4.40it/s]\n 67%|██████▋ | 10/15 [00:02<00:01, 4.44it/s]\n 73%|███████▎ | 11/15 [00:02<00:00, 4.45it/s]\n 80%|████████ | 12/15 [00:02<00:00, 4.46it/s]\n 87%|████████▋ | 13/15 [00:02<00:00, 4.40it/s]\n 93%|█████████▎| 14/15 [00:03<00:00, 4.38it/s]\n100%|██████████| 15/15 [00:03<00:00, 4.41it/s]\n100%|██████████| 15/15 [00:03<00:00, 4.59it/s]", "metrics": { "predict_time": 5.277938422, "total_time": 5.294759 }, "output": [ "https://replicate.delivery/czjl/SsNZFCf5nR08PKuVCUqrL0xTJuw8zOJUfmIEJ07WRPvE2dLTA/out-0.png" ], "started_at": "2024-07-23T22:15:27.678820Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/j8t1g5qansrga0cgw6ms46dy3r", "cancel": "https://api.replicate.com/v1/predictions/j8t1g5qansrga0cgw6ms46dy3r/cancel" }, "version": "45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244" }
Generated inUsing seed: 23783 Original width:1024, height:1024 Aspect Ratio: 1.00 new_width:512, new_height:512 auto_generate_caption mode Generating captions Generated captions ['brunette woman with long hair in colorful shirt standing in street surrounded by cars'] Generating captions took: 0.5154166221618652 Prompt: ("In the style of neon", "brunette woman with long hair in colorful shirt standing in street surrounded by cars").blend(1, 0.1) img2img mode 0%| | 0/15 [00:00<?, ?it/s] 7%|▋ | 1/15 [00:00<00:01, 9.81it/s] 13%|█▎ | 2/15 [00:00<00:02, 5.83it/s] 20%|██ | 3/15 [00:00<00:02, 5.22it/s] 27%|██▋ | 4/15 [00:00<00:02, 4.78it/s] 33%|███▎ | 5/15 [00:01<00:02, 4.61it/s] 40%|████ | 6/15 [00:01<00:01, 4.59it/s] 47%|████▋ | 7/15 [00:01<00:01, 4.57it/s] 53%|█████▎ | 8/15 [00:01<00:01, 4.52it/s] 60%|██████ | 9/15 [00:01<00:01, 4.40it/s] 67%|██████▋ | 10/15 [00:02<00:01, 4.44it/s] 73%|███████▎ | 11/15 [00:02<00:00, 4.45it/s] 80%|████████ | 12/15 [00:02<00:00, 4.46it/s] 87%|████████▋ | 13/15 [00:02<00:00, 4.40it/s] 93%|█████████▎| 14/15 [00:03<00:00, 4.38it/s] 100%|██████████| 15/15 [00:03<00:00, 4.41it/s] 100%|██████████| 15/15 [00:03<00:00, 4.59it/s]
Prediction
pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244ID2tyy4g5t65rg80cgw6nbavmw00StatusSucceededSourceWebHardwareT4Total durationCreatedInput
- prompt
- In the style of steampunk
- img2img
- strength
- 1
- scheduler
- KarrasDPM
- lora_scale
- 0.95
- num_outputs
- 1
- guidance_scale
- 7.5
- condition_scale
- 0.5
- negative_prompt
- worst quality, photorealistic
- ip_adapter_scale
- 0.1
- num_inference_steps
- 15
- auto_generate_caption
- generated_caption_weight
- 0.1
{ "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "In the style of steampunk ", "img2img": true, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": true, "generated_caption_weight": 0.1 }
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 pnyompen/sd-controlnet-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244", { input: { image: "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", prompt: "In the style of steampunk ", img2img: true, strength: 1, scheduler: "KarrasDPM", lora_scale: 0.95, num_outputs: 1, guidance_scale: 7.5, condition_scale: 0.5, negative_prompt: "worst quality, photorealistic ", ip_adapter_scale: 0.1, num_inference_steps: 15, auto_generate_caption: true, generated_caption_weight: 0.1 } } ); // 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 pnyompen/sd-controlnet-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244", input={ "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "In the style of steampunk ", "img2img": True, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": True, "generated_caption_weight": 0.1 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run pnyompen/sd-controlnet-lora 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": "pnyompen/sd-controlnet-lora:45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244", "input": { "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "In the style of steampunk ", "img2img": true, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": true, "generated_caption_weight": 0.1 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-07-23T22:16:25.905948Z", "created_at": "2024-07-23T22:16:20.785000Z", "data_removed": false, "error": null, "id": "2tyy4g5t65rg80cgw6nbavmw00", "input": { "image": "https://replicate.delivery/pbxt/JiOTMCHj4oGrTTf8Pg2r7vyI8YdXc5jL2IDyC2SfhuggjYe6/out-0%20%281%29.png", "prompt": "In the style of steampunk ", "img2img": true, "strength": 1, "scheduler": "KarrasDPM", "lora_scale": 0.95, "num_outputs": 1, "guidance_scale": 7.5, "condition_scale": 0.5, "negative_prompt": "worst quality, photorealistic ", "ip_adapter_scale": 0.1, "num_inference_steps": 15, "auto_generate_caption": true, "generated_caption_weight": 0.1 }, "logs": "Using seed: 61559\nOriginal width:1024, height:1024\nAspect Ratio: 1.00\nnew_width:512, new_height:512\nauto_generate_caption mode\nGenerating captions\nGenerated captions ['blond woman with blue eyes standing on city street at dusk']\nGenerating captions took: 0.4014008045196533\nPrompt: (\"In the style of steampunk \", \"blond woman with blue eyes standing on city street at dusk\").blend(1, 0.1)\nimg2img mode\n 0%| | 0/15 [00:00<?, ?it/s]\n 7%|▋ | 1/15 [00:00<00:01, 9.94it/s]\n 13%|█▎ | 2/15 [00:00<00:02, 5.95it/s]\n 20%|██ | 3/15 [00:00<00:02, 5.26it/s]\n 27%|██▋ | 4/15 [00:00<00:02, 4.83it/s]\n 33%|███▎ | 5/15 [00:00<00:02, 4.67it/s]\n 40%|████ | 6/15 [00:01<00:01, 4.61it/s]\n 47%|████▋ | 7/15 [00:01<00:01, 4.58it/s]\n 53%|█████▎ | 8/15 [00:01<00:01, 4.56it/s]\n 60%|██████ | 9/15 [00:01<00:01, 4.48it/s]\n 67%|██████▋ | 10/15 [00:02<00:01, 4.50it/s]\n 73%|███████▎ | 11/15 [00:02<00:00, 4.50it/s]\n 80%|████████ | 12/15 [00:02<00:00, 4.51it/s]\n 87%|████████▋ | 13/15 [00:02<00:00, 4.46it/s]\n 93%|█████████▎| 14/15 [00:03<00:00, 4.48it/s]\n100%|██████████| 15/15 [00:03<00:00, 4.49it/s]\n100%|██████████| 15/15 [00:03<00:00, 4.65it/s]", "metrics": { "predict_time": 5.096592766, "total_time": 5.120948 }, "output": [ "https://replicate.delivery/czjl/ZKDzBX5VOUZFLN3svMxQkSEpUodXR94X8CjWLm16CQcud3yE/out-0.png" ], "started_at": "2024-07-23T22:16:20.809355Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/2tyy4g5t65rg80cgw6nbavmw00", "cancel": "https://api.replicate.com/v1/predictions/2tyy4g5t65rg80cgw6nbavmw00/cancel" }, "version": "45f27d985ae0409c990d1c23cbb9656f3ef8ed826078dd606b3af243e09d6244" }
Generated inUsing seed: 61559 Original width:1024, height:1024 Aspect Ratio: 1.00 new_width:512, new_height:512 auto_generate_caption mode Generating captions Generated captions ['blond woman with blue eyes standing on city street at dusk'] Generating captions took: 0.4014008045196533 Prompt: ("In the style of steampunk ", "blond woman with blue eyes standing on city street at dusk").blend(1, 0.1) img2img mode 0%| | 0/15 [00:00<?, ?it/s] 7%|▋ | 1/15 [00:00<00:01, 9.94it/s] 13%|█▎ | 2/15 [00:00<00:02, 5.95it/s] 20%|██ | 3/15 [00:00<00:02, 5.26it/s] 27%|██▋ | 4/15 [00:00<00:02, 4.83it/s] 33%|███▎ | 5/15 [00:00<00:02, 4.67it/s] 40%|████ | 6/15 [00:01<00:01, 4.61it/s] 47%|████▋ | 7/15 [00:01<00:01, 4.58it/s] 53%|█████▎ | 8/15 [00:01<00:01, 4.56it/s] 60%|██████ | 9/15 [00:01<00:01, 4.48it/s] 67%|██████▋ | 10/15 [00:02<00:01, 4.50it/s] 73%|███████▎ | 11/15 [00:02<00:00, 4.50it/s] 80%|████████ | 12/15 [00:02<00:00, 4.51it/s] 87%|████████▋ | 13/15 [00:02<00:00, 4.46it/s] 93%|█████████▎| 14/15 [00:03<00:00, 4.48it/s] 100%|██████████| 15/15 [00:03<00:00, 4.49it/s] 100%|██████████| 15/15 [00:03<00:00, 4.65it/s]
Want to make some of these yourself?
Run this model