fofr / pulid-lightning

Use a face to instantly make images. Uses SDXL Lightning checkpoints.

  • Public
  • 128.7K runs
  • L40S
  • GitHub
  • Paper
  • License

Input

face_image
*file

The face image to use for the generation

string
Shift + Return to add a new line

You might need to include a gender in the prompt to get the desired result

Default: "A photo of a person"

string
Shift + Return to add a new line

Things you do not want to see in your image

Default: ""

integer

Width of the output image (ignored if structure image given)

Default: 1024

integer

Height of the output image (ignored if structure image given)

Default: 1024

string

Model to use for the generation

Default: "default"

string

Style of the face

Default: "high-fidelity"

integer
(minimum: 1, maximum: 10)

Number of images to generate

Default: 1

string

Format of the output images

Default: "webp"

integer
(minimum: 0, maximum: 100)

Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality.

Default: 80

integer

Set a seed for reproducibility. Random by default.

Output

output
Generated in

Run time and cost

This model costs approximately $0.0047 to run on Replicate, or 212 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 5 seconds. The predict time for this model varies significantly based on the inputs.

Readme

Follow me on X @fofrAI

This model uses:

  • ComfyUI
  • PuLID_ComfyUI by @cubiq

It uses the following fine-tuned lightning weights:

  • dreamshaperXL_lightningDPMSDE.safetensors
  • ProteusV0.4-Lighting.safetensors
  • Juggernaut_RunDiffusionPhoto2_Lightning_4Steps.safetensors

As part of its face detection is uses InsightFace’s antelopev2 model, which cannot be used commercially.