Добавлена возможность генерации аниме-изображений 9:20.
This commit is contained in:
parent
adc19dee8c
commit
a01935d203
2 changed files with 4 additions and 2 deletions
|
|
@ -228,6 +228,7 @@ class AiAgent:
|
||||||
"3:4": "portrait_4_3",
|
"3:4": "portrait_4_3",
|
||||||
"16:9": "landscape_16_9",
|
"16:9": "landscape_16_9",
|
||||||
"9:16": "portrait_16_9",
|
"9:16": "portrait_16_9",
|
||||||
|
"9:20": "portrait_16_9"
|
||||||
}
|
}
|
||||||
image_size = aspect_ratio_size_map.get(aspect_ratio, "landscape_4_3")
|
image_size = aspect_ratio_size_map.get(aspect_ratio, "landscape_4_3")
|
||||||
print(f"Генерация изображения {image_size}: {prompt}")
|
print(f"Генерация изображения {image_size}: {prompt}")
|
||||||
|
|
@ -263,7 +264,8 @@ class AiAgent:
|
||||||
"4:3": (1280, 1024),
|
"4:3": (1280, 1024),
|
||||||
"3:4": (1024, 1280),
|
"3:4": (1024, 1280),
|
||||||
"16:9": (1280, 720),
|
"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))
|
width, height = aspect_ratio_resolution_map.get(aspect_ratio, (1280, 1024))
|
||||||
print(f"Генерация аниме-изображения {width}x{height}:\n+ {prompt}\n- {negative_prompt}")
|
print(f"Генерация аниме-изображения {width}x{height}:\n+ {prompt}\n- {negative_prompt}")
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
},
|
},
|
||||||
"aspect_ratio": {
|
"aspect_ratio": {
|
||||||
"type": "string",
|
"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": "Соотношение сторон"
|
"description": "Соотношение сторон"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue