AI Based Story Generation
摘要
We utilized natural language processing (NLP) to craft a new story inspired by the iconic Harry Potter and Lord of the Rings series. Initially, we deployed LSTM for text generation that gave us limited set of results, then the capabilities of GPT-2 were explored, revealing challenges with grammatical correctness in the generated sentences. Subsequently, we integrated GPT-2, which significantly improved the quality of the story generation. GPT-2 not only produced logical narratives but also breathed life into the characters and plotlines, offering a rich source of inspiration for writers seeking novel ideas and fresh perspectives. We further used a stable diffusion model to create images that matched the generated story. Thus we attempted a well-rounded method to bring together both words and pictures, creating a storytelling sequence for writers and creators. The paper highlights how AI story generation can effectively help support the creation of stories in gaming, education and entertainment.