Configure training via sd_locked and only_mid_control
mainThe training behavior can be significantly altered using two parameters in the model configuration:
only_mid_control
- Default:
False - When
True: Limits training to specific layers. This is useful for limited computation power or to facilitate 'global' context learning. You can toggle this on/off during training sessions.
sd_locked
- Default:
True - When
False: Unlocks layers within the original Stable Diffusion model, allowing them to be trained alongside the ControlNet. - Use Case: Highly useful for training on specific styles or specialized datasets (e.g., medical X-rays, geographic maps) where you want to perform something similar to DreamBooth while training the ControlNet.
- Warning: This is DANGEROUS. If the dataset is insufficient, it may degrade the original SD model's capabilities. If using this, consider a lower learning rate (e.g.,
2e-6).