Alexandros Popov
commited on
Commit
·
c2817df
1
Parent(s):
0535ef5
improved picture modification.
Browse files
judges.py
CHANGED
|
@@ -71,6 +71,7 @@ def propose_operations(image_path: str, user_prompt: str = "Improve this image."
|
|
| 71 |
system_prompt = (
|
| 72 |
"You are an AI art director. Your task is to propose a sequence of image enhancement operations "
|
| 73 |
"to transform the provided image according to the user's request. "
|
|
|
|
| 74 |
"Consider the following possible operations:\n"
|
| 75 |
"- adjust_contrast\n"
|
| 76 |
"- adjust_exposure\n"
|
|
@@ -153,6 +154,7 @@ def critic(new_image_path: str, original_image_path: str, user_prompt: str, list
|
|
| 153 |
"Your task is to evaluate the changes made to image 2.\n"
|
| 154 |
"You will be provided with a prompt that describes the user's request to improve the image.\n"
|
| 155 |
"Does the image 2 respect the desire of the user ?\n"
|
|
|
|
| 156 |
"You can refine the list of the modifications to apply to the image.\n"
|
| 157 |
"You must not invent new methods or tools, only use the ones provided.\n"
|
| 158 |
)
|
|
|
|
| 71 |
system_prompt = (
|
| 72 |
"You are an AI art director. Your task is to propose a sequence of image enhancement operations "
|
| 73 |
"to transform the provided image according to the user's request. "
|
| 74 |
+
"You take strong decisions with important consequences on the image.\n"
|
| 75 |
"Consider the following possible operations:\n"
|
| 76 |
"- adjust_contrast\n"
|
| 77 |
"- adjust_exposure\n"
|
|
|
|
| 154 |
"Your task is to evaluate the changes made to image 2.\n"
|
| 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 |
)
|