Automatically creates 28 different expressions from a given image using Automatic1111 Stable Diffusion WebUI API. The application uses Inpainting with After Detailer Extension to inpaint the following expressions on the face:
| Emotion | Emotion | Emotion | Emotion | | ------------- | -------------- | ----------- | ----------- | | Admiration | Amusement | Anger | Annoyance | | Approval | Caring | Confusion | Curiosity | | Desire | Disappointment | Disapproval | Disgust | | Embarrassment | Excitement | Fear | Gratitude | | Grief | Joy | Love | Nervousness | | Neutral | Optimism | Pride | Realization | | Relief | Remorse | Sadness | Surprise |
The above is an example anime expressions on the following image without cherry picking results.
The above is an example realistic expressions on the following image without cherry picking results.
Clone Github Repo
git clone https://github.com/deepratnaawale/AutoExpress.git
Goto cloned repo
cd AutoExpress
Create and activate virtual enviorenment
python3 -m venv .venv
.venv\Scripts\activate
Install Requirements
pip install -r reqiurements.txt
Launch App
flask --app autoexpress run
Launch A1111 Stable Diffusion WebUI Api
You can check if the api is active by accessing the docs (if running locally) http://127.0.0.1:7860/docs#/default/
Connect to the UI at http://127.0.0.1:5000
It's pretty Straight forward. Keep an eye on the logs in the console. Dropping an image will auto populate all attributes in the UI if the image has Stable Diffusion info text. Only supports A1111 WebUI API for now.
PS: This is a very handy tool to use with Silly Tavern to generate character expressions sprites for any bot.