Downloads · 30 days
0
yashu16/story-to-image-generator
story-to-image-generator is a machine learning model from yashu16. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for diffusers. The card lists the license as mit.
Configuration and utilities for generating images from stories using Stable Diffusion.
Downloads · 30 days
0
Access
Public
Updated Sep 3, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md2.4 KB · 32%
From the Hugging Face model README
Configuration and utilities for generating images from stories using Stable Diffusion.
This repository contains the configuration files and utilities needed to generate images from stories created by the phrase-to-story-generator model.
config.json: Generation parameters and style templatesexample_usage.py: Complete implementation exampleREADME.md: This documentationfrom diffusers import StableDiffusionPipeline
import torch
import json
# Load configuration
with open("config.json", "r") as f:
config = json.load(f)
# Load Stable Diffusion pipeline
pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
# Generate image from story
story = "In a magical forest where ancient trees whispered secrets..."
# See example_usage.py for complete implementation
The config.json file includes:
This configuration works best with:
Created by yashu16 | GitHub | Hugging Face