https://github.com/miteshgupta07/sketchgen
SketchGen is an Image-to-Image Translation project that generates realistic images from hand-drawn sketches and descriptive prompts. Built using a pre-trained Stable Diffusion model, it combines the structure of sketches with the creativity of textual guidance to create stunning visuals.
https://github.com/miteshgupta07/sketchgen
image-generation stable-diffusion streamlit text-to-image
Last synced: about 1 month ago
JSON representation
SketchGen is an Image-to-Image Translation project that generates realistic images from hand-drawn sketches and descriptive prompts. Built using a pre-trained Stable Diffusion model, it combines the structure of sketches with the creativity of textual guidance to create stunning visuals.
- Host: GitHub
- URL: https://github.com/miteshgupta07/sketchgen
- Owner: miteshgupta07
- License: mit
- Created: 2024-12-13T05:16:51.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-02-24T12:44:41.000Z (2 months ago)
- Last Synced: 2025-02-24T13:36:58.741Z (2 months ago)
- Topics: image-generation, stable-diffusion, streamlit, text-to-image
- Language: Python
- Homepage: https://sketchgen.streamlit.app/
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SketchGen: Transform Your Imagination into Imagesβ¨
**SketchGen** is an innovative tool that allows users to generate realistic images from text descriptions or sketches. Powered by the **Stable Diffusion 3.5 model**, it combines cutting-edge AI with creative freedom to produce stunning visuals from user inputs.
## Features π
- **Text-to-Image Generation**: Enter a text prompt and let the AI create images based on your imagination. πβ‘οΈπΌοΈ
- **Sketch-to-Image Generation**: (Coming soon...) Convert your rough sketches into realistic images. βοΈβ‘οΈπΌοΈ
- **Customization Options**:
- **Style Selection**: Choose from **Default**, **Photorealistic**, or **Anime** styles. π¨
- **Image Resolution**: Select from **512x512**, **768x768**, or **1024x1024** resolution. π₯οΈ
- **Fine-tune with** **Inference Steps** and **Guidance Scale** for better control over the generated image. βοΈ## Demo π»
You can try out the application on [Streamlit](https://sketchgen.streamlit.app/).
## Example Generated Images πΈ
Here are some images generated using my SketchGen app:
![]()
![]()
## Installation π οΈ
1. Clone the repository:
```bash
git clone https://github.com/miteshgupta07/SketchGen.git
```
2. Navigate into the project directory:
```bash
cd sketchgen
```
3. Install the dependencies:
```bash
pip install -r requirements.txt
```5. Run the Streamlit app:
```bash
streamlit run app.py
```## Usage π‘
- Open the app and select between "Generate with Prompt" or "Generate with Image".
- For text generation: Enter a prompt (e.g., "A cat on Mars") and hit Generate. πβ‘οΈπΌοΈ
- For image generation: Upload a sketch and generate a detailed image based on your sketch. βοΈβ‘οΈπΌοΈ
- Customize your image with options such as style, resolution, and AI parameters. π¨π§
- Download the generated image by clicking the Download button. β¬οΈ## Technologies Used π οΈ
- Python π
- Streamlit: Framework for building the interactive web app. π»
- Hugging Face: Hosted the Stable Diffusion 3.5 model. π€
- PIL: Image manipulation. πΌοΈ
- diffusers: For handling the image generation using Stable Diffusion. π¨## Future Improvements π§
- **Sketch-to-Image**: Convert sketches into detailed images (Coming soon). βοΈβ‘οΈπΌοΈ
- **More Image Styles**: Additional AI models for unique image styles. π¨## Acknowledgment π
We would like to express our gratitude to the following:
- **Hugging Face**: For providing access to the Stable Diffusion 3.5 model. π€
- **Streamlit**: For offering a fantastic framework to build and deploy the web app. π»
- **Python and Libraries**: For being the backbone of our project with libraries like PIL and diffusers. π
- **The Open-Source Community**: For providing inspiration and valuable resources that helped shape this project. πThank you to everyone who contributed to this project, whether directly or indirectly! π
## Contributing π€
Feel free to fork the project and submit pull requests. If you have any feature requests or bugs to report, please open an issue. π οΈ
## License π
This project is licensed under the MIT License - see the LICENSE [file](https://github.com/miteshgupta07/SketchGen/blob/main/LICENSE) for details. π·οΈ