VTO / app /services /prompt_factory.py
Akshajzclap's picture
Upload 89 files
bd55a25 verified
OUTFIT_MATCH_PROMPT_TEMPLATE = """
Generate an image of a {model_gender} fashion model, with a mid-length wavy hairstyle
Model characteristics: {model_age_range} age range, {model_race_ethnicity} ethnicity, {model_body_shape} body shape.
The model is {model_pose} confidently with arms relaxed, facing forward.
Crucially, the model must be wearing the exact same garments (e.g., dress, or top and bottom) and {garment_type} as shown in the two input reference images.
Photography details:
- Camera view: {camera_view_angle}.
- Distance from subject: {camera_distance_meters} meters.
- Lens: {camera_focal_length_mm}mm focal length.
- Aperture: f/{camera_aperture_f_number}.
- Lighting: {camera_lighting_condition}.
- Background: {camera_background}.
Aim for a realistic, high-quality fashion photograph.
"""
LIFESTYLE_TRYON_PROMPT_TEMPLATE = """
Generate an image of a {model_gender} fashion model, with a mid-length wavy hairstyle
Model characteristics: {model_age_range} age range, {model_race_ethnicity} ethnicity, {model_body_shape} body shape.
The model is {model_pose} confidently with arms relaxed, facing forward.
Crucially, the model must be wearing the exact {garment_type} or carrying it (if its handbag/wallet)as shown in the input reference image.
Photography details:
- Camera view: {camera_view_angle}.
- Distance from subject: {camera_distance_meters} meters.
- Lens: {camera_focal_length_mm}mm focal length.
- Aperture: f/{camera_aperture_f_number}.
- Lighting: {camera_lighting_condition}.
- Background: {camera_background}.
Aim for a realistic, high-quality fashion photograph.
"""
OCCASION_BASED_PROMPT_TEMPLATE = """
Generate a single high-resolution collage image featuring a {model_gender} fashion model with a mid-length wavy hairstyle.
Model characteristics: {model_age_range} age range, {model_race_ethnicity} ethnicity, {model_body_shape} body shape.
The model is {model_pose} confidently with arms relaxed, facing forward.
The collage must depict the model must be holding the exact accessory {garment_type} shown in the input reference image, across three distinct occasions:
1. **Daytime Casual** — Bright natural daylight in an outdoor setting (e.g., street, park, or café).
2. **Evening Social** — Warm, low-light evening setting (e.g., party, restaurant, or event).
3. **Professional Environment** — Clean, minimal indoor office setup with diffused lighting.
There should be 3 panels, highlighting the {garment_type} Each panel in the collage should maintain the same model features and outfit/accessory, while varying:
- Lighting conditions (natural daylight, ambient evening light, office light).
- Backgrounds and context appropriate to each occasion.
- Slight pose or expression adjustments that match the mood of each setting.
Photography details for each panel:
- Camera view: {camera_view_angle}.
- Distance from subject: {camera_distance_meters} meters.
- Lens: {camera_focal_length_mm}mm focal length.
- Aperture: f/{camera_aperture_f_number}.
Ensure the collage composition is visually balanced, realistic, and fashion-editorial quality. The accessory must remain clearly visible and consistent across all settings.
"""
WHAT_FITS_INSIDE_TEMPLATE = """
A top-view shot of an open bag with dimensions: height: {height_cm} cm, width: {width_cm} cm, length: {length_cm} cm, placed on a neutral flat surface.
Inside the bag are a few realistically fitting personal items selected based on the available internal space. These may include small items such as lipsticks, sunglasses, and a compact book or notebook.
If the bag is large enough, it may also include items like a laptop or a full-size book.
Ensure the items are neatly arranged and clearly visible from the top. Use natural lighting and realistic textures to highlight both the product’s material and its capacity, showcasing how it can be used in everyday life.
"""
SIZE_COMPARISION_TEMPLATE = """
A front-facing shot of a bag with dimensions: height: {height_cm} cm, width: {width_cm} cm, length: {length_cm} cm, placed on a neutral flat surface.
Arranged neatly beside the bag are realistically scaled personal items to visually demonstrate size and capacity.
These may include objects such as an iPad, laptop, iPhone, sunglasses, a compact book or notebook, and small accessories like lipsticks.
The items should be clearly visible and aligned next to the bag to provide an intuitive size comparison.
Use natural lighting and realistic textures to highlight the bag's material and context in everyday usage.
"""
JEWELLERY_SIZE_COMPARISION_TEMPLATE= """
A close-up, front-facing image of a jewellery piece with dimensions: height: {height_cm} cm, width: {width_cm} cm, length: {length_cm} cm, placed on a neutral, clean surface.
To provide a clear and intuitive sense of scale, the jewellery is positioned next to realistically sized everyday objects such as a standard coin (e.g., US quarter, INR ₹5 coin) or an AirPods case.
Ensure the objects are aligned neatly beside the jewellery piece, with accurate proportions and spacing, making the size comparison easy to understand at a glance.
Use natural lighting and high-resolution detail to highlight the material, craftsmanship, and design of the jewellery.
The background should remain minimal and unobtrusive to keep the focus on the item and its relative scale.
"""
WALLET_SIZE_COMPARISION_TEMPLATE = """
Generate a side-by-side comparison image of two wallets using the provided input images.
The first wallet has dimensions: height {height_cm1} cm, width {width_cm1} cm, length {length_cm1} cm.
The second wallet has dimensions: height {height_cm2} cm, width {width_cm2} cm, length {length_cm2} cm.
Place both wallets on a neutral flat background, maintaining realistic proportions based on their actual sizes.
Ensure consistent lighting and angle to allow for an accurate visual comparison.
The output should clearly show both wallets side by side to highlight differences in size and design.
"""
MANNEQUIN_TEMPLATE = """
Generate a realistic image of a mannequin wearing the input dress.
Use the provided dress image as the design reference.
The mannequin should be in a neutral standing pose, facing forward, with even lighting and a plain, light-colored background to highlight the outfit.
Ensure the fabric, pattern, color, and style of the dress are preserved accurately on the mannequin.
The final image should look like a studio fashion display for catalog or e-commerce use.
"""
DETAIL_SHOTS_TEMPLATE = """
Generate a collage of 3 to 4 close-up images showcasing detailed views of the provided fashion product from the input image.
Focus on important fabric and design elements such as stitching, embroidery, texture, patterns, and hardware details like buttons or zippers.
Each image in the collage should highlight a different section of the product, such as unique features, construction details, and material textures.
Maintain realistic lighting and accurately represent the fabric or material.
The final output should be a cohesive, high-quality collage suitable for e-commerce zoom views or fashion catalog detail pages.
"""
BACKGROUND_EDIT_TEMPLATE = """
Create a high-quality, realistic product-only visual featuring a {garment_type} placed on a lifelike surface such as a {surface_type}.
The product should be the sole focus, with no human models present. Ensure the background is editable, allowing for easy customization or replacement with other realistic lifestyle settings.
The surface should enhance the product’s appeal without distracting from it.
Photography details:
- Camera view: {camera_view_angle}.
- Distance from subject: {camera_distance_meters} meters.
- Lens: {camera_focal_length_mm}mm focal length.
- Aperture: f/{camera_aperture_f_number}.
- Lighting: {camera_lighting_condition}.
- Background: {camera_background}.
Aim for a realistic, high-quality fashion photograph.
"""
MULTI_VIEW_TEMPLATE = """
Generate side, front, back, top and more relevant distinct views (no duplicates) of the fashion product exactly as shown in the input image. The ouput should be clear and same as input and focus on details.
Each view should be unique and clearly separated and there should be no duplicates views, It should include all the relevant detais.
Each section of the collage should accurately represent the product from its respective angle, maintaining realistic lighting, color, and material texture.
The final image should be visually balanced and suitable for e-commerce or catalog use, providing a concise multi-angle reference of the product.
"""
EDITORIAL_PROMPT_TEMPLATE = """
As a high-fashion editorial stylist and photographer, create a visually striking, hyper-realistic image of a
{model_race_ethnicity} {model_gender} model in their {model_age_range}, with a {model_body_shape} body type.
The model must be wearing the exact same top or dress as shown in the uploaded image—match the color, fit, fabric,
and all visible details precisely, with no changes or reinterpretation.
Pair this top with a bold, fashion-forward bottom thoughtfully styled to complement the top’s style and color.
Style the outfit and image in a colorful, visually rich palette, using complementary or contrasting colors to create a
bold, modern editorial look. Render the final image in full color, with attention to color harmony and visual impact.
The top must remain the clear focus of the outfit.
Capture the model in a {model_pose}, evoking the energy and composition of a high-end fashion editorial.
The camera should use a {camera_view_angle} angle from approximately {camera_distance_meters} meters away,
with a focal length of {camera_focal_length_mm}mm and an aperture of f/{camera_aperture_f_number}.
Lighting should be {camera_lighting_condition}, with dramatic, editorial effects like side lighting, deep shadows,
or high-contrast illumination to sculpt the clothing’s structure and add depth.
The background should be {camera_background}.
Frame the shot creatively, with attention to the lines and proportions of the garments.
The main focus must be on the clothing’s design, especially the top, with all details—fabric, tailoring, and silhouette—
clearly visible and highlighted. The final image must look like a magazine cover or a Zara campaign: bold, artistic,
and visually unforgettable, with the clothing as the star of the composition.
"""