OneTrainer is your go-to solution for all things related to Stable Diffusion training. Whether you’re a beginner wanting to venture into machine learning or a seasoned developer looking for comprehensive training solutions, OneTrainer has features that cater to your needs. In this article, we will guide you through the installation process, usage instructions, and troubleshooting tips.
Features of OneTrainer
Before diving deeper, let’s take a glance at what makes OneTrainer an essential tool:
- **Supported models**: Stable Diffusion 1.5, 2.0, 2.1, 3.0, SDXL, Würstchen-v2, and more.
- **Model formats**: Supports diffusers and ckpt models.
- **Training methods**: Options for full fine-tuning, LoRA, and embeddings.
- **Masked Training**: Focus training on particular parts of samples.
- **Automatic backups**: Seamlessly resume training with regular backups.
- **Image augmentation**: Enhance your dataset with random transformations.
- **Tensorboard**: Track progress easily with Tensorboard integration.
- **Multiple prompts per image**: Train on different prompts for better accuracy.
Installation Guide
Automatic Installation
To simplify your setup process, there is an automatic installation method:
- Clone the repository:
git clone https://github.com/Nerogar/OneTrainer.git
- For Windows:
install.bat - For Unix-based systems:
install.sh
Manual Installation
If you prefer doing things manually, follow these steps:
- Clone the repository:
git clone https://github.com/Nerogar/OneTrainer.git
cd OneTrainer
python -m venv venv
- For Windows:
venv\scripts\activate - For Unix-based systems:
source venv/bin/activate
pip install -r requirements.txt
Updating OneTrainer
Keeping OneTrainer up to date is simple:
- For an automatic update, run:
update.batorupdate.sh- For manual update:
- Pull the latest changes:
git pull
venv\scripts\activate
pip install -r requirements.txt --force-reinstall
Usage Instructions
To launch the UI, simply run the following command:
start-ui.bat
You can operate OneTrainer via two modes: Command Line and UI. All commands should be executed within the activated virtual environment, and different scripts are available for training, captioning, and conversion tasks.
Troubleshooting Tips
If you encounter any issues during installation or usage, consider the following suggestions:
- Ensure you have Python 3.10 installed. You can download it here.
- If you use Linux, ensure that you have installed libGL. For example, in Ubuntu, run:
sudo apt-get update && sudo apt-get install libgl1
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.
Conclusion
OneTrainer streamlines the stable diffusion training process, making it accessible for beginners and valuable for experts. If you’re ready to dive into the world of AI training, OneTrainer provides the tools to enhance your journey.

