https://github.com/hitthecodelabs/stablediffusion-generativeimage
Simple Python application to generate images using the Stable Diffusion model
https://github.com/hitthecodelabs/stablediffusion-generativeimage
colab-notebook diffusers generative-ai python stable-diffusion transformers
Last synced: about 2 months ago
JSON representation
Simple Python application to generate images using the Stable Diffusion model
- Host: GitHub
- URL: https://github.com/hitthecodelabs/stablediffusion-generativeimage
- Owner: hitthecodelabs
- License: mit
- Created: 2023-11-24T05:19:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-24T05:28:19.000Z (over 2 years ago)
- Last Synced: 2025-03-29T10:47:28.556Z (about 1 year ago)
- Topics: colab-notebook, diffusers, generative-ai, python, stable-diffusion, transformers
- Language: Jupyter Notebook
- Homepage:
- Size: 8.08 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# StableDiffusion-GenerativeImage
A simple Python application to generate images using the Stable Diffusion model.
## Description
This repository contains a script for generating images from text prompts using the open version of the Stable Diffusion model, powered by the Hugging Face's `diffusers` library. The script is designed to be easy to use and customizable for different prompts.
## Installation
Before running the script, ensure you have the required dependencies installed.
### Prerequisites
- Python 3.8 or higher
- PyTorch (with GPU support for better performance)
- `diffusers` library
- `transformers` library
You can install the required libraries using pip:
```bash
pip install torch diffusers transformers
```
## Getting Started
1. Clone this repository to your local machine.
2. Navigate to the repository folder in your terminal.
3. Run the script using Python.
Example:
```bash
python generate_image.py
```
## Usage
To use the script, simply replace the prompt in the generate_image function call with your desired text. The script will generate an image based on this prompt and save it to your local directory.
```bash
generate_image("Your text prompt here")
```
## Contributions
Contributions are welcome! If you have suggestions or improvements, feel free to fork this repository and submit a pull request.
## License
This project is open-source and available under the MIT License.
## Acknowledgements
This script utilizes the Stable Diffusion model from Hugging Face's diffusers library. Special thanks to the creators and contributors of these tools.