mcai / realistic-vision-v2.0
Generate a new image given any input text with Realistic Vision V2.0
- Public
- 531.2K runs
-
A100 (80GB)
Prediction
mcai/realistic-vision-v2.0:63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107IDgsk7rhhy4jabbnsmv2io2oq46uStatusSucceededSourceWebHardware–Total durationCreatedInput
- width
- 512
- height
- 768
- prompt
- analog style, modelshoot style, portrait of sks woman by Flora Borsi, style by Flora Borsi, bold, bright colours, orange Mohawk haircut, ((Flora Borsi))
- scheduler
- EulerAncestralDiscrete
- num_outputs
- 1
- guidance_scale
- 7
- 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
- num_inference_steps
- 25
{ "width": 512, "height": 768, "prompt": "analog style, modelshoot style, portrait of sks woman by Flora Borsi, style by Flora Borsi, bold, bright colours, orange Mohawk haircut, ((Flora Borsi))", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7, "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", "num_inference_steps": 25 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run mcai/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( "mcai/realistic-vision-v2.0:63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107", { input: { width: 512, height: 768, prompt: "analog style, modelshoot style, portrait of sks woman by Flora Borsi, style by Flora Borsi, bold, bright colours, orange Mohawk haircut, ((Flora Borsi))", scheduler: "EulerAncestralDiscrete", num_outputs: 1, guidance_scale: 7, 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", num_inference_steps: 25 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run mcai/realistic-vision-v2.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mcai/realistic-vision-v2.0:63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107", input={ "width": 512, "height": 768, "prompt": "analog style, modelshoot style, portrait of sks woman by Flora Borsi, style by Flora Borsi, bold, bright colours, orange Mohawk haircut, ((Flora Borsi))", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7, "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", "num_inference_steps": 25 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run mcai/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": "mcai/realistic-vision-v2.0:63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107", "input": { "width": 512, "height": 768, "prompt": "analog style, modelshoot style, portrait of sks woman by Flora Borsi, style by Flora Borsi, bold, bright colours, orange Mohawk haircut, ((Flora Borsi))", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7, "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", "num_inference_steps": 25 } }' \ 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/mcai/realistic-vision-v2.0@sha256:63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107 \ -i 'width=512' \ -i 'height=768' \ -i 'prompt="analog style, modelshoot style, portrait of sks woman by Flora Borsi, style by Flora Borsi, bold, bright colours, orange Mohawk haircut, ((Flora Borsi))"' \ -i 'scheduler="EulerAncestralDiscrete"' \ -i 'num_outputs=1' \ -i 'guidance_scale=7' \ -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 'num_inference_steps=25'
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/mcai/realistic-vision-v2.0@sha256:63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 512, "height": 768, "prompt": "analog style, modelshoot style, portrait of sks woman by Flora Borsi, style by Flora Borsi, bold, bright colours, orange Mohawk haircut, ((Flora Borsi))", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7, "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", "num_inference_steps": 25 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-05-10T19:08:49.189302Z", "created_at": "2023-05-10T19:08:41.418861Z", "data_removed": false, "error": null, "id": "gsk7rhhy4jabbnsmv2io2oq46u", "input": { "width": 512, "height": 768, "prompt": "analog style, modelshoot style, portrait of sks woman by Flora Borsi, style by Flora Borsi, bold, bright colours, orange Mohawk haircut, ((Flora Borsi))", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7, "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", "num_inference_steps": 25 }, "logs": "Using seed: 29433\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:07, 3.15it/s]\n 8%|▊ | 2/25 [00:00<00:06, 3.61it/s]\n 12%|█▏ | 3/25 [00:00<00:05, 3.82it/s]\n 16%|█▌ | 4/25 [00:01<00:05, 3.93it/s]\n 20%|██ | 5/25 [00:01<00:05, 3.95it/s]\n 24%|██▍ | 6/25 [00:01<00:04, 3.98it/s]\n 28%|██▊ | 7/25 [00:01<00:04, 3.99it/s]\n 32%|███▏ | 8/25 [00:02<00:04, 3.99it/s]\n 36%|███▌ | 9/25 [00:02<00:03, 4.02it/s]\n 40%|████ | 10/25 [00:02<00:03, 4.03it/s]\n 44%|████▍ | 11/25 [00:02<00:03, 4.02it/s]\n 48%|████▊ | 12/25 [00:03<00:03, 4.02it/s]\n 52%|█████▏ | 13/25 [00:03<00:02, 4.03it/s]\n 56%|█████▌ | 14/25 [00:03<00:02, 4.04it/s]\n 60%|██████ | 15/25 [00:03<00:02, 4.01it/s]\n 64%|██████▍ | 16/25 [00:04<00:02, 4.03it/s]\n 68%|██████▊ | 17/25 [00:04<00:01, 4.04it/s]\n 72%|███████▏ | 18/25 [00:04<00:01, 4.05it/s]\n 76%|███████▌ | 19/25 [00:04<00:01, 4.02it/s]\n 80%|████████ | 20/25 [00:05<00:01, 4.01it/s]\n 84%|████████▍ | 21/25 [00:05<00:00, 4.03it/s]\n 88%|████████▊ | 22/25 [00:05<00:00, 4.04it/s]\n 92%|█████████▏| 23/25 [00:05<00:00, 4.01it/s]\n 96%|█████████▌| 24/25 [00:06<00:00, 4.02it/s]\n100%|██████████| 25/25 [00:06<00:00, 4.02it/s]\n100%|██████████| 25/25 [00:06<00:00, 3.99it/s]", "metrics": { "predict_time": 7.851158, "total_time": 7.770441 }, "output": [ "https://replicate.delivery/pbxt/gqILTmbRtj7QDVsulVZkDfnISyuFYZv8JTLe5xeXgOABuz0hA/out-0.png" ], "started_at": "2023-05-10T19:08:41.338144Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/gsk7rhhy4jabbnsmv2io2oq46u", "cancel": "https://api.replicate.com/v1/predictions/gsk7rhhy4jabbnsmv2io2oq46u/cancel" }, "version": "63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107" }
Generated inUsing seed: 29433 0%| | 0/25 [00:00<?, ?it/s] 4%|▍ | 1/25 [00:00<00:07, 3.15it/s] 8%|▊ | 2/25 [00:00<00:06, 3.61it/s] 12%|█▏ | 3/25 [00:00<00:05, 3.82it/s] 16%|█▌ | 4/25 [00:01<00:05, 3.93it/s] 20%|██ | 5/25 [00:01<00:05, 3.95it/s] 24%|██▍ | 6/25 [00:01<00:04, 3.98it/s] 28%|██▊ | 7/25 [00:01<00:04, 3.99it/s] 32%|███▏ | 8/25 [00:02<00:04, 3.99it/s] 36%|███▌ | 9/25 [00:02<00:03, 4.02it/s] 40%|████ | 10/25 [00:02<00:03, 4.03it/s] 44%|████▍ | 11/25 [00:02<00:03, 4.02it/s] 48%|████▊ | 12/25 [00:03<00:03, 4.02it/s] 52%|█████▏ | 13/25 [00:03<00:02, 4.03it/s] 56%|█████▌ | 14/25 [00:03<00:02, 4.04it/s] 60%|██████ | 15/25 [00:03<00:02, 4.01it/s] 64%|██████▍ | 16/25 [00:04<00:02, 4.03it/s] 68%|██████▊ | 17/25 [00:04<00:01, 4.04it/s] 72%|███████▏ | 18/25 [00:04<00:01, 4.05it/s] 76%|███████▌ | 19/25 [00:04<00:01, 4.02it/s] 80%|████████ | 20/25 [00:05<00:01, 4.01it/s] 84%|████████▍ | 21/25 [00:05<00:00, 4.03it/s] 88%|████████▊ | 22/25 [00:05<00:00, 4.04it/s] 92%|█████████▏| 23/25 [00:05<00:00, 4.01it/s] 96%|█████████▌| 24/25 [00:06<00:00, 4.02it/s] 100%|██████████| 25/25 [00:06<00:00, 4.02it/s] 100%|██████████| 25/25 [00:06<00:00, 3.99it/s]
Prediction
mcai/realistic-vision-v2.0:63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107IDlojrdurbdfb6jh3tff3hx6skzyStatusSucceededSourceWebHardware–Total durationCreatedInput
- width
- 512
- height
- 768
- prompt
- masterpiece, 8k, uhd, hdr, dslr, high quality, film grain, Fujifilm XT3, apocalyptic city, crumbling city, crumbling buildings, trash, litter, trending on artstation
- scheduler
- EulerAncestralDiscrete
- num_outputs
- 1
- guidance_scale
- 7
- 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
- num_inference_steps
- 25
{ "width": 512, "height": 768, "prompt": "masterpiece, 8k, uhd, hdr, dslr, high quality, film grain, Fujifilm XT3, apocalyptic city, crumbling city, crumbling buildings, trash, litter, trending on artstation", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7, "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", "num_inference_steps": 25 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run mcai/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( "mcai/realistic-vision-v2.0:63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107", { input: { width: 512, height: 768, prompt: "masterpiece, 8k, uhd, hdr, dslr, high quality, film grain, Fujifilm XT3, apocalyptic city, crumbling city, crumbling buildings, trash, litter, trending on artstation", scheduler: "EulerAncestralDiscrete", num_outputs: 1, guidance_scale: 7, 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", num_inference_steps: 25 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run mcai/realistic-vision-v2.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mcai/realistic-vision-v2.0:63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107", input={ "width": 512, "height": 768, "prompt": "masterpiece, 8k, uhd, hdr, dslr, high quality, film grain, Fujifilm XT3, apocalyptic city, crumbling city, crumbling buildings, trash, litter, trending on artstation", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7, "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", "num_inference_steps": 25 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run mcai/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": "mcai/realistic-vision-v2.0:63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107", "input": { "width": 512, "height": 768, "prompt": "masterpiece, 8k, uhd, hdr, dslr, high quality, film grain, Fujifilm XT3, apocalyptic city, crumbling city, crumbling buildings, trash, litter, trending on artstation", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7, "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", "num_inference_steps": 25 } }' \ 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/mcai/realistic-vision-v2.0@sha256:63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107 \ -i 'width=512' \ -i 'height=768' \ -i 'prompt="masterpiece, 8k, uhd, hdr, dslr, high quality, film grain, Fujifilm XT3, apocalyptic city, crumbling city, crumbling buildings, trash, litter, trending on artstation"' \ -i 'scheduler="EulerAncestralDiscrete"' \ -i 'num_outputs=1' \ -i 'guidance_scale=7' \ -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 'num_inference_steps=25'
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/mcai/realistic-vision-v2.0@sha256:63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 512, "height": 768, "prompt": "masterpiece, 8k, uhd, hdr, dslr, high quality, film grain, Fujifilm XT3, apocalyptic city, crumbling city, crumbling buildings, trash, litter, trending on artstation", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7, "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", "num_inference_steps": 25 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-05-10T19:11:02.680764Z", "created_at": "2023-05-10T19:10:55.299227Z", "data_removed": false, "error": null, "id": "lojrdurbdfb6jh3tff3hx6skzy", "input": { "width": 512, "height": 768, "prompt": "masterpiece, 8k, uhd, hdr, dslr, high quality, film grain, Fujifilm XT3, apocalyptic city, crumbling city, crumbling buildings, trash, litter, trending on artstation", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7, "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", "num_inference_steps": 25 }, "logs": "Using seed: 17420\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:07, 3.31it/s]\n 8%|▊ | 2/25 [00:00<00:06, 3.75it/s]\n 12%|█▏ | 3/25 [00:00<00:05, 3.92it/s]\n 16%|█▌ | 4/25 [00:01<00:05, 3.98it/s]\n 20%|██ | 5/25 [00:01<00:04, 4.01it/s]\n 24%|██▍ | 6/25 [00:01<00:04, 4.04it/s]\n 28%|██▊ | 7/25 [00:01<00:04, 4.05it/s]\n 32%|███▏ | 8/25 [00:02<00:04, 4.07it/s]\n 36%|███▌ | 9/25 [00:02<00:03, 4.08it/s]\n 40%|████ | 10/25 [00:02<00:03, 4.09it/s]\n 44%|████▍ | 11/25 [00:02<00:03, 4.07it/s]\n 48%|████▊ | 12/25 [00:02<00:03, 4.08it/s]\n 52%|█████▏ | 13/25 [00:03<00:02, 4.09it/s]\n 56%|█████▌ | 14/25 [00:03<00:02, 4.09it/s]\n 60%|██████ | 15/25 [00:03<00:02, 4.10it/s]\n 64%|██████▍ | 16/25 [00:03<00:02, 4.10it/s]\n 68%|██████▊ | 17/25 [00:04<00:01, 4.12it/s]\n 72%|███████▏ | 18/25 [00:04<00:01, 4.12it/s]\n 76%|███████▌ | 19/25 [00:04<00:01, 4.11it/s]\n 80%|████████ | 20/25 [00:04<00:01, 4.09it/s]\n 84%|████████▍ | 21/25 [00:05<00:00, 4.07it/s]\n 88%|████████▊ | 22/25 [00:05<00:00, 4.06it/s]\n 92%|█████████▏| 23/25 [00:05<00:00, 4.06it/s]\n 96%|█████████▌| 24/25 [00:05<00:00, 4.07it/s]\n100%|██████████| 25/25 [00:06<00:00, 4.08it/s]\n100%|██████████| 25/25 [00:06<00:00, 4.05it/s]", "metrics": { "predict_time": 7.401886, "total_time": 7.381537 }, "output": [ "https://replicate.delivery/pbxt/Tm1maxcKNlqVE9N1m29GIDVWnsmFNAnXlJA9ahe8ct6i8MdIA/out-0.png" ], "started_at": "2023-05-10T19:10:55.278878Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/lojrdurbdfb6jh3tff3hx6skzy", "cancel": "https://api.replicate.com/v1/predictions/lojrdurbdfb6jh3tff3hx6skzy/cancel" }, "version": "63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107" }
Generated inUsing seed: 17420 0%| | 0/25 [00:00<?, ?it/s] 4%|▍ | 1/25 [00:00<00:07, 3.31it/s] 8%|▊ | 2/25 [00:00<00:06, 3.75it/s] 12%|█▏ | 3/25 [00:00<00:05, 3.92it/s] 16%|█▌ | 4/25 [00:01<00:05, 3.98it/s] 20%|██ | 5/25 [00:01<00:04, 4.01it/s] 24%|██▍ | 6/25 [00:01<00:04, 4.04it/s] 28%|██▊ | 7/25 [00:01<00:04, 4.05it/s] 32%|███▏ | 8/25 [00:02<00:04, 4.07it/s] 36%|███▌ | 9/25 [00:02<00:03, 4.08it/s] 40%|████ | 10/25 [00:02<00:03, 4.09it/s] 44%|████▍ | 11/25 [00:02<00:03, 4.07it/s] 48%|████▊ | 12/25 [00:02<00:03, 4.08it/s] 52%|█████▏ | 13/25 [00:03<00:02, 4.09it/s] 56%|█████▌ | 14/25 [00:03<00:02, 4.09it/s] 60%|██████ | 15/25 [00:03<00:02, 4.10it/s] 64%|██████▍ | 16/25 [00:03<00:02, 4.10it/s] 68%|██████▊ | 17/25 [00:04<00:01, 4.12it/s] 72%|███████▏ | 18/25 [00:04<00:01, 4.12it/s] 76%|███████▌ | 19/25 [00:04<00:01, 4.11it/s] 80%|████████ | 20/25 [00:04<00:01, 4.09it/s] 84%|████████▍ | 21/25 [00:05<00:00, 4.07it/s] 88%|████████▊ | 22/25 [00:05<00:00, 4.06it/s] 92%|█████████▏| 23/25 [00:05<00:00, 4.06it/s] 96%|█████████▌| 24/25 [00:05<00:00, 4.07it/s] 100%|██████████| 25/25 [00:06<00:00, 4.08it/s] 100%|██████████| 25/25 [00:06<00:00, 4.05it/s]
Prediction
mcai/realistic-vision-v2.0:63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107IDa36mlxeu6nebplivu6ndgt63e4StatusSucceededSourceWebHardware–Total durationCreatedInput
- width
- 512
- height
- 768
- prompt
- A dream of a distant galaxy, by Caspar David Friedrich, matte painting trending on artstation HQ
- scheduler
- EulerAncestralDiscrete
- num_outputs
- 1
- guidance_scale
- 7
- 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
- num_inference_steps
- 25
{ "width": 512, "height": 768, "prompt": "A dream of a distant galaxy, by Caspar David Friedrich, matte painting trending on artstation HQ", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7, "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", "num_inference_steps": 25 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run mcai/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( "mcai/realistic-vision-v2.0:63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107", { input: { width: 512, height: 768, prompt: "A dream of a distant galaxy, by Caspar David Friedrich, matte painting trending on artstation HQ", scheduler: "EulerAncestralDiscrete", num_outputs: 1, guidance_scale: 7, 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", num_inference_steps: 25 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run mcai/realistic-vision-v2.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mcai/realistic-vision-v2.0:63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107", input={ "width": 512, "height": 768, "prompt": "A dream of a distant galaxy, by Caspar David Friedrich, matte painting trending on artstation HQ", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7, "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", "num_inference_steps": 25 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run mcai/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": "mcai/realistic-vision-v2.0:63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107", "input": { "width": 512, "height": 768, "prompt": "A dream of a distant galaxy, by Caspar David Friedrich, matte painting trending on artstation HQ", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7, "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", "num_inference_steps": 25 } }' \ 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/mcai/realistic-vision-v2.0@sha256:63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107 \ -i 'width=512' \ -i 'height=768' \ -i 'prompt="A dream of a distant galaxy, by Caspar David Friedrich, matte painting trending on artstation HQ"' \ -i 'scheduler="EulerAncestralDiscrete"' \ -i 'num_outputs=1' \ -i 'guidance_scale=7' \ -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 'num_inference_steps=25'
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/mcai/realistic-vision-v2.0@sha256:63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 512, "height": 768, "prompt": "A dream of a distant galaxy, by Caspar David Friedrich, matte painting trending on artstation HQ", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7, "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", "num_inference_steps": 25 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-05-10T19:24:35.607680Z", "created_at": "2023-05-10T19:24:28.513652Z", "data_removed": false, "error": null, "id": "a36mlxeu6nebplivu6ndgt63e4", "input": { "width": 512, "height": 768, "prompt": "A dream of a distant galaxy, by Caspar David Friedrich, matte painting trending on artstation HQ", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7, "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", "num_inference_steps": 25 }, "logs": "Using seed: 47537\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:06, 3.50it/s]\n 8%|▊ | 2/25 [00:00<00:05, 3.95it/s]\n 12%|█▏ | 3/25 [00:00<00:05, 4.11it/s]\n 16%|█▌ | 4/25 [00:00<00:04, 4.23it/s]\n 20%|██ | 5/25 [00:01<00:04, 4.27it/s]\n 24%|██▍ | 6/25 [00:01<00:04, 4.25it/s]\n 28%|██▊ | 7/25 [00:01<00:04, 4.25it/s]\n 32%|███▏ | 8/25 [00:01<00:03, 4.28it/s]\n 36%|███▌ | 9/25 [00:02<00:03, 4.28it/s]\n 40%|████ | 10/25 [00:02<00:03, 4.29it/s]\n 44%|████▍ | 11/25 [00:02<00:03, 4.29it/s]\n 48%|████▊ | 12/25 [00:02<00:03, 4.31it/s]\n 52%|█████▏ | 13/25 [00:03<00:02, 4.29it/s]\n 56%|█████▌ | 14/25 [00:03<00:02, 4.29it/s]\n 60%|██████ | 15/25 [00:03<00:02, 4.31it/s]\n 64%|██████▍ | 16/25 [00:03<00:02, 4.30it/s]\n 68%|██████▊ | 17/25 [00:03<00:01, 4.30it/s]\n 72%|███████▏ | 18/25 [00:04<00:01, 4.30it/s]\n 76%|███████▌ | 19/25 [00:04<00:01, 4.30it/s]\n 80%|████████ | 20/25 [00:04<00:01, 4.28it/s]\n 84%|████████▍ | 21/25 [00:04<00:00, 4.31it/s]\n 88%|████████▊ | 22/25 [00:05<00:00, 4.29it/s]\n 92%|█████████▏| 23/25 [00:05<00:00, 4.30it/s]\n 96%|█████████▌| 24/25 [00:05<00:00, 4.28it/s]\n100%|██████████| 25/25 [00:05<00:00, 4.30it/s]\n100%|██████████| 25/25 [00:05<00:00, 4.26it/s]", "metrics": { "predict_time": 7.124709, "total_time": 7.094028 }, "output": [ "https://replicate.delivery/pbxt/wWCrdc0f6TzRUqI15uEN1eIT0WRbT90Te9iXelx6K6rKXopDB/out-0.png" ], "started_at": "2023-05-10T19:24:28.482971Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/a36mlxeu6nebplivu6ndgt63e4", "cancel": "https://api.replicate.com/v1/predictions/a36mlxeu6nebplivu6ndgt63e4/cancel" }, "version": "63ed33a0e79013860417f5a9d45f8a53f0b2f1963bdf1d05259c5cbcf2d70107" }
Generated inUsing seed: 47537 0%| | 0/25 [00:00<?, ?it/s] 4%|▍ | 1/25 [00:00<00:06, 3.50it/s] 8%|▊ | 2/25 [00:00<00:05, 3.95it/s] 12%|█▏ | 3/25 [00:00<00:05, 4.11it/s] 16%|█▌ | 4/25 [00:00<00:04, 4.23it/s] 20%|██ | 5/25 [00:01<00:04, 4.27it/s] 24%|██▍ | 6/25 [00:01<00:04, 4.25it/s] 28%|██▊ | 7/25 [00:01<00:04, 4.25it/s] 32%|███▏ | 8/25 [00:01<00:03, 4.28it/s] 36%|███▌ | 9/25 [00:02<00:03, 4.28it/s] 40%|████ | 10/25 [00:02<00:03, 4.29it/s] 44%|████▍ | 11/25 [00:02<00:03, 4.29it/s] 48%|████▊ | 12/25 [00:02<00:03, 4.31it/s] 52%|█████▏ | 13/25 [00:03<00:02, 4.29it/s] 56%|█████▌ | 14/25 [00:03<00:02, 4.29it/s] 60%|██████ | 15/25 [00:03<00:02, 4.31it/s] 64%|██████▍ | 16/25 [00:03<00:02, 4.30it/s] 68%|██████▊ | 17/25 [00:03<00:01, 4.30it/s] 72%|███████▏ | 18/25 [00:04<00:01, 4.30it/s] 76%|███████▌ | 19/25 [00:04<00:01, 4.30it/s] 80%|████████ | 20/25 [00:04<00:01, 4.28it/s] 84%|████████▍ | 21/25 [00:04<00:00, 4.31it/s] 88%|████████▊ | 22/25 [00:05<00:00, 4.29it/s] 92%|█████████▏| 23/25 [00:05<00:00, 4.30it/s] 96%|█████████▌| 24/25 [00:05<00:00, 4.28it/s] 100%|██████████| 25/25 [00:05<00:00, 4.30it/s] 100%|██████████| 25/25 [00:05<00:00, 4.26it/s]
Want to make some of these yourself?
Run this model