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.
zelenioncode /dreambooth_sdxl:e76c3569
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 zelenioncode/dreambooth_sdxl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"zelenioncode/dreambooth_sdxl:e76c3569c5a59fd8146daef1cc90a3e493b0e1fe4a9f5c82abb5f727d6fcb8c4",
{
input: {
vae: "stabilityai/vae",
input: "https://huggingface.co/WGlint/SafetensorsFromReplicate/resolve/main/input.zip",
gender: "woman",
xformers: true,
class_reg: "",
full_fp16: true,
model_sdxl: "Stable Diffusion XL",
name_model: "Dreambooth_sdxl",
resolution: "1024,1024",
no_half_vae: true,
warmup_init: false,
lr_scheduler: "constant",
mem_eff_attn: true,
noise_offset: 0,
repeat_input: 100,
weight_decay: 0.01,
cache_latents: true,
learning_rate: 0.00001,
max_grad_norm: 0,
relative_step: false,
use_class_reg: false,
optimizer_type: "AdaFactor",
save_precision: "fp16",
max_train_steps: 2600,
mixed_precision: "fp16",
scale_parameter: false,
repeat_class_reg: 1,
train_batch_size: 1,
bucket_no_upscale: true,
bucket_reso_steps: 64,
learning_rate_te1: 0.00001,
learning_rate_te2: 0.00001,
token_huggingface: "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",
folder_huggingface: "",
save_every_n_steps: 1,
train_text_encoder: true,
repo_id_huggingface: "WGlint/SafetensorsFromReplicate",
save_every_n_epochs: 1,
send_to_huggingface: false,
cache_latents_to_disk: true,
gradient_checkpointing: true,
learning_rate_te1_bool: 0.000003,
learning_rate_te2_bool: 0,
lr_scheduler_num_cycles: 1,
max_data_loader_n_workers: 0,
num_cpu_threads_per_process: 4
}
}
);
// 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 zelenioncode/dreambooth_sdxl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"zelenioncode/dreambooth_sdxl:e76c3569c5a59fd8146daef1cc90a3e493b0e1fe4a9f5c82abb5f727d6fcb8c4",
input={
"vae": "stabilityai/vae",
"input": "https://huggingface.co/WGlint/SafetensorsFromReplicate/resolve/main/input.zip",
"gender": "woman",
"xformers": True,
"class_reg": "",
"full_fp16": True,
"model_sdxl": "Stable Diffusion XL",
"name_model": "Dreambooth_sdxl",
"resolution": "1024,1024",
"no_half_vae": True,
"warmup_init": False,
"lr_scheduler": "constant",
"mem_eff_attn": True,
"noise_offset": 0,
"repeat_input": 100,
"weight_decay": 0.01,
"cache_latents": True,
"learning_rate": 0.00001,
"max_grad_norm": 0,
"relative_step": False,
"use_class_reg": False,
"optimizer_type": "AdaFactor",
"save_precision": "fp16",
"max_train_steps": 2600,
"mixed_precision": "fp16",
"scale_parameter": False,
"repeat_class_reg": 1,
"train_batch_size": 1,
"bucket_no_upscale": True,
"bucket_reso_steps": 64,
"learning_rate_te1": 0.00001,
"learning_rate_te2": 0.00001,
"token_huggingface": "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",
"folder_huggingface": "",
"save_every_n_steps": 1,
"train_text_encoder": True,
"repo_id_huggingface": "WGlint/SafetensorsFromReplicate",
"save_every_n_epochs": 1,
"send_to_huggingface": False,
"cache_latents_to_disk": True,
"gradient_checkpointing": True,
"learning_rate_te1_bool": 0.000003,
"learning_rate_te2_bool": 0,
"lr_scheduler_num_cycles": 1,
"max_data_loader_n_workers": 0,
"num_cpu_threads_per_process": 4
}
)
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 zelenioncode/dreambooth_sdxl 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": "zelenioncode/dreambooth_sdxl:e76c3569c5a59fd8146daef1cc90a3e493b0e1fe4a9f5c82abb5f727d6fcb8c4",
"input": {
"vae": "stabilityai/vae",
"input": "https://huggingface.co/WGlint/SafetensorsFromReplicate/resolve/main/input.zip",
"gender": "woman",
"xformers": true,
"class_reg": "",
"full_fp16": true,
"model_sdxl": "Stable Diffusion XL",
"name_model": "Dreambooth_sdxl",
"resolution": "1024,1024",
"no_half_vae": true,
"warmup_init": false,
"lr_scheduler": "constant",
"mem_eff_attn": true,
"noise_offset": 0,
"repeat_input": 100,
"weight_decay": 0.01,
"cache_latents": true,
"learning_rate": 0.00001,
"max_grad_norm": 0,
"relative_step": false,
"use_class_reg": false,
"optimizer_type": "AdaFactor",
"save_precision": "fp16",
"max_train_steps": 2600,
"mixed_precision": "fp16",
"scale_parameter": false,
"repeat_class_reg": 1,
"train_batch_size": 1,
"bucket_no_upscale": true,
"bucket_reso_steps": 64,
"learning_rate_te1": 0.00001,
"learning_rate_te2": 0.00001,
"token_huggingface": "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",
"folder_huggingface": "",
"save_every_n_steps": 1,
"train_text_encoder": true,
"repo_id_huggingface": "WGlint/SafetensorsFromReplicate",
"save_every_n_epochs": 1,
"send_to_huggingface": false,
"cache_latents_to_disk": true,
"gradient_checkpointing": true,
"learning_rate_te1_bool": 0.000003,
"learning_rate_te2_bool": 0,
"lr_scheduler_num_cycles": 1,
"max_data_loader_n_workers": 0,
"num_cpu_threads_per_process": 4
}
}' \
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
No output yet! Press "Submit" to start a prediction.