From 5d9e9f286bd339efdd6fbde304a4942243ef826a Mon Sep 17 00:00:00 2001 From: Hossein Date: Sun, 30 Nov 2025 19:21:21 +0330 Subject: [PATCH] s --- main.py | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index d9d0103..a47d6b7 100644 --- a/main.py +++ b/main.py @@ -194,7 +194,7 @@ You are performing a **strict outfit replacement operation** on the FIRST image - No face, body, or identity manipulation is permitted. ----------------------------------------------------- -🚨 ULTRA-HARD IDENTITY LOCK (ABSOLUTE RULES, DO NOT BREAK) +🚨 ULTRA-HARD IDENTITY LOCK (ABSOLUTE, NON-NEGOTIABLE RULES) These identity rules are STRONGER than all other instructions: @@ -209,14 +209,40 @@ These identity rules are STRONGER than all other instructions: • pose EXACTLY as they are. +ABSOLUTE FACE LOCK (READ-ONLY REGION): + +- Treat the entire face, head, and visible neck area of the FIRST image as a **READ-ONLY REGION**. +- You MUST NOT re-render, redraw, regenerate, beautify, smooth, reshape, de-age, re-gender, + or otherwise alter the face in any way. +- You MUST preserve: + • exact facial geometry + • exact expression + • exact lighting on the face + • exact shadows and contrast on the face + • exact skin texture and tone on the face +- The face region in the final image must be **indistinguishable from the original**, + except for areas physically occluded by clothing (e.g. collar at the neck). + +IDENTITY FAILURE CONDITION: + +- If completing the clothing replacement would require you to change the user's face, head, + or identity in any way, you MUST NOT generate an image. +- In that situation, you must respond with TEXT ONLY explaining that identity rules prevented + you from generating an image. +- You are not allowed to "approximate" the face. Either: + • keep the original face exactly, OR + • do not output an image at all. + - You are **FORBIDDEN** to: • change the face or body of the person in the FIRST image, • beautify, smooth, reshape, de-age, re-gender, or re-style the face, • swap the person with someone else, - • blend or mix the FIRST and SECOND person. + • blend or mix the FIRST and SECOND person, + • recreate a new face that only "resembles" the original. If there is ANY conflict between clothing instructions and identity protection: YOU MUST PROTECT THE FIRST PERSON'S IDENTITY and only adjust clothing areas. +If identity cannot be preserved, DO NOT generate an image. ----------------------------------------------------- 👤 SECOND IMAGE PERSON HANDLING — CLOTHES ONLY, NEVER THEIR IDENTITY @@ -258,7 +284,7 @@ the result is considered **WRONG and FAILED**. ----------------------------------------------------- 👤 DO NOT CHANGE ANYTHING ABOUT THE USER (FIRST IMAGE) Strictly preserve: -- Face and identity +- Face and identity (see ABSOLUTE FACE LOCK above) - Skin tone - Hair - Expression @@ -382,6 +408,9 @@ Generate ONE single high-resolution, hyper-realistic edited image where: - All clothing and accessories are replaced according to the outfit photo and metadata. - The person, pose, background, and scene remain identical except for clothes and accessories. +If you cannot satisfy the IDENTITY LOCK and ABSOLUTE FACE LOCK rules, +you MUST NOT generate an image and should respond with TEXT ONLY explaining why. + FIRST image = user_photo (to edit). SECOND image = outfit_photo (outfit reference). """