usamaehsan / controlnet-x-majic-mix-realistic-x-ip-adapter
works with inpainting and multi-controlnet + single-controlnet || ip-adapter + without ip adapter
- Public
- 23.8K runs
-
L40S
Prediction
usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:f0d7c8388e049dd6fbed771dfa23c248c1380e73649ca022d32dda8cb434f00aID4sxrritbmjnzocpetw4woxkcq4StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- eta
- 0
- prompt
- cat
- max_width
- 512
- scheduler
- DDIM
- guess_mode
- max_height
- 512
- num_outputs
- 1
- lineart_image
- output.png
- guidance_scale
- 8.72
- 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
- ip_adapter_image
- Cool-PC-Wallpapers-HD-2.jpg
- ip_adapter_weight
- 0.5
- sorted_controlnets
- tile, inpainting, lineart
- num_inference_steps
- 10
- disable_safety_check
- tile_conditioning_scale
- 1
- lineart_conditioning_scale
- 0.5
- brightness_conditioning_scale
- 1
- inpainting_conditioning_scale
- 1
{ "eta": 0, "prompt": "cat", "max_width": 512, "scheduler": "DDIM", "guess_mode": false, "max_height": 512, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "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", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.5, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 10, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 0.5, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:f0d7c8388e049dd6fbed771dfa23c248c1380e73649ca022d32dda8cb434f00a", { input: { eta: 0, prompt: "cat", max_width: 512, scheduler: "DDIM", guess_mode: false, max_height: 512, num_outputs: 1, lineart_image: "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", guidance_scale: 8.72, 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", ip_adapter_image: "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", ip_adapter_weight: 0.5, sorted_controlnets: "tile, inpainting, lineart", num_inference_steps: 10, disable_safety_check: true, tile_conditioning_scale: 1, lineart_conditioning_scale: 0.5, brightness_conditioning_scale: 1, inpainting_conditioning_scale: 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 usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:f0d7c8388e049dd6fbed771dfa23c248c1380e73649ca022d32dda8cb434f00a", input={ "eta": 0, "prompt": "cat", "max_width": 512, "scheduler": "DDIM", "guess_mode": False, "max_height": 512, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "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", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.5, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 10, "disable_safety_check": True, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 0.5, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter 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": "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:f0d7c8388e049dd6fbed771dfa23c248c1380e73649ca022d32dda8cb434f00a", "input": { "eta": 0, "prompt": "cat", "max_width": 512, "scheduler": "DDIM", "guess_mode": false, "max_height": 512, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "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", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.5, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 10, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 0.5, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter@sha256:f0d7c8388e049dd6fbed771dfa23c248c1380e73649ca022d32dda8cb434f00a \ -i 'eta=0' \ -i 'prompt="cat"' \ -i 'max_width=512' \ -i 'scheduler="DDIM"' \ -i 'guess_mode=false' \ -i 'max_height=512' \ -i 'num_outputs=1' \ -i 'lineart_image="https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png"' \ -i 'guidance_scale=8.72' \ -i '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"' \ -i 'ip_adapter_image="https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg"' \ -i 'ip_adapter_weight=0.5' \ -i 'sorted_controlnets="tile, inpainting, lineart"' \ -i 'num_inference_steps=10' \ -i 'disable_safety_check=true' \ -i 'tile_conditioning_scale=1' \ -i 'lineart_conditioning_scale=0.5' \ -i 'brightness_conditioning_scale=1' \ -i 'inpainting_conditioning_scale=1'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter@sha256:f0d7c8388e049dd6fbed771dfa23c248c1380e73649ca022d32dda8cb434f00a
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "eta": 0, "prompt": "cat", "max_width": 512, "scheduler": "DDIM", "guess_mode": false, "max_height": 512, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "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", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.5, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 10, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 0.5, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-11-23T21:10:32.212600Z", "created_at": "2023-11-23T21:10:28.784978Z", "data_removed": false, "error": null, "id": "4sxrritbmjnzocpetw4woxkcq4", "input": { "eta": 0, "prompt": "cat", "max_width": 512, "scheduler": "DDIM", "guess_mode": false, "max_height": 512, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "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", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.5, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 10, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 0.5, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 }, "logs": "loading ip adapter\nTime taken to load IP adapter model: 0.01 seconds\nTime taken to load image encoder model: 0.00 seconds\nUsing seed: 47924\nip adapter---\n 0%| | 0/10 [00:00<?, ?it/s]\n 20%|██ | 2/10 [00:00<00:00, 17.36it/s]\n 40%|████ | 4/10 [00:00<00:00, 17.28it/s]\n 60%|██████ | 6/10 [00:00<00:00, 17.24it/s]\n 80%|████████ | 8/10 [00:00<00:00, 17.24it/s]\n100%|██████████| 10/10 [00:00<00:00, 17.23it/s]\n100%|██████████| 10/10 [00:00<00:00, 17.24it/s]\nsize: (512, 512)", "metrics": { "predict_time": 3.38674, "total_time": 3.427622 }, "output": [ "https://replicate.delivery/pbxt/xBJzYCI9BqJJGZ3XeA90venn5NCXC7M52XnvUsEuw2EHHX7RA/seed-47924.png" ], "started_at": "2023-11-23T21:10:28.825860Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/4sxrritbmjnzocpetw4woxkcq4", "cancel": "https://api.replicate.com/v1/predictions/4sxrritbmjnzocpetw4woxkcq4/cancel" }, "version": "f0d7c8388e049dd6fbed771dfa23c248c1380e73649ca022d32dda8cb434f00a" }
Generated inloading ip adapter Time taken to load IP adapter model: 0.01 seconds Time taken to load image encoder model: 0.00 seconds Using seed: 47924 ip adapter--- 0%| | 0/10 [00:00<?, ?it/s] 20%|██ | 2/10 [00:00<00:00, 17.36it/s] 40%|████ | 4/10 [00:00<00:00, 17.28it/s] 60%|██████ | 6/10 [00:00<00:00, 17.24it/s] 80%|████████ | 8/10 [00:00<00:00, 17.24it/s] 100%|██████████| 10/10 [00:00<00:00, 17.23it/s] 100%|██████████| 10/10 [00:00<00:00, 17.24it/s] size: (512, 512)
Prediction
usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:f0d7c8388e049dd6fbed771dfa23c248c1380e73649ca022d32dda8cb434f00aIDm4yd2albn6flhdjhgwejdp3sryStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- eta
- 0
- prompt
- high quality
- max_width
- 512
- scheduler
- K_EULER_ANCESTRAL
- guess_mode
- max_height
- 512
- num_outputs
- 1
- lineart_image
- WhatsApp%20Image%202023-05-30%20at%206.15.08%20PM.jpeg
- guidance_scale
- 8.72
- 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
- ip_adapter_image
- statue.png
- ip_adapter_weight
- 0.4
- sorted_controlnets
- tile, inpainting, lineart
- num_inference_steps
- 10
- disable_safety_check
- tile_conditioning_scale
- 1
- lineart_conditioning_scale
- 0.8
- brightness_conditioning_scale
- 1
- inpainting_conditioning_scale
- 1
{ "eta": 0, "prompt": "high quality", "max_width": 512, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 512, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfTOhtdWLGlWKN16tLwxyOLT9HW2Uk8asepRPczI4Fpuls1/WhatsApp%20Image%202023-05-30%20at%206.15.08%20PM.jpeg", "guidance_scale": 8.72, "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", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfTOmGOsUo5ihMhBB4bFR6dI13fBB6GwtsHarqsjXpDc1ry/statue.png", "ip_adapter_weight": 0.4, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 10, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 0.8, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:f0d7c8388e049dd6fbed771dfa23c248c1380e73649ca022d32dda8cb434f00a", { input: { eta: 0, prompt: "high quality", max_width: 512, scheduler: "K_EULER_ANCESTRAL", guess_mode: false, max_height: 512, num_outputs: 1, lineart_image: "https://replicate.delivery/pbxt/JvfTOhtdWLGlWKN16tLwxyOLT9HW2Uk8asepRPczI4Fpuls1/WhatsApp%20Image%202023-05-30%20at%206.15.08%20PM.jpeg", guidance_scale: 8.72, 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", ip_adapter_image: "https://replicate.delivery/pbxt/JvfTOmGOsUo5ihMhBB4bFR6dI13fBB6GwtsHarqsjXpDc1ry/statue.png", ip_adapter_weight: 0.4, sorted_controlnets: "tile, inpainting, lineart", num_inference_steps: 10, disable_safety_check: true, tile_conditioning_scale: 1, lineart_conditioning_scale: 0.8, brightness_conditioning_scale: 1, inpainting_conditioning_scale: 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 usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:f0d7c8388e049dd6fbed771dfa23c248c1380e73649ca022d32dda8cb434f00a", input={ "eta": 0, "prompt": "high quality", "max_width": 512, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": False, "max_height": 512, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfTOhtdWLGlWKN16tLwxyOLT9HW2Uk8asepRPczI4Fpuls1/WhatsApp%20Image%202023-05-30%20at%206.15.08%20PM.jpeg", "guidance_scale": 8.72, "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", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfTOmGOsUo5ihMhBB4bFR6dI13fBB6GwtsHarqsjXpDc1ry/statue.png", "ip_adapter_weight": 0.4, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 10, "disable_safety_check": True, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 0.8, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter 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": "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:f0d7c8388e049dd6fbed771dfa23c248c1380e73649ca022d32dda8cb434f00a", "input": { "eta": 0, "prompt": "high quality", "max_width": 512, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 512, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfTOhtdWLGlWKN16tLwxyOLT9HW2Uk8asepRPczI4Fpuls1/WhatsApp%20Image%202023-05-30%20at%206.15.08%20PM.jpeg", "guidance_scale": 8.72, "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", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfTOmGOsUo5ihMhBB4bFR6dI13fBB6GwtsHarqsjXpDc1ry/statue.png", "ip_adapter_weight": 0.4, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 10, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 0.8, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter@sha256:f0d7c8388e049dd6fbed771dfa23c248c1380e73649ca022d32dda8cb434f00a \ -i 'eta=0' \ -i 'prompt="high quality"' \ -i 'max_width=512' \ -i 'scheduler="K_EULER_ANCESTRAL"' \ -i 'guess_mode=false' \ -i 'max_height=512' \ -i 'num_outputs=1' \ -i 'lineart_image="https://replicate.delivery/pbxt/JvfTOhtdWLGlWKN16tLwxyOLT9HW2Uk8asepRPczI4Fpuls1/WhatsApp%20Image%202023-05-30%20at%206.15.08%20PM.jpeg"' \ -i 'guidance_scale=8.72' \ -i '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"' \ -i 'ip_adapter_image="https://replicate.delivery/pbxt/JvfTOmGOsUo5ihMhBB4bFR6dI13fBB6GwtsHarqsjXpDc1ry/statue.png"' \ -i 'ip_adapter_weight=0.4' \ -i 'sorted_controlnets="tile, inpainting, lineart"' \ -i 'num_inference_steps=10' \ -i 'disable_safety_check=true' \ -i 'tile_conditioning_scale=1' \ -i 'lineart_conditioning_scale=0.8' \ -i 'brightness_conditioning_scale=1' \ -i 'inpainting_conditioning_scale=1'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter@sha256:f0d7c8388e049dd6fbed771dfa23c248c1380e73649ca022d32dda8cb434f00a
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "eta": 0, "prompt": "high quality", "max_width": 512, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 512, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfTOhtdWLGlWKN16tLwxyOLT9HW2Uk8asepRPczI4Fpuls1/WhatsApp%20Image%202023-05-30%20at%206.15.08%20PM.jpeg", "guidance_scale": 8.72, "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", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfTOmGOsUo5ihMhBB4bFR6dI13fBB6GwtsHarqsjXpDc1ry/statue.png", "ip_adapter_weight": 0.4, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 10, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 0.8, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-11-23T21:21:06.692354Z", "created_at": "2023-11-23T21:21:02.946553Z", "data_removed": false, "error": null, "id": "m4yd2albn6flhdjhgwejdp3sry", "input": { "eta": 0, "prompt": "high quality", "max_width": 512, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 512, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfTOhtdWLGlWKN16tLwxyOLT9HW2Uk8asepRPczI4Fpuls1/WhatsApp%20Image%202023-05-30%20at%206.15.08%20PM.jpeg", "guidance_scale": 8.72, "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", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfTOmGOsUo5ihMhBB4bFR6dI13fBB6GwtsHarqsjXpDc1ry/statue.png", "ip_adapter_weight": 0.4, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 10, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 0.8, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 }, "logs": "loading ip adapter\nTime taken to load IP adapter model: 0.01 seconds\nTime taken to load image encoder model: 0.00 seconds\nUsing seed: 19538\nip adapter---\n 0%| | 0/10 [00:00<?, ?it/s]\n 30%|███ | 3/10 [00:00<00:00, 25.11it/s]\n 60%|██████ | 6/10 [00:00<00:00, 25.27it/s]\n 90%|█████████ | 9/10 [00:00<00:00, 25.25it/s]\n100%|██████████| 10/10 [00:00<00:00, 25.06it/s]\nsize: (280, 512)", "metrics": { "predict_time": 3.70769, "total_time": 3.745801 }, "output": [ "https://replicate.delivery/pbxt/hSd10qE6CBLMJpKtZUAKynXBvyOpNsOLtqu33zWnYvdQ01eIA/seed-19538.png" ], "started_at": "2023-11-23T21:21:02.984664Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/m4yd2albn6flhdjhgwejdp3sry", "cancel": "https://api.replicate.com/v1/predictions/m4yd2albn6flhdjhgwejdp3sry/cancel" }, "version": "f0d7c8388e049dd6fbed771dfa23c248c1380e73649ca022d32dda8cb434f00a" }
Generated inloading ip adapter Time taken to load IP adapter model: 0.01 seconds Time taken to load image encoder model: 0.00 seconds Using seed: 19538 ip adapter--- 0%| | 0/10 [00:00<?, ?it/s] 30%|███ | 3/10 [00:00<00:00, 25.11it/s] 60%|██████ | 6/10 [00:00<00:00, 25.27it/s] 90%|█████████ | 9/10 [00:00<00:00, 25.25it/s] 100%|██████████| 10/10 [00:00<00:00, 25.06it/s] size: (280, 512)
Prediction
usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:8deeafc0da08d1439efdccadeb73eee9c25c6eef48ee90165608d39b3ab8c4cbID4mcy3ttbwhhjkp2wflcptgn544StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- eta
- 0
- prompt
- cat
- max_width
- 712
- scheduler
- K_EULER_ANCESTRAL
- guess_mode
- max_height
- 712
- num_outputs
- 1
- lineart_image
- output.png
- guidance_scale
- 8.72
- negative_prompt
- (worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,
- ip_adapter_image
- Cool-PC-Wallpapers-HD-2.jpg
- ip_adapter_weight
- 0.3
- sorted_controlnets
- tile, inpainting, lineart
- num_inference_steps
- 30
- disable_safety_check
- tile_conditioning_scale
- 1
- lineart_conditioning_scale
- 1.2
- brightness_conditioning_scale
- 1
- inpainting_conditioning_scale
- 1
{ "eta": 0, "prompt": "cat", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.3, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:8deeafc0da08d1439efdccadeb73eee9c25c6eef48ee90165608d39b3ab8c4cb", { input: { eta: 0, prompt: "cat", max_width: 712, scheduler: "K_EULER_ANCESTRAL", guess_mode: false, max_height: 712, num_outputs: 1, lineart_image: "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", guidance_scale: 8.72, negative_prompt: "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", ip_adapter_image: "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", ip_adapter_weight: 0.3, sorted_controlnets: "tile, inpainting, lineart", num_inference_steps: 30, disable_safety_check: true, tile_conditioning_scale: 1, lineart_conditioning_scale: 1.2, brightness_conditioning_scale: 1, inpainting_conditioning_scale: 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 usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:8deeafc0da08d1439efdccadeb73eee9c25c6eef48ee90165608d39b3ab8c4cb", input={ "eta": 0, "prompt": "cat", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": False, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.3, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": True, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter 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": "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:8deeafc0da08d1439efdccadeb73eee9c25c6eef48ee90165608d39b3ab8c4cb", "input": { "eta": 0, "prompt": "cat", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.3, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter@sha256:8deeafc0da08d1439efdccadeb73eee9c25c6eef48ee90165608d39b3ab8c4cb \ -i 'eta=0' \ -i 'prompt="cat"' \ -i 'max_width=712' \ -i 'scheduler="K_EULER_ANCESTRAL"' \ -i 'guess_mode=false' \ -i 'max_height=712' \ -i 'num_outputs=1' \ -i 'lineart_image="https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png"' \ -i 'guidance_scale=8.72' \ -i 'negative_prompt="(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,"' \ -i 'ip_adapter_image="https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg"' \ -i 'ip_adapter_weight=0.3' \ -i 'sorted_controlnets="tile, inpainting, lineart"' \ -i 'num_inference_steps=30' \ -i 'disable_safety_check=true' \ -i 'tile_conditioning_scale=1' \ -i 'lineart_conditioning_scale=1.2' \ -i 'brightness_conditioning_scale=1' \ -i 'inpainting_conditioning_scale=1'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter@sha256:8deeafc0da08d1439efdccadeb73eee9c25c6eef48ee90165608d39b3ab8c4cb
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "eta": 0, "prompt": "cat", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.3, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-11-23T21:46:20.909152Z", "created_at": "2023-11-23T21:46:14.676547Z", "data_removed": false, "error": null, "id": "4mcy3ttbwhhjkp2wflcptgn544", "input": { "eta": 0, "prompt": "cat", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.3, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 }, "logs": "loading ip adapter\nTime taken to load IP adapter model: 0.01 seconds\nTime taken to load image encoder model: 0.00 seconds\nUsing seed: 1422\nip adapter---\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:04, 6.70it/s]\n 10%|█ | 3/30 [00:00<00:03, 8.86it/s]\n 13%|█▎ | 4/30 [00:00<00:03, 8.53it/s]\n 17%|█▋ | 5/30 [00:00<00:03, 8.32it/s]\n 20%|██ | 6/30 [00:00<00:02, 8.19it/s]\n 23%|██▎ | 7/30 [00:00<00:02, 8.11it/s]\n 27%|██▋ | 8/30 [00:00<00:02, 8.05it/s]\n 30%|███ | 9/30 [00:01<00:02, 8.01it/s]\n 33%|███▎ | 10/30 [00:01<00:02, 7.99it/s]\n 37%|███▋ | 11/30 [00:01<00:02, 7.98it/s]\n 40%|████ | 12/30 [00:01<00:02, 7.96it/s]\n 43%|████▎ | 13/30 [00:01<00:02, 7.95it/s]\n 47%|████▋ | 14/30 [00:01<00:02, 7.94it/s]\n 50%|█████ | 15/30 [00:01<00:01, 7.94it/s]\n 53%|█████▎ | 16/30 [00:01<00:01, 7.94it/s]\n 57%|█████▋ | 17/30 [00:02<00:01, 7.94it/s]\n 60%|██████ | 18/30 [00:02<00:01, 7.93it/s]\n 63%|██████▎ | 19/30 [00:02<00:01, 7.93it/s]\n 67%|██████▋ | 20/30 [00:02<00:01, 7.92it/s]\n 70%|███████ | 21/30 [00:02<00:01, 7.92it/s]\n 73%|███████▎ | 22/30 [00:02<00:01, 7.91it/s]\n 77%|███████▋ | 23/30 [00:02<00:00, 7.91it/s]\n 80%|████████ | 24/30 [00:02<00:00, 7.92it/s]\n 83%|████████▎ | 25/30 [00:03<00:00, 7.94it/s]\n 87%|████████▋ | 26/30 [00:03<00:00, 7.95it/s]\n 90%|█████████ | 27/30 [00:03<00:00, 7.97it/s]\n 93%|█████████▎| 28/30 [00:03<00:00, 7.97it/s]\n 97%|█████████▋| 29/30 [00:03<00:00, 7.98it/s]\n100%|██████████| 30/30 [00:03<00:00, 7.97it/s]\n100%|██████████| 30/30 [00:03<00:00, 8.00it/s]\nsize: (712, 712)", "metrics": { "predict_time": 6.195252, "total_time": 6.232605 }, "output": [ "https://replicate.delivery/pbxt/kDBfFT6DN42uLKebaeCZQ3r0Vee0RfNfVJ8wWXBeV6MlsoX7RA/seed-1422.png" ], "started_at": "2023-11-23T21:46:14.713900Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/4mcy3ttbwhhjkp2wflcptgn544", "cancel": "https://api.replicate.com/v1/predictions/4mcy3ttbwhhjkp2wflcptgn544/cancel" }, "version": "8deeafc0da08d1439efdccadeb73eee9c25c6eef48ee90165608d39b3ab8c4cb" }
Generated inloading ip adapter Time taken to load IP adapter model: 0.01 seconds Time taken to load image encoder model: 0.00 seconds Using seed: 1422 ip adapter--- 0%| | 0/30 [00:00<?, ?it/s] 3%|▎ | 1/30 [00:00<00:04, 6.70it/s] 10%|█ | 3/30 [00:00<00:03, 8.86it/s] 13%|█▎ | 4/30 [00:00<00:03, 8.53it/s] 17%|█▋ | 5/30 [00:00<00:03, 8.32it/s] 20%|██ | 6/30 [00:00<00:02, 8.19it/s] 23%|██▎ | 7/30 [00:00<00:02, 8.11it/s] 27%|██▋ | 8/30 [00:00<00:02, 8.05it/s] 30%|███ | 9/30 [00:01<00:02, 8.01it/s] 33%|███▎ | 10/30 [00:01<00:02, 7.99it/s] 37%|███▋ | 11/30 [00:01<00:02, 7.98it/s] 40%|████ | 12/30 [00:01<00:02, 7.96it/s] 43%|████▎ | 13/30 [00:01<00:02, 7.95it/s] 47%|████▋ | 14/30 [00:01<00:02, 7.94it/s] 50%|█████ | 15/30 [00:01<00:01, 7.94it/s] 53%|█████▎ | 16/30 [00:01<00:01, 7.94it/s] 57%|█████▋ | 17/30 [00:02<00:01, 7.94it/s] 60%|██████ | 18/30 [00:02<00:01, 7.93it/s] 63%|██████▎ | 19/30 [00:02<00:01, 7.93it/s] 67%|██████▋ | 20/30 [00:02<00:01, 7.92it/s] 70%|███████ | 21/30 [00:02<00:01, 7.92it/s] 73%|███████▎ | 22/30 [00:02<00:01, 7.91it/s] 77%|███████▋ | 23/30 [00:02<00:00, 7.91it/s] 80%|████████ | 24/30 [00:02<00:00, 7.92it/s] 83%|████████▎ | 25/30 [00:03<00:00, 7.94it/s] 87%|████████▋ | 26/30 [00:03<00:00, 7.95it/s] 90%|█████████ | 27/30 [00:03<00:00, 7.97it/s] 93%|█████████▎| 28/30 [00:03<00:00, 7.97it/s] 97%|█████████▋| 29/30 [00:03<00:00, 7.98it/s] 100%|██████████| 30/30 [00:03<00:00, 7.97it/s] 100%|██████████| 30/30 [00:03<00:00, 8.00it/s] size: (712, 712)
Prediction
usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:f49d79a35ecd3c19b413fc82dd53db10ef1b43c4b832748c68e94a30f098d135IDzvsgvvlb4d5po5pvcye6u2u7vyStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- eta
- 0
- prompt
- A village in Punjab, children book art, children book art style
- max_width
- 712
- scheduler
- K_EULER_ANCESTRAL
- guess_mode
- max_height
- 712
- num_outputs
- 1
- guidance_scale
- 8.72
- ip_adapter_ckpt
- ip-adapter_sd15.bin
- negative_prompt
- (worst quality)++ ,(low quality)++ ,(normal quality)++ ,lowres,watermark, (((deformed))), blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, (extra_limb), (ugly), (poorly drawn hands), fused fingers, messy drawing, broken legs censor, censored, censor_bar, multiple breasts, (mutated hands and fingers:1.5), (long body :1.3), (mutation, poorly drawn :1.2), black-white, bad anatomy, liquid body, liquidtongue, disfigured, malformed, mutated, anatomical nonsense, text font ui, error, malformed hands, long neck, blurred, lowers, low res, bad anatomy, bad proportions, bad shadow, uncoordinated body, unnatural body, fused breasts, bad breasts, huge breasts, poorly drawn breasts, extra breasts, liquid breasts, heavy breasts, missingbreasts, huge haunch, huge thighs, huge calf, bad hands,
- img2img_strength
- 0.5
- ip_adapter_image
- 55d0df6320dabbff8050a839359201f2.jpg
- ip_adapter_weight
- 0.4
- sorted_controlnets
- tile, inpainting, lineart
- num_inference_steps
- 30
- disable_safety_check
- tile_conditioning_scale
- 1
- lineart_conditioning_scale
- 1.2
- scribble_conditioning_scale
- 1
- brightness_conditioning_scale
- 1
- inpainting_conditioning_scale
- 1
{ "eta": 0, "prompt": "A village in Punjab, children book art, children book art style", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "guidance_scale": 8.72, "ip_adapter_ckpt": "ip-adapter_sd15.bin", "negative_prompt": "(worst quality)++ ,(low quality)++ ,(normal quality)++ ,lowres,watermark, (((deformed))), blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, (extra_limb), (ugly), (poorly drawn hands), fused fingers, messy drawing, broken legs censor, censored, censor_bar, multiple breasts, (mutated hands and fingers:1.5), (long body :1.3), (mutation, poorly drawn :1.2), black-white, bad anatomy, liquid body, liquidtongue, disfigured, malformed, mutated, anatomical nonsense, text font ui, error, malformed hands, long neck, blurred, lowers, low res, bad anatomy, bad proportions, bad shadow, uncoordinated body, unnatural body, fused breasts, bad breasts, huge breasts, poorly drawn breasts, extra breasts, liquid breasts, heavy breasts, missingbreasts, huge haunch, huge thighs, huge calf, bad hands,", "img2img_strength": 0.5, "ip_adapter_image": "https://replicate.delivery/pbxt/K4ft8903U2erD3vEsMSkuJYgIwDhMVnlhgBZbgDngRCVVCjn/55d0df6320dabbff8050a839359201f2.jpg", "ip_adapter_weight": 0.4, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "scribble_conditioning_scale": 1, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:f49d79a35ecd3c19b413fc82dd53db10ef1b43c4b832748c68e94a30f098d135", { input: { eta: 0, prompt: "A village in Punjab, children book art, children book art style", max_width: 712, scheduler: "K_EULER_ANCESTRAL", guess_mode: false, max_height: 712, num_outputs: 1, guidance_scale: 8.72, ip_adapter_ckpt: "ip-adapter_sd15.bin", negative_prompt: "(worst quality)++ ,(low quality)++ ,(normal quality)++ ,lowres,watermark, (((deformed))), blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, (extra_limb), (ugly), (poorly drawn hands), fused fingers, messy drawing, broken legs censor, censored, censor_bar, multiple breasts, (mutated hands and fingers:1.5), (long body :1.3), (mutation, poorly drawn :1.2), black-white, bad anatomy, liquid body, liquidtongue, disfigured, malformed, mutated, anatomical nonsense, text font ui, error, malformed hands, long neck, blurred, lowers, low res, bad anatomy, bad proportions, bad shadow, uncoordinated body, unnatural body, fused breasts, bad breasts, huge breasts, poorly drawn breasts, extra breasts, liquid breasts, heavy breasts, missingbreasts, huge haunch, huge thighs, huge calf, bad hands,", img2img_strength: 0.5, ip_adapter_image: "https://replicate.delivery/pbxt/K4ft8903U2erD3vEsMSkuJYgIwDhMVnlhgBZbgDngRCVVCjn/55d0df6320dabbff8050a839359201f2.jpg", ip_adapter_weight: 0.4, sorted_controlnets: "tile, inpainting, lineart", num_inference_steps: 30, disable_safety_check: true, tile_conditioning_scale: 1, lineart_conditioning_scale: 1.2, scribble_conditioning_scale: 1, brightness_conditioning_scale: 1, inpainting_conditioning_scale: 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 usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:f49d79a35ecd3c19b413fc82dd53db10ef1b43c4b832748c68e94a30f098d135", input={ "eta": 0, "prompt": "A village in Punjab, children book art, children book art style", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": False, "max_height": 712, "num_outputs": 1, "guidance_scale": 8.72, "ip_adapter_ckpt": "ip-adapter_sd15.bin", "negative_prompt": "(worst quality)++ ,(low quality)++ ,(normal quality)++ ,lowres,watermark, (((deformed))), blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, (extra_limb), (ugly), (poorly drawn hands), fused fingers, messy drawing, broken legs censor, censored, censor_bar, multiple breasts, (mutated hands and fingers:1.5), (long body :1.3), (mutation, poorly drawn :1.2), black-white, bad anatomy, liquid body, liquidtongue, disfigured, malformed, mutated, anatomical nonsense, text font ui, error, malformed hands, long neck, blurred, lowers, low res, bad anatomy, bad proportions, bad shadow, uncoordinated body, unnatural body, fused breasts, bad breasts, huge breasts, poorly drawn breasts, extra breasts, liquid breasts, heavy breasts, missingbreasts, huge haunch, huge thighs, huge calf, bad hands,", "img2img_strength": 0.5, "ip_adapter_image": "https://replicate.delivery/pbxt/K4ft8903U2erD3vEsMSkuJYgIwDhMVnlhgBZbgDngRCVVCjn/55d0df6320dabbff8050a839359201f2.jpg", "ip_adapter_weight": 0.4, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": True, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "scribble_conditioning_scale": 1, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter 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": "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:f49d79a35ecd3c19b413fc82dd53db10ef1b43c4b832748c68e94a30f098d135", "input": { "eta": 0, "prompt": "A village in Punjab, children book art, children book art style", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "guidance_scale": 8.72, "ip_adapter_ckpt": "ip-adapter_sd15.bin", "negative_prompt": "(worst quality)++ ,(low quality)++ ,(normal quality)++ ,lowres,watermark, (((deformed))), blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, (extra_limb), (ugly), (poorly drawn hands), fused fingers, messy drawing, broken legs censor, censored, censor_bar, multiple breasts, (mutated hands and fingers:1.5), (long body :1.3), (mutation, poorly drawn :1.2), black-white, bad anatomy, liquid body, liquidtongue, disfigured, malformed, mutated, anatomical nonsense, text font ui, error, malformed hands, long neck, blurred, lowers, low res, bad anatomy, bad proportions, bad shadow, uncoordinated body, unnatural body, fused breasts, bad breasts, huge breasts, poorly drawn breasts, extra breasts, liquid breasts, heavy breasts, missingbreasts, huge haunch, huge thighs, huge calf, bad hands,", "img2img_strength": 0.5, "ip_adapter_image": "https://replicate.delivery/pbxt/K4ft8903U2erD3vEsMSkuJYgIwDhMVnlhgBZbgDngRCVVCjn/55d0df6320dabbff8050a839359201f2.jpg", "ip_adapter_weight": 0.4, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "scribble_conditioning_scale": 1, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-12-19T06:19:47.929201Z", "created_at": "2023-12-19T06:19:44.369654Z", "data_removed": false, "error": null, "id": "zvsgvvlb4d5po5pvcye6u2u7vy", "input": { "eta": 0, "prompt": "A village in Punjab, children book art, children book art style", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "guidance_scale": 8.72, "ip_adapter_ckpt": "ip-adapter_sd15.bin", "negative_prompt": "(worst quality)++ ,(low quality)++ ,(normal quality)++ ,lowres,watermark, (((deformed))), blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, (extra_limb), (ugly), (poorly drawn hands), fused fingers, messy drawing, broken legs censor, censored, censor_bar, multiple breasts, (mutated hands and fingers:1.5), (long body :1.3), (mutation, poorly drawn :1.2), black-white, bad anatomy, liquid body, liquidtongue, disfigured, malformed, mutated, anatomical nonsense, text font ui, error, malformed hands, long neck, blurred, lowers, low res, bad anatomy, bad proportions, bad shadow, uncoordinated body, unnatural body, fused breasts, bad breasts, huge breasts, poorly drawn breasts, extra breasts, liquid breasts, heavy breasts, missingbreasts, huge haunch, huge thighs, huge calf, bad hands,", "img2img_strength": 0.5, "ip_adapter_image": "https://replicate.delivery/pbxt/K4ft8903U2erD3vEsMSkuJYgIwDhMVnlhgBZbgDngRCVVCjn/55d0df6320dabbff8050a839359201f2.jpg", "ip_adapter_weight": 0.4, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "scribble_conditioning_scale": 1, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 }, "logs": "using ip adapter:: /tmp/tmp6z_wz1oo55d0df6320dabbff8050a839359201f2.jpg\nloading ip adapter\nTime taken to load IP adapter model: 0.02 seconds\nTime taken to load image encoder model: 0.00 seconds\nUsing seed: 26098\nip adapter---\n 0%| | 0/30 [00:00<?, ?it/s]\n 13%|█▎ | 4/30 [00:00<00:00, 29.79it/s]\n 23%|██▎ | 7/30 [00:00<00:00, 26.74it/s]\n 33%|███▎ | 10/30 [00:00<00:00, 25.60it/s]\n 43%|████▎ | 13/30 [00:00<00:00, 25.02it/s]\n 53%|█████▎ | 16/30 [00:00<00:00, 24.64it/s]\n 63%|██████▎ | 19/30 [00:00<00:00, 24.55it/s]\n 73%|███████▎ | 22/30 [00:00<00:00, 24.42it/s]\n 83%|████████▎ | 25/30 [00:01<00:00, 24.29it/s]\n 93%|█████████▎| 28/30 [00:01<00:00, 24.22it/s]\n100%|██████████| 30/30 [00:01<00:00, 24.78it/s]", "metrics": { "predict_time": 3.519647, "total_time": 3.559547 }, "output": [ "https://replicate.delivery/pbxt/pAiKsGvbavrjD5rm5cuxPidw5UVowyQ6a7c7KgX8b5eBQ3BJA/output_0.png" ], "started_at": "2023-12-19T06:19:44.409554Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/zvsgvvlb4d5po5pvcye6u2u7vy", "cancel": "https://api.replicate.com/v1/predictions/zvsgvvlb4d5po5pvcye6u2u7vy/cancel" }, "version": "f49d79a35ecd3c19b413fc82dd53db10ef1b43c4b832748c68e94a30f098d135" }
Generated inusing ip adapter:: /tmp/tmp6z_wz1oo55d0df6320dabbff8050a839359201f2.jpg loading ip adapter Time taken to load IP adapter model: 0.02 seconds Time taken to load image encoder model: 0.00 seconds Using seed: 26098 ip adapter--- 0%| | 0/30 [00:00<?, ?it/s] 13%|█▎ | 4/30 [00:00<00:00, 29.79it/s] 23%|██▎ | 7/30 [00:00<00:00, 26.74it/s] 33%|███▎ | 10/30 [00:00<00:00, 25.60it/s] 43%|████▎ | 13/30 [00:00<00:00, 25.02it/s] 53%|█████▎ | 16/30 [00:00<00:00, 24.64it/s] 63%|██████▎ | 19/30 [00:00<00:00, 24.55it/s] 73%|███████▎ | 22/30 [00:00<00:00, 24.42it/s] 83%|████████▎ | 25/30 [00:01<00:00, 24.29it/s] 93%|█████████▎| 28/30 [00:01<00:00, 24.22it/s] 100%|██████████| 30/30 [00:01<00:00, 24.78it/s]
Prediction
usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:47bc4a07a7dd753ce70382e95179b418308bc7f4275759e3de80d64bf9c40f22IDndrcqy3bdo2a7qi5pjlruippfmStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- eta
- 0
- prompt
- woman
- max_width
- 712
- scheduler
- K_EULER_ANCESTRAL
- guess_mode
- max_height
- 712
- num_outputs
- 1
- lineart_image
- fausto-sandoval-5q3vrOf4_D0-unsplash.jpg
- guidance_scale
- 8.72
- negative_prompt
- (worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,
- ip_adapter_image
- statue.png
- ip_adapter_weight
- 0.5
- sorted_controlnets
- tile, inpainting, lineart
- num_inference_steps
- 30
- disable_safety_check
- tile_conditioning_scale
- 1
- lineart_conditioning_scale
- 0.6
- brightness_conditioning_scale
- 1
- inpainting_conditioning_scale
- 1
{ "eta": 0, "prompt": "woman", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvgseB45a3D9g9dBJoThZyuVSH6GgtM5FS2ws1v5vktWbXaH/fausto-sandoval-5q3vrOf4_D0-unsplash.jpg", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/Jvgse0aHvGnMTcdGuNulNFHfkqWHXSh9YX2hdZzGXmoOSIIz/statue.png", "ip_adapter_weight": 0.5, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 0.6, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:47bc4a07a7dd753ce70382e95179b418308bc7f4275759e3de80d64bf9c40f22", { input: { eta: 0, prompt: "woman", max_width: 712, scheduler: "K_EULER_ANCESTRAL", guess_mode: false, max_height: 712, num_outputs: 1, lineart_image: "https://replicate.delivery/pbxt/JvgseB45a3D9g9dBJoThZyuVSH6GgtM5FS2ws1v5vktWbXaH/fausto-sandoval-5q3vrOf4_D0-unsplash.jpg", guidance_scale: 8.72, negative_prompt: "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", ip_adapter_image: "https://replicate.delivery/pbxt/Jvgse0aHvGnMTcdGuNulNFHfkqWHXSh9YX2hdZzGXmoOSIIz/statue.png", ip_adapter_weight: 0.5, sorted_controlnets: "tile, inpainting, lineart", num_inference_steps: 30, disable_safety_check: true, tile_conditioning_scale: 1, lineart_conditioning_scale: 0.6, brightness_conditioning_scale: 1, inpainting_conditioning_scale: 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 usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:47bc4a07a7dd753ce70382e95179b418308bc7f4275759e3de80d64bf9c40f22", input={ "eta": 0, "prompt": "woman", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": False, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvgseB45a3D9g9dBJoThZyuVSH6GgtM5FS2ws1v5vktWbXaH/fausto-sandoval-5q3vrOf4_D0-unsplash.jpg", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/Jvgse0aHvGnMTcdGuNulNFHfkqWHXSh9YX2hdZzGXmoOSIIz/statue.png", "ip_adapter_weight": 0.5, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": True, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 0.6, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter 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": "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:47bc4a07a7dd753ce70382e95179b418308bc7f4275759e3de80d64bf9c40f22", "input": { "eta": 0, "prompt": "woman", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvgseB45a3D9g9dBJoThZyuVSH6GgtM5FS2ws1v5vktWbXaH/fausto-sandoval-5q3vrOf4_D0-unsplash.jpg", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/Jvgse0aHvGnMTcdGuNulNFHfkqWHXSh9YX2hdZzGXmoOSIIz/statue.png", "ip_adapter_weight": 0.5, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 0.6, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter@sha256:47bc4a07a7dd753ce70382e95179b418308bc7f4275759e3de80d64bf9c40f22 \ -i 'eta=0' \ -i 'prompt="woman"' \ -i 'max_width=712' \ -i 'scheduler="K_EULER_ANCESTRAL"' \ -i 'guess_mode=false' \ -i 'max_height=712' \ -i 'num_outputs=1' \ -i 'lineart_image="https://replicate.delivery/pbxt/JvgseB45a3D9g9dBJoThZyuVSH6GgtM5FS2ws1v5vktWbXaH/fausto-sandoval-5q3vrOf4_D0-unsplash.jpg"' \ -i 'guidance_scale=8.72' \ -i 'negative_prompt="(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,"' \ -i 'ip_adapter_image="https://replicate.delivery/pbxt/Jvgse0aHvGnMTcdGuNulNFHfkqWHXSh9YX2hdZzGXmoOSIIz/statue.png"' \ -i 'ip_adapter_weight=0.5' \ -i 'sorted_controlnets="tile, inpainting, lineart"' \ -i 'num_inference_steps=30' \ -i 'disable_safety_check=true' \ -i 'tile_conditioning_scale=1' \ -i 'lineart_conditioning_scale=0.6' \ -i 'brightness_conditioning_scale=1' \ -i 'inpainting_conditioning_scale=1'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter@sha256:47bc4a07a7dd753ce70382e95179b418308bc7f4275759e3de80d64bf9c40f22
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "eta": 0, "prompt": "woman", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvgseB45a3D9g9dBJoThZyuVSH6GgtM5FS2ws1v5vktWbXaH/fausto-sandoval-5q3vrOf4_D0-unsplash.jpg", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/Jvgse0aHvGnMTcdGuNulNFHfkqWHXSh9YX2hdZzGXmoOSIIz/statue.png", "ip_adapter_weight": 0.5, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 0.6, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-11-23T22:53:15.252473Z", "created_at": "2023-11-23T22:53:08.712287Z", "data_removed": false, "error": null, "id": "ndrcqy3bdo2a7qi5pjlruippfm", "input": { "eta": 0, "prompt": "woman", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvgseB45a3D9g9dBJoThZyuVSH6GgtM5FS2ws1v5vktWbXaH/fausto-sandoval-5q3vrOf4_D0-unsplash.jpg", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/Jvgse0aHvGnMTcdGuNulNFHfkqWHXSh9YX2hdZzGXmoOSIIz/statue.png", "ip_adapter_weight": 0.5, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 0.6, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 }, "logs": "using ip adapter:: /tmp/tmp5yxjnz1ystatue.png\nloading ip adapter\nTime taken to load IP adapter model: 0.02 seconds\nTime taken to load image encoder model: 0.00 seconds\nUsing seed: 52292\nip adapter---\n 0%| | 0/30 [00:00<?, ?it/s]\n 7%|▋ | 2/30 [00:00<00:02, 10.99it/s]\n 13%|█▎ | 4/30 [00:00<00:02, 9.04it/s]\n 17%|█▋ | 5/30 [00:00<00:02, 8.70it/s]\n 20%|██ | 6/30 [00:00<00:02, 8.48it/s]\n 23%|██▎ | 7/30 [00:00<00:02, 8.33it/s]\n 27%|██▋ | 8/30 [00:00<00:02, 8.23it/s]\n 30%|███ | 9/30 [00:01<00:02, 8.15it/s]\n 33%|███▎ | 10/30 [00:01<00:02, 8.10it/s]\n 37%|███▋ | 11/30 [00:01<00:02, 8.07it/s]\n 40%|████ | 12/30 [00:01<00:02, 8.04it/s]\n 43%|████▎ | 13/30 [00:01<00:02, 8.02it/s]\n 47%|████▋ | 14/30 [00:01<00:01, 8.01it/s]\n 50%|█████ | 15/30 [00:01<00:01, 8.00it/s]\n 53%|█████▎ | 16/30 [00:01<00:01, 7.99it/s]\n 57%|█████▋ | 17/30 [00:02<00:01, 7.98it/s]\n 60%|██████ | 18/30 [00:02<00:01, 7.99it/s]\n 63%|██████▎ | 19/30 [00:02<00:01, 7.98it/s]\n 67%|██████▋ | 20/30 [00:02<00:01, 7.97it/s]\n 70%|███████ | 21/30 [00:02<00:01, 7.97it/s]\n 73%|███████▎ | 22/30 [00:02<00:01, 7.96it/s]\n 77%|███████▋ | 23/30 [00:02<00:00, 7.96it/s]\n 80%|████████ | 24/30 [00:02<00:00, 7.95it/s]\n 83%|████████▎ | 25/30 [00:03<00:00, 7.96it/s]\n 87%|████████▋ | 26/30 [00:03<00:00, 7.95it/s]\n 90%|█████████ | 27/30 [00:03<00:00, 7.96it/s]\n 93%|█████████▎| 28/30 [00:03<00:00, 7.96it/s]\n 97%|█████████▋| 29/30 [00:03<00:00, 7.95it/s]\n100%|██████████| 30/30 [00:03<00:00, 7.95it/s]\n100%|██████████| 30/30 [00:03<00:00, 8.12it/s]\nsize: (712, 712)", "metrics": { "predict_time": 6.496189, "total_time": 6.540186 }, "output": [ "https://replicate.delivery/pbxt/zpRvu4VNUKIxOhJZfhAJJUrsoWc0yKfLrArPX0X1X15anY7RA/seed-52292.png" ], "started_at": "2023-11-23T22:53:08.756284Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ndrcqy3bdo2a7qi5pjlruippfm", "cancel": "https://api.replicate.com/v1/predictions/ndrcqy3bdo2a7qi5pjlruippfm/cancel" }, "version": "47bc4a07a7dd753ce70382e95179b418308bc7f4275759e3de80d64bf9c40f22" }
Generated inusing ip adapter:: /tmp/tmp5yxjnz1ystatue.png loading ip adapter Time taken to load IP adapter model: 0.02 seconds Time taken to load image encoder model: 0.00 seconds Using seed: 52292 ip adapter--- 0%| | 0/30 [00:00<?, ?it/s] 7%|▋ | 2/30 [00:00<00:02, 10.99it/s] 13%|█▎ | 4/30 [00:00<00:02, 9.04it/s] 17%|█▋ | 5/30 [00:00<00:02, 8.70it/s] 20%|██ | 6/30 [00:00<00:02, 8.48it/s] 23%|██▎ | 7/30 [00:00<00:02, 8.33it/s] 27%|██▋ | 8/30 [00:00<00:02, 8.23it/s] 30%|███ | 9/30 [00:01<00:02, 8.15it/s] 33%|███▎ | 10/30 [00:01<00:02, 8.10it/s] 37%|███▋ | 11/30 [00:01<00:02, 8.07it/s] 40%|████ | 12/30 [00:01<00:02, 8.04it/s] 43%|████▎ | 13/30 [00:01<00:02, 8.02it/s] 47%|████▋ | 14/30 [00:01<00:01, 8.01it/s] 50%|█████ | 15/30 [00:01<00:01, 8.00it/s] 53%|█████▎ | 16/30 [00:01<00:01, 7.99it/s] 57%|█████▋ | 17/30 [00:02<00:01, 7.98it/s] 60%|██████ | 18/30 [00:02<00:01, 7.99it/s] 63%|██████▎ | 19/30 [00:02<00:01, 7.98it/s] 67%|██████▋ | 20/30 [00:02<00:01, 7.97it/s] 70%|███████ | 21/30 [00:02<00:01, 7.97it/s] 73%|███████▎ | 22/30 [00:02<00:01, 7.96it/s] 77%|███████▋ | 23/30 [00:02<00:00, 7.96it/s] 80%|████████ | 24/30 [00:02<00:00, 7.95it/s] 83%|████████▎ | 25/30 [00:03<00:00, 7.96it/s] 87%|████████▋ | 26/30 [00:03<00:00, 7.95it/s] 90%|█████████ | 27/30 [00:03<00:00, 7.96it/s] 93%|█████████▎| 28/30 [00:03<00:00, 7.96it/s] 97%|█████████▋| 29/30 [00:03<00:00, 7.95it/s] 100%|██████████| 30/30 [00:03<00:00, 7.95it/s] 100%|██████████| 30/30 [00:03<00:00, 8.12it/s] size: (712, 712)
Prediction
usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:6871e1d728bb30a0b0490884932674303d7b35ba7e6aa18e668676cccbf9c41fIDlup6bnlbutbqupmzu5g43fieyeStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- eta
- 0
- prompt
- cat
- max_width
- 712
- scheduler
- K_EULER_ANCESTRAL
- guess_mode
- max_height
- 712
- num_outputs
- 1
- lineart_image
- output.png
- guidance_scale
- 8.72
- negative_prompt
- (worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,
- ip_adapter_image
- Cool-PC-Wallpapers-HD-2.jpg
- ip_adapter_weight
- 0.3
- sorted_controlnets
- tile, inpainting, lineart
- num_inference_steps
- 30
- disable_safety_check
- tile_conditioning_scale
- 1
- lineart_conditioning_scale
- 1.2
- brightness_conditioning_scale
- 1
- inpainting_conditioning_scale
- 1
{ "eta": 0, "prompt": "cat", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.3, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:6871e1d728bb30a0b0490884932674303d7b35ba7e6aa18e668676cccbf9c41f", { input: { eta: 0, prompt: "cat", max_width: 712, scheduler: "K_EULER_ANCESTRAL", guess_mode: false, max_height: 712, num_outputs: 1, lineart_image: "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", guidance_scale: 8.72, negative_prompt: "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", ip_adapter_image: "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", ip_adapter_weight: 0.3, sorted_controlnets: "tile, inpainting, lineart", num_inference_steps: 30, disable_safety_check: true, tile_conditioning_scale: 1, lineart_conditioning_scale: 1.2, brightness_conditioning_scale: 1, inpainting_conditioning_scale: 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 usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:6871e1d728bb30a0b0490884932674303d7b35ba7e6aa18e668676cccbf9c41f", input={ "eta": 0, "prompt": "cat", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": False, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.3, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": True, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter 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": "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:6871e1d728bb30a0b0490884932674303d7b35ba7e6aa18e668676cccbf9c41f", "input": { "eta": 0, "prompt": "cat", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.3, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter@sha256:6871e1d728bb30a0b0490884932674303d7b35ba7e6aa18e668676cccbf9c41f \ -i 'eta=0' \ -i 'prompt="cat"' \ -i 'max_width=712' \ -i 'scheduler="K_EULER_ANCESTRAL"' \ -i 'guess_mode=false' \ -i 'max_height=712' \ -i 'num_outputs=1' \ -i 'lineart_image="https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png"' \ -i 'guidance_scale=8.72' \ -i 'negative_prompt="(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,"' \ -i 'ip_adapter_image="https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg"' \ -i 'ip_adapter_weight=0.3' \ -i 'sorted_controlnets="tile, inpainting, lineart"' \ -i 'num_inference_steps=30' \ -i 'disable_safety_check=true' \ -i 'tile_conditioning_scale=1' \ -i 'lineart_conditioning_scale=1.2' \ -i 'brightness_conditioning_scale=1' \ -i 'inpainting_conditioning_scale=1'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter@sha256:6871e1d728bb30a0b0490884932674303d7b35ba7e6aa18e668676cccbf9c41f
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "eta": 0, "prompt": "cat", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.3, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-11-24T00:30:32.243146Z", "created_at": "2023-11-24T00:28:42.830857Z", "data_removed": false, "error": null, "id": "lup6bnlbutbqupmzu5g43fieye", "input": { "eta": 0, "prompt": "cat", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.3, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 }, "logs": "using ip adapter:: /tmp/tmpca1o91mmCool-PC-Wallpapers-HD-2.jpg\nloading ip adapter\nTime taken to load IP adapter model: 0.01 seconds\nTime taken to load image encoder model: 0.00 seconds\nUsing seed: 31051\nip adapter---\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:06, 4.81it/s]\n 10%|█ | 3/30 [00:00<00:03, 7.73it/s]\n 13%|█▎ | 4/30 [00:00<00:03, 7.75it/s]\n 17%|█▋ | 5/30 [00:00<00:03, 7.76it/s]\n 20%|██ | 6/30 [00:00<00:03, 7.77it/s]\n 23%|██▎ | 7/30 [00:00<00:02, 7.77it/s]\n 27%|██▋ | 8/30 [00:01<00:02, 7.78it/s]\n 30%|███ | 9/30 [00:01<00:02, 7.78it/s]\n 33%|███▎ | 10/30 [00:01<00:02, 7.76it/s]\n 37%|███▋ | 11/30 [00:01<00:02, 7.76it/s]\n 40%|████ | 12/30 [00:01<00:02, 7.76it/s]\n 43%|████▎ | 13/30 [00:01<00:02, 7.75it/s]\n 47%|████▋ | 14/30 [00:01<00:02, 7.75it/s]\n 50%|█████ | 15/30 [00:01<00:01, 7.75it/s]\n 53%|█████▎ | 16/30 [00:02<00:01, 7.76it/s]\n 57%|█████▋ | 17/30 [00:02<00:01, 7.75it/s]\n 60%|██████ | 18/30 [00:02<00:01, 7.75it/s]\n 63%|██████▎ | 19/30 [00:02<00:01, 7.75it/s]\n 67%|██████▋ | 20/30 [00:02<00:01, 7.75it/s]\n 70%|███████ | 21/30 [00:02<00:01, 7.74it/s]\n 73%|███████▎ | 22/30 [00:02<00:01, 7.74it/s]\n 77%|███████▋ | 23/30 [00:02<00:00, 7.74it/s]\n 80%|████████ | 24/30 [00:03<00:00, 7.74it/s]\n 83%|████████▎ | 25/30 [00:03<00:00, 7.74it/s]\n 87%|████████▋ | 26/30 [00:03<00:00, 7.73it/s]\n 90%|█████████ | 27/30 [00:03<00:00, 7.73it/s]\n 93%|█████████▎| 28/30 [00:03<00:00, 7.73it/s]\n 97%|█████████▋| 29/30 [00:03<00:00, 7.73it/s]\n100%|██████████| 30/30 [00:03<00:00, 7.72it/s]\n100%|██████████| 30/30 [00:03<00:00, 7.70it/s]\nsize: (712, 712)", "metrics": { "predict_time": 9.723017, "total_time": 109.412289 }, "output": [ "https://replicate.delivery/pbxt/VAB6JgQ91AZnIBexOSg1iX6oIMKetsAvOPv4pyWJ6mQnCa7RA/seed-31051.png" ], "started_at": "2023-11-24T00:30:22.520129Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/lup6bnlbutbqupmzu5g43fieye", "cancel": "https://api.replicate.com/v1/predictions/lup6bnlbutbqupmzu5g43fieye/cancel" }, "version": "6871e1d728bb30a0b0490884932674303d7b35ba7e6aa18e668676cccbf9c41f" }
Generated inusing ip adapter:: /tmp/tmpca1o91mmCool-PC-Wallpapers-HD-2.jpg loading ip adapter Time taken to load IP adapter model: 0.01 seconds Time taken to load image encoder model: 0.00 seconds Using seed: 31051 ip adapter--- 0%| | 0/30 [00:00<?, ?it/s] 3%|▎ | 1/30 [00:00<00:06, 4.81it/s] 10%|█ | 3/30 [00:00<00:03, 7.73it/s] 13%|█▎ | 4/30 [00:00<00:03, 7.75it/s] 17%|█▋ | 5/30 [00:00<00:03, 7.76it/s] 20%|██ | 6/30 [00:00<00:03, 7.77it/s] 23%|██▎ | 7/30 [00:00<00:02, 7.77it/s] 27%|██▋ | 8/30 [00:01<00:02, 7.78it/s] 30%|███ | 9/30 [00:01<00:02, 7.78it/s] 33%|███▎ | 10/30 [00:01<00:02, 7.76it/s] 37%|███▋ | 11/30 [00:01<00:02, 7.76it/s] 40%|████ | 12/30 [00:01<00:02, 7.76it/s] 43%|████▎ | 13/30 [00:01<00:02, 7.75it/s] 47%|████▋ | 14/30 [00:01<00:02, 7.75it/s] 50%|█████ | 15/30 [00:01<00:01, 7.75it/s] 53%|█████▎ | 16/30 [00:02<00:01, 7.76it/s] 57%|█████▋ | 17/30 [00:02<00:01, 7.75it/s] 60%|██████ | 18/30 [00:02<00:01, 7.75it/s] 63%|██████▎ | 19/30 [00:02<00:01, 7.75it/s] 67%|██████▋ | 20/30 [00:02<00:01, 7.75it/s] 70%|███████ | 21/30 [00:02<00:01, 7.74it/s] 73%|███████▎ | 22/30 [00:02<00:01, 7.74it/s] 77%|███████▋ | 23/30 [00:02<00:00, 7.74it/s] 80%|████████ | 24/30 [00:03<00:00, 7.74it/s] 83%|████████▎ | 25/30 [00:03<00:00, 7.74it/s] 87%|████████▋ | 26/30 [00:03<00:00, 7.73it/s] 90%|█████████ | 27/30 [00:03<00:00, 7.73it/s] 93%|█████████▎| 28/30 [00:03<00:00, 7.73it/s] 97%|█████████▋| 29/30 [00:03<00:00, 7.73it/s] 100%|██████████| 30/30 [00:03<00:00, 7.72it/s] 100%|██████████| 30/30 [00:03<00:00, 7.70it/s] size: (712, 712)
Prediction
usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:6871e1d728bb30a0b0490884932674303d7b35ba7e6aa18e668676cccbf9c41fID6t6clk3b7s7kvuhcuznuctcgdqStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- eta
- 0
- prompt
- cat
- max_width
- 712
- scheduler
- K_EULER_ANCESTRAL
- guess_mode
- max_height
- 712
- num_outputs
- 1
- lineart_image
- output.png
- guidance_scale
- 8.72
- negative_prompt
- (worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,
- ip_adapter_image
- Cool-PC-Wallpapers-HD-2.jpg
- ip_adapter_weight
- 0.8
- sorted_controlnets
- tile, inpainting, lineart
- num_inference_steps
- 30
- disable_safety_check
- tile_conditioning_scale
- 1
- lineart_conditioning_scale
- 1.2
- brightness_conditioning_scale
- 1
- inpainting_conditioning_scale
- 1
{ "eta": 0, "prompt": "cat", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.8, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:6871e1d728bb30a0b0490884932674303d7b35ba7e6aa18e668676cccbf9c41f", { input: { eta: 0, prompt: "cat", max_width: 712, scheduler: "K_EULER_ANCESTRAL", guess_mode: false, max_height: 712, num_outputs: 1, lineart_image: "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", guidance_scale: 8.72, negative_prompt: "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", ip_adapter_image: "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", ip_adapter_weight: 0.8, sorted_controlnets: "tile, inpainting, lineart", num_inference_steps: 30, disable_safety_check: true, tile_conditioning_scale: 1, lineart_conditioning_scale: 1.2, brightness_conditioning_scale: 1, inpainting_conditioning_scale: 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 usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:6871e1d728bb30a0b0490884932674303d7b35ba7e6aa18e668676cccbf9c41f", input={ "eta": 0, "prompt": "cat", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": False, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.8, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": True, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter 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": "usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter:6871e1d728bb30a0b0490884932674303d7b35ba7e6aa18e668676cccbf9c41f", "input": { "eta": 0, "prompt": "cat", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.8, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter@sha256:6871e1d728bb30a0b0490884932674303d7b35ba7e6aa18e668676cccbf9c41f \ -i 'eta=0' \ -i 'prompt="cat"' \ -i 'max_width=712' \ -i 'scheduler="K_EULER_ANCESTRAL"' \ -i 'guess_mode=false' \ -i 'max_height=712' \ -i 'num_outputs=1' \ -i 'lineart_image="https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png"' \ -i 'guidance_scale=8.72' \ -i 'negative_prompt="(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,"' \ -i 'ip_adapter_image="https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg"' \ -i 'ip_adapter_weight=0.8' \ -i 'sorted_controlnets="tile, inpainting, lineart"' \ -i 'num_inference_steps=30' \ -i 'disable_safety_check=true' \ -i 'tile_conditioning_scale=1' \ -i 'lineart_conditioning_scale=1.2' \ -i 'brightness_conditioning_scale=1' \ -i 'inpainting_conditioning_scale=1'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/usamaehsan/controlnet-x-majic-mix-realistic-x-ip-adapter@sha256:6871e1d728bb30a0b0490884932674303d7b35ba7e6aa18e668676cccbf9c41f
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "eta": 0, "prompt": "cat", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.8, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-11-24T00:31:48.371674Z", "created_at": "2023-11-24T00:31:42.181486Z", "data_removed": false, "error": null, "id": "6t6clk3b7s7kvuhcuznuctcgdq", "input": { "eta": 0, "prompt": "cat", "max_width": 712, "scheduler": "K_EULER_ANCESTRAL", "guess_mode": false, "max_height": 712, "num_outputs": 1, "lineart_image": "https://replicate.delivery/pbxt/JvfJGnmbU8uxfzsCeqLBCdEoeOQT09xZOAQLGbGLqyNYrrKc/output.png", "guidance_scale": 8.72, "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,", "ip_adapter_image": "https://replicate.delivery/pbxt/JvfJGnjAmUqqNLFm8OyfbOXynAQLvVOtgSrq2cWOWeAb2wZW/Cool-PC-Wallpapers-HD-2.jpg", "ip_adapter_weight": 0.8, "sorted_controlnets": "tile, inpainting, lineart", "num_inference_steps": 30, "disable_safety_check": true, "tile_conditioning_scale": 1, "lineart_conditioning_scale": 1.2, "brightness_conditioning_scale": 1, "inpainting_conditioning_scale": 1 }, "logs": "using ip adapter:: /tmp/tmpigfuocscCool-PC-Wallpapers-HD-2.jpg\nloading ip adapter\nTime taken to load IP adapter model: 0.01 seconds\nTime taken to load image encoder model: 0.00 seconds\nUsing seed: 61132\nip adapter---\n 0%| | 0/30 [00:00<?, ?it/s]\n 7%|▋ | 2/30 [00:00<00:02, 10.43it/s]\n 13%|█▎ | 4/30 [00:00<00:03, 8.66it/s]\n 17%|█▋ | 5/30 [00:00<00:02, 8.37it/s]\n 20%|██ | 6/30 [00:00<00:02, 8.17it/s]\n 23%|██▎ | 7/30 [00:00<00:02, 8.03it/s]\n 27%|██▋ | 8/30 [00:00<00:02, 7.94it/s]\n 30%|███ | 9/30 [00:01<00:02, 7.87it/s]\n 33%|███▎ | 10/30 [00:01<00:02, 7.83it/s]\n 37%|███▋ | 11/30 [00:01<00:02, 7.78it/s]\n 40%|████ | 12/30 [00:01<00:02, 7.78it/s]\n 43%|████▎ | 13/30 [00:01<00:02, 7.77it/s]\n 47%|████▋ | 14/30 [00:01<00:02, 7.76it/s]\n 50%|█████ | 15/30 [00:01<00:01, 7.77it/s]\n 53%|█████▎ | 16/30 [00:02<00:01, 7.77it/s]\n 57%|█████▋ | 17/30 [00:02<00:01, 7.77it/s]\n 60%|██████ | 18/30 [00:02<00:01, 7.76it/s]\n 63%|██████▎ | 19/30 [00:02<00:01, 7.77it/s]\n 67%|██████▋ | 20/30 [00:02<00:01, 7.76it/s]\n 70%|███████ | 21/30 [00:02<00:01, 7.76it/s]\n 73%|███████▎ | 22/30 [00:02<00:01, 7.76it/s]\n 77%|███████▋ | 23/30 [00:02<00:00, 7.76it/s]\n 80%|████████ | 24/30 [00:03<00:00, 7.76it/s]\n 83%|████████▎ | 25/30 [00:03<00:00, 7.76it/s]\n 87%|████████▋ | 26/30 [00:03<00:00, 7.76it/s]\n 90%|█████████ | 27/30 [00:03<00:00, 7.76it/s]\n 93%|█████████▎| 28/30 [00:03<00:00, 7.76it/s]\n 97%|█████████▋| 29/30 [00:03<00:00, 7.75it/s]\n100%|██████████| 30/30 [00:03<00:00, 7.74it/s]\n100%|██████████| 30/30 [00:03<00:00, 7.88it/s]\nsize: (712, 712)", "metrics": { "predict_time": 6.155455, "total_time": 6.190188 }, "output": [ "https://replicate.delivery/pbxt/W5MBUdiufo3dEantdwUkei1hj8dGxqnB0eNtLVjuUVInH02jA/seed-61132.png" ], "started_at": "2023-11-24T00:31:42.216219Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/6t6clk3b7s7kvuhcuznuctcgdq", "cancel": "https://api.replicate.com/v1/predictions/6t6clk3b7s7kvuhcuznuctcgdq/cancel" }, "version": "6871e1d728bb30a0b0490884932674303d7b35ba7e6aa18e668676cccbf9c41f" }
Generated inusing ip adapter:: /tmp/tmpigfuocscCool-PC-Wallpapers-HD-2.jpg loading ip adapter Time taken to load IP adapter model: 0.01 seconds Time taken to load image encoder model: 0.00 seconds Using seed: 61132 ip adapter--- 0%| | 0/30 [00:00<?, ?it/s] 7%|▋ | 2/30 [00:00<00:02, 10.43it/s] 13%|█▎ | 4/30 [00:00<00:03, 8.66it/s] 17%|█▋ | 5/30 [00:00<00:02, 8.37it/s] 20%|██ | 6/30 [00:00<00:02, 8.17it/s] 23%|██▎ | 7/30 [00:00<00:02, 8.03it/s] 27%|██▋ | 8/30 [00:00<00:02, 7.94it/s] 30%|███ | 9/30 [00:01<00:02, 7.87it/s] 33%|███▎ | 10/30 [00:01<00:02, 7.83it/s] 37%|███▋ | 11/30 [00:01<00:02, 7.78it/s] 40%|████ | 12/30 [00:01<00:02, 7.78it/s] 43%|████▎ | 13/30 [00:01<00:02, 7.77it/s] 47%|████▋ | 14/30 [00:01<00:02, 7.76it/s] 50%|█████ | 15/30 [00:01<00:01, 7.77it/s] 53%|█████▎ | 16/30 [00:02<00:01, 7.77it/s] 57%|█████▋ | 17/30 [00:02<00:01, 7.77it/s] 60%|██████ | 18/30 [00:02<00:01, 7.76it/s] 63%|██████▎ | 19/30 [00:02<00:01, 7.77it/s] 67%|██████▋ | 20/30 [00:02<00:01, 7.76it/s] 70%|███████ | 21/30 [00:02<00:01, 7.76it/s] 73%|███████▎ | 22/30 [00:02<00:01, 7.76it/s] 77%|███████▋ | 23/30 [00:02<00:00, 7.76it/s] 80%|████████ | 24/30 [00:03<00:00, 7.76it/s] 83%|████████▎ | 25/30 [00:03<00:00, 7.76it/s] 87%|████████▋ | 26/30 [00:03<00:00, 7.76it/s] 90%|█████████ | 27/30 [00:03<00:00, 7.76it/s] 93%|█████████▎| 28/30 [00:03<00:00, 7.76it/s] 97%|█████████▋| 29/30 [00:03<00:00, 7.75it/s] 100%|██████████| 30/30 [00:03<00:00, 7.74it/s] 100%|██████████| 30/30 [00:03<00:00, 7.88it/s] size: (712, 712)
Want to make some of these yourself?
Run this model