Flask-based RESTful API for Stable Diffusion Image img2img using the PhotoMaker adapter
I Use currently use hypercloud for my setup.- setup vm with public ip
- enable ssh connection
- make sure the vm firewall is configured to allow incoming on the port the app is hosted on. (and outgoing ofc)
- connect in vs code
- open new terminal
- sudo apt update
- git clone https://github.com/erikv99/StableDiffusionGeneratorServer.git
- cd StableDiffusionGeneratorServer
- git clone https://github.com/TencentARC/PhotoMaker.git
- sudo apt install -y python3-pip
- sudo apt install -y python3-venv
- python3 -m venv env
- source env/bin/activate
- pip install -r requirements.txt
- Run the application
Will form a good basis for development tools I plan to create which will call this application for its generation.
Will take 1 or multiple images of a person and combine these with a prompt to place said person in a different context.Technologies used in the project:
- Python
- Flask
- Stable Diffusion
- CUDA
- Torch
- PhotoMaker