From ac5a4b4444a5dd04f22dde864d425dcaacb8504b Mon Sep 17 00:00:00 2001 From: "chris.dumas" Date: Wed, 18 Nov 2026 09:13:24 +0000 Subject: [PATCH] Update dumas_reference_image_preprocessor.py --- dumas_reference_image_preprocessor.py | 50 +++++++++++++++++++++++---- 1 file changed, 44 insertions(+), 6 deletions(-) diff --git a/dumas_reference_image_preprocessor.py b/dumas_reference_image_preprocessor.py index 2d218dd..0ef7931 100644 --- a/dumas_reference_image_preprocessor.py +++ b/dumas_reference_image_preprocessor.py @@ -21,12 +21,50 @@ def reference_token(reference_id: str | int) -> str: _TEMPLATES = { "Character": ( - "Describe the character in the image in exquisite detail. Include " - "clothing, accessories, body type, proportions, and size. The character " - "will be referred to as {token} and should be treated as a photographic " - "representation of a real person, so start the description with \"{token}\". " - "Do not refer to individual shots; treat this as a visual description of " - "the character." + "Describe the character in exquisite detail. Include clothing, accessories, body type, proportions, and size. " + "The character will be referred to as {token} and should be treated as a photographic representation of a real person, so start the description with {token}. " + "Do not refer to individual shots; treat this as a visual description of the character. " + "Please provide a comprehensive, well-organized, and formatted description that includes:" + "Age: Exact or approximate age (e.g., 28, young adult, elderly, etc.)," + "Ethnicity: Specify ethnicity (e.g., Caucasian, African American, Asian, Hispanic, Indigenous, Middle Eastern, etc.) — include any distinguishing physical traits if relevant," + "Body Type & Proportions: Overall build (e.g., athletic, slender, curvy, tall, short, petite, stocky), limb length, facial structure, torso shape, and general body symmetry," + "Size Metrics (where applicable):" + "- Height (in cm or ft/inches)," + "- Bust, waist, hips (if visible or inferred)" + "- Arm span / leg length (if relevant)," + "- Head size / facial features (e.g., chin, jawline, nose, brow shape)," + "Body Part Details:" + "Head: Hair color, texture, style, facial hair (if any), skin tone, facial features," + "Eyes: Color, shape, size, expression," + "Nose: Shape, size, prominence," + "Lips: Shape, color, fullness," + "Ears: Size, shape, earlobe detail," + "Skin: Tone, texture, blemishes, scars, freckles, or other markings," + "Torso: Chest, shoulders, neck, back, spine curvature," + "Arms: Forearm thickness, bicep size, shoulder width, hand size and shape," + "Legs: Thigh, calf, knee, ankle, foot size and shape," + "Buttocks: Shape, size, muscle definition," + "Intimate Areas** (include all where applicable based on gender):" + "Tits: Size, shape, firmness, areola color, nipple visibility," + "Pussy**: Size, shape, labia, vaginal opening, surrounding skin tone and texture," + "Cock: Length, girth, shape, pubic hair, surrounding skin, base size" + "Clothing & Accessories:" + "Type, color, fabric, fit, style (e.g., tight, loose, formal, casual, athletic)" + "Visible patterns, logos, stitching" + "Footwear, jewelry, headwear, bags, gloves, belts, or other accessories" + "Posture & Expression**: Body orientation, stance, facial expression, gaze direction" + + "Format your response as follows:" + "{token}: [Detailed description here]" + "Example:" + "Token: A 32-year-old African American woman, 5'7\", athletic build with slim legs and hourglass figure. " + "Wearing black high-waisted leggings and a cropped tank top revealing toned abs. Her skin is medium-toned with faint freckles across cheeks. " + "Eyes are almond-shaped and dark brown, lips full and pink. Hair is curly, shoulder-length, and dark brown. " + "Bust 34D, waist 26\", hips 38\". " + "Titted slightly forward, nipples visible through thin fabric. Pussy is small, labia majora small, natural pink skin tone. " + "Cock is medium-length, girth around 10cm, erect with pubic hair neatly trimmed. Standing in a studio with soft backlighting." + "Let’s begin with: " + "{token}:" ), "Object": ( "Describe the object in the image in exquisite detail. Include its shape, "