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-simpsons-characters:f4d36a72
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 fofr/sdxl-simpsons-characters using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"fofr/sdxl-simpsons-characters:f4d36a72b43ea2fd511cab0afb32539955ee5b28b65c8e3fb7d8abd254be8e91",
{
input: {
width: 1024,
height: 1024,
prompt: "A TOK Simpsons character of Jean Luc Picard in starfleet uniform",
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.8,
negative_prompt: "ugly, broken, distorted, artefacts, 3D, render, photography",
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-simpsons-characters using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/sdxl-simpsons-characters:f4d36a72b43ea2fd511cab0afb32539955ee5b28b65c8e3fb7d8abd254be8e91",
input={
"width": 1024,
"height": 1024,
"prompt": "A TOK Simpsons character of Jean Luc Picard in starfleet uniform",
"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.8,
"negative_prompt": "ugly, broken, distorted, artefacts, 3D, render, photography",
"prompt_strength": 0.8,
"num_inference_steps": 30
}
)
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 fofr/sdxl-simpsons-characters 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-simpsons-characters:f4d36a72b43ea2fd511cab0afb32539955ee5b28b65c8e3fb7d8abd254be8e91",
"input": {
"width": 1024,
"height": 1024,
"prompt": "A TOK Simpsons character of Jean Luc Picard in starfleet uniform",
"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.8,
"negative_prompt": "ugly, broken, distorted, artefacts, 3D, render, photography",
"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-12-22T16:26:54.789256Z",
"created_at": "2023-12-22T16:26:40.077287Z",
"data_removed": false,
"error": null,
"id": "q3fxk7lbzyvzsgt5zjlhfoifha",
"input": {
"width": 1024,
"height": 1024,
"prompt": "A TOK Simpsons character of Jean Luc Picard in starfleet uniform",
"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.8,
"negative_prompt": "ugly, broken, distorted, artefacts, 3D, render, photography",
"prompt_strength": 0.8,
"num_inference_steps": 30
},
"logs": "Using seed: 18141\nEnsuring enough disk space...\nFree disk space: 2029064146944\nDownloading weights: https://replicate.delivery/pbxt/fNgClbeGdYulIURATUep5GC1z82eubbtyEBCribWU7BljZTIB/trained_model.tar\n2023-12-22T16:26:43Z | INFO | [ Initiating ] dest=/src/weights-cache/61d61cadc695e415 minimum_chunk_size=150M url=https://replicate.delivery/pbxt/fNgClbeGdYulIURATUep5GC1z82eubbtyEBCribWU7BljZTIB/trained_model.tar\n2023-12-22T16:26:44Z | INFO | [ Complete ] dest=/src/weights-cache/61d61cadc695e415 size=\"186 MB\" total_elapsed=0.462s url=https://replicate.delivery/pbxt/fNgClbeGdYulIURATUep5GC1z82eubbtyEBCribWU7BljZTIB/trained_model.tar\nb''\nDownloaded weights in 0.5937182903289795 seconds\nLoading fine-tuned model\nDoes not have Unet. assume we are using LoRA\nLoading Unet LoRA\nPrompt: A <s0><s1> Simpsons character of Jean Luc Picard in starfleet uniform\ntxt2img mode\n 0%| | 0/23 [00:00<?, ?it/s]\n 4%|▍ | 1/23 [00:00<00:06, 3.63it/s]\n 9%|▊ | 2/23 [00:00<00:05, 3.62it/s]\n 13%|█▎ | 3/23 [00:00<00:05, 3.61it/s]\n 17%|█▋ | 4/23 [00:01<00:05, 3.61it/s]\n 22%|██▏ | 5/23 [00:01<00:04, 3.61it/s]\n 26%|██▌ | 6/23 [00:01<00:04, 3.61it/s]\n 30%|███ | 7/23 [00:01<00:04, 3.61it/s]\n 35%|███▍ | 8/23 [00:02<00:04, 3.61it/s]\n 39%|███▉ | 9/23 [00:02<00:03, 3.61it/s]\n 43%|████▎ | 10/23 [00:02<00:03, 3.61it/s]\n 48%|████▊ | 11/23 [00:03<00:03, 3.60it/s]\n 52%|█████▏ | 12/23 [00:03<00:03, 3.61it/s]\n 57%|█████▋ | 13/23 [00:03<00:02, 3.60it/s]\n 61%|██████ | 14/23 [00:03<00:02, 3.60it/s]\n 65%|██████▌ | 15/23 [00:04<00:02, 3.60it/s]\n 70%|██████▉ | 16/23 [00:04<00:01, 3.61it/s]\n 74%|███████▍ | 17/23 [00:04<00:01, 3.60it/s]\n 78%|███████▊ | 18/23 [00:04<00:01, 3.60it/s]\n 83%|████████▎ | 19/23 [00:05<00:01, 3.60it/s]\n 87%|████████▋ | 20/23 [00:05<00:00, 3.60it/s]\n 91%|█████████▏| 21/23 [00:05<00:00, 3.59it/s]\n 96%|█████████▌| 22/23 [00:06<00:00, 3.56it/s]\n100%|██████████| 23/23 [00:06<00:00, 3.57it/s]\n100%|██████████| 23/23 [00:06<00:00, 3.60it/s]\n 0%| | 0/7 [00:00<?, ?it/s]\n 14%|█▍ | 1/7 [00:00<00:01, 3.96it/s]\n 29%|██▊ | 2/7 [00:00<00:01, 4.08it/s]\n 43%|████▎ | 3/7 [00:00<00:00, 4.13it/s]\n 57%|█████▋ | 4/7 [00:00<00:00, 4.14it/s]\n 71%|███████▏ | 5/7 [00:01<00:00, 4.15it/s]\n 86%|████████▌ | 6/7 [00:01<00:00, 4.16it/s]\n100%|██████████| 7/7 [00:01<00:00, 4.16it/s]\n100%|██████████| 7/7 [00:01<00:00, 4.14it/s]",
"metrics": {
"predict_time": 11.122483,
"total_time": 14.711969
},
"output": [
"https://replicate.delivery/pbxt/ZtcZALxzW3IsAJB4gTi9mOAw5lTHg4hGMeQrieVQnruNr2ESA/out-0.png"
],
"started_at": "2023-12-22T16:26:43.666773Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/q3fxk7lbzyvzsgt5zjlhfoifha",
"cancel": "https://api.replicate.com/v1/predictions/q3fxk7lbzyvzsgt5zjlhfoifha/cancel"
},
"version": "f4d36a72b43ea2fd511cab0afb32539955ee5b28b65c8e3fb7d8abd254be8e91"
}
Using seed: 18141
Ensuring enough disk space...
Free disk space: 2029064146944
Downloading weights: https://replicate.delivery/pbxt/fNgClbeGdYulIURATUep5GC1z82eubbtyEBCribWU7BljZTIB/trained_model.tar
2023-12-22T16:26:43Z | INFO | [ Initiating ] dest=/src/weights-cache/61d61cadc695e415 minimum_chunk_size=150M url=https://replicate.delivery/pbxt/fNgClbeGdYulIURATUep5GC1z82eubbtyEBCribWU7BljZTIB/trained_model.tar
2023-12-22T16:26:44Z | INFO | [ Complete ] dest=/src/weights-cache/61d61cadc695e415 size="186 MB" total_elapsed=0.462s url=https://replicate.delivery/pbxt/fNgClbeGdYulIURATUep5GC1z82eubbtyEBCribWU7BljZTIB/trained_model.tar
b''
Downloaded weights in 0.5937182903289795 seconds
Loading fine-tuned model
Does not have Unet. assume we are using LoRA
Loading Unet LoRA
Prompt: A <s0><s1> Simpsons character of Jean Luc Picard in starfleet uniform
txt2img mode
0%| | 0/23 [00:00<?, ?it/s]
4%|▍ | 1/23 [00:00<00:06, 3.63it/s]
9%|▊ | 2/23 [00:00<00:05, 3.62it/s]
13%|█▎ | 3/23 [00:00<00:05, 3.61it/s]
17%|█▋ | 4/23 [00:01<00:05, 3.61it/s]
22%|██▏ | 5/23 [00:01<00:04, 3.61it/s]
26%|██▌ | 6/23 [00:01<00:04, 3.61it/s]
30%|███ | 7/23 [00:01<00:04, 3.61it/s]
35%|███▍ | 8/23 [00:02<00:04, 3.61it/s]
39%|███▉ | 9/23 [00:02<00:03, 3.61it/s]
43%|████▎ | 10/23 [00:02<00:03, 3.61it/s]
48%|████▊ | 11/23 [00:03<00:03, 3.60it/s]
52%|█████▏ | 12/23 [00:03<00:03, 3.61it/s]
57%|█████▋ | 13/23 [00:03<00:02, 3.60it/s]
61%|██████ | 14/23 [00:03<00:02, 3.60it/s]
65%|██████▌ | 15/23 [00:04<00:02, 3.60it/s]
70%|██████▉ | 16/23 [00:04<00:01, 3.61it/s]
74%|███████▍ | 17/23 [00:04<00:01, 3.60it/s]
78%|███████▊ | 18/23 [00:04<00:01, 3.60it/s]
83%|████████▎ | 19/23 [00:05<00:01, 3.60it/s]
87%|████████▋ | 20/23 [00:05<00:00, 3.60it/s]
91%|█████████▏| 21/23 [00:05<00:00, 3.59it/s]
96%|█████████▌| 22/23 [00:06<00:00, 3.56it/s]
100%|██████████| 23/23 [00:06<00:00, 3.57it/s]
100%|██████████| 23/23 [00:06<00:00, 3.60it/s]
0%| | 0/7 [00:00<?, ?it/s]
14%|█▍ | 1/7 [00:00<00:01, 3.96it/s]
29%|██▊ | 2/7 [00:00<00:01, 4.08it/s]
43%|████▎ | 3/7 [00:00<00:00, 4.13it/s]
57%|█████▋ | 4/7 [00:00<00:00, 4.14it/s]
71%|███████▏ | 5/7 [00:01<00:00, 4.15it/s]
86%|████████▌ | 6/7 [00:01<00:00, 4.16it/s]
100%|██████████| 7/7 [00:01<00:00, 4.16it/s]
100%|██████████| 7/7 [00:01<00:00, 4.14it/s]