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.
fofr /sdxl-toy-story-people:e5603fd8
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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run fofr/sdxl-toy-story-people using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"fofr/sdxl-toy-story-people:e5603fd85f4cb9bffb1e49a1a1add5f3fcf3f2d5383bc84fd3ff7cc4fe5beb10",
{
input: {
width: 1024,
height: 1024,
prompt: "An animated TOK Kanye West person, 90s 3D animation",
refine: "expert_ensemble_refiner",
scheduler: "K_EULER",
lora_scale: 0.6,
num_outputs: 1,
guidance_scale: 7.5,
apply_watermark: false,
high_noise_frac: 0.9,
negative_prompt: "broken, distorted, ugly, two people, child",
prompt_strength: 0.8,
num_inference_steps: 30
}
}
);
// 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.
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 fofr/sdxl-toy-story-people using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/sdxl-toy-story-people:e5603fd85f4cb9bffb1e49a1a1add5f3fcf3f2d5383bc84fd3ff7cc4fe5beb10",
input={
"width": 1024,
"height": 1024,
"prompt": "An animated TOK Kanye West person, 90s 3D animation",
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": False,
"high_noise_frac": 0.9,
"negative_prompt": "broken, distorted, ugly, two people, child",
"prompt_strength": 0.8,
"num_inference_steps": 30
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].read())
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 fofr/sdxl-toy-story-people 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": "fofr/sdxl-toy-story-people:e5603fd85f4cb9bffb1e49a1a1add5f3fcf3f2d5383bc84fd3ff7cc4fe5beb10",
"input": {
"width": 1024,
"height": 1024,
"prompt": "An animated TOK Kanye West person, 90s 3D animation",
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": false,
"high_noise_frac": 0.9,
"negative_prompt": "broken, distorted, ugly, two people, child",
"prompt_strength": 0.8,
"num_inference_steps": 30
}
}' \
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-11-03T15:36:28.405324Z",
"created_at": "2023-11-03T15:35:58.036217Z",
"data_removed": false,
"error": null,
"id": "6tuaondbpx3z5roduxcbyfc25m",
"input": {
"width": 1024,
"height": 1024,
"prompt": "An animated TOK Kanye West person, 90s 3D animation",
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": false,
"high_noise_frac": 0.9,
"negative_prompt": "broken, distorted, ugly, two people, child",
"prompt_strength": 0.8,
"num_inference_steps": 30
},
"logs": "Using seed: 1495\nLoading fine-tuned model\nDoes not have Unet. assume we are using LoRA\nLoading Unet LoRA\nPrompt: An animated <s0><s1> Kanye West person, 90s 3D animation\ntxt2img mode\n 0%| | 0/27 [00:00<?, ?it/s]\n 4%|▎ | 1/27 [00:00<00:07, 3.42it/s]\n 7%|▋ | 2/27 [00:00<00:07, 3.40it/s]\n 11%|█ | 3/27 [00:00<00:07, 3.40it/s]\n 15%|█▍ | 4/27 [00:01<00:06, 3.39it/s]\n 19%|█▊ | 5/27 [00:01<00:06, 3.39it/s]\n 22%|██▏ | 6/27 [00:01<00:06, 3.39it/s]\n 26%|██▌ | 7/27 [00:02<00:05, 3.39it/s]\n 30%|██▉ | 8/27 [00:02<00:05, 3.39it/s]\n 33%|███▎ | 9/27 [00:02<00:05, 3.38it/s]\n 37%|███▋ | 10/27 [00:02<00:05, 3.38it/s]\n 41%|████ | 11/27 [00:03<00:04, 3.38it/s]\n 44%|████▍ | 12/27 [00:03<00:04, 3.38it/s]\n 48%|████▊ | 13/27 [00:03<00:04, 3.38it/s]\n 52%|█████▏ | 14/27 [00:04<00:03, 3.38it/s]\n 56%|█████▌ | 15/27 [00:04<00:03, 3.37it/s]\n 59%|█████▉ | 16/27 [00:04<00:03, 3.37it/s]\n 63%|██████▎ | 17/27 [00:05<00:02, 3.37it/s]\n 67%|██████▋ | 18/27 [00:05<00:02, 3.37it/s]\n 70%|███████ | 19/27 [00:05<00:02, 3.37it/s]\n 74%|███████▍ | 20/27 [00:05<00:02, 3.37it/s]\n 78%|███████▊ | 21/27 [00:06<00:01, 3.36it/s]\n 81%|████████▏ | 22/27 [00:06<00:01, 3.37it/s]\n 85%|████████▌ | 23/27 [00:06<00:01, 3.37it/s]\n 89%|████████▉ | 24/27 [00:07<00:00, 3.37it/s]\n 93%|█████████▎| 25/27 [00:07<00:00, 3.37it/s]\n 96%|█████████▋| 26/27 [00:07<00:00, 3.36it/s]\n100%|██████████| 27/27 [00:08<00:00, 3.36it/s]\n100%|██████████| 27/27 [00:08<00:00, 3.37it/s]\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:00, 3.98it/s]\n 67%|██████▋ | 2/3 [00:00<00:00, 3.97it/s]\n100%|██████████| 3/3 [00:00<00:00, 3.94it/s]\n100%|██████████| 3/3 [00:00<00:00, 3.95it/s]",
"metrics": {
"predict_time": 11.525916,
"total_time": 30.369107
},
"output": [
"https://replicate.delivery/pbxt/JyOlzpKseZW3eUDGROU0UOsUR2vcz0pFzXOAfASsCrl2rYpjA/out-0.png"
],
"started_at": "2023-11-03T15:36:16.879408Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/6tuaondbpx3z5roduxcbyfc25m",
"cancel": "https://api.replicate.com/v1/predictions/6tuaondbpx3z5roduxcbyfc25m/cancel"
},
"version": "e5603fd85f4cb9bffb1e49a1a1add5f3fcf3f2d5383bc84fd3ff7cc4fe5beb10"
}
Using seed: 1495
Loading fine-tuned model
Does not have Unet. assume we are using LoRA
Loading Unet LoRA
Prompt: An animated <s0><s1> Kanye West person, 90s 3D animation
txt2img mode
0%| | 0/27 [00:00<?, ?it/s]
4%|▎ | 1/27 [00:00<00:07, 3.42it/s]
7%|▋ | 2/27 [00:00<00:07, 3.40it/s]
11%|█ | 3/27 [00:00<00:07, 3.40it/s]
15%|█▍ | 4/27 [00:01<00:06, 3.39it/s]
19%|█▊ | 5/27 [00:01<00:06, 3.39it/s]
22%|██▏ | 6/27 [00:01<00:06, 3.39it/s]
26%|██▌ | 7/27 [00:02<00:05, 3.39it/s]
30%|██▉ | 8/27 [00:02<00:05, 3.39it/s]
33%|███▎ | 9/27 [00:02<00:05, 3.38it/s]
37%|███▋ | 10/27 [00:02<00:05, 3.38it/s]
41%|████ | 11/27 [00:03<00:04, 3.38it/s]
44%|████▍ | 12/27 [00:03<00:04, 3.38it/s]
48%|████▊ | 13/27 [00:03<00:04, 3.38it/s]
52%|█████▏ | 14/27 [00:04<00:03, 3.38it/s]
56%|█████▌ | 15/27 [00:04<00:03, 3.37it/s]
59%|█████▉ | 16/27 [00:04<00:03, 3.37it/s]
63%|██████▎ | 17/27 [00:05<00:02, 3.37it/s]
67%|██████▋ | 18/27 [00:05<00:02, 3.37it/s]
70%|███████ | 19/27 [00:05<00:02, 3.37it/s]
74%|███████▍ | 20/27 [00:05<00:02, 3.37it/s]
78%|███████▊ | 21/27 [00:06<00:01, 3.36it/s]
81%|████████▏ | 22/27 [00:06<00:01, 3.37it/s]
85%|████████▌ | 23/27 [00:06<00:01, 3.37it/s]
89%|████████▉ | 24/27 [00:07<00:00, 3.37it/s]
93%|█████████▎| 25/27 [00:07<00:00, 3.37it/s]
96%|█████████▋| 26/27 [00:07<00:00, 3.36it/s]
100%|██████████| 27/27 [00:08<00:00, 3.36it/s]
100%|██████████| 27/27 [00:08<00:00, 3.37it/s]
0%| | 0/3 [00:00<?, ?it/s]
33%|███▎ | 1/3 [00:00<00:00, 3.98it/s]
67%|██████▋ | 2/3 [00:00<00:00, 3.97it/s]
100%|██████████| 3/3 [00:00<00:00, 3.94it/s]
100%|██████████| 3/3 [00:00<00:00, 3.95it/s]