jichengdu / flux-pulid

  • Public
  • 41 runs

PuLID for FLUX

欢迎使用 PuLID-FLUX-v0.9.0,这是一个为 FLUX.1-dev 设计的免调整 ID 定制解决方案。

关于 PuLID for FLUX

PuLID(Pure and Lightning ID customization,纯净闪电 ID 定制)是一个定制图像(尤其是面部)的 AI 模型,同时保留重要的身份特征。此版本专为 FLUX.1-dev 优化。PuLID for FLUX 的功能:

  • 将特定身份(如人脸)添加到 FLUX.1-dev 文本到图像模型中,而不改变模型的正常工作方式
  • 创建具有高身份相似度的图像
  • 允许通过文本提示更改属性、风格和背景
  • 保持图像元素如背景、光照和风格的一致性
  • 提供多种编辑和修改生成图像的选项

PuLID for FLUX 采用了一些先进技术: - 包含两个主要部分:常规扩散训练部分和新的闪电 T2I 部分 - 使用特殊方法理解面部身份 - 使用”对比对齐”技术保持图像一致性 - 能够快速创建图像,同时保持身份准确性

您可以将 PuLID for FLUX 用于: - 创建头像和角色 - 编辑和改进面部 - 创建数字艺术 - 制作原型和可视化

如何使用此 Replicate 演示

  1. 上传包含您想使用的身份的图像
  2. 编写描述您想创建的图像的提示
  3. 根据需要调整设置(查看下面的”实用提示”)
  4. 点击生成您的定制图像!

实用提示

两个重要设置需要考虑:

开始插入 ID 的时间步: - 决定在图像创建过程中何时开始添加身份 - 较低的数字(0-1)使身份看起来更相似,但可能更难编辑 - 较高的数字(如 4)更容易编辑,但可能使身份相似度降低 - 我们建议对写实图像使用 4,对风格化图像使用 0-1

True CFG 比例: - FLUX.1-dev 通常使用”假 CFG” - 您可以选择使用假 CFG 或真 CFG - 假 CFG 通常适用于写实场景 - 真 CFG 在某些情况下可能使身份看起来更相似 - 如果身份相似度不够或风格不太对,请尝试对风格化场景使用真 CFG

局限性

这是测试版本。我们注意到它对某些男性面孔可能效果不佳。


PuLID for FLUX

Welcome to PuLID-FLUX-v0.9.0, a tuning-free ID customization solution for FLUX.1-dev.

About PuLID for FLUX

PuLID (Pure and Lightning ID customization) is an AI model that customizes images, especially faces, while keeping important identity features. This version is specifically optimized for FLUX.1-dev. Here’s what PuLID for FLUX does:

  • It adds a specific identity (like a person’s face) to the FLUX.1-dev text-to-image model without changing how the model usually works
  • It creates images with high identity similarity
  • It lets you change attributes, styles, and backgrounds using text prompts
  • It keeps image elements like background, lighting, and style consistent
  • It gives you many options to edit and change the generated images

PuLID for FLUX uses advanced technology: - It has two main components: a regular diffusion training part and a new Lightning T2I part - It uses special methods to understand facial identity - It uses a “contrastive alignment” technique to keep images consistent - It can create images quickly while maintaining identity accuracy

You can use PuLID for FLUX for: - Creating avatars and characters - Editing and improving faces - Creating digital art - Making prototypes and visualizations

How to Use This Replicate Demo

  1. Upload an image with the identity you want to use
  2. Write a prompt describing the image you want to create
  3. Adjust the settings if needed (check the “Useful Tips” below)
  4. Click to generate your customized image!

Useful Tips

Two important settings to consider:

Timestep to start inserting ID: - This decides when to start adding the identity during image creation - Lower numbers (0-1) make the identity look more similar but might be harder to edit - Higher numbers (like 4) are easier to edit but might make the identity less similar - We suggest using 4 for realistic images, and 0-1 for stylized images

True CFG scale: - FLUX.1-dev usually uses a “fake CFG” - You can choose to use either fake CFG or true CFG - Fake CFG often works well for realistic scenes - True CFG might make the identity look more similar in some cases - Try true CFG for stylized scenes if the identity doesn’t look similar enough or the style isn’t quite right

Limitations

This is a test version. We’ve noticed that it might not work as well for some male faces.