LoraDBEdit_CaptionModel is an advanced tool designed to optimize and manage datasets for training LoRA models. It offers features for generating customized captions for images and is fully integrated with Ollama and ComfyUI for seamless automation.
- Caption Generation: Automatically generates captions for images using the LoraDBEdit_CaptionModel.
- Custom Prefixes: Add specific prefixes or keywords to captions for better organization.
- User-Friendly Interface: Load, view, and edit datasets with detailed information about resolution, file name, and progress.
- Quick Regeneration: Captions can be regenerated in approximately 13 seconds per image.
To use LoraDBEdit_CaptionModel, ensure the following are installed:
- Ollama: Install Ollama to create and manage the model.
- Python Dependencies:
requestsPyQt5Pillow
Install dependencies with:
pip install requests PyQt5 pillowCopy the path to the Modelfile in your local environment and run the following command to create the model using Ollama:
ollama create LoraDBEdit_CaptionModel -f <path_to_Modelfile>Replace <path_to_Modelfile> with the actual path where the Modelfile is located.
For full automation, integrate LoraDBEdit_CaptionModel with ComfyUI using Ollama nodes and Florence2run.
- ComfyUI: Install ComfyUI and its Ollama nodes.
- Florence2run: Required for generating image descriptions before caption refinement.
- Use Florence2run to describe each image in your dataset.
- LoraDBEdit_CaptionModel refines the description into a LoRA-compatible caption.
- Integrate the tool within ComfyUI using the Ollama nodes to automate the entire process.
The project is currently in optimization phase and will be released soon. Stay tuned for updates and the final version!
-
Prepare the Dataset:
- Use the LoraDBEdit interface to load and manage your image dataset.
- Generate captions using the installed model.
-
Generate Captions:
- Add prefixes or modify captions as needed using the interface.
- Save and manage the dataset for LoRA training.
- Automate with ComfyUI (Optional):
- Integrate with ComfyUI for seamless workflow automation.
Contributions are welcome! Feel free to fork the repository and submit pull requests for any improvements or new features.
This project is licensed under the MIT License. See the LICENSE file for more details.
For questions or issues, please open an issue on GitHub or contact us directly.


