DiffusionBee Mate is a Python Streamlit application designed to enhance the image review process for users of DiffusionBee, a powerful tool for generating images using diffusion models. While DiffusionBee excels in installing models and generating images with a user-friendly interface, it lacks convenience for reviewing, comparing, and filtering generated images. DiffusionBee Mate bridges this gap by providing an intuitive and customizable platform to manage and analyze your generated images.
- Grouped by Prompt: The most significant advantage is that it groups generated images by prompt, enabling quick and straightforward comparisons to determine which diffusion models perform better for specific tasks.
- Pagination: List items with pagination, page per size is changeable.
- Detailed Item Display: Each history item displays the selected diffusion model, prompt, negative prompt, number of steps, seed, selected style, and generated images.
- Image Display: Images are displayed with a fixed maximum width of 200px.
- Bookmarkable URL: Allows passing selected page number and page size to the URL.
- Prompt Parameters as Captions: Displays some matter prompt parameters as image captions.
- Search Functionality: Enables searching by prompt text.
- Image Deletion: Allows users to delete images, moving them to the Trash where they can be restored using "Put Back" (Mac OS supported only for now). Automatically backs up the history data file as
~/.diffusionbee/history.json.backup.jsonto facilitate restoration. - Simplified Maintenance: The codebase follows the SOLID principles and is designed for easy maintainability.
The primary purpose of DiffusionBee Mate is to serve as a helper application for DiffusionBee users. While DiffusionBee offers a seamless experience for installing models and generating images, it does not provide an efficient way to review, compare, and filter these images. DiffusionBee Mate addresses this need by offering a robust set of features tailored for image review and analysis.
To run DiffusionBee Mate locally, follow these steps:
-
Clone the repository:
git clone https://github.com/rainchen/diffusionbee-mate.git
-
Navigate to the project directory:
cd diffusionbee-mate -
Install the required dependencies:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run app.py
-
Open the WebUI at http://localhost:8501/
-
Loading History Items: The app loads history from
~/.diffusionbee/history.jsonand automatically groups items by prompt
-
Viewing Details: Click on an image to view it in full size. Detailed prompt parameters are displayed alongside the image.
-
Searching: Use the search bar in the sidebar to search for specific prompts.
-
Deleting Images: Delete unwanted images. (Notes: Do not delete files while DiffusionBee is running it will overwrite the changes)
We welcome contributions to DiffusionBee Mate! Please feel free to submit pull requests or open issues for any bugs or feature requests.
This project is licensed under the MIT License. See the LICENSE file for more details.
Thank you for using DiffusionBee Mate! We hope you find it useful for managing and viewing your diffusion model history items generated by DiffusionBee.