Javijavigon commited on
Commit
d7356fc
verified
1 Parent(s): 4dd6164

Update model_configs.py

Browse files
Files changed (1) hide show
  1. model_configs.py +171 -173
model_configs.py CHANGED
@@ -1,174 +1,172 @@
1
- """
2
- Configuraciones espec铆ficas para cada modelo de generaci贸n de im谩genes
3
- """
4
-
5
- MODEL_CONFIGS = {
6
- "stable-diffusion-1.5": {
7
- "name": "Stable Diffusion 1.5",
8
- "max_tokens": 77,
9
- "supports_weights": True,
10
- "weight_syntax": "(palabra:peso)",
11
- "quality_tokens": [
12
- "masterpiece", "best quality", "highly detailed",
13
- "sharp focus", "8k uhd", "high resolution"
14
- ],
15
- "negative_default": [
16
- "lowres", "bad anatomy", "bad hands", "text", "error",
17
- "missing fingers", "extra digit", "fewer digits", "cropped",
18
- "worst quality", "low quality", "normal quality", "jpeg artifacts",
19
- "signature", "watermark", "username", "blurry"
20
- ],
21
- "style_modifiers": {
22
- "fotorealista": ["photorealistic", "hyperrealistic", "raw photo", "analog photo"],
23
- "anime": ["anime style", "anime key visual", "vibrant colors", "studio ghibli"],
24
- "arte digital": ["digital art", "digital painting", "artstation", "concept art"],
25
- "pintura": ["oil painting", "acrylic painting", "impasto", "brush strokes"],
26
- "3d": ["3d render", "octane render", "unreal engine", "cinema 4d"],
27
- "pixel art": ["pixel art", "16-bit", "retro game style", "sprite"],
28
- "acuarela": ["watercolor painting", "soft edges", "wet on wet", "paper texture"],
29
- "comic": ["comic book style", "graphic novel", "bold lines", "cel shading"]
30
- }
31
- },
32
- "sdxl": {
33
- "name": "Stable Diffusion XL",
34
- "max_tokens": 77,
35
- "supports_weights": True,
36
- "weight_syntax": "(palabra:peso)",
37
- "quality_tokens": [
38
- "masterpiece", "best quality", "ultra detailed",
39
- "8k resolution", "professional photography", "sharp"
40
- ],
41
- "negative_default": [
42
- "worst quality", "low quality", "blurry", "pixelated",
43
- "oversaturated", "undersaturated", "overexposed", "underexposed",
44
- "bad anatomy", "bad proportions", "deformed", "mutation"
45
- ],
46
- "style_modifiers": {
47
- "fotorealista": ["photorealistic", "photograph", "35mm film", "DSLR"],
48
- "anime": ["anime artwork", "anime style", "japanese animation", "key visual"],
49
- "arte digital": ["digital artwork", "trending on artstation", "highly detailed illustration"],
50
- "pintura": ["traditional painting", "fine art", "museum quality", "classical"],
51
- "3d": ["3D rendering", "CGI", "octane render", "ray tracing"],
52
- "cinematico": ["cinematic shot", "movie still", "dramatic lighting", "widescreen"],
53
- "minimalista": ["minimalist", "clean design", "simple", "modern aesthetic"],
54
- "fantasia": ["fantasy art", "epic", "magical", "ethereal glow"]
55
- }
56
- },
57
- "flux": {
58
- "name": "FLUX.1",
59
- "max_tokens": 256,
60
- "supports_weights": False,
61
- "weight_syntax": None,
62
- "quality_tokens": [
63
- "high quality", "detailed", "professional",
64
- "well-composed", "sharp focus"
65
- ],
66
- "negative_default": [], # FLUX no usa negative prompts
67
- "style_modifiers": {
68
- "fotorealista": ["realistic photograph", "professional photography", "natural lighting"],
69
- "anime": ["in anime style", "japanese anime aesthetic", "animated"],
70
- "arte digital": ["digital art style", "illustration", "artistic"],
71
- "pintura": ["painted in oil", "artistic painting style", "fine art"],
72
- "3d": ["3D rendered", "computer graphics", "rendered image"],
73
- "cinematico": ["cinematic frame", "movie quality", "dramatic"],
74
- "retrato": ["portrait photography", "headshot", "close-up face"],
75
- "paisaje": ["landscape photography", "scenic view", "panoramic"]
76
- },
77
- "notes": "FLUX prefiere descripciones naturales y detalladas en lugar de etiquetas"
78
- },
79
- "midjourney": {
80
- "name": "Midjourney",
81
- "max_tokens": 500,
82
- "supports_weights": True,
83
- "weight_syntax": "::peso",
84
- "quality_tokens": [], # Midjourney usa par谩metros
85
- "negative_default": [], # Usa --no
86
- "style_modifiers": {
87
- "fotorealista": ["photorealistic", "hyperrealistic", "--style raw"],
88
- "anime": ["anime style", "Studio Ghibli", "cel shaded"],
89
- "arte digital": ["digital art", "artstation winner", "fantasy art"],
90
- "pintura": ["oil painting", "renaissance style", "classical art"],
91
- "3d": ["3d render", "octane render", "c4d"],
92
- "cinematico": ["cinematic", "movie poster", "dramatic lighting"],
93
- "ilustracion": ["illustration", "storybook", "whimsical"],
94
- "conceptual": ["concept art", "matte painting", "environment design"]
95
- },
96
- "parameters": {
97
- "aspect": "--ar 16:9",
98
- "quality": "--q 2",
99
- "stylize": "--s 750",
100
- "chaos": "--c 0",
101
- "version": "--v 6"
102
- }
103
- },
104
- "dall-e-3": {
105
- "name": "DALL-E 3",
106
- "max_tokens": 4000,
107
- "supports_weights": False,
108
- "weight_syntax": None,
109
- "quality_tokens": [],
110
- "negative_default": [],
111
- "style_modifiers": {
112
- "fotorealista": ["a realistic photograph of", "photographic style"],
113
- "anime": ["in Japanese anime style", "anime-inspired artwork"],
114
- "arte digital": ["digital artwork depicting", "illustrated"],
115
- "pintura": ["an oil painting of", "painted artwork"],
116
- "3d": ["a 3D rendered image of", "CGI artwork"],
117
- "cinematico": ["a cinematic scene of", "movie still"],
118
- "dibujado": ["a hand-drawn sketch of", "pencil drawing"],
119
- "comic": ["comic book style artwork of", "graphic novel illustration"]
120
- },
121
- "notes": "DALL-E 3 prefiere oraciones completas y descripciones narrativas"
122
- }
123
- }
124
-
125
- # Diccionario de sin贸nimos y mejoras comunes
126
- ENHANCEMENT_RULES = {
127
- "lighting": {
128
- "keywords": ["luz", "iluminaci贸n", "lighting"],
129
- "enhancements": {
130
- "dramatica": ["dramatic lighting", "chiaroscuro", "rim lighting"],
131
- "suave": ["soft lighting", "diffused light", "ambient lighting"],
132
- "natural": ["natural lighting", "golden hour", "sunlight"],
133
- "estudio": ["studio lighting", "professional lighting", "softbox"],
134
- "neon": ["neon lighting", "cyberpunk glow", "colorful lights"],
135
- "cinematica": ["cinematic lighting", "volumetric lighting", "god rays"]
136
- }
137
- },
138
- "camera": {
139
- "keywords": ["camara", "foto", "angulo", "plano"],
140
- "enhancements": {
141
- "cercano": ["close-up shot", "macro photography", "detailed view"],
142
- "lejano": ["wide shot", "establishing shot", "panoramic"],
143
- "retrato": ["portrait shot", "85mm lens", "shallow depth of field"],
144
- "aereo": ["aerial view", "drone shot", "bird's eye view"],
145
- "bajo": ["low angle shot", "worm's eye view", "looking up"],
146
- "alto": ["high angle shot", "looking down", "overhead"]
147
- }
148
- },
149
- "mood": {
150
- "keywords": ["ambiente", "atmosfera", "mood", "sentimiento"],
151
- "enhancements": {
152
- "oscuro": ["dark atmosphere", "moody", "mysterious", "gothic"],
153
- "alegre": ["bright", "cheerful", "vibrant colors", "happy mood"],
154
- "melancolico": ["melancholic", "nostalgic", "somber", "wistful"],
155
- "epico": ["epic", "grandiose", "awe-inspiring", "majestic"],
156
- "sereno": ["serene", "peaceful", "calm", "tranquil"],
157
- "intenso": ["intense", "dramatic", "powerful", "striking"]
158
- }
159
- }
160
- }
161
-
162
- # Artistas y estilos de referencia
163
- ARTIST_STYLES = {
164
- "clasico": ["by Leonardo da Vinci", "Renaissance style", "classical technique"],
165
- "impresionista": ["by Claude Monet", "impressionist style", "loose brushwork"],
166
- "surrealista": ["by Salvador Dal铆", "surrealist style", "dreamlike"],
167
- "pop art": ["by Andy Warhol", "pop art style", "bold colors"],
168
- "art nouveau": ["by Alphonse Mucha", "art nouveau style", "ornamental"],
169
- "concept art": ["by Craig Mullins", "concept art style", "artstation"],
170
- "anime": ["by Makoto Shinkai", "anime style", "vibrant colors"],
171
- "fantasia": ["by Frank Frazetta", "fantasy art style", "dynamic"],
172
- "sci-fi": ["by Syd Mead", "sci-fi concept art", "futuristic"],
173
- "horror": ["by H.R. Giger", "biomechanical", "dark surreal"]
174
  }
 
1
+ """
2
+ Configuraciones espec铆ficas para cada modelo de generaci贸n de im谩genes
3
+ """
4
+
5
+ MODEL_CONFIGS = {
6
+ "stable-diffusion-1.5": {
7
+ "name": "Stable Diffusion 1.5",
8
+ "max_tokens": 77,
9
+ "supports_weights": True,
10
+ "weight_syntax": "(palabra:peso)",
11
+ "quality_tokens": [
12
+ "masterpiece", "best quality", "highly detailed",
13
+ "sharp focus", "8k uhd", "high resolution"
14
+ ],
15
+ "negative_default": [
16
+ "lowres", "bad anatomy", "bad hands", "text", "error",
17
+ "missing fingers", "extra digit", "fewer digits", "cropped",
18
+ "worst quality", "low quality", "normal quality", "jpeg artifacts",
19
+ "signature", "watermark", "username", "blurry"
20
+ ],
21
+ "style_modifiers": {
22
+ "fotorealista": ["photorealistic", "hyperrealistic", "raw photo", "analog photo"],
23
+ "anime": ["anime style", "anime key visual", "vibrant colors", "studio ghibli"],
24
+ "arte digital": ["digital art", "digital painting", "artstation", "concept art"],
25
+ "pintura": ["oil painting", "acrylic painting", "impasto", "brush strokes"],
26
+ "3d": ["3d render", "octane render", "unreal engine", "cinema 4d"],
27
+ "pixel art": ["pixel art", "16-bit", "retro game style", "sprite"],
28
+ "acuarela": ["watercolor painting", "soft edges", "wet on wet", "paper texture"],
29
+ "comic": ["comic book style", "graphic novel", "bold lines", "cel shading"]
30
+ }
31
+ },
32
+ "sdxl": {
33
+ "name": "Stable Diffusion XL",
34
+ "max_tokens": 77,
35
+ "supports_weights": True,
36
+ "weight_syntax": "(palabra:peso)",
37
+ "quality_tokens": [
38
+ "masterpiece", "best quality", "ultra detailed",
39
+ "8k resolution", "professional photography", "sharp"
40
+ ],
41
+ "negative_default": [
42
+ "worst quality", "low quality", "blurry", "pixelated",
43
+ "oversaturated", "undersaturated", "overexposed", "underexposed",
44
+ "bad anatomy", "bad proportions", "deformed", "mutation"
45
+ ],
46
+ "style_modifiers": {
47
+ "fotorealista": ["photorealistic", "photograph", "35mm film", "DSLR"],
48
+ "anime": ["anime artwork", "anime style", "japanese animation", "key visual"],
49
+ "arte digital": ["digital artwork", "trending on artstation", "highly detailed illustration"],
50
+ "pintura": ["traditional painting", "fine art", "museum quality", "classical"],
51
+ "3d": ["3D rendering", "CGI", "octane render", "ray tracing"],
52
+ "cinematico": ["cinematic shot", "movie still", "dramatic lighting", "widescreen"],
53
+ "minimalista": ["minimalist", "clean design", "simple", "modern aesthetic"],
54
+ "fantasia": ["fantasy art", "epic", "magical", "ethereal glow"]
55
+ }
56
+ },
57
+ "flux": {
58
+ "name": "FLUX.1",
59
+ "max_tokens": 256,
60
+ "supports_weights": False,
61
+ "weight_syntax": None,
62
+ "quality_tokens": [
63
+ "high quality", "detailed", "professional",
64
+ "well-composed", "sharp focus"
65
+ ],
66
+ "negative_default": [],
67
+ "style_modifiers": {
68
+ "fotorealista": ["realistic photograph", "professional photography", "natural lighting"],
69
+ "anime": ["in anime style", "japanese anime aesthetic", "animated"],
70
+ "arte digital": ["digital art style", "illustration", "artistic"],
71
+ "pintura": ["painted in oil", "artistic painting style", "fine art"],
72
+ "3d": ["3D rendered", "computer graphics", "rendered image"],
73
+ "cinematico": ["cinematic frame", "movie quality", "dramatic"],
74
+ "retrato": ["portrait photography", "headshot", "close-up face"],
75
+ "paisaje": ["landscape photography", "scenic view", "panoramic"]
76
+ },
77
+ "notes": "FLUX prefiere descripciones naturales y detalladas en lugar de etiquetas"
78
+ },
79
+ "midjourney": {
80
+ "name": "Midjourney",
81
+ "max_tokens": 500,
82
+ "supports_weights": True,
83
+ "weight_syntax": "::peso",
84
+ "quality_tokens": [],
85
+ "negative_default": [],
86
+ "style_modifiers": {
87
+ "fotorealista": ["photorealistic", "hyperrealistic", "--style raw"],
88
+ "anime": ["anime style", "Studio Ghibli", "cel shaded"],
89
+ "arte digital": ["digital art", "artstation winner", "fantasy art"],
90
+ "pintura": ["oil painting", "renaissance style", "classical art"],
91
+ "3d": ["3d render", "octane render", "c4d"],
92
+ "cinematico": ["cinematic", "movie poster", "dramatic lighting"],
93
+ "ilustracion": ["illustration", "storybook", "whimsical"],
94
+ "conceptual": ["concept art", "matte painting", "environment design"]
95
+ },
96
+ "parameters": {
97
+ "aspect": "--ar 16:9",
98
+ "quality": "--q 2",
99
+ "stylize": "--s 750",
100
+ "chaos": "--c 0",
101
+ "version": "--v 6"
102
+ }
103
+ },
104
+ "dall-e-3": {
105
+ "name": "DALL-E 3",
106
+ "max_tokens": 4000,
107
+ "supports_weights": False,
108
+ "weight_syntax": None,
109
+ "quality_tokens": [],
110
+ "negative_default": [],
111
+ "style_modifiers": {
112
+ "fotorealista": ["a realistic photograph of", "photographic style"],
113
+ "anime": ["in Japanese anime style", "anime-inspired artwork"],
114
+ "arte digital": ["digital artwork depicting", "illustrated"],
115
+ "pintura": ["an oil painting of", "painted artwork"],
116
+ "3d": ["a 3D rendered image of", "CGI artwork"],
117
+ "cinematico": ["a cinematic scene of", "movie still"],
118
+ "dibujado": ["a hand-drawn sketch of", "pencil drawing"],
119
+ "comic": ["comic book style artwork of", "graphic novel illustration"]
120
+ },
121
+ "notes": "DALL-E 3 prefiere oraciones completas y descripciones narrativas"
122
+ }
123
+ }
124
+
125
+ ENHANCEMENT_RULES = {
126
+ "lighting": {
127
+ "keywords": ["luz", "iluminaci贸n", "lighting"],
128
+ "enhancements": {
129
+ "dramatica": ["dramatic lighting", "chiaroscuro", "rim lighting"],
130
+ "suave": ["soft lighting", "diffused light", "ambient lighting"],
131
+ "natural": ["natural lighting", "golden hour", "sunlight"],
132
+ "estudio": ["studio lighting", "professional lighting", "softbox"],
133
+ "neon": ["neon lighting", "cyberpunk glow", "colorful lights"],
134
+ "cinematica": ["cinematic lighting", "volumetric lighting", "god rays"]
135
+ }
136
+ },
137
+ "camera": {
138
+ "keywords": ["camara", "foto", "angulo", "plano"],
139
+ "enhancements": {
140
+ "cercano": ["close-up shot", "macro photography", "detailed view"],
141
+ "lejano": ["wide shot", "establishing shot", "panoramic"],
142
+ "retrato": ["portrait shot", "85mm lens", "shallow depth of field"],
143
+ "aereo": ["aerial view", "drone shot", "bird's eye view"],
144
+ "bajo": ["low angle shot", "worm's eye view", "looking up"],
145
+ "alto": ["high angle shot", "looking down", "overhead"]
146
+ }
147
+ },
148
+ "mood": {
149
+ "keywords": ["ambiente", "atmosfera", "mood", "sentimiento"],
150
+ "enhancements": {
151
+ "oscuro": ["dark atmosphere", "moody", "mysterious", "gothic"],
152
+ "alegre": ["bright", "cheerful", "vibrant colors", "happy mood"],
153
+ "melancolico": ["melancholic", "nostalgic", "somber", "wistful"],
154
+ "epico": ["epic", "grandiose", "awe-inspiring", "majestic"],
155
+ "sereno": ["serene", "peaceful", "calm", "tranquil"],
156
+ "intenso": ["intense", "dramatic", "powerful", "striking"]
157
+ }
158
+ }
159
+ }
160
+
161
+ ARTIST_STYLES = {
162
+ "clasico": ["by Leonardo da Vinci", "Renaissance style", "classical technique"],
163
+ "impresionista": ["by Claude Monet", "impressionist style", "loose brushwork"],
164
+ "surrealista": ["by Salvador Dal铆", "surrealist style", "dreamlike"],
165
+ "pop art": ["by Andy Warhol", "pop art style", "bold colors"],
166
+ "art nouveau": ["by Alphonse Mucha", "art nouveau style", "ornamental"],
167
+ "concept art": ["by Craig Mullins", "concept art style", "artstation"],
168
+ "anime": ["by Makoto Shinkai", "anime style", "vibrant colors"],
169
+ "fantasia": ["by Frank Frazetta", "fantasy art style", "dynamic"],
170
+ "sci-fi": ["by Syd Mead", "sci-fi concept art", "futuristic"],
171
+ "horror": ["by H.R. Giger", "biomechanical", "dark surreal"]
 
 
172
  }