Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rafaykhattak/textifyimage
Harnessing the power of OpenAI's DALL-E model and huggingface's Stable diffusion model, effortlessly transform text into stunning visuals that bring your words to life.
https://github.com/rafaykhattak/textifyimage
dall-e deep-neural-networks huggingface openai stable-diffusion
Last synced: about 17 hours ago
JSON representation
Harnessing the power of OpenAI's DALL-E model and huggingface's Stable diffusion model, effortlessly transform text into stunning visuals that bring your words to life.
- Host: GitHub
- URL: https://github.com/rafaykhattak/textifyimage
- Owner: RafayKhattak
- Created: 2023-05-15T06:22:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-15T08:32:44.000Z (over 1 year ago)
- Last Synced: 2024-11-13T02:32:20.498Z (2 months ago)
- Topics: dall-e, deep-neural-networks, huggingface, openai, stable-diffusion
- Language: Python
- Homepage: https://rafaykhattak-textifyimage-app-3dp9g9.streamlit.app/
- Size: 6.84 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TextifyImage
TextifyImage is a web application that leverages the power of AI to generate images from text prompts. By utilizing OpenAI's DALL-E model and Huggingface's Stable Diffusion model, TextifyImage allows users to transform their textual descriptions into stunning visual representations.
![Screenshot (449)](https://github.com/RafayKhattak/TextifyImage/assets/90026724/3765a904-4a4a-481a-addc-a0188f2b4165)## Features
- DALL-E Image Generation: TextifyImage utilizes OpenAI's DALL-E model to generate high-quality images based on user-provided text prompts.
- Huggingface Diffusers Image Generation: TextifyImage also leverages Huggingface's Stable Diffusion model to generate AI-based images from text prompts.
- Streamlit User Interface: The application provides an intuitive user interface powered by Streamlit, making it easy for users to interact with and generate images.
## Installation
To run TextifyImage locally, follow these steps:
1. Clone the repository:
```
git clone https://github.com/your-username/TextifyImage.git
cd
```
2. Install the required dependencies:
```
pip install -r requirements.txt
```
3. Set up the OpenAI API key:
- Sign up for an OpenAI account and obtain your API key.
- Set the API key as an environment variable or directly in the code (replace YOUR_OPENAI_API_KEY in the code):
```
openai.api_key = 'YOUR_OPENAI_API_KEY'
```
4. Download Stable diffusion v1.5 weights and save in project directory:
```
wget https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt
```
5. Run the application:
```
streamlit run app.py
```
## Acknowledgments
- This project was inspired by the capabilities of OpenAI's DALL-E and Huggingface's Stable Diffusion models.
- I would like to thank the developers and contributors of OpenA and Huggingface for their invaluable work and open-source contributions.