Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
moayedhajiali /elasticdiffusion:bddc0936
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run moayedhajiali/elasticdiffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"moayedhajiali/elasticdiffusion:bddc09369f9e622518f6d11daff26723a513714e08830ed053660d8ac44ffe88",
{
input: {
seed: 0,
prompt: "Envision a portrait of a cute corgi, framed by a red headscarf. his eyes are light brown. his attire is simple yet dignified",
img_width: 1024,
rrg_scale: 1000,
img_height: 2048,
cosine_scale: 10,
guidance_scale: 10,
view_batch_size: 16,
negative_prompts: "blurry, ugly, poorly drawn, deformed",
resampling_new_p: 0.3,
resampling_steps: 7,
num_inference_steps: 50
}
}
);
// 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.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run moayedhajiali/elasticdiffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"moayedhajiali/elasticdiffusion:bddc09369f9e622518f6d11daff26723a513714e08830ed053660d8ac44ffe88",
input={
"seed": 0,
"prompt": "Envision a portrait of a cute corgi, framed by a red headscarf. his eyes are light brown. his attire is simple yet dignified",
"img_width": 1024,
"rrg_scale": 1000,
"img_height": 2048,
"cosine_scale": 10,
"guidance_scale": 10,
"view_batch_size": 16,
"negative_prompts": "blurry, ugly, poorly drawn, deformed",
"resampling_new_p": 0.3,
"resampling_steps": 7,
"num_inference_steps": 50
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run moayedhajiali/elasticdiffusion 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": "bddc09369f9e622518f6d11daff26723a513714e08830ed053660d8ac44ffe88",
"input": {
"seed": 0,
"prompt": "Envision a portrait of a cute corgi, framed by a red headscarf. his eyes are light brown. his attire is simple yet dignified",
"img_width": 1024,
"rrg_scale": 1000,
"img_height": 2048,
"cosine_scale": 10,
"guidance_scale": 10,
"view_batch_size": 16,
"negative_prompts": "blurry, ugly, poorly drawn, deformed",
"resampling_new_p": 0.3,
"resampling_steps": 7,
"num_inference_steps": 50
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2023-12-27T19:51:27.946539Z",
"created_at": "2023-12-27T19:46:26.603455Z",
"data_removed": false,
"error": null,
"id": "uxkyqgtbmleh2527ventavrzry",
"input": {
"seed": 0,
"prompt": "Envision a portrait of a cute corgi, framed by a red headscarf. his eyes are light brown. his attire is simple yet dignified",
"img_width": 1024,
"rrg_scale": 1000,
"img_height": 2048,
"cosine_scale": 10,
"guidance_scale": 10,
"view_batch_size": 16,
"negative_prompts": "blurry, ugly, poorly drawn, deformed",
"resampling_new_p": 0.3,
"resampling_steps": 7,
"num_inference_steps": 50
},
"logs": "0%| | 0/50 [00:00<?, ?it/s]\n 2%|▏ | 1/50 [00:05<04:52, 5.96s/it]\n 4%|▍ | 2/50 [00:11<04:46, 5.97s/it]\n 6%|▌ | 3/50 [00:17<04:40, 5.98s/it]\n 8%|▊ | 4/50 [00:23<04:34, 5.97s/it]\n 10%|█ | 5/50 [00:29<04:28, 5.97s/it]\n 12%|█▏ | 6/50 [00:35<04:22, 5.97s/it]\n 14%|█▍ | 7/50 [00:41<04:16, 5.97s/it]\n 16%|█▌ | 8/50 [00:47<04:11, 5.99s/it]\n 18%|█▊ | 9/50 [00:53<04:05, 5.99s/it]\n 20%|██ | 10/50 [00:59<04:00, 6.00s/it]\n 22%|██▏ | 11/50 [01:05<03:53, 6.00s/it]\n 24%|██▍ | 12/50 [01:11<03:47, 5.99s/it]\n 26%|██▌ | 13/50 [01:17<03:41, 5.99s/it]\n 28%|██▊ | 14/50 [01:23<03:36, 6.00s/it]\n 30%|███ | 15/50 [01:29<03:29, 6.00s/it]\n 32%|███▏ | 16/50 [01:35<03:24, 6.00s/it]\n 34%|███▍ | 17/50 [01:41<03:18, 6.00s/it]\n 36%|███▌ | 18/50 [01:47<03:11, 6.00s/it]\n 38%|███▊ | 19/50 [01:53<03:05, 5.99s/it]\n 40%|████ | 20/50 [01:59<02:59, 5.99s/it]\n 42%|████▏ | 21/50 [02:05<02:53, 5.99s/it]\n 44%|████▍ | 22/50 [02:11<02:47, 5.99s/it]\n 46%|████▌ | 23/50 [02:17<02:41, 6.00s/it]\n 48%|████▊ | 24/50 [02:23<02:35, 6.00s/it]\n 50%|█████ | 25/50 [02:29<02:29, 6.00s/it]\n 52%|█████▏ | 26/50 [02:35<02:23, 6.00s/it]\n 54%|█████▍ | 27/50 [02:41<02:17, 6.00s/it]\n 56%|█████▌ | 28/50 [02:47<02:12, 6.00s/it]\n 58%|█████▊ | 29/50 [02:53<02:05, 6.00s/it]\n 60%|██████ | 30/50 [02:59<01:59, 6.00s/it]\n 62%|██████▏ | 31/50 [03:05<01:53, 6.00s/it]\n 64%|██████▍ | 32/50 [03:11<01:48, 6.01s/it]\n 66%|██████▌ | 33/50 [03:17<01:42, 6.00s/it]\n 68%|██████▊ | 34/50 [03:23<01:36, 6.00s/it]\n 70%|███████ | 35/50 [03:29<01:29, 6.00s/it]\n 72%|███████▏ | 36/50 [03:35<01:24, 6.00s/it]\n 74%|███████▍ | 37/50 [03:41<01:17, 6.00s/it]\n 76%|███████▌ | 38/50 [03:47<01:12, 6.00s/it]\n 78%|███████▊ | 39/50 [03:53<01:06, 6.00s/it]\n 80%|████████ | 40/50 [03:59<00:59, 6.00s/it]\n 82%|████████▏ | 41/50 [04:05<00:54, 6.00s/it]\n 84%|████████▍ | 42/50 [04:11<00:47, 6.00s/it]\n 86%|████████▌ | 43/50 [04:17<00:41, 6.00s/it]\n 88%|████████▊ | 44/50 [04:23<00:35, 6.00s/it]\n 90%|█████████ | 45/50 [04:29<00:29, 6.00s/it]\n 92%|█████████▏| 46/50 [04:35<00:23, 6.00s/it]\n 94%|█████████▍| 47/50 [04:41<00:18, 6.00s/it]\n 96%|█████████▌| 48/50 [04:47<00:12, 6.00s/it]\n 98%|█████████▊| 49/50 [04:53<00:06, 6.00s/it]\n100%|██████████| 50/50 [04:58<00:00, 5.63s/it]\n100%|██████████| 50/50 [04:58<00:00, 5.97s/it]\n[INFO] Time taken: 299.4873378276825 seconds.",
"metrics": {
"predict_time": 301.289303,
"total_time": 301.343084
},
"output": "https://replicate.delivery/pbxt/6Fve0ZeSPEod10OBTMXBNhfb4T0pbYVepA1kOo4oAul8jMaIB/result.png",
"started_at": "2023-12-27T19:46:26.657236Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/uxkyqgtbmleh2527ventavrzry",
"cancel": "https://api.replicate.com/v1/predictions/uxkyqgtbmleh2527ventavrzry/cancel"
},
"version": "bddc09369f9e622518f6d11daff26723a513714e08830ed053660d8ac44ffe88"
}
0%| | 0/50 [00:00<?, ?it/s]
2%|▏ | 1/50 [00:05<04:52, 5.96s/it]
4%|▍ | 2/50 [00:11<04:46, 5.97s/it]
6%|▌ | 3/50 [00:17<04:40, 5.98s/it]
8%|▊ | 4/50 [00:23<04:34, 5.97s/it]
10%|█ | 5/50 [00:29<04:28, 5.97s/it]
12%|█▏ | 6/50 [00:35<04:22, 5.97s/it]
14%|█▍ | 7/50 [00:41<04:16, 5.97s/it]
16%|█▌ | 8/50 [00:47<04:11, 5.99s/it]
18%|█▊ | 9/50 [00:53<04:05, 5.99s/it]
20%|██ | 10/50 [00:59<04:00, 6.00s/it]
22%|██▏ | 11/50 [01:05<03:53, 6.00s/it]
24%|██▍ | 12/50 [01:11<03:47, 5.99s/it]
26%|██▌ | 13/50 [01:17<03:41, 5.99s/it]
28%|██▊ | 14/50 [01:23<03:36, 6.00s/it]
30%|███ | 15/50 [01:29<03:29, 6.00s/it]
32%|███▏ | 16/50 [01:35<03:24, 6.00s/it]
34%|███▍ | 17/50 [01:41<03:18, 6.00s/it]
36%|███▌ | 18/50 [01:47<03:11, 6.00s/it]
38%|███▊ | 19/50 [01:53<03:05, 5.99s/it]
40%|████ | 20/50 [01:59<02:59, 5.99s/it]
42%|████▏ | 21/50 [02:05<02:53, 5.99s/it]
44%|████▍ | 22/50 [02:11<02:47, 5.99s/it]
46%|████▌ | 23/50 [02:17<02:41, 6.00s/it]
48%|████▊ | 24/50 [02:23<02:35, 6.00s/it]
50%|█████ | 25/50 [02:29<02:29, 6.00s/it]
52%|█████▏ | 26/50 [02:35<02:23, 6.00s/it]
54%|█████▍ | 27/50 [02:41<02:17, 6.00s/it]
56%|█████▌ | 28/50 [02:47<02:12, 6.00s/it]
58%|█████▊ | 29/50 [02:53<02:05, 6.00s/it]
60%|██████ | 30/50 [02:59<01:59, 6.00s/it]
62%|██████▏ | 31/50 [03:05<01:53, 6.00s/it]
64%|██████▍ | 32/50 [03:11<01:48, 6.01s/it]
66%|██████▌ | 33/50 [03:17<01:42, 6.00s/it]
68%|██████▊ | 34/50 [03:23<01:36, 6.00s/it]
70%|███████ | 35/50 [03:29<01:29, 6.00s/it]
72%|███████▏ | 36/50 [03:35<01:24, 6.00s/it]
74%|███████▍ | 37/50 [03:41<01:17, 6.00s/it]
76%|███████▌ | 38/50 [03:47<01:12, 6.00s/it]
78%|███████▊ | 39/50 [03:53<01:06, 6.00s/it]
80%|████████ | 40/50 [03:59<00:59, 6.00s/it]
82%|████████▏ | 41/50 [04:05<00:54, 6.00s/it]
84%|████████▍ | 42/50 [04:11<00:47, 6.00s/it]
86%|████████▌ | 43/50 [04:17<00:41, 6.00s/it]
88%|████████▊ | 44/50 [04:23<00:35, 6.00s/it]
90%|█████████ | 45/50 [04:29<00:29, 6.00s/it]
92%|█████████▏| 46/50 [04:35<00:23, 6.00s/it]
94%|█████████▍| 47/50 [04:41<00:18, 6.00s/it]
96%|█████████▌| 48/50 [04:47<00:12, 6.00s/it]
98%|█████████▊| 49/50 [04:53<00:06, 6.00s/it]
100%|██████████| 50/50 [04:58<00:00, 5.63s/it]
100%|██████████| 50/50 [04:58<00:00, 5.97s/it]
[INFO] Time taken: 299.4873378276825 seconds.