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-mass-effect-andromeda:565c07c4
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-mass-effect-andromeda using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"fofr/sdxl-mass-effect-andromeda:565c07c44ae8e21077f7a895fe44daf0c471de72bb4c83abe6c588f83d063dce",
{
input: {
seed: null,
width: 1152,
height: 768,
prompt: "A closeup TOK photo of an asari, unreal engine",
refine: "expert_ensemble_refiner",
scheduler: "K_EULER",
lora_scale: 0.8,
num_outputs: 1,
refine_steps: null,
guidance_scale: 7.5,
apply_watermark: false,
high_noise_frac: 0.8,
negative_prompt: "distorted, ugly, disfigured, broken",
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-mass-effect-andromeda using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/sdxl-mass-effect-andromeda:565c07c44ae8e21077f7a895fe44daf0c471de72bb4c83abe6c588f83d063dce",
input={
"seed": null,
"width": 1152,
"height": 768,
"prompt": "A closeup TOK photo of an asari, unreal engine",
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.8,
"num_outputs": 1,
"refine_steps": null,
"guidance_scale": 7.5,
"apply_watermark": False,
"high_noise_frac": 0.8,
"negative_prompt": "distorted, ugly, disfigured, broken",
"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-mass-effect-andromeda 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-mass-effect-andromeda:565c07c44ae8e21077f7a895fe44daf0c471de72bb4c83abe6c588f83d063dce",
"input": {
"seed": null,
"width": 1152,
"height": 768,
"prompt": "A closeup TOK photo of an asari, unreal engine",
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.8,
"num_outputs": 1,
"refine_steps": null,
"guidance_scale": 7.5,
"apply_watermark": false,
"high_noise_frac": 0.8,
"negative_prompt": "distorted, ugly, disfigured, broken",
"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-10-30T22:58:10.080721Z",
"created_at": "2023-10-30T22:57:59.552282Z",
"data_removed": false,
"error": null,
"id": "dg7rcvlbik64avvjqg7l6cb2xa",
"input": {
"mask": null,
"seed": null,
"image": null,
"width": 1152,
"height": 768,
"prompt": "A closeup TOK photo of an asari, unreal engine",
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.8,
"num_outputs": 1,
"refine_steps": null,
"guidance_scale": 7.5,
"apply_watermark": false,
"high_noise_frac": 0.8,
"negative_prompt": "distorted, ugly, disfigured, broken",
"prompt_strength": 0.8,
"num_inference_steps": 30
},
"logs": "Using seed: 20685\nLoading fine-tuned model\nDoes not have Unet. assume we are using LoRA\nLoading Unet LoRA\nPrompt: A closeup <s0><s1> photo of an asari, unreal engine\ntxt2img mode\n 0%| | 0/19 [00:00<?, ?it/s]\n 5%|▌ | 1/19 [00:00<00:04, 4.30it/s]\n 11%|█ | 2/19 [00:00<00:03, 4.29it/s]\n 16%|█▌ | 3/19 [00:00<00:03, 4.29it/s]\n 21%|██ | 4/19 [00:00<00:03, 4.30it/s]\n 26%|██▋ | 5/19 [00:01<00:03, 4.30it/s]\n 32%|███▏ | 6/19 [00:01<00:03, 4.30it/s]\n 37%|███▋ | 7/19 [00:01<00:02, 4.30it/s]\n 42%|████▏ | 8/19 [00:01<00:02, 4.29it/s]\n 47%|████▋ | 9/19 [00:02<00:02, 4.29it/s]\n 53%|█████▎ | 10/19 [00:02<00:02, 4.29it/s]\n 58%|█████▊ | 11/19 [00:02<00:01, 4.29it/s]\n 63%|██████▎ | 12/19 [00:02<00:01, 4.29it/s]\n 68%|██████▊ | 13/19 [00:03<00:01, 4.29it/s]\n 74%|███████▎ | 14/19 [00:03<00:01, 4.29it/s]\n 79%|███████▉ | 15/19 [00:03<00:00, 4.29it/s]\n 84%|████████▍ | 16/19 [00:03<00:00, 4.29it/s]\n 89%|████████▉ | 17/19 [00:03<00:00, 4.29it/s]\n 95%|█████████▍| 18/19 [00:04<00:00, 4.29it/s]\n100%|██████████| 19/19 [00:04<00:00, 4.29it/s]\n100%|██████████| 19/19 [00:04<00:00, 4.29it/s]\n 0%| | 0/7 [00:00<?, ?it/s]\n 14%|█▍ | 1/7 [00:00<00:01, 5.52it/s]\n 29%|██▊ | 2/7 [00:00<00:00, 5.51it/s]\n 43%|████▎ | 3/7 [00:00<00:00, 5.50it/s]\n 57%|█████▋ | 4/7 [00:00<00:00, 5.49it/s]\n 71%|███████▏ | 5/7 [00:00<00:00, 5.47it/s]\n 86%|████████▌ | 6/7 [00:01<00:00, 5.46it/s]\n100%|██████████| 7/7 [00:01<00:00, 5.47it/s]\n100%|██████████| 7/7 [00:01<00:00, 5.48it/s]",
"metrics": {
"predict_time": 7.583064,
"total_time": 10.528439
},
"output": [
"https://replicate.delivery/pbxt/tld33iAeES3UEy69Lx4pWA1rnE9ccKLDhEwDy7vXEBmAOv5IA/out-0.png"
],
"started_at": "2023-10-30T22:58:02.497657Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/dg7rcvlbik64avvjqg7l6cb2xa",
"cancel": "https://api.replicate.com/v1/predictions/dg7rcvlbik64avvjqg7l6cb2xa/cancel"
},
"version": "565c07c44ae8e21077f7a895fe44daf0c471de72bb4c83abe6c588f83d063dce"
}
Using seed: 20685
Loading fine-tuned model
Does not have Unet. assume we are using LoRA
Loading Unet LoRA
Prompt: A closeup <s0><s1> photo of an asari, unreal engine
txt2img mode
0%| | 0/19 [00:00<?, ?it/s]
5%|▌ | 1/19 [00:00<00:04, 4.30it/s]
11%|█ | 2/19 [00:00<00:03, 4.29it/s]
16%|█▌ | 3/19 [00:00<00:03, 4.29it/s]
21%|██ | 4/19 [00:00<00:03, 4.30it/s]
26%|██▋ | 5/19 [00:01<00:03, 4.30it/s]
32%|███▏ | 6/19 [00:01<00:03, 4.30it/s]
37%|███▋ | 7/19 [00:01<00:02, 4.30it/s]
42%|████▏ | 8/19 [00:01<00:02, 4.29it/s]
47%|████▋ | 9/19 [00:02<00:02, 4.29it/s]
53%|█████▎ | 10/19 [00:02<00:02, 4.29it/s]
58%|█████▊ | 11/19 [00:02<00:01, 4.29it/s]
63%|██████▎ | 12/19 [00:02<00:01, 4.29it/s]
68%|██████▊ | 13/19 [00:03<00:01, 4.29it/s]
74%|███████▎ | 14/19 [00:03<00:01, 4.29it/s]
79%|███████▉ | 15/19 [00:03<00:00, 4.29it/s]
84%|████████▍ | 16/19 [00:03<00:00, 4.29it/s]
89%|████████▉ | 17/19 [00:03<00:00, 4.29it/s]
95%|█████████▍| 18/19 [00:04<00:00, 4.29it/s]
100%|██████████| 19/19 [00:04<00:00, 4.29it/s]
100%|██████████| 19/19 [00:04<00:00, 4.29it/s]
0%| | 0/7 [00:00<?, ?it/s]
14%|█▍ | 1/7 [00:00<00:01, 5.52it/s]
29%|██▊ | 2/7 [00:00<00:00, 5.51it/s]
43%|████▎ | 3/7 [00:00<00:00, 5.50it/s]
57%|█████▋ | 4/7 [00:00<00:00, 5.49it/s]
71%|███████▏ | 5/7 [00:00<00:00, 5.47it/s]
86%|████████▌ | 6/7 [00:01<00:00, 5.46it/s]
100%|██████████| 7/7 [00:01<00:00, 5.47it/s]
100%|██████████| 7/7 [00:01<00:00, 5.48it/s]