A stable-diffusion ad generation project with a user-interface built with streamlit and API request model using FastAPI
This project uses stable-diffusion-webui by AUTO1111
- Clone the project
git clone https://github.com/mcandemir/ad-gen-generative-advertising.git
cd adgen
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
To create realistic ads, I've used RealVis model. You can install it from: https://civitai.com/models/139562/realvisxl-v20
- Put your installed model under stable-diffusion-webui/models/Stable-diffusion
- Install required libraries to your project environment (a virtual environment is recommended)
pip install -r requirements.txt
- Add
--api
argument to theCOMMANDLINE_ARGS
in stable-diffusion-webui/user-webui.bat - Run user-webui.bat
Start-Process webui-user.bat
streamlit run app.py --server.port 80
uvicorn api:app --reload --port 81