Alexandros Popov commited on
Commit
012ff6c
·
1 Parent(s): c2817df

adjusted prompts.

Browse files
Files changed (1) hide show
  1. judges.py +9 -8
judges.py CHANGED
@@ -79,15 +79,15 @@ def propose_operations(image_path: str, user_prompt: str = "Improve this image."
79
  "- adjust_shadows_highlights\n"
80
  "- adjust_temperature\n"
81
  "- adjust_tint\n"
82
- "- adjust_hue_color\n"
83
- "- adjust_saturation_color\n"
84
- "- adjust_luminance_color\n"
85
  "- add_vignette\n"
86
- "- denoise_image\n"
87
  "- add_grain\n"
88
- "In particular, you should use the methods that adjust colors luminance staturation and hue."
89
- "Here's an example of how to use these methods:\n"
90
- "When citing the methods, use a variation in percentage points, like +10% or -5%.\n"
 
91
  )
92
  response = call_to_llm(
93
  image_path, model="Qwen/Qwen2.5-VL-72B-Instruct", system_prompt=system_prompt, user_prompt=user_prompt
@@ -135,7 +135,7 @@ def critic(new_image_path: str, original_image_path: str, user_prompt: str, list
135
  new_image_path (str): The file path to the new image.
136
  original_image_path (str): The file path to the new image.
137
  user_prompt (str): Additional instructions or context provided by the user.
138
- list_of_enhancements (str): the list of enhancements applied to the image.
139
 
140
  Returns:
141
  str: Feedback on the changes made to the image.
@@ -155,6 +155,7 @@ def critic(new_image_path: str, original_image_path: str, user_prompt: str, list
155
  "You will be provided with a prompt that describes the user's request to improve the image.\n"
156
  "Does the image 2 respect the desire of the user ?\n"
157
  "The application of the filters must be noticeable."
 
158
  "You can refine the list of the modifications to apply to the image.\n"
159
  "You must not invent new methods or tools, only use the ones provided.\n"
160
  )
 
79
  "- adjust_shadows_highlights\n"
80
  "- adjust_temperature\n"
81
  "- adjust_tint\n"
82
+ "- adjust_hue_color colors are [red, orange, yellow, green, aqua, blue, purple, magenta]\n"
83
+ "- adjust_saturation_color colors are [red, orange, yellow, green, aqua, blue, purple, magenta]\n"
84
+ "- adjust_luminance_color colors are [red, orange, yellow, green, aqua, blue, purple, magenta]\n"
85
  "- add_vignette\n"
 
86
  "- add_grain\n"
87
+ "In particular, you should use the methods that adjust colors luminance staturation and hue. "
88
+ "I want at least 3 colors to be adjusted.\n"
89
+ "When citing the methods, use a variation in percentage points, like +10% or -10%.\n"
90
+ "Don't be subtle, the minimal increment is 10%.\n"
91
  )
92
  response = call_to_llm(
93
  image_path, model="Qwen/Qwen2.5-VL-72B-Instruct", system_prompt=system_prompt, user_prompt=user_prompt
 
135
  new_image_path (str): The file path to the new image.
136
  original_image_path (str): The file path to the new image.
137
  user_prompt (str): Additional instructions or context provided by the user.
138
+ list_of_enhancements (str): the list of of all enhancements applied to the image.
139
 
140
  Returns:
141
  str: Feedback on the changes made to the image.
 
155
  "You will be provided with a prompt that describes the user's request to improve the image.\n"
156
  "Does the image 2 respect the desire of the user ?\n"
157
  "The application of the filters must be noticeable."
158
+ "The minimal increment is 10%. Don't be too subtle.\n"
159
  "You can refine the list of the modifications to apply to the image.\n"
160
  "You must not invent new methods or tools, only use the ones provided.\n"
161
  )