Добавлена возможность генерации аниме-изображений 9:20.

This commit is contained in:
Kirill Kirilenko 2026-03-09 02:24:19 +03:00
parent adc19dee8c
commit a01935d203
2 changed files with 4 additions and 2 deletions

View file

@ -228,6 +228,7 @@ class AiAgent:
"3:4": "portrait_4_3",
"16:9": "landscape_16_9",
"9:16": "portrait_16_9",
"9:20": "portrait_16_9"
}
image_size = aspect_ratio_size_map.get(aspect_ratio, "landscape_4_3")
print(f"Генерация изображения {image_size}: {prompt}")
@ -263,7 +264,8 @@ class AiAgent:
"4:3": (1280, 1024),
"3:4": (1024, 1280),
"16:9": (1280, 720),
"9:16": (720, 1280)
"9:16": (720, 1280),
"9:20": (720, 1600)
}
width, height = aspect_ratio_resolution_map.get(aspect_ratio, (1280, 1024))
print(f"Генерация аниме-изображения {width}x{height}:\n+ {prompt}\n- {negative_prompt}")

View file

@ -39,7 +39,7 @@
},
"aspect_ratio": {
"type": "string",
"enum": ["1:1", "4:3", "3:4", "16:9", "9:16"],
"enum": ["1:1", "4:3", "3:4", "16:9", "9:16", "9:20"],
"description": "Соотношение сторон"
}
},