OneTrainer now includes an experimental UI implementation using Dear PyGui, which offers several advantages:
- Improved performance with GPU acceleration
- Modern, sleek interface design
- Better handling of UI components like dropdowns and presets
- Cross-platform consistency
To use the Dear PyGui UI, you need to install the additional dependencies:
# On Windows
install_dpg.bat
# On Unix-based systems
./install_dpg.shThis will install Dear PyGui and other required dependencies for the UI.
To start the Dear PyGui UI:
# On Windows
start-dpg-ui.bat
# On Unix-based systems
./start-dpg-ui.shThe Dear PyGui UI implementation includes all the features of the original CustomTkinter UI, but with a more modern and responsive interface:
- Concept Management: Create, edit, and manage concepts for training
- Model Selection: Select and configure models for training
- LoRA Training: Configure and train LoRA models
- Sampling: Sample models during training
- Cloud Training: Configure and manage cloud training
The Concept tab allows you to create, edit, and manage concepts for training. Each concept consists of:
- General settings: Name, path, training/validation options
- Image augmentation: Options for augmenting images during training
- Text augmentation: Options for augmenting text prompts during training
- Statistics: Information about the files in the concept folder
- Add a Concept: Click "Add Concept" to create a new concept
- Edit a Concept: Click "Edit" on an existing concept to open the Concept Editor
- Clone a Concept: Click "Clone" to duplicate an existing concept
- Enable/Disable: Toggle the "Enabled" switch to include/exclude a concept during training
The Concept Editor allows you to configure all aspects of a concept:
- Name: The name of the concept
- Path: The folder containing training data
- Enabled: Whether the concept is used in training
- Validation concept: Use concept for validation instead of training
- Prompt Source: Source of prompts (file per image, single file, filenames)
- Crop Jitter: Enable random cropping
- Random Flip: Enable random horizontal flipping
- Random Rotation: Enable random rotation with angle control
- Brightness/Contrast/Saturation/Hue: Color adjustments
- Resolution Override: Force a specific resolution
- Tag Shuffling: Randomize the order of tags in prompts
- Tag Dropout: Randomly remove tags from prompts
- Capitalization: Randomly change capitalization of tags
- Summary: Total size, file counts
- Image Files: Resolution stats, aspect ratios
- Text Files: Caption stats, tag statistics
If you encounter issues with the Dear PyGui UI:
- Make sure you have installed the required dependencies using
install_dpg.shorinstall_dpg.bat - Check the console output for any error messages
- Try running the standalone test script to check if the UI components work correctly:
python standalone_concept_test.py
- If the issue persists, report it on the Github Issues page, including the output of the debug report and steps to reproduce the issue. EOF < /dev/null