4:3 aspect ratio
Browse files- flumina.py +5 -3
flumina.py
CHANGED
@@ -39,8 +39,10 @@ def _aspect_ratio_to_width_height(aspect_ratio: str) -> Tuple[int, int]:
|
|
39 |
(21, 9),
|
40 |
(16, 9),
|
41 |
(3, 2),
|
|
|
42 |
(5, 4),
|
43 |
(4, 5),
|
|
|
44 |
(2, 3),
|
45 |
(9, 16),
|
46 |
(9, 21),
|
@@ -354,7 +356,7 @@ if __name__ == "__main__":
|
|
354 |
t2i_out = asyncio.run(f.text_to_image(
|
355 |
Text2ImageRequest(
|
356 |
prompt="A quick brown fox",
|
357 |
-
aspect_ratio="
|
358 |
guidance_scale=3.5,
|
359 |
num_inference_steps=4,
|
360 |
seed=0,
|
@@ -399,7 +401,7 @@ if __name__ == "__main__":
|
|
399 |
prompt="Cyberpunk future fox nighttime purple and green",
|
400 |
control_image=FakeFile('output.png'),
|
401 |
control_mode=0, # canny
|
402 |
-
aspect_ratio="
|
403 |
guidance_scale=3.5,
|
404 |
num_inference_steps=4,
|
405 |
seed=0,
|
@@ -424,7 +426,7 @@ if __name__ == "__main__":
|
|
424 |
lora_out = asyncio.run(f.text_to_image(
|
425 |
Text2ImageRequest(
|
426 |
prompt="A quick brown fox",
|
427 |
-
aspect_ratio="
|
428 |
guidance_scale=3.5,
|
429 |
num_inference_steps=4,
|
430 |
seed=0,
|
|
|
39 |
(21, 9),
|
40 |
(16, 9),
|
41 |
(3, 2),
|
42 |
+
(4, 3),
|
43 |
(5, 4),
|
44 |
(4, 5),
|
45 |
+
(3, 4),
|
46 |
(2, 3),
|
47 |
(9, 16),
|
48 |
(9, 21),
|
|
|
356 |
t2i_out = asyncio.run(f.text_to_image(
|
357 |
Text2ImageRequest(
|
358 |
prompt="A quick brown fox",
|
359 |
+
aspect_ratio="4:3",
|
360 |
guidance_scale=3.5,
|
361 |
num_inference_steps=4,
|
362 |
seed=0,
|
|
|
401 |
prompt="Cyberpunk future fox nighttime purple and green",
|
402 |
control_image=FakeFile('output.png'),
|
403 |
control_mode=0, # canny
|
404 |
+
aspect_ratio="4:3",
|
405 |
guidance_scale=3.5,
|
406 |
num_inference_steps=4,
|
407 |
seed=0,
|
|
|
426 |
lora_out = asyncio.run(f.text_to_image(
|
427 |
Text2ImageRequest(
|
428 |
prompt="A quick brown fox",
|
429 |
+
aspect_ratio="4:3",
|
430 |
guidance_scale=3.5,
|
431 |
num_inference_steps=4,
|
432 |
seed=0,
|