Spaces:
Running
on
Zero
Running
on
Zero
Update config.py
Browse files
config.py
CHANGED
@@ -149,7 +149,7 @@ FLUX_RULES = {
|
|
149 |
"fine_art": ", fine art photography, artistic composition, gallery quality"
|
150 |
},
|
151 |
|
152 |
-
#
|
153 |
"condensation_patterns": {
|
154 |
"remove_redundant_phrases": [
|
155 |
r'This image depicts',
|
@@ -176,7 +176,7 @@ FLUX_RULES = {
|
|
176 |
]
|
177 |
},
|
178 |
|
179 |
-
#
|
180 |
"mandatory_keywords": {
|
181 |
"quality": ["photorealistic", "ultra-detailed", "sharp focus"],
|
182 |
"technical": ["professional photography", "high resolution"],
|
@@ -219,7 +219,6 @@ SCORING_CONFIG = {
|
|
219 |
"cinematography_terms": ["cinematic", "dramatic", "film grain", "anamorphic bokeh", "color grading"]
|
220 |
}
|
221 |
}
|
222 |
-
}
|
223 |
|
224 |
# Environment Configuration
|
225 |
ENVIRONMENT = {
|
@@ -292,7 +291,7 @@ PROFESSIONAL_PHOTOGRAPHY_CONFIG = {
|
|
292 |
"knowledge_base_integration": True,
|
293 |
"technical_enhancement": True,
|
294 |
"composition_guidance": True,
|
295 |
-
"prompt_condensation": True,
|
296 |
|
297 |
"scene_detection_keywords": {
|
298 |
"portrait": ["person", "face", "portrait", "headshot", "model"],
|
@@ -309,12 +308,12 @@ PROFESSIONAL_PHOTOGRAPHY_CONFIG = {
|
|
309 |
"equipment_specifications",
|
310 |
"lighting_description",
|
311 |
"composition_analysis",
|
312 |
-
"prompt_optimization"
|
313 |
],
|
314 |
|
315 |
-
#
|
316 |
"prompt_optimization": {
|
317 |
-
"max_length": 150,
|
318 |
"remove_redundancy": True,
|
319 |
"add_technical_specs": True,
|
320 |
"include_composition_terms": True,
|
|
|
149 |
"fine_art": ", fine art photography, artistic composition, gallery quality"
|
150 |
},
|
151 |
|
152 |
+
# Text condensation patterns
|
153 |
"condensation_patterns": {
|
154 |
"remove_redundant_phrases": [
|
155 |
r'This image depicts',
|
|
|
176 |
]
|
177 |
},
|
178 |
|
179 |
+
# Mandatory generative keywords
|
180 |
"mandatory_keywords": {
|
181 |
"quality": ["photorealistic", "ultra-detailed", "sharp focus"],
|
182 |
"technical": ["professional photography", "high resolution"],
|
|
|
219 |
"cinematography_terms": ["cinematic", "dramatic", "film grain", "anamorphic bokeh", "color grading"]
|
220 |
}
|
221 |
}
|
|
|
222 |
|
223 |
# Environment Configuration
|
224 |
ENVIRONMENT = {
|
|
|
291 |
"knowledge_base_integration": True,
|
292 |
"technical_enhancement": True,
|
293 |
"composition_guidance": True,
|
294 |
+
"prompt_condensation": True,
|
295 |
|
296 |
"scene_detection_keywords": {
|
297 |
"portrait": ["person", "face", "portrait", "headshot", "model"],
|
|
|
308 |
"equipment_specifications",
|
309 |
"lighting_description",
|
310 |
"composition_analysis",
|
311 |
+
"prompt_optimization"
|
312 |
],
|
313 |
|
314 |
+
# Prompt optimization settings
|
315 |
"prompt_optimization": {
|
316 |
+
"max_length": 150,
|
317 |
"remove_redundancy": True,
|
318 |
"add_technical_specs": True,
|
319 |
"include_composition_terms": True,
|