p1atdev commited on
Commit
23f3fad
1 Parent(s): a188c05

chore: changed image sizes, updated examples

Browse files
Files changed (2) hide show
  1. app.py +6 -5
  2. utils.py +4 -4
app.py CHANGED
@@ -175,25 +175,26 @@ def main():
175
 
176
  gr.Examples(
177
  examples=[
178
- ["original", "", "1girl, solo", "832x1216"],
179
- ["original", "", "3girls, 2boys", "1536x640"],
 
180
  [
181
  "sousou no frieren",
182
  "frieren (sousou no frieren)",
183
  "1girl, solo",
184
- "832x1216",
185
  ],
186
  [
187
  "honkai: star rail",
188
  "silver wolf (honkai: star rail)",
189
  "1girl, solo",
190
- "832x1216",
191
  ],
192
  [
193
  "bocchi the rock!",
194
  "gotoh hitori, kita ikuyo, ijichi nijika, yamada ryo",
195
  "4girls, multiple girls",
196
- "1216x832",
197
  ],
198
  [
199
  "chuunibyou demo koi ga shitai!",
 
175
 
176
  gr.Examples(
177
  examples=[
178
+ ["original", "", "1girl, solo", "768x1344"],
179
+ ["original", "", "3girls, 2boys", "1344x768"],
180
+ ["", "", "no humans, scenery, spring (season)", "1536x640"],
181
  [
182
  "sousou no frieren",
183
  "frieren (sousou no frieren)",
184
  "1girl, solo",
185
+ "768x1344",
186
  ],
187
  [
188
  "honkai: star rail",
189
  "silver wolf (honkai: star rail)",
190
  "1girl, solo",
191
+ "768x1344",
192
  ],
193
  [
194
  "bocchi the rock!",
195
  "gotoh hitori, kita ikuyo, ijichi nijika, yamada ryo",
196
  "4girls, multiple girls",
197
+ "1344x768",
198
  ],
199
  [
200
  "chuunibyou demo koi ga shitai!",
utils.py CHANGED
@@ -9,16 +9,16 @@ NEGATIVE_PROMPT = {
9
 
10
  IMAGE_SIZE_OPTIONS = {
11
  "1536x640": "<|aspect_ratio:ultra_wide|>",
12
- "1216x832": "<|aspect_ratio:wide|>",
13
  "1024x1024": "<|aspect_ratio:square|>",
14
- "832x1216": "<|aspect_ratio:tall|>",
15
  "640x1536": "<|aspect_ratio:ultra_tall|>",
16
  }
17
  IMAGE_SIZES = {
18
  "1536x640": (1536, 640),
19
- "1216x832": (1216, 832),
20
  "1024x1024": (1024, 1024),
21
- "832x1216": (832, 1216),
22
  "640x1536": (640, 1536),
23
  }
24
 
 
9
 
10
  IMAGE_SIZE_OPTIONS = {
11
  "1536x640": "<|aspect_ratio:ultra_wide|>",
12
+ "1344x768": "<|aspect_ratio:wide|>",
13
  "1024x1024": "<|aspect_ratio:square|>",
14
+ "768x1344": "<|aspect_ratio:tall|>",
15
  "640x1536": "<|aspect_ratio:ultra_tall|>",
16
  }
17
  IMAGE_SIZES = {
18
  "1536x640": (1536, 640),
19
+ "1344x768": (1344, 768),
20
  "1024x1024": (1024, 1024),
21
+ "768x1344": (768, 1344),
22
  "640x1536": (640, 1536),
23
  }
24