usamaehsan / controlnet-1.1-x-realistic-vision-v2.0
controlnet 1.1 lineart x realistic-vision-v2.0 (updated to v5)
- Public
- 5.1M runs
-
A100 (80GB)
Prediction
usamaehsan/controlnet-1.1-x-realistic-vision-v2.0:542a2f6729906f610b5a0656b4061b6f792f3044f1b86eca7ce7dee3258f025bIDrp4lvtjervesfhepem3jinav7yStatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedInput
- scale
- 5.76
- prompt
- underwater kingdom
- a_prompt
- Best quality, extremely detailed
- n_prompt
- Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality
- strength
- 0.5
- structure
- lineart
- ddim_steps
- 10
- num_samples
- 1
- preprocessor
- Lineart
- image_resolution
- 512
- preprocessor_resolution
- 512
{ "image": "https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg", "scale": 5.76, "prompt": "underwater kingdom", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 10, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": 512, "preprocessor_resolution": 512 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run usamaehsan/controlnet-1.1-x-realistic-vision-v2.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "usamaehsan/controlnet-1.1-x-realistic-vision-v2.0:542a2f6729906f610b5a0656b4061b6f792f3044f1b86eca7ce7dee3258f025b", { input: { image: "https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg", scale: 5.76, prompt: "underwater kingdom", a_prompt: "Best quality, extremely detailed", n_prompt: "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", strength: 0.5, structure: "lineart", ddim_steps: 10, num_samples: "1", preprocessor: "Lineart", image_resolution: 512, preprocessor_resolution: 512 } } ); // 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-1.1-x-realistic-vision-v2.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "usamaehsan/controlnet-1.1-x-realistic-vision-v2.0:542a2f6729906f610b5a0656b4061b6f792f3044f1b86eca7ce7dee3258f025b", input={ "image": "https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg", "scale": 5.76, "prompt": "underwater kingdom", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 10, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": 512, "preprocessor_resolution": 512 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run usamaehsan/controlnet-1.1-x-realistic-vision-v2.0 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-1.1-x-realistic-vision-v2.0:542a2f6729906f610b5a0656b4061b6f792f3044f1b86eca7ce7dee3258f025b", "input": { "image": "https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg", "scale": 5.76, "prompt": "underwater kingdom", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 10, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": 512, "preprocessor_resolution": 512 } }' \ 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-1.1-x-realistic-vision-v2.0@sha256:542a2f6729906f610b5a0656b4061b6f792f3044f1b86eca7ce7dee3258f025b \ -i 'image="https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg"' \ -i 'scale=5.76' \ -i 'prompt="underwater kingdom"' \ -i 'a_prompt="Best quality, extremely detailed"' \ -i 'n_prompt="Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality"' \ -i 'strength=0.5' \ -i 'structure="lineart"' \ -i 'ddim_steps=10' \ -i 'num_samples="1"' \ -i 'preprocessor="Lineart"' \ -i 'image_resolution=512' \ -i 'preprocessor_resolution=512'
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-1.1-x-realistic-vision-v2.0@sha256:542a2f6729906f610b5a0656b4061b6f792f3044f1b86eca7ce7dee3258f025b
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg", "scale": 5.76, "prompt": "underwater kingdom", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 10, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": 512, "preprocessor_resolution": 512 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-05-31T12:52:23.964781Z", "created_at": "2023-05-31T12:50:12.491286Z", "data_removed": false, "error": null, "id": "rp4lvtjervesfhepem3jinav7y", "input": { "image": "https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg", "scale": 5.76, "prompt": "underwater kingdom", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 10, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": 512, "preprocessor_resolution": 512 }, "logs": "Global seed set to 422866\nData shape for DDIM sampling is (1, 4, 64, 56), eta 0.0\nRunning DDIM Sampling with 10 timesteps\nDDIM Sampler: 0%| | 0/10 [00:00<?, ?it/s]\nDDIM Sampler: 10%|█ | 1/10 [00:00<00:01, 5.66it/s]\nDDIM Sampler: 20%|██ | 2/10 [00:00<00:01, 6.12it/s]\nDDIM Sampler: 30%|███ | 3/10 [00:00<00:01, 6.28it/s]\nDDIM Sampler: 40%|████ | 4/10 [00:00<00:00, 6.47it/s]\nDDIM Sampler: 50%|█████ | 5/10 [00:00<00:00, 6.57it/s]\nDDIM Sampler: 60%|██████ | 6/10 [00:00<00:00, 6.62it/s]\nDDIM Sampler: 70%|███████ | 7/10 [00:01<00:00, 6.63it/s]\nDDIM Sampler: 80%|████████ | 8/10 [00:01<00:00, 6.51it/s]\nDDIM Sampler: 90%|█████████ | 9/10 [00:01<00:00, 6.56it/s]\nDDIM Sampler: 100%|██████████| 10/10 [00:01<00:00, 6.72it/s]\nDDIM Sampler: 100%|██████████| 10/10 [00:01<00:00, 6.54it/s]", "metrics": { "predict_time": 4.951756, "total_time": 131.473495 }, "output": [ "https://replicate.delivery/pbxt/lCumeg6SHftNvkNhoPi5YnTKfuziMUHWi3YZawPpE6IPoeEEB/output_0.png", "https://replicate.delivery/pbxt/TksbCGtukwZ7BF4rAEe88PSTz3YGxHStKuN8fouoHU6HUPBRA/output_1.png" ], "started_at": "2023-05-31T12:52:19.013025Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/rp4lvtjervesfhepem3jinav7y", "cancel": "https://api.replicate.com/v1/predictions/rp4lvtjervesfhepem3jinav7y/cancel" }, "version": "542a2f6729906f610b5a0656b4061b6f792f3044f1b86eca7ce7dee3258f025b" }
Generated inGlobal seed set to 422866 Data shape for DDIM sampling is (1, 4, 64, 56), eta 0.0 Running DDIM Sampling with 10 timesteps DDIM Sampler: 0%| | 0/10 [00:00<?, ?it/s] DDIM Sampler: 10%|█ | 1/10 [00:00<00:01, 5.66it/s] DDIM Sampler: 20%|██ | 2/10 [00:00<00:01, 6.12it/s] DDIM Sampler: 30%|███ | 3/10 [00:00<00:01, 6.28it/s] DDIM Sampler: 40%|████ | 4/10 [00:00<00:00, 6.47it/s] DDIM Sampler: 50%|█████ | 5/10 [00:00<00:00, 6.57it/s] DDIM Sampler: 60%|██████ | 6/10 [00:00<00:00, 6.62it/s] DDIM Sampler: 70%|███████ | 7/10 [00:01<00:00, 6.63it/s] DDIM Sampler: 80%|████████ | 8/10 [00:01<00:00, 6.51it/s] DDIM Sampler: 90%|█████████ | 9/10 [00:01<00:00, 6.56it/s] DDIM Sampler: 100%|██████████| 10/10 [00:01<00:00, 6.72it/s] DDIM Sampler: 100%|██████████| 10/10 [00:01<00:00, 6.54it/s]
Prediction
usamaehsan/controlnet-1.1-x-realistic-vision-v2.0:7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69Input
- scale
- 5.76
- prompt
- underwater room
- a_prompt
- Best quality, extremely detailed
- n_prompt
- Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality
- strength
- 0.5
- structure
- lineart
- ddim_steps
- 20
- num_samples
- 1
- preprocessor
- Lineart
- image_resolution
- 512
- preprocessor_resolution
- 512
{ "image": "https://replicate.delivery/pbxt/IrAKyJh7d56Kgn0VDusM3BT5ZNOpWjKXwIHl8PB1CGD6gTnd/65b60fbebae5db9ea4b586d9b2d155ac.jpg", "scale": 5.76, "prompt": "underwater room", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 20, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": "512", "preprocessor_resolution": 512 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run usamaehsan/controlnet-1.1-x-realistic-vision-v2.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "usamaehsan/controlnet-1.1-x-realistic-vision-v2.0:7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69", { input: { image: "https://replicate.delivery/pbxt/IrAKyJh7d56Kgn0VDusM3BT5ZNOpWjKXwIHl8PB1CGD6gTnd/65b60fbebae5db9ea4b586d9b2d155ac.jpg", scale: 5.76, prompt: "underwater room", a_prompt: "Best quality, extremely detailed", n_prompt: "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", strength: 0.5, structure: "lineart", ddim_steps: 20, num_samples: "1", preprocessor: "Lineart", image_resolution: "512", preprocessor_resolution: 512 } } ); // 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-1.1-x-realistic-vision-v2.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "usamaehsan/controlnet-1.1-x-realistic-vision-v2.0:7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69", input={ "image": "https://replicate.delivery/pbxt/IrAKyJh7d56Kgn0VDusM3BT5ZNOpWjKXwIHl8PB1CGD6gTnd/65b60fbebae5db9ea4b586d9b2d155ac.jpg", "scale": 5.76, "prompt": "underwater room", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 20, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": "512", "preprocessor_resolution": 512 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run usamaehsan/controlnet-1.1-x-realistic-vision-v2.0 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-1.1-x-realistic-vision-v2.0:7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69", "input": { "image": "https://replicate.delivery/pbxt/IrAKyJh7d56Kgn0VDusM3BT5ZNOpWjKXwIHl8PB1CGD6gTnd/65b60fbebae5db9ea4b586d9b2d155ac.jpg", "scale": 5.76, "prompt": "underwater room", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 20, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": "512", "preprocessor_resolution": 512 } }' \ 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-1.1-x-realistic-vision-v2.0@sha256:7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69 \ -i 'image="https://replicate.delivery/pbxt/IrAKyJh7d56Kgn0VDusM3BT5ZNOpWjKXwIHl8PB1CGD6gTnd/65b60fbebae5db9ea4b586d9b2d155ac.jpg"' \ -i 'scale=5.76' \ -i 'prompt="underwater room"' \ -i 'a_prompt="Best quality, extremely detailed"' \ -i 'n_prompt="Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality"' \ -i 'strength=0.5' \ -i 'structure="lineart"' \ -i 'ddim_steps=20' \ -i 'num_samples="1"' \ -i 'preprocessor="Lineart"' \ -i 'image_resolution="512"' \ -i 'preprocessor_resolution=512'
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-1.1-x-realistic-vision-v2.0@sha256:7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/IrAKyJh7d56Kgn0VDusM3BT5ZNOpWjKXwIHl8PB1CGD6gTnd/65b60fbebae5db9ea4b586d9b2d155ac.jpg", "scale": 5.76, "prompt": "underwater room", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 20, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": "512", "preprocessor_resolution": 512 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-05-20T13:02:18.969247Z", "created_at": "2023-05-20T12:52:28.830209Z", "data_removed": false, "error": null, "id": "whgulqsfu5fojooawaoskdqj44", "input": { "image": "https://replicate.delivery/pbxt/IrAKyJh7d56Kgn0VDusM3BT5ZNOpWjKXwIHl8PB1CGD6gTnd/65b60fbebae5db9ea4b586d9b2d155ac.jpg", "scale": 5.76, "prompt": "underwater room", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 20, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": "512", "preprocessor_resolution": 512 }, "logs": "Global seed set to 731025\nData shape for DDIM sampling is (1, 4, 64, 80), eta 0.0\nRunning DDIM Sampling with 20 timesteps\nDDIM Sampler: 0%| | 0/20 [00:00<?, ?it/s]\nDDIM Sampler: 5%|▌ | 1/20 [00:01<00:20, 1.06s/it]\nDDIM Sampler: 10%|█ | 2/20 [00:02<00:18, 1.02s/it]\nDDIM Sampler: 15%|█▌ | 3/20 [00:03<00:17, 1.01s/it]\nDDIM Sampler: 20%|██ | 4/20 [00:04<00:16, 1.01s/it]\nDDIM Sampler: 25%|██▌ | 5/20 [00:05<00:15, 1.01s/it]\nDDIM Sampler: 30%|███ | 6/20 [00:06<00:14, 1.00s/it]\nDDIM Sampler: 35%|███▌ | 7/20 [00:07<00:13, 1.01s/it]\nDDIM Sampler: 40%|████ | 8/20 [00:08<00:12, 1.01s/it]\nDDIM Sampler: 45%|████▌ | 9/20 [00:09<00:11, 1.01s/it]\nDDIM Sampler: 50%|█████ | 10/20 [00:10<00:10, 1.01s/it]\nDDIM Sampler: 55%|█████▌ | 11/20 [00:11<00:09, 1.01s/it]\nDDIM Sampler: 60%|██████ | 12/20 [00:12<00:08, 1.01s/it]\nDDIM Sampler: 65%|██████▌ | 13/20 [00:13<00:07, 1.02s/it]\nDDIM Sampler: 70%|███████ | 14/20 [00:14<00:06, 1.02s/it]\nDDIM Sampler: 75%|███████▌ | 15/20 [00:15<00:05, 1.02s/it]\nDDIM Sampler: 80%|████████ | 16/20 [00:16<00:04, 1.01s/it]\nDDIM Sampler: 85%|████████▌ | 17/20 [00:17<00:03, 1.02s/it]\nDDIM Sampler: 90%|█████████ | 18/20 [00:18<00:02, 1.02s/it]\nDDIM Sampler: 95%|█████████▌| 19/20 [00:19<00:01, 1.02s/it]\nDDIM Sampler: 100%|██████████| 20/20 [00:20<00:00, 1.02s/it]\nDDIM Sampler: 100%|██████████| 20/20 [00:20<00:00, 1.02s/it]", "metrics": { "predict_time": 32.90709, "total_time": 590.139038 }, "output": [ "https://replicate.delivery/pbxt/LeOVrRM0rm24BC7LZocOOYsF70YL8Hc7vW1HCtYKAw0stzeQA/output_0.png", "https://replicate.delivery/pbxt/LMr0UAn55UI6MRdgdwRqxehpV7f3XQsIe66EwDN6jHS12O7hA/output_1.png" ], "started_at": "2023-05-20T13:01:46.062157Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/whgulqsfu5fojooawaoskdqj44", "cancel": "https://api.replicate.com/v1/predictions/whgulqsfu5fojooawaoskdqj44/cancel" }, "version": "7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69" }
Generated inGlobal seed set to 731025 Data shape for DDIM sampling is (1, 4, 64, 80), eta 0.0 Running DDIM Sampling with 20 timesteps DDIM Sampler: 0%| | 0/20 [00:00<?, ?it/s] DDIM Sampler: 5%|▌ | 1/20 [00:01<00:20, 1.06s/it] DDIM Sampler: 10%|█ | 2/20 [00:02<00:18, 1.02s/it] DDIM Sampler: 15%|█▌ | 3/20 [00:03<00:17, 1.01s/it] DDIM Sampler: 20%|██ | 4/20 [00:04<00:16, 1.01s/it] DDIM Sampler: 25%|██▌ | 5/20 [00:05<00:15, 1.01s/it] DDIM Sampler: 30%|███ | 6/20 [00:06<00:14, 1.00s/it] DDIM Sampler: 35%|███▌ | 7/20 [00:07<00:13, 1.01s/it] DDIM Sampler: 40%|████ | 8/20 [00:08<00:12, 1.01s/it] DDIM Sampler: 45%|████▌ | 9/20 [00:09<00:11, 1.01s/it] DDIM Sampler: 50%|█████ | 10/20 [00:10<00:10, 1.01s/it] DDIM Sampler: 55%|█████▌ | 11/20 [00:11<00:09, 1.01s/it] DDIM Sampler: 60%|██████ | 12/20 [00:12<00:08, 1.01s/it] DDIM Sampler: 65%|██████▌ | 13/20 [00:13<00:07, 1.02s/it] DDIM Sampler: 70%|███████ | 14/20 [00:14<00:06, 1.02s/it] DDIM Sampler: 75%|███████▌ | 15/20 [00:15<00:05, 1.02s/it] DDIM Sampler: 80%|████████ | 16/20 [00:16<00:04, 1.01s/it] DDIM Sampler: 85%|████████▌ | 17/20 [00:17<00:03, 1.02s/it] DDIM Sampler: 90%|█████████ | 18/20 [00:18<00:02, 1.02s/it] DDIM Sampler: 95%|█████████▌| 19/20 [00:19<00:01, 1.02s/it] DDIM Sampler: 100%|██████████| 20/20 [00:20<00:00, 1.02s/it] DDIM Sampler: 100%|██████████| 20/20 [00:20<00:00, 1.02s/it]
Prediction
usamaehsan/controlnet-1.1-x-realistic-vision-v2.0:7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69Input
- scale
- 5.76
- prompt
- underwater kingdom
- a_prompt
- Best quality, extremely detailed
- n_prompt
- Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality
- strength
- 0.5
- structure
- lineart
- ddim_steps
- 10
- num_samples
- 1
- preprocessor
- Lineart
- image_resolution
- 512
- preprocessor_resolution
- 512
{ "image": "https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg", "scale": 5.76, "prompt": "underwater kingdom", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 10, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": "512", "preprocessor_resolution": 512 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run usamaehsan/controlnet-1.1-x-realistic-vision-v2.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "usamaehsan/controlnet-1.1-x-realistic-vision-v2.0:7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69", { input: { image: "https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg", scale: 5.76, prompt: "underwater kingdom", a_prompt: "Best quality, extremely detailed", n_prompt: "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", strength: 0.5, structure: "lineart", ddim_steps: 10, num_samples: "1", preprocessor: "Lineart", image_resolution: "512", preprocessor_resolution: 512 } } ); // 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-1.1-x-realistic-vision-v2.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "usamaehsan/controlnet-1.1-x-realistic-vision-v2.0:7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69", input={ "image": "https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg", "scale": 5.76, "prompt": "underwater kingdom", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 10, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": "512", "preprocessor_resolution": 512 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run usamaehsan/controlnet-1.1-x-realistic-vision-v2.0 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-1.1-x-realistic-vision-v2.0:7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69", "input": { "image": "https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg", "scale": 5.76, "prompt": "underwater kingdom", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 10, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": "512", "preprocessor_resolution": 512 } }' \ 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-1.1-x-realistic-vision-v2.0@sha256:7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69 \ -i 'image="https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg"' \ -i 'scale=5.76' \ -i 'prompt="underwater kingdom"' \ -i 'a_prompt="Best quality, extremely detailed"' \ -i 'n_prompt="Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality"' \ -i 'strength=0.5' \ -i 'structure="lineart"' \ -i 'ddim_steps=10' \ -i 'num_samples="1"' \ -i 'preprocessor="Lineart"' \ -i 'image_resolution="512"' \ -i 'preprocessor_resolution=512'
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-1.1-x-realistic-vision-v2.0@sha256:7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg", "scale": 5.76, "prompt": "underwater kingdom", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 10, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": "512", "preprocessor_resolution": 512 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-05-20T13:11:55.105458Z", "created_at": "2023-05-20T13:11:42.792484Z", "data_removed": false, "error": null, "id": "2qj3efd67vcipkpce5lbfm5z3e", "input": { "image": "https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg", "scale": 5.76, "prompt": "underwater kingdom", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 10, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": "512", "preprocessor_resolution": 512 }, "logs": "Global seed set to 681078\nData shape for DDIM sampling is (1, 4, 72, 64), eta 0.0\nRunning DDIM Sampling with 10 timesteps\nDDIM Sampler: 0%| | 0/10 [00:00<?, ?it/s]\nDDIM Sampler: 10%|█ | 1/10 [00:00<00:08, 1.09it/s]\nDDIM Sampler: 20%|██ | 2/10 [00:01<00:07, 1.09it/s]\nDDIM Sampler: 30%|███ | 3/10 [00:02<00:06, 1.09it/s]\nDDIM Sampler: 40%|████ | 4/10 [00:03<00:05, 1.10it/s]\nDDIM Sampler: 50%|█████ | 5/10 [00:04<00:04, 1.10it/s]\nDDIM Sampler: 60%|██████ | 6/10 [00:05<00:03, 1.10it/s]\nDDIM Sampler: 70%|███████ | 7/10 [00:06<00:02, 1.10it/s]\nDDIM Sampler: 80%|████████ | 8/10 [00:07<00:01, 1.09it/s]\nDDIM Sampler: 90%|█████████ | 9/10 [00:08<00:00, 1.09it/s]\nDDIM Sampler: 100%|██████████| 10/10 [00:09<00:00, 1.09it/s]\nDDIM Sampler: 100%|██████████| 10/10 [00:09<00:00, 1.09it/s]", "metrics": { "predict_time": 12.080196, "total_time": 12.312974 }, "output": [ "https://replicate.delivery/pbxt/mf7mafFMeOGFIp4ifrJtlvLQxF2lWIAsdoqJ5V8FmlkmResHC/output_0.png", "https://replicate.delivery/pbxt/JYSLsrezQORsXSe0wAmrjS65163VpcfY5yY8XIzPNwu0IP7hA/output_1.png" ], "started_at": "2023-05-20T13:11:43.025262Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/2qj3efd67vcipkpce5lbfm5z3e", "cancel": "https://api.replicate.com/v1/predictions/2qj3efd67vcipkpce5lbfm5z3e/cancel" }, "version": "7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69" }
Generated inGlobal seed set to 681078 Data shape for DDIM sampling is (1, 4, 72, 64), eta 0.0 Running DDIM Sampling with 10 timesteps DDIM Sampler: 0%| | 0/10 [00:00<?, ?it/s] DDIM Sampler: 10%|█ | 1/10 [00:00<00:08, 1.09it/s] DDIM Sampler: 20%|██ | 2/10 [00:01<00:07, 1.09it/s] DDIM Sampler: 30%|███ | 3/10 [00:02<00:06, 1.09it/s] DDIM Sampler: 40%|████ | 4/10 [00:03<00:05, 1.10it/s] DDIM Sampler: 50%|█████ | 5/10 [00:04<00:04, 1.10it/s] DDIM Sampler: 60%|██████ | 6/10 [00:05<00:03, 1.10it/s] DDIM Sampler: 70%|███████ | 7/10 [00:06<00:02, 1.10it/s] DDIM Sampler: 80%|████████ | 8/10 [00:07<00:01, 1.09it/s] DDIM Sampler: 90%|█████████ | 9/10 [00:08<00:00, 1.09it/s] DDIM Sampler: 100%|██████████| 10/10 [00:09<00:00, 1.09it/s] DDIM Sampler: 100%|██████████| 10/10 [00:09<00:00, 1.09it/s]
Prediction
usamaehsan/controlnet-1.1-x-realistic-vision-v2.0:7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69IDcsdputeejzhjlewkn66avojfn4StatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedInput
- scale
- 5.76
- prompt
- Alien in ancient egypt
- a_prompt
- Best quality, extremely detailed
- n_prompt
- Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality
- strength
- 0.5
- structure
- lineart
- ddim_steps
- 10
- num_samples
- 1
- preprocessor
- Lineart
- image_resolution
- 512
- preprocessor_resolution
- 512
{ "image": "https://replicate.delivery/pbxt/IrAj0VHPeL5auOq1U2mFWtqe8Ot1JSv00QDnFSOGvlUg9hr5/20230520_110328.jpg", "scale": 5.76, "prompt": "Alien in ancient egypt", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 10, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": "512", "preprocessor_resolution": 512 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run usamaehsan/controlnet-1.1-x-realistic-vision-v2.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "usamaehsan/controlnet-1.1-x-realistic-vision-v2.0:7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69", { input: { image: "https://replicate.delivery/pbxt/IrAj0VHPeL5auOq1U2mFWtqe8Ot1JSv00QDnFSOGvlUg9hr5/20230520_110328.jpg", scale: 5.76, prompt: "Alien in ancient egypt", a_prompt: "Best quality, extremely detailed", n_prompt: "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", strength: 0.5, structure: "lineart", ddim_steps: 10, num_samples: "1", preprocessor: "Lineart", image_resolution: "512", preprocessor_resolution: 512 } } ); // 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-1.1-x-realistic-vision-v2.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "usamaehsan/controlnet-1.1-x-realistic-vision-v2.0:7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69", input={ "image": "https://replicate.delivery/pbxt/IrAj0VHPeL5auOq1U2mFWtqe8Ot1JSv00QDnFSOGvlUg9hr5/20230520_110328.jpg", "scale": 5.76, "prompt": "Alien in ancient egypt", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 10, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": "512", "preprocessor_resolution": 512 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run usamaehsan/controlnet-1.1-x-realistic-vision-v2.0 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-1.1-x-realistic-vision-v2.0:7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69", "input": { "image": "https://replicate.delivery/pbxt/IrAj0VHPeL5auOq1U2mFWtqe8Ot1JSv00QDnFSOGvlUg9hr5/20230520_110328.jpg", "scale": 5.76, "prompt": "Alien in ancient egypt", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 10, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": "512", "preprocessor_resolution": 512 } }' \ 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-1.1-x-realistic-vision-v2.0@sha256:7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69 \ -i 'image="https://replicate.delivery/pbxt/IrAj0VHPeL5auOq1U2mFWtqe8Ot1JSv00QDnFSOGvlUg9hr5/20230520_110328.jpg"' \ -i 'scale=5.76' \ -i 'prompt="Alien in ancient egypt"' \ -i 'a_prompt="Best quality, extremely detailed"' \ -i 'n_prompt="Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality"' \ -i 'strength=0.5' \ -i 'structure="lineart"' \ -i 'ddim_steps=10' \ -i 'num_samples="1"' \ -i 'preprocessor="Lineart"' \ -i 'image_resolution="512"' \ -i 'preprocessor_resolution=512'
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-1.1-x-realistic-vision-v2.0@sha256:7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/IrAj0VHPeL5auOq1U2mFWtqe8Ot1JSv00QDnFSOGvlUg9hr5/20230520_110328.jpg", "scale": 5.76, "prompt": "Alien in ancient egypt", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 10, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": "512", "preprocessor_resolution": 512 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-05-20T13:20:46.960113Z", "created_at": "2023-05-20T13:17:50.771490Z", "data_removed": false, "error": null, "id": "csdputeejzhjlewkn66avojfn4", "input": { "image": "https://replicate.delivery/pbxt/IrAj0VHPeL5auOq1U2mFWtqe8Ot1JSv00QDnFSOGvlUg9hr5/20230520_110328.jpg", "scale": 5.76, "prompt": "Alien in ancient egypt", "a_prompt": "Best quality, extremely detailed", "n_prompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality", "strength": 0.5, "structure": "lineart", "ddim_steps": 10, "num_samples": "1", "preprocessor": "Lineart", "image_resolution": "512", "preprocessor_resolution": 512 }, "logs": "Global seed set to 294930\nData shape for DDIM sampling is (1, 4, 64, 96), eta 0.0\nRunning DDIM Sampling with 10 timesteps\nDDIM Sampler: 0%| | 0/10 [00:00<?, ?it/s]\nDDIM Sampler: 10%|█ | 1/10 [00:00<00:02, 3.38it/s]\nDDIM Sampler: 20%|██ | 2/10 [00:00<00:02, 3.59it/s]\nDDIM Sampler: 30%|███ | 3/10 [00:00<00:01, 3.66it/s]\nDDIM Sampler: 40%|████ | 4/10 [00:01<00:01, 3.69it/s]\nDDIM Sampler: 50%|█████ | 5/10 [00:01<00:01, 3.71it/s]\nDDIM Sampler: 60%|██████ | 6/10 [00:01<00:01, 3.72it/s]\nDDIM Sampler: 70%|███████ | 7/10 [00:01<00:00, 3.73it/s]\nDDIM Sampler: 80%|████████ | 8/10 [00:02<00:00, 3.74it/s]\nDDIM Sampler: 90%|█████████ | 9/10 [00:02<00:00, 3.74it/s]\nDDIM Sampler: 100%|██████████| 10/10 [00:02<00:00, 3.74it/s]\nDDIM Sampler: 100%|██████████| 10/10 [00:02<00:00, 3.71it/s]", "metrics": { "predict_time": 6.316495, "total_time": 176.188623 }, "output": [ "https://replicate.delivery/pbxt/Muq1MyFIQe1eaUwBLPUYlOT5qdua4cN7Bav2j02tKmatsn9QA/output_0.png", "https://replicate.delivery/pbxt/sbkup0xqGOIvMhiXeG2gyYmO6lDkFzfMuQKL6uYQK2yusn9QA/output_1.png" ], "started_at": "2023-05-20T13:20:40.643618Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/csdputeejzhjlewkn66avojfn4", "cancel": "https://api.replicate.com/v1/predictions/csdputeejzhjlewkn66avojfn4/cancel" }, "version": "7fbf4c86671738f97896c9cb4922705adfcdcf54a6edab193bb8c176c6b34a69" }
Generated inGlobal seed set to 294930 Data shape for DDIM sampling is (1, 4, 64, 96), eta 0.0 Running DDIM Sampling with 10 timesteps DDIM Sampler: 0%| | 0/10 [00:00<?, ?it/s] DDIM Sampler: 10%|█ | 1/10 [00:00<00:02, 3.38it/s] DDIM Sampler: 20%|██ | 2/10 [00:00<00:02, 3.59it/s] DDIM Sampler: 30%|███ | 3/10 [00:00<00:01, 3.66it/s] DDIM Sampler: 40%|████ | 4/10 [00:01<00:01, 3.69it/s] DDIM Sampler: 50%|█████ | 5/10 [00:01<00:01, 3.71it/s] DDIM Sampler: 60%|██████ | 6/10 [00:01<00:01, 3.72it/s] DDIM Sampler: 70%|███████ | 7/10 [00:01<00:00, 3.73it/s] DDIM Sampler: 80%|████████ | 8/10 [00:02<00:00, 3.74it/s] DDIM Sampler: 90%|█████████ | 9/10 [00:02<00:00, 3.74it/s] DDIM Sampler: 100%|██████████| 10/10 [00:02<00:00, 3.74it/s] DDIM Sampler: 100%|██████████| 10/10 [00:02<00:00, 3.71it/s]
Prediction
usamaehsan/controlnet-1.1-x-realistic-vision-v2.0:51778c7522eb99added82c0c52873d7a391eecf5fcc3ac7856613b7e6443f2f7IDdlchqxzbibw6nw33so747wwzkuStatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedInput
- steps
- 20
- prompt
- underwater kingdom
- strength
- 0.5
- max_width
- 612
- max_height
- 612
- guidance_scale
- 10
- 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
{ "image": "https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg", "steps": 20, "prompt": "underwater kingdom", "strength": 0.5, "max_width": 612, "max_height": 612, "guidance_scale": 10, "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" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run usamaehsan/controlnet-1.1-x-realistic-vision-v2.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "usamaehsan/controlnet-1.1-x-realistic-vision-v2.0:51778c7522eb99added82c0c52873d7a391eecf5fcc3ac7856613b7e6443f2f7", { input: { image: "https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg", steps: 20, prompt: "underwater kingdom", strength: 0.5, max_width: 612, max_height: 612, guidance_scale: 10, 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" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run usamaehsan/controlnet-1.1-x-realistic-vision-v2.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "usamaehsan/controlnet-1.1-x-realistic-vision-v2.0:51778c7522eb99added82c0c52873d7a391eecf5fcc3ac7856613b7e6443f2f7", input={ "image": "https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg", "steps": 20, "prompt": "underwater kingdom", "strength": 0.5, "max_width": 612, "max_height": 612, "guidance_scale": 10, "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" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run usamaehsan/controlnet-1.1-x-realistic-vision-v2.0 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-1.1-x-realistic-vision-v2.0:51778c7522eb99added82c0c52873d7a391eecf5fcc3ac7856613b7e6443f2f7", "input": { "image": "https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg", "steps": 20, "prompt": "underwater kingdom", "strength": 0.5, "max_width": 612, "max_height": 612, "guidance_scale": 10, "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" } }' \ 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-1.1-x-realistic-vision-v2.0@sha256:51778c7522eb99added82c0c52873d7a391eecf5fcc3ac7856613b7e6443f2f7 \ -i 'image="https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg"' \ -i 'steps=20' \ -i 'prompt="underwater kingdom"' \ -i 'strength=0.5' \ -i 'max_width=612' \ -i 'max_height=612' \ -i 'guidance_scale=10' \ -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"'
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-1.1-x-realistic-vision-v2.0@sha256:51778c7522eb99added82c0c52873d7a391eecf5fcc3ac7856613b7e6443f2f7
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg", "steps": 20, "prompt": "underwater kingdom", "strength": 0.5, "max_width": 612, "max_height": 612, "guidance_scale": 10, "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" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-10-24T08:53:06.528271Z", "created_at": "2023-10-24T08:51:45.382870Z", "data_removed": false, "error": null, "id": "dlchqxzbibw6nw33so747wwzku", "input": { "image": "https://replicate.delivery/pbxt/IrAdCMSMtw7yHM5RJNl2SQWPfpQIZx5Yog2fV29wB7xpEbyO/ceb71f061de43744a245456771d6f95d.jpg", "steps": 20, "prompt": "underwater kingdom", "strength": 0.5, "max_width": 612, "max_height": 612, "guidance_scale": 10, "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" }, "logs": "Using seed: 49687\n 0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:01<00:19, 1.03s/it]\n 15%|█▌ | 3/20 [00:01<00:05, 2.98it/s]\n 25%|██▌ | 5/20 [00:01<00:03, 4.76it/s]\n 35%|███▌ | 7/20 [00:01<00:02, 6.26it/s]\n 45%|████▌ | 9/20 [00:01<00:01, 7.54it/s]\n 55%|█████▌ | 11/20 [00:01<00:01, 8.55it/s]\n 65%|██████▌ | 13/20 [00:02<00:00, 9.31it/s]\n 75%|███████▌ | 15/20 [00:02<00:00, 9.87it/s]\n 85%|████████▌ | 17/20 [00:02<00:00, 10.25it/s]\n 95%|█████████▌| 19/20 [00:02<00:00, 10.57it/s]\n100%|██████████| 20/20 [00:02<00:00, 7.33it/s]", "metrics": { "predict_time": 8.029335, "total_time": 81.145401 }, "output": "https://replicate.delivery/pbxt/6SH5eZLRSZ3wXaq2mfQ6eNqen8Gc9dURnpfqym1Z14fa83UcE/output.png", "started_at": "2023-10-24T08:52:58.498936Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/dlchqxzbibw6nw33so747wwzku", "cancel": "https://api.replicate.com/v1/predictions/dlchqxzbibw6nw33so747wwzku/cancel" }, "version": "51778c7522eb99added82c0c52873d7a391eecf5fcc3ac7856613b7e6443f2f7" }
Generated inUsing seed: 49687 0%| | 0/20 [00:00<?, ?it/s] 5%|▌ | 1/20 [00:01<00:19, 1.03s/it] 15%|█▌ | 3/20 [00:01<00:05, 2.98it/s] 25%|██▌ | 5/20 [00:01<00:03, 4.76it/s] 35%|███▌ | 7/20 [00:01<00:02, 6.26it/s] 45%|████▌ | 9/20 [00:01<00:01, 7.54it/s] 55%|█████▌ | 11/20 [00:01<00:01, 8.55it/s] 65%|██████▌ | 13/20 [00:02<00:00, 9.31it/s] 75%|███████▌ | 15/20 [00:02<00:00, 9.87it/s] 85%|████████▌ | 17/20 [00:02<00:00, 10.25it/s] 95%|█████████▌| 19/20 [00:02<00:00, 10.57it/s] 100%|██████████| 20/20 [00:02<00:00, 7.33it/s]
Want to make some of these yourself?
Run this model