This project takes the text of a story and tries to use generative AI to build a graphic novel experience of it.
Next steps:
- ✅ Add some styling to the pages
- ✅ Allow generating a story in another location
- ✅ Get dependencies under control (use a virtual environment)
- Clean up the code
Before you begin, make a new empty directory somewhere for your project. Place the raw text of story in your project folder as text.txt
- In the graphic-novelator directory, start a virtual environment:
python3 -m venv .env
- Activate your virtual environment:
source .env/bin/activate
(deactivate
to deactivate it) - Install the dependencies:
pip install -r requirements.txt
TITLE="Your Title" AUTHOR="Author" STORY_DIR="../my-story" python3 app/start.py
will start generating scene descriptions, images, and html pages for the whole story, with one image per 100 word chunk of textTITLE="Your Title" AUTHOR="Author" STORY_DIR="../my-story" python3 app/start.py 17
will regenerate the scene description and image for the 17th chunk
- Python
- A CUDA-enabled GPU (or a lot of patience)
- Access to the Llama 3 8b Instruct model via HuggingFace (it's a "gated model" so you must request access) or the willingness to switch the text-to-text model.
- A text file of your story (if you want to generate a new one)
A lone explorer stands at the edge of a frozen lake, the aurora borealis dancing across the dark sky behind him, as the icy landscape stretches out to the horizon, with the faint outline of a ship in the distance.