lucataco / sdxl-lcm-zeke

A fine-tuned SDXL-LCM LoRA based on the photos of Zeke

  • Public
  • 609 runs
  • L40S
Iterate in playground

Input

string
Shift + Return to add a new line

Input prompt

Default: "An astronaut riding a rainbow unicorn, cinematic, dramatic"

string
Shift + Return to add a new line

Input Negative Prompt

Default: ""

file

Input image for img2img or inpaint mode

file

Input mask for inpaint mode. Black areas will be preserved, white areas will be inpainted.

integer

Width of output image

Default: 1024

integer

Height of output image

Default: 1024

integer
(minimum: 1, maximum: 4)

Number of images to output.

Default: 1

string

scheduler

Default: "LCM"

integer
(minimum: 1, maximum: 20)

Number of denoising steps

Default: 6

number
(minimum: 1, maximum: 20)

Scale for classifier-free guidance

Default: 2

number
(minimum: 0, maximum: 1)

Prompt strength when using img2img / inpaint. 1.0 corresponds to full destruction of information in image

Default: 0.8

integer

Random seed. Leave blank to randomize the seed

boolean

Applies a watermark to enable determining if an image is generated in downstream applications. If you have other provisions for generating or deploying images safely, you can use this to disable watermarking.

Default: true

number
(minimum: 0, maximum: 1)

LoRA additive scale. Only applicable on trained models.

Default: 0.6

boolean

This model’s safety checker can’t be disabled when running on the website. Learn more about platform safety on Replicate.

Disable safety checker for generated images. This feature is only available through the API. See [https://replicate.com/docs/how-does-replicate-work#safety](https://replicate.com/docs/how-does-replicate-work#safety)

Default: false

Output

output
Generated in

Run time and cost

This model costs approximately $0.014 to run on Replicate, or 71 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia L40S GPU hardware. Predictions typically complete within 15 seconds.

Readme

This is a fine-tuned SDXL-LCM LoRA based on 6 photos of Zeke

To recreate:

  1. Upload zipped photos using this model and get back a URL

  2. Use the following Python code to run this training. Switch out the input_images for the URL in step 1, and replace the model name “lucataco/sdxl-lcm-zeke” to use your own existing replicate model or create one

export REPLICATE_API_TOKEN=r8_****
import replicate
training = replicate.trainings.create(
  version="lucataco/sdxl-lcm:fbbd475b1084de80c47c35bfe4ae64b964294aa7e237e6537eed938cfd24903d",
  input={
        "input_images": "https://replicate.delivery/pbxt/JosiwEGYXZHg0wXzMHcHJPTUMwoN4BsRIB9TOII73u8vbEqr/zeke.zip",
        "use_face_detection_instead": True
  },
  destination="lucataco/sdxl-lcm-zeke"
)