tuannha / instant-character

Tencent Instant Character

  • Public
  • 436 runs
  • L40S
  • GitHub
  • Weights
  • License

Input

subject_image
*file

Grayscale input image

*string
Shift + Return to add a new line

Prompt for the image generation

integer
(minimum: 512, maximum: 2048)

Width of the output image

Default: 512

integer
(minimum: 512, maximum: 2048)

Height of the output image

Default: 512

integer

Seed for the random number generator, -1 for random

Default: -1

number

Guidance scale for the diffusion process

Default: 3.5

integer

Number of diffusion steps

Default: 28

string

Lora to use

Default: "none"

Output

output
Generated in

This output was created using a different version of the model, tuannha/instant-character:cf2799a4.

Run time and cost

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

Readme

InstantCharacter: Personalize Any Characters with a Scalable Diffusion Transformer Framework

InstantCharacter is an innovative, tuning-free method designed to achieve character-preserving generation from a single image, supporting a variety of downstream tasks.

Release

Download

You can directly download the model from Huggingface.

huggingface-cli download --resume-download Tencent/InstantCharacter --local-dir checkpoints --local-dir-use-symlinks False

If you cannot access to Huggingface, you can use hf-mirror to download models.

export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download --resume-download Tencent/InstantCharacter --local-dir checkpoints --local-dir-use-symlinks False