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.
