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.
camenduru /colorize-line-art:59575cca
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 camenduru/colorize-line-art using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"camenduru/colorize-line-art:59575cca43435fec91bf2016648a36db03ab0c1556490974e3c483274076a6ec",
{
input: {
det: "None",
eta: 1,
seed: 2,
scale: 9,
prompt: "",
a_prompt: "masterpiece, best quality, ultra-detailed, illustration, disheveled hair",
n_prompt: "longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality",
strength: 1,
ddim_steps: 25,
input_image: "https://replicate.delivery/pbxt/KloAtluQxj0ffeUzTDsqqcl3HIi6ISB6x8cgBvFagGp4GU0e/326145.png",
image_resolution: 512,
detect_resolution: 512
}
}
);
// 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 camenduru/colorize-line-art using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"camenduru/colorize-line-art:59575cca43435fec91bf2016648a36db03ab0c1556490974e3c483274076a6ec",
input={
"det": "None",
"eta": 1,
"seed": 2,
"scale": 9,
"prompt": "",
"a_prompt": "masterpiece, best quality, ultra-detailed, illustration, disheveled hair",
"n_prompt": "longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality",
"strength": 1,
"ddim_steps": 25,
"input_image": "https://replicate.delivery/pbxt/KloAtluQxj0ffeUzTDsqqcl3HIi6ISB6x8cgBvFagGp4GU0e/326145.png",
"image_resolution": 512,
"detect_resolution": 512
}
)
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 camenduru/colorize-line-art 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": "camenduru/colorize-line-art:59575cca43435fec91bf2016648a36db03ab0c1556490974e3c483274076a6ec",
"input": {
"det": "None",
"eta": 1,
"seed": 2,
"scale": 9,
"prompt": "",
"a_prompt": "masterpiece, best quality, ultra-detailed, illustration, disheveled hair",
"n_prompt": "longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality",
"strength": 1,
"ddim_steps": 25,
"input_image": "https://replicate.delivery/pbxt/KloAtluQxj0ffeUzTDsqqcl3HIi6ISB6x8cgBvFagGp4GU0e/326145.png",
"image_resolution": 512,
"detect_resolution": 512
}
}' \
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": "2024-04-18T18:46:02.548813Z",
"created_at": "2024-04-18T18:45:56.644000Z",
"data_removed": false,
"error": null,
"id": "e2k9e9ws4hrgg0ceya3vfcw14c",
"input": {
"det": "None",
"eta": 1,
"seed": 2,
"scale": 9,
"prompt": "",
"a_prompt": "masterpiece, best quality, ultra-detailed, illustration, disheveled hair",
"n_prompt": "longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality",
"strength": 1,
"ddim_steps": 25,
"input_image": "https://replicate.delivery/pbxt/KloAtluQxj0ffeUzTDsqqcl3HIi6ISB6x8cgBvFagGp4GU0e/326145.png",
"image_resolution": 512,
"detect_resolution": 512
},
"logs": "Global seed set to 2\nData shape for DDIM sampling is (1, 4, 96, 64), eta 1.0\nRunning DDIM Sampling with 25 timesteps\nDDIM Sampler: 0%| | 0/25 [00:00<?, ?it/s]\nDDIM Sampler: 4%|▍ | 1/25 [00:00<00:04, 5.08it/s]\nDDIM Sampler: 8%|▊ | 2/25 [00:00<00:04, 5.08it/s]\nDDIM Sampler: 12%|█▏ | 3/25 [00:00<00:04, 5.08it/s]\nDDIM Sampler: 16%|█▌ | 4/25 [00:00<00:04, 5.08it/s]\nDDIM Sampler: 20%|██ | 5/25 [00:00<00:03, 5.08it/s]\nDDIM Sampler: 24%|██▍ | 6/25 [00:01<00:03, 5.08it/s]\nDDIM Sampler: 28%|██▊ | 7/25 [00:01<00:03, 5.09it/s]\nDDIM Sampler: 32%|███▏ | 8/25 [00:01<00:03, 5.08it/s]\nDDIM Sampler: 36%|███▌ | 9/25 [00:01<00:03, 5.08it/s]\nDDIM Sampler: 40%|████ | 10/25 [00:01<00:02, 5.08it/s]\nDDIM Sampler: 44%|████▍ | 11/25 [00:02<00:02, 5.08it/s]\nDDIM Sampler: 48%|████▊ | 12/25 [00:02<00:02, 5.08it/s]\nDDIM Sampler: 52%|█████▏ | 13/25 [00:02<00:02, 5.08it/s]\nDDIM Sampler: 56%|█████▌ | 14/25 [00:02<00:02, 5.08it/s]\nDDIM Sampler: 60%|██████ | 15/25 [00:02<00:01, 5.08it/s]\nDDIM Sampler: 64%|██████▍ | 16/25 [00:03<00:01, 5.08it/s]\nDDIM Sampler: 68%|██████▊ | 17/25 [00:03<00:01, 5.08it/s]\nDDIM Sampler: 72%|███████▏ | 18/25 [00:03<00:01, 5.09it/s]\nDDIM Sampler: 76%|███████▌ | 19/25 [00:03<00:01, 5.09it/s]\nDDIM Sampler: 80%|████████ | 20/25 [00:03<00:00, 5.08it/s]\nDDIM Sampler: 84%|████████▍ | 21/25 [00:04<00:00, 5.08it/s]\nDDIM Sampler: 88%|████████▊ | 22/25 [00:04<00:00, 5.08it/s]\nDDIM Sampler: 92%|█████████▏| 23/25 [00:04<00:00, 5.08it/s]\nDDIM Sampler: 96%|█████████▌| 24/25 [00:04<00:00, 5.08it/s]\nDDIM Sampler: 100%|██████████| 25/25 [00:04<00:00, 5.08it/s]\nDDIM Sampler: 100%|██████████| 25/25 [00:04<00:00, 5.08it/s]",
"metrics": {
"predict_time": 5.883669,
"total_time": 5.904813
},
"output": "https://replicate.delivery/pbxt/4ltSOFDXDAY8IpF00QAkmXvojoVtLL1PNPT5nesMq7S144VJA/output.png",
"started_at": "2024-04-18T18:45:56.665144Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/e2k9e9ws4hrgg0ceya3vfcw14c",
"cancel": "https://api.replicate.com/v1/predictions/e2k9e9ws4hrgg0ceya3vfcw14c/cancel"
},
"version": "59575cca43435fec91bf2016648a36db03ab0c1556490974e3c483274076a6ec"
}
Global seed set to 2
Data shape for DDIM sampling is (1, 4, 96, 64), eta 1.0
Running DDIM Sampling with 25 timesteps
DDIM Sampler: 0%| | 0/25 [00:00<?, ?it/s]
DDIM Sampler: 4%|▍ | 1/25 [00:00<00:04, 5.08it/s]
DDIM Sampler: 8%|▊ | 2/25 [00:00<00:04, 5.08it/s]
DDIM Sampler: 12%|█▏ | 3/25 [00:00<00:04, 5.08it/s]
DDIM Sampler: 16%|█▌ | 4/25 [00:00<00:04, 5.08it/s]
DDIM Sampler: 20%|██ | 5/25 [00:00<00:03, 5.08it/s]
DDIM Sampler: 24%|██▍ | 6/25 [00:01<00:03, 5.08it/s]
DDIM Sampler: 28%|██▊ | 7/25 [00:01<00:03, 5.09it/s]
DDIM Sampler: 32%|███▏ | 8/25 [00:01<00:03, 5.08it/s]
DDIM Sampler: 36%|███▌ | 9/25 [00:01<00:03, 5.08it/s]
DDIM Sampler: 40%|████ | 10/25 [00:01<00:02, 5.08it/s]
DDIM Sampler: 44%|████▍ | 11/25 [00:02<00:02, 5.08it/s]
DDIM Sampler: 48%|████▊ | 12/25 [00:02<00:02, 5.08it/s]
DDIM Sampler: 52%|█████▏ | 13/25 [00:02<00:02, 5.08it/s]
DDIM Sampler: 56%|█████▌ | 14/25 [00:02<00:02, 5.08it/s]
DDIM Sampler: 60%|██████ | 15/25 [00:02<00:01, 5.08it/s]
DDIM Sampler: 64%|██████▍ | 16/25 [00:03<00:01, 5.08it/s]
DDIM Sampler: 68%|██████▊ | 17/25 [00:03<00:01, 5.08it/s]
DDIM Sampler: 72%|███████▏ | 18/25 [00:03<00:01, 5.09it/s]
DDIM Sampler: 76%|███████▌ | 19/25 [00:03<00:01, 5.09it/s]
DDIM Sampler: 80%|████████ | 20/25 [00:03<00:00, 5.08it/s]
DDIM Sampler: 84%|████████▍ | 21/25 [00:04<00:00, 5.08it/s]
DDIM Sampler: 88%|████████▊ | 22/25 [00:04<00:00, 5.08it/s]
DDIM Sampler: 92%|█████████▏| 23/25 [00:04<00:00, 5.08it/s]
DDIM Sampler: 96%|█████████▌| 24/25 [00:04<00:00, 5.08it/s]
DDIM Sampler: 100%|██████████| 25/25 [00:04<00:00, 5.08it/s]
DDIM Sampler: 100%|██████████| 25/25 [00:04<00:00, 5.08it/s]