update
This commit is contained in:
parent
207a4ae834
commit
c2f57a5193
39
main.py
39
main.py
@ -102,7 +102,7 @@ Follow these rules:
|
||||
|
||||
1. Edit ONLY the body/clothing of the FIRST image.
|
||||
|
||||
2. Replace ALL clothing with the items visible in the SECOND image.
|
||||
2. Replace ALL clothing with the items visible in the SECOND image (outfit photo).
|
||||
|
||||
3. Keep the user's:
|
||||
- face
|
||||
@ -113,10 +113,34 @@ Follow these rules:
|
||||
- environment
|
||||
EXACTLY the same.
|
||||
|
||||
4. IF a metadata description is given, use it to understand layers:
|
||||
|
||||
Metadata:
|
||||
{metadata_text}
|
||||
4. OUTFIT PHOTO AND METADATA CONSIDERATION (CRITICAL):
|
||||
|
||||
You MUST consider BOTH sources:
|
||||
|
||||
A) SECOND IMAGE (OUTFIT PHOTO):
|
||||
- Carefully examine ALL clothing items visible in the outfit photo
|
||||
- Transfer EVERY piece of clothing from the outfit photo to the user photo
|
||||
- Pay attention to the visual details: colors, patterns, textures, styles, fit, and layering
|
||||
- Ensure all visible items (tops, bottoms, outerwear, accessories, etc.) are transferred
|
||||
|
||||
B) METADATA:
|
||||
The following metadata provides additional information about the outfit:
|
||||
|
||||
Metadata:
|
||||
{metadata_text}
|
||||
|
||||
Use the metadata to:
|
||||
- Identify and verify ALL items mentioned in the metadata are present in the outfit photo
|
||||
- Understand the complete outfit composition and layering structure
|
||||
- Ensure no items are missed - cross-reference metadata items with the outfit photo
|
||||
- Apply any specific details from metadata (colors, patterns, materials, styles) that match the outfit photo
|
||||
- If metadata mentions items not clearly visible in the photo, use metadata details to enhance accuracy
|
||||
|
||||
C) COMBINE BOTH SOURCES:
|
||||
- Use the outfit photo as the primary visual reference
|
||||
- Use metadata to ensure completeness and accuracy
|
||||
- Transfer ALL items that appear in the outfit photo AND are mentioned in metadata
|
||||
- The final result should include every clothing item visible in the outfit photo, verified against the metadata
|
||||
|
||||
5. Ensure:
|
||||
- realistic lighting
|
||||
@ -125,12 +149,15 @@ Follow these rules:
|
||||
- realism
|
||||
- no blending of people
|
||||
- no copying faces from the second image
|
||||
- all items from both the outfit photo and metadata are properly integrated into the user photo
|
||||
|
||||
6. Output ONE final edited image.
|
||||
6. Output ONE final edited image with ALL items from the outfit photo transferred to the user, ensuring all metadata items are also included.
|
||||
|
||||
IMPORTANT:
|
||||
- FIRST = user_photo
|
||||
- SECOND = outfit_photo
|
||||
- You must use BOTH the outfit photo (visual reference) AND metadata (descriptive reference)
|
||||
- ALL items visible in the outfit photo AND mentioned in metadata must appear in the final image
|
||||
"""
|
||||
|
||||
# ---- Wrap image files ----
|
||||
|
||||
Loading…
Reference in New Issue
Block a user