Alissonerdx commited on
Commit
d223f74
·
verified ·
1 Parent(s): 3f015d5

Upload character_sheet_prompt.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. 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
- ## Model
 
 
19
 
20
- `gpt-image-2`, via the OpenAI Images **edit** endpoint (`client.images.edit`), so the input photo
21
- is used as the base to edit rather than just a text-to-image reference.
22
 
23
- - `size`: `"1536x1024"`
24
- - `quality`: `"low"` is enough for training data (cheaper, ~$0.011/image); use `"medium"`/`"high"`
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