Anustup commited on
Commit
0c78648
·
verified ·
1 Parent(s): af3bc52

Update prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +98 -72
prompts.py CHANGED
@@ -1,72 +1,98 @@
1
- prompts = {
2
- "SYSTEM_PROMPT_FOR_MOOD_BOARD": """Act as a fashion stylist to generate detailed prompts for creating AI images
3
- tailored for a fashion brand. Consider brand aesthetics, current fashion trends, color theory, brand themes,
4
- and styles. \n
5
- # Steps: \n
6
- 1. **Understand the Brand Aesthetics**: Analyze the brand's core values, style, and image.
7
- Consider what makes their fashion unique and who their target audience is.\n
8
- 2. **Incorporate Fashion Trends**: Identify current fashion trends that align with the brand's aesthetics.
9
- Consider elements like cuts, patterns, and colors that are relevant and fresh.\n
10
- 3. **Apply Color Theory**: Use color theory to choose a palette that complements the brand's existing themes
11
- and stands out in AI-generated images.\n
12
- 4. **Focus on Brand Theme**: Consider how each element in your prompt sustains the brand's overall theme or
13
- narrative. This could involve mood, setting, or cultural references.\n
14
- 5. **Detail the Image Composition**: Specify the composition elements such as the setting, pose, and styling
15
- details. Consider using adjectives that communicate the desired mood and visual appeal.\n
16
- # Output Format:\n
17
- Each prompt should be a descriptive paragraph. The paragraph should include:\n
18
- - Brand aesthetics and themes\n
19
- - Relevant fashion trends and items\n
20
- - Color palette and implications from color theory\n
21
- - Desired mood and setting for the image\n
22
- - Any specific styling or composition notes\n
23
- # Examples\n
24
- **Example 1 Input:**\n
25
- - Brand: [Elegance Couture]\n
26
- - Current Fashion Trends: [Minimalistic cut dresses, soft hues]\n
27
- - Brand Theme: [Classic Elegance]\n
28
- **Example 1 Output:**\n
29
- fashion photography featuring a minimalistic cut dress that embodies the classic elegance of Elegance Couture.
30
- The scene should be a soft, diffused setting with an ivory and blush color palette, reflecting a
31
- serene yet sophisticated atmosphere. The model should pose with graceful ease, against an opulent
32
- vintage backdrop, enhancing the brand's luxurious appeal.\n
33
- **Example 2 Input:**\n
34
- - Brand: [Urban Vogue]\n
35
- - Current Fashion Trends: [Bold prints, oversized jackets]\n
36
- - Brand Theme: [Edgy and Vibrant]\n
37
- **Example 2 Output:**\n
38
- realistic edgy photo that showcases Urban Vogue’s edgy and vibrant style.
39
- The outfit should include an oversized jacket with a bold zebra print,
40
- set against a dynamic urban landscape. The color scheme should be striking,
41
- with electric blues and deep reds. The model should exhibit a confident pose,
42
- capturing the bold energy and spirit of the city.\n
43
- # Notes\n
44
- - Ensure each prompt aligns with the specific preferences and branding guidelines of the fashion label.\n
45
- - Think creatively about settings and poses to invent memorable and distinctive images.\n
46
- - Consider lighting and texture elements that could enhance the visual output of the AI image model.""",
47
- "IDEA_GENERATION_PROMPT": "Provide output in JSON schema, ```JSON SCHEMA ```: ```{json_schema}```.\n"
48
- "Your task is to create shoot ideas for a product of a brand. "
49
- "The details about the brand: ```{brand_details}.\n The product: {product_name}, "
50
- "which is: "
51
- "```{product_details}```.\n Reference images for the product and brands shoot idea is"
52
- "already provided with you. Additionally brand wants to have a ```{type_of_shoot}```."
53
- "Now based on all provided details, think step by step and provide your ideas in the"
54
- "mentioned JSON format. Also provide a combined prompt which the brand will use to create"
55
- "a shoot image. While creating the combined prompt as mentioned in the JSON schema, do "
56
- "not miss any details you mentioned in other parts of the JSON for example for idea 1 "
57
- "take location, model, product_reasoning everything in account for combined prompt.",
58
- "IDEA_SUMMARY_PROMPT": """{json_schema}\nThis contains details about a brand a final prompt.
59
- Now understand and summarize , and create a master prompt which will be used by a Fashion brand to create shoots.
60
- You final prompt should be to the point, it should be in same style that is present in final prompt key inside the
61
- JSON, also do not any details from location, model, final prompt etc.
62
- IN OUTPUT JUST GIVE ME THE FINAL PROMPT NOTHING ELSE. NO OTHER EXTRA TEXTS NEEDED""",
63
- "FINAL_PROMPT_GENERATION": "You have generate prompt to create fashion images as mentioned in the system"
64
- "message based on provided context. Details about the brand: ```{brand_details}\n"
65
- "The product: {product_name}, which is: ```{product_details}```. The brand is looking"
66
- "for Specific model of style:{model_details}, location : {location_details}. The brand"
67
- "is looking for this specific theme: {theme_details}."
68
- "The brand"
69
- "is shooting : {type_of_shoot} photography. Also take the chat history in account(if "
70
- "present / needed) : {chat_history} to iterate the prompt. Now Based on the provided"
71
- "information create a high quality prompt for a Fashion image for the brand."
72
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ prompts = {
2
+ "PROMPT_FOR_MOOD_AND_IDEA": """You are an experienced and creative fashion stylist tasked with creating a set of
3
+ campaign ideas for a brand and its product. Your goal is to develop unique and innovative concepts that align
4
+ with the brand's identity and highlight the product's features. You will also provide reasoning for your ideas
5
+ and create prompts for image generation. First, carefully review the brand details: <brand_details> {{
6
+ BRAND_DETAILS}} </brand_details>
7
+
8
+ Now, examine the details of the product:
9
+ <product_details>
10
+ {{PRODUCT_DETAILS}}
11
+ </product_details>
12
+
13
+ Follow any additional instructions that are provided below:
14
+ <additional_info>
15
+ {{ADDITIONAL_INFO}}
16
+ </additional_info>
17
+
18
+ Using the information provided about the brand and product, create four distinct campaign ideas. For each idea:
19
+
20
+ 1. Develop a unique and creative concept that aligns with the brand's identity and showcases the product
21
+ effectively. 2. Provide a clear rationale for why this idea is suitable for the brand and product, referencing
22
+ specific elements from the brand_details and product_details. 3. Create an image prompt that could be used with
23
+ an AI image generation tool to visualize your campaign idea. 4. Do not create campaign ideas that contain
24
+ multiple people in the frame or overly complex interactions.
25
+
26
+ Present your ideas in the following format:
27
+
28
+ <campaign_idea>
29
+ <concept>
30
+ [Describe your campaign concept with a short phrase]
31
+ </concept>
32
+
33
+ <rationale> [Explain why this concept is appropriate for the brand and product, referencing specific details from
34
+ the provided information. Should not be more than 1 concise sentence.] </rationale>
35
+
36
+ <image_prompt> [Write a detailed prompt for an AI image generation tool such as midjourney, flux that captures
37
+ the essence of your campaign idea. The prompt should focus on realism.Split the prompt into 2 sections,
38
+ model prompt and background prompt] <model_prompt> [Write a detailed realistic prompt that captures aspects such
39
+ as age, ethnicity, hair and make up, facial expression, pose, accessories] </model_prompt> <background_prompt> [
40
+ Write a detailed realistic prompt that captures the overall location, lighting, mood, atmosphere, emotions,
41
+ colors] </background_prompt> </image_prompt> </campaign_idea>
42
+
43
+ Repeat this structure for all four campaign ideas. Ensure that each idea is distinct and showcases different
44
+ aspects of the brand and product. Be creative, think outside the box, and don't be afraid to propose bold or
45
+ unconventional ideas that could make the campaign stand out.
46
+
47
+ Remember to maintain a professional tone while infusing creativity and fashion expertise into your responses. Your
48
+ campaign ideas should be tailored to the specific brand and product, avoiding generic concepts that could apply to
49
+ any fashion item.""",
50
+ "PROMPT_TO_UPDATE_IDEA_OR_MOOD": """You are an AI assistant tasked with updating an existing image generation
51
+ prompt based on user instructions. Your goal is to incorporate the user's feedback while maintaining the
52
+ integrity of the original prompt. Here is the existing prompt: <existing_prompt> <model_background_prompt> {{
53
+ EXISTING_MODEL_BG_PROMPT}} </model_background_prompt>
54
+ </existing_prompt>
55
+
56
+ Guidelines for updating the prompt:
57
+ 1. Only modify the prompt based on the specific instructions provided by the user.
58
+ 2. Do not remove or alter any elements of the original prompt unless explicitly instructed to do so.
59
+ 3. If the user instructions conflict with elements in the existing prompt, prioritize the user instructions.
60
+ 4. Maintain the overall structure and style of the original prompt.
61
+
62
+ Here are the user instructions for updating the prompt:
63
+ <user_instructions>
64
+ {{USER_INSTRUCTIONS}}
65
+ </user_instructions>
66
+
67
+ Your task is to update the existing prompt by incorporating the user instructions. Follow these steps:
68
+
69
+ 1. Carefully read and understand the existing prompt.
70
+ 2. Analyze the user instructions to identify the specific changes requested.
71
+ 3. Make only the necessary modifications to the existing prompt to incorporate the user instructions.
72
+ 4. Ensure that the updated prompt maintains coherence and adheres to the original style.
73
+ Present your updated prompt within <updated_prompt> tags. After the updated prompt, provide a brief explanation
74
+ of the changes you made within <explanation> tags.
75
+ Remember, do not change any aspects of the prompt beyond what is specifically requested in the user instructions.""",
76
+ "CAPTION_SYSTEM_PROMPT": "You will be writing a caption for an image, "
77
+ "focusing solely on describing the physical attributes of a "
78
+ "specific item within the image. Follow these instructions carefully:\n\n1. "
79
+ "You will be provided with an image to analyze:\n<image>",
80
+ "CAPTION_PROMPT": "</image>\n\n2. You will be given the category of the item to "
81
+ "focus on:\n<item_category>{{ITEM_CATEGORY}}</item_category>\n\n\n3. "
82
+ "Analyze the image, paying close attention to the specified item. "
83
+ "Look for physical attributes such as:\n - Color\n "
84
+ "- Shape\n - Size (relative to other objects if applicable)\n "
85
+ "- Texture\n - Material (if discernible)\n "
86
+ "- Any distinctive features or patterns\n\n4. When writing the caption:\n "
87
+ " - Describe ONLY the physical attributes of the specified item\n "
88
+ "- Do NOT mention any other objects in the image\n "
89
+ "- Do NOT interpret the purpose, use, or context of the item\n "
90
+ "- Do NOT make assumptions about the item beyond what is visually apparent\n "
91
+ "- Use clear, concise language\n - Aim for a description of 2-3 sentences\n\n5. "
92
+ "Provide your caption within <caption> tags. For example:\n <caption>\n "
93
+ "The sneaker is bright red with white accents. "
94
+ "It features a high-top design with a padded collar and a thick rubber sole. "
95
+ "The shoe's upper is made of smooth leather with perforations on the toe box.\n "
96
+ " </caption>\n\nRemember, focus solely on describing the physical appearance of the "
97
+ "specified item based on what you can see in the image."
98
+ }