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.
open-mmlab /pia:7a673cec
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 open-mmlab/pia using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"open-mmlab/pia:7a673cec329e8f9c51a96791030103467e04aad905cc0319ad6501eb2d54e91b",
{
input: {
image: "https://replicate.delivery/pbxt/KA4hkvNyViiiEafjSAKBKQO5yv3Bt6gtwyFXarsMnP8jlDYD/harry.png",
style: "3d_cartoon",
prompt: "1boy smiling",
max_size: 512,
motion_scale: 2,
guidance_scale: 7.5,
sampling_steps: 25,
negative_prompt: "wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips, weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg",
animation_length: 16,
ip_adapter_scale: 0
}
}
);
// 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 open-mmlab/pia using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"open-mmlab/pia:7a673cec329e8f9c51a96791030103467e04aad905cc0319ad6501eb2d54e91b",
input={
"image": "https://replicate.delivery/pbxt/KA4hkvNyViiiEafjSAKBKQO5yv3Bt6gtwyFXarsMnP8jlDYD/harry.png",
"style": "3d_cartoon",
"prompt": "1boy smiling",
"max_size": 512,
"motion_scale": 2,
"guidance_scale": 7.5,
"sampling_steps": 25,
"negative_prompt": "wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips, weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg",
"animation_length": 16,
"ip_adapter_scale": 0
}
)
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 open-mmlab/pia 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": "open-mmlab/pia:7a673cec329e8f9c51a96791030103467e04aad905cc0319ad6501eb2d54e91b",
"input": {
"image": "https://replicate.delivery/pbxt/KA4hkvNyViiiEafjSAKBKQO5yv3Bt6gtwyFXarsMnP8jlDYD/harry.png",
"style": "3d_cartoon",
"prompt": "1boy smiling",
"max_size": 512,
"motion_scale": 2,
"guidance_scale": 7.5,
"sampling_steps": 25,
"negative_prompt": "wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips, weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg",
"animation_length": 16,
"ip_adapter_scale": 0
}
}' \
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-01-03T11:28:04.338944Z",
"created_at": "2024-01-03T11:27:43.276323Z",
"data_removed": false,
"error": null,
"id": "heuywztbjioceqjm7fpxwuhhqi",
"input": {
"image": "https://replicate.delivery/pbxt/KA4hkvNyViiiEafjSAKBKQO5yv3Bt6gtwyFXarsMnP8jlDYD/harry.png",
"style": "3d_cartoon",
"prompt": "1boy smiling",
"max_size": 512,
"motion_scale": 2,
"guidance_scale": 7.5,
"sampling_steps": 25,
"negative_prompt": "wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips, weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg",
"animation_length": 16,
"ip_adapter_scale": 0
},
"logs": "Using seed: 10845505755589319151\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:17, 1.39it/s]\n 8%|▊ | 2/25 [00:01<00:16, 1.39it/s]\n 12%|█▏ | 3/25 [00:02<00:15, 1.39it/s]\n 16%|█▌ | 4/25 [00:02<00:15, 1.39it/s]\n 20%|██ | 5/25 [00:03<00:14, 1.39it/s]\n 24%|██▍ | 6/25 [00:04<00:13, 1.39it/s]\n 28%|██▊ | 7/25 [00:05<00:12, 1.39it/s]\n 32%|███▏ | 8/25 [00:05<00:12, 1.39it/s]\n 36%|███▌ | 9/25 [00:06<00:11, 1.39it/s]\n 40%|████ | 10/25 [00:07<00:10, 1.39it/s]\n 44%|████▍ | 11/25 [00:07<00:10, 1.39it/s]\n 48%|████▊ | 12/25 [00:08<00:09, 1.39it/s]\n 52%|█████▏ | 13/25 [00:09<00:08, 1.39it/s]\n 56%|█████▌ | 14/25 [00:10<00:07, 1.38it/s]\n 60%|██████ | 15/25 [00:10<00:07, 1.38it/s]\n 64%|██████▍ | 16/25 [00:11<00:06, 1.38it/s]\n 68%|██████▊ | 17/25 [00:12<00:05, 1.38it/s]\n 72%|███████▏ | 18/25 [00:12<00:05, 1.38it/s]\n 76%|███████▌ | 19/25 [00:13<00:04, 1.37it/s]\n 80%|████████ | 20/25 [00:14<00:03, 1.38it/s]\n 84%|████████▍ | 21/25 [00:15<00:02, 1.38it/s]\n 88%|████████▊ | 22/25 [00:15<00:02, 1.38it/s]\n 92%|█████████▏| 23/25 [00:16<00:01, 1.38it/s]\n 96%|█████████▌| 24/25 [00:17<00:00, 1.38it/s]\n100%|██████████| 25/25 [00:18<00:00, 1.38it/s]\n100%|██████████| 25/25 [00:18<00:00, 1.38it/s]\n 0%| | 0/16 [00:00<?, ?it/s]\n 31%|███▏ | 5/16 [00:00<00:00, 42.54it/s]\n 62%|██████▎ | 10/16 [00:00<00:00, 23.04it/s]\n 81%|████████▏ | 13/16 [00:00<00:00, 20.81it/s]\n100%|██████████| 16/16 [00:00<00:00, 19.57it/s]\n100%|██████████| 16/16 [00:00<00:00, 21.38it/s]",
"metrics": {
"predict_time": 21.02851,
"total_time": 21.062621
},
"output": "https://replicate.delivery/pbxt/7cni6Ccdpq5LABEkfUwvkOThGVoVND8rOppX29E44bthtXEJA/out.mp4",
"started_at": "2024-01-03T11:27:43.310434Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/heuywztbjioceqjm7fpxwuhhqi",
"cancel": "https://api.replicate.com/v1/predictions/heuywztbjioceqjm7fpxwuhhqi/cancel"
},
"version": "7a673cec329e8f9c51a96791030103467e04aad905cc0319ad6501eb2d54e91b"
}
Using seed: 10845505755589319151
0%| | 0/25 [00:00<?, ?it/s]
4%|▍ | 1/25 [00:00<00:17, 1.39it/s]
8%|▊ | 2/25 [00:01<00:16, 1.39it/s]
12%|█▏ | 3/25 [00:02<00:15, 1.39it/s]
16%|█▌ | 4/25 [00:02<00:15, 1.39it/s]
20%|██ | 5/25 [00:03<00:14, 1.39it/s]
24%|██▍ | 6/25 [00:04<00:13, 1.39it/s]
28%|██▊ | 7/25 [00:05<00:12, 1.39it/s]
32%|███▏ | 8/25 [00:05<00:12, 1.39it/s]
36%|███▌ | 9/25 [00:06<00:11, 1.39it/s]
40%|████ | 10/25 [00:07<00:10, 1.39it/s]
44%|████▍ | 11/25 [00:07<00:10, 1.39it/s]
48%|████▊ | 12/25 [00:08<00:09, 1.39it/s]
52%|█████▏ | 13/25 [00:09<00:08, 1.39it/s]
56%|█████▌ | 14/25 [00:10<00:07, 1.38it/s]
60%|██████ | 15/25 [00:10<00:07, 1.38it/s]
64%|██████▍ | 16/25 [00:11<00:06, 1.38it/s]
68%|██████▊ | 17/25 [00:12<00:05, 1.38it/s]
72%|███████▏ | 18/25 [00:12<00:05, 1.38it/s]
76%|███████▌ | 19/25 [00:13<00:04, 1.37it/s]
80%|████████ | 20/25 [00:14<00:03, 1.38it/s]
84%|████████▍ | 21/25 [00:15<00:02, 1.38it/s]
88%|████████▊ | 22/25 [00:15<00:02, 1.38it/s]
92%|█████████▏| 23/25 [00:16<00:01, 1.38it/s]
96%|█████████▌| 24/25 [00:17<00:00, 1.38it/s]
100%|██████████| 25/25 [00:18<00:00, 1.38it/s]
100%|██████████| 25/25 [00:18<00:00, 1.38it/s]
0%| | 0/16 [00:00<?, ?it/s]
31%|███▏ | 5/16 [00:00<00:00, 42.54it/s]
62%|██████▎ | 10/16 [00:00<00:00, 23.04it/s]
81%|████████▏ | 13/16 [00:00<00:00, 20.81it/s]
100%|██████████| 16/16 [00:00<00:00, 19.57it/s]
100%|██████████| 16/16 [00:00<00:00, 21.38it/s]