Instructions to use Alissonerdx/LTX-Best-Face-ID with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Inference
- Notebooks
- Google Colab
- Kaggle
Upload character_sheet_prompt.md with huggingface_hub
Browse files- character_sheet_prompt.md +6 -34
character_sheet_prompt.md
CHANGED
|
@@ -15,14 +15,14 @@ A single image, 4 panels arranged left to right, all on a clean white background
|
|
| 15 |
|
| 16 |
The same person's exact face, hair, and clothing are preserved across all four panels.
|
| 17 |
|
| 18 |
-
|
|
|
|
|
|
|
| 19 |
|
| 20 |
-
|
| 21 |
-
is used as the base to edit rather than just a text-to-image reference.
|
| 22 |
|
| 23 |
-
-
|
| 24 |
-
|
| 25 |
-
for a single polished reference at inference time.
|
| 26 |
|
| 27 |
## The prompt
|
| 28 |
|
|
@@ -59,34 +59,6 @@ panels. No text, no labels, no borders.
|
|
| 59 |
panel stays accurate; the body panels won't match any real clothing the person owns. Still
|
| 60 |
useful for identity, less useful if you need clothing consistency.
|
| 61 |
|
| 62 |
-
## Minimal Python example
|
| 63 |
-
|
| 64 |
-
```python
|
| 65 |
-
import base64
|
| 66 |
-
from openai import OpenAI
|
| 67 |
-
|
| 68 |
-
PROMPT = (
|
| 69 |
-
"Convert the person in the photo into a character reference sheet with four panels "
|
| 70 |
-
"arranged left to right: a close-up of the face, then full-body front, side, and back "
|
| 71 |
-
"views, on a white background."
|
| 72 |
-
)
|
| 73 |
-
|
| 74 |
-
client = OpenAI(api_key="YOUR_API_KEY")
|
| 75 |
-
|
| 76 |
-
with open("input_photo.jpg", "rb") as img_file:
|
| 77 |
-
resp = client.images.edit(
|
| 78 |
-
model="gpt-image-2",
|
| 79 |
-
image=img_file,
|
| 80 |
-
prompt=PROMPT,
|
| 81 |
-
size="1536x1024",
|
| 82 |
-
quality="medium",
|
| 83 |
-
)
|
| 84 |
-
|
| 85 |
-
img_bytes = base64.b64decode(resp.data[0].b64_json)
|
| 86 |
-
with open("character_sheet.jpg", "wb") as f:
|
| 87 |
-
f.write(img_bytes)
|
| 88 |
-
```
|
| 89 |
-
|
| 90 |
## Using the result
|
| 91 |
|
| 92 |
- **For inference** (ComfyUI, `LTX Identity Transfer` node): feed the 4-panel sheet directly as
|
|
|
|
| 15 |
|
| 16 |
The same person's exact face, hair, and clothing are preserved across all four panels.
|
| 17 |
|
| 18 |
+
> ⚠️ **The reference image resolution must be `1536×1024`.** The LTX character-sheet LoRA was
|
| 19 |
+
> trained on sheets at this exact size — ask for `1536x1024` / landscape when generating it, and
|
| 20 |
+
> use `ref_resize_mode = native_resolution` on the ComfyUI node at inference time (see below).
|
| 21 |
|
| 22 |
+
## Model
|
|
|
|
| 23 |
|
| 24 |
+
`gpt-image-2` — the easiest way is to just **upload your photo to ChatGPT** and paste the prompt
|
| 25 |
+
below (image generation/editing is built in, no API needed). Ask for it at **1536×1024** / landscape.
|
|
|
|
| 26 |
|
| 27 |
## The prompt
|
| 28 |
|
|
|
|
| 59 |
panel stays accurate; the body panels won't match any real clothing the person owns. Still
|
| 60 |
useful for identity, less useful if you need clothing consistency.
|
| 61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
## Using the result
|
| 63 |
|
| 64 |
- **For inference** (ComfyUI, `LTX Identity Transfer` node): feed the 4-panel sheet directly as
|