comics_generator
1.0.0
该程序使用生成AI从短场景中创建整个漫画。
场景必须提及具有物理描述的字符。
首先,使用LLM(OpenAI API)将场景分为具有描述和相关文本的6个面板。
然后对于每个面板:
然后将及其文本的6个生成图像合并为最终条带!
导出OPENAI_API_KEY和STABILITY_KEY 。 (使用export OPENAI_API_KEY=xxx或将它们写入.env文件)
安装依赖项: pip install langchain openai stability-sdk pillow
枕头必须是9.50版本的最大版本
然后在kartoon.py中编辑SCENARIO变量。
您还可以编辑STYLE变量以更改样式。
运行脚本: python kartoon.py
比利时漫画
Characters: Francis is medieval knight with a shield. Madeline is a princess with long hair.
Francis hear about a dragon that is terrorizing the kingdom.
He goes to the castle to kill the dragon in an epic battle.
The princess is angry because the dragon was her friend.

漫画风格
Characters: Adrien is a guy with blond hair. Vincent is a guy with black hair.
Adrien and Vincent work at the office and want to start a new product.
They create it in one night before presenting it to the board.

风格的美国漫画
Characters: Peter is a tall guy with blond hair. Steven is a small guy with black hair.
Peter and Steven walk together in new york when aliens attack the city.
They are afraid and try to run for their lives.
The army arrive and save them.
