comics_generator
1.0.0
โปรแกรมนี้ใช้ AI Generative เพื่อสร้างแถบการ์ตูนทั้งหมดจากสถานการณ์สั้น ๆ
สถานการณ์จะต้องพูดถึงตัวละครที่มีคำอธิบายทางกายภาพ
ขั้นแรกให้ใช้ 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 สูงสุด
จากนั้นแก้ไขตัวแปร SCENARIO ใน kartoon.py
นอกจากนี้คุณยังสามารถแก้ไขตัวแปร 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.
