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.
