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-80s-cyberpunk:356b6cbe
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-80s-cyberpunk using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"fofr/sdxl-80s-cyberpunk:356b6cbe7f0011970aaa0bfe7a9fcd2e6cd3b84b35d0fd09a840ac1bfc7020d9",
{
input: {
width: 1024,
height: 768,
prompt: "a low iso film still of an 80s cyberpunk in the style of TOK",
refine: "no_refiner",
scheduler: "K_EULER",
lora_scale: 0.9,
num_outputs: 1,
guidance_scale: 7.5,
apply_watermark: false,
high_noise_frac: 0.8,
negative_prompt: "cyan, ugly, broken, distorted, disfigured",
prompt_strength: 0.8,
num_inference_steps: 25
}
}
);
// 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-80s-cyberpunk using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/sdxl-80s-cyberpunk:356b6cbe7f0011970aaa0bfe7a9fcd2e6cd3b84b35d0fd09a840ac1bfc7020d9",
input={
"width": 1024,
"height": 768,
"prompt": "a low iso film still of an 80s cyberpunk in the style of TOK",
"refine": "no_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.9,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": False,
"high_noise_frac": 0.8,
"negative_prompt": "cyan, ugly, broken, distorted, disfigured",
"prompt_strength": 0.8,
"num_inference_steps": 25
}
)
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-80s-cyberpunk 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-80s-cyberpunk:356b6cbe7f0011970aaa0bfe7a9fcd2e6cd3b84b35d0fd09a840ac1bfc7020d9",
"input": {
"width": 1024,
"height": 768,
"prompt": "a low iso film still of an 80s cyberpunk in the style of TOK",
"refine": "no_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.9,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": false,
"high_noise_frac": 0.8,
"negative_prompt": "cyan, ugly, broken, distorted, disfigured",
"prompt_strength": 0.8,
"num_inference_steps": 25
}
}' \
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-05-20T21:38:41.747390Z",
"created_at": "2024-05-20T21:38:28.878000Z",
"data_removed": false,
"error": null,
"id": "987bd8gfhsrgg0cfjzrrnev90r",
"input": {
"width": 1024,
"height": 768,
"prompt": "a low iso film still of an 80s cyberpunk in the style of TOK",
"refine": "no_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.9,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": false,
"high_noise_frac": 0.8,
"negative_prompt": "cyan, ugly, broken, distorted, disfigured",
"prompt_strength": 0.8,
"num_inference_steps": 25
},
"logs": "Using seed: 49234\nEnsuring enough disk space...\nFree disk space: 2158458437632\nDownloading weights: https://replicate.delivery/pbxt/r0au58ewMVyLBq1eCdCiefyrF6IPFXm9XfrNIHyqHCBeqyltE/trained_model.tar\n2024-05-20T21:38:32Z | INFO | [ Initiating ] chunk_size=150M dest=/src/weights-cache/3c62278109b1f6cf url=https://replicate.delivery/pbxt/r0au58ewMVyLBq1eCdCiefyrF6IPFXm9XfrNIHyqHCBeqyltE/trained_model.tar\n2024-05-20T21:38:32Z | INFO | [ Complete ] dest=/src/weights-cache/3c62278109b1f6cf size=\"186 MB\" total_elapsed=0.824s url=https://replicate.delivery/pbxt/r0au58ewMVyLBq1eCdCiefyrF6IPFXm9XfrNIHyqHCBeqyltE/trained_model.tar\nb''\nDownloaded weights in 0.9757394790649414 seconds\nLoading fine-tuned model\nDoes not have Unet. assume we are using LoRA\nLoading Unet LoRA\nPrompt: a low iso film still of an 80s cyberpunk in the style of <s0><s1>\ntxt2img mode\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:07, 3.05it/s]\n 8%|▊ | 2/25 [00:00<00:05, 3.91it/s]\n 12%|█▏ | 3/25 [00:00<00:05, 4.29it/s]\n 16%|█▌ | 4/25 [00:00<00:04, 4.47it/s]\n 20%|██ | 5/25 [00:01<00:04, 4.56it/s]\n 24%|██▍ | 6/25 [00:01<00:04, 4.65it/s]\n 28%|██▊ | 7/25 [00:01<00:03, 4.71it/s]\n 32%|███▏ | 8/25 [00:01<00:03, 4.75it/s]\n 36%|███▌ | 9/25 [00:01<00:03, 4.77it/s]\n 40%|████ | 10/25 [00:02<00:03, 4.79it/s]\n 44%|████▍ | 11/25 [00:02<00:02, 4.78it/s]\n 48%|████▊ | 12/25 [00:02<00:02, 4.80it/s]\n 52%|█████▏ | 13/25 [00:02<00:02, 4.81it/s]\n 56%|█████▌ | 14/25 [00:03<00:02, 4.81it/s]\n 60%|██████ | 15/25 [00:03<00:02, 4.82it/s]\n 64%|██████▍ | 16/25 [00:03<00:01, 4.82it/s]\n 68%|██████▊ | 17/25 [00:03<00:01, 4.82it/s]\n 72%|███████▏ | 18/25 [00:03<00:01, 4.82it/s]\n 76%|███████▌ | 19/25 [00:04<00:01, 4.82it/s]\n 80%|████████ | 20/25 [00:04<00:01, 4.82it/s]\n 84%|████████▍ | 21/25 [00:04<00:00, 4.82it/s]\n 88%|████████▊ | 22/25 [00:04<00:00, 4.82it/s]\n 92%|█████████▏| 23/25 [00:04<00:00, 4.82it/s]\n 96%|█████████▌| 24/25 [00:05<00:00, 4.82it/s]\n100%|██████████| 25/25 [00:05<00:00, 4.82it/s]\n100%|██████████| 25/25 [00:05<00:00, 4.71it/s]",
"metrics": {
"predict_time": 9.730518,
"total_time": 12.86939
},
"output": [
"https://replicate.delivery/pbxt/SZFzNuGhKEqGEJgho78vVhkpyG6DcpQnTcq0fg2TSmcwpLbJA/out-0.png"
],
"started_at": "2024-05-20T21:38:32.016872Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/987bd8gfhsrgg0cfjzrrnev90r",
"cancel": "https://api.replicate.com/v1/predictions/987bd8gfhsrgg0cfjzrrnev90r/cancel"
},
"version": "356b6cbe7f0011970aaa0bfe7a9fcd2e6cd3b84b35d0fd09a840ac1bfc7020d9"
}
Using seed: 49234
Ensuring enough disk space...
Free disk space: 2158458437632
Downloading weights: https://replicate.delivery/pbxt/r0au58ewMVyLBq1eCdCiefyrF6IPFXm9XfrNIHyqHCBeqyltE/trained_model.tar
2024-05-20T21:38:32Z | INFO | [ Initiating ] chunk_size=150M dest=/src/weights-cache/3c62278109b1f6cf url=https://replicate.delivery/pbxt/r0au58ewMVyLBq1eCdCiefyrF6IPFXm9XfrNIHyqHCBeqyltE/trained_model.tar
2024-05-20T21:38:32Z | INFO | [ Complete ] dest=/src/weights-cache/3c62278109b1f6cf size="186 MB" total_elapsed=0.824s url=https://replicate.delivery/pbxt/r0au58ewMVyLBq1eCdCiefyrF6IPFXm9XfrNIHyqHCBeqyltE/trained_model.tar
b''
Downloaded weights in 0.9757394790649414 seconds
Loading fine-tuned model
Does not have Unet. assume we are using LoRA
Loading Unet LoRA
Prompt: a low iso film still of an 80s cyberpunk in the style of <s0><s1>
txt2img mode
0%| | 0/25 [00:00<?, ?it/s]
4%|▍ | 1/25 [00:00<00:07, 3.05it/s]
8%|▊ | 2/25 [00:00<00:05, 3.91it/s]
12%|█▏ | 3/25 [00:00<00:05, 4.29it/s]
16%|█▌ | 4/25 [00:00<00:04, 4.47it/s]
20%|██ | 5/25 [00:01<00:04, 4.56it/s]
24%|██▍ | 6/25 [00:01<00:04, 4.65it/s]
28%|██▊ | 7/25 [00:01<00:03, 4.71it/s]
32%|███▏ | 8/25 [00:01<00:03, 4.75it/s]
36%|███▌ | 9/25 [00:01<00:03, 4.77it/s]
40%|████ | 10/25 [00:02<00:03, 4.79it/s]
44%|████▍ | 11/25 [00:02<00:02, 4.78it/s]
48%|████▊ | 12/25 [00:02<00:02, 4.80it/s]
52%|█████▏ | 13/25 [00:02<00:02, 4.81it/s]
56%|█████▌ | 14/25 [00:03<00:02, 4.81it/s]
60%|██████ | 15/25 [00:03<00:02, 4.82it/s]
64%|██████▍ | 16/25 [00:03<00:01, 4.82it/s]
68%|██████▊ | 17/25 [00:03<00:01, 4.82it/s]
72%|███████▏ | 18/25 [00:03<00:01, 4.82it/s]
76%|███████▌ | 19/25 [00:04<00:01, 4.82it/s]
80%|████████ | 20/25 [00:04<00:01, 4.82it/s]
84%|████████▍ | 21/25 [00:04<00:00, 4.82it/s]
88%|████████▊ | 22/25 [00:04<00:00, 4.82it/s]
92%|█████████▏| 23/25 [00:04<00:00, 4.82it/s]
96%|█████████▌| 24/25 [00:05<00:00, 4.82it/s]
100%|██████████| 25/25 [00:05<00:00, 4.82it/s]
100%|██████████| 25/25 [00:05<00:00, 4.71it/s]