fofr / pulid-base

Use a face to make images. Uses SDXL fine-tuned checkpoints.

  • Public
  • 162.4K runs
  • L40S
  • GitHub
  • Paper

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: "general - dreamshaperXL_alpha2Xl10"

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

This example was created by a different version, fofr/pulid-base:ff8800a6.

Run time and cost

This model costs approximately $0.0067 to run on Replicate, or 149 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 7 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 weights:

  • albedobaseXL_v21.safetensors
  • dreamshaperXL_alpha2Xl10.safetensors
  • starlightXLAnimated_v3.safetensors
  • pixlAnimeCartoonComic_v10.safetensors
  • rundiffusionXL_beta.safetensors
  • RealVisXL_V4.0.safetensors
  • sdxlUnstableDiffusers_nihilmania.safetensors
  • CinematicRedmond.safetensors

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