Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sannjayy/ai-prompt-to-image-generator
Python AI Prompt to Image Generator
https://github.com/sannjayy/ai-prompt-to-image-generator
Last synced: 30 days ago
JSON representation
Python AI Prompt to Image Generator
- Host: GitHub
- URL: https://github.com/sannjayy/ai-prompt-to-image-generator
- Owner: sannjayy
- Created: 2024-05-21T06:46:29.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-05-21T07:14:32.000Z (8 months ago)
- Last Synced: 2024-05-21T08:35:41.120Z (8 months ago)
- Language: HTML
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ai-prompt-to-image-generator
![Demo](https://cdn.sanjaysikdar.dev/assets/ai-prompt-to-image-generator/demo-1.png)
Demo Video: https://youtu.be/iz-YDlU6j4Y
## Stack
Python: 3.12.3
Flask: 3.0.3
## How to Run?
- Clone or download [ai-prompt-to-image-generator](https://github.com/sannjayy/ai-prompt-to-image-generator)
`git clone [email protected]:sannjayy/ai-prompt-to-image-generator.git`
- Create a virtual environment
```bash
python -m venv zenv
source zenv/Scripts/activate # Windows
source zenv/bin/activate # Mac
```- Install basic requirements
```bash
pip install -r requirements.txt# OR INITIAL INSTALLATION
pip install --upgrade pip
pip install --upgrade setuptoolspip install transformers diffusers flask pillow
```- Install PyTorch ([CUDA](https://pytorch.org/get-started/locally/))
```bash
# CUDA 12.1 (Windows)
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121# CUDA 11.1 (Windows)
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118# MAC
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu# OR (Others)
pip install torch torchvision
```### To Run
```bash
python app.py
```Open http://127.0.0.1:5000 in your browser!
---
---
- 🌏 [GitHub Repo](https://github.com/sannjayy/ai-prompt-to-image-generator)
- 🌏 [Website](https://www.sanjaysikdar.dev)
- 📫
- 📖 [read.sanjaysikdar.dev](https://read.sanjaysikdar.dev)
- 📦 [pypi releases](https://pypi.org/user/sannjayy/) | [npm releases](https://www.npmjs.com/~sannjayy)---
[![](https://img.shields.io/github/followers/sannjayy?style=social)](https://github.com/sannjayy)
Developed with ❤️ by _[sanjaysikdar.dev](https://www.sanjaysikdar.dev)_.