h train_controlnet.py \
  --snr_gamma=5.0  Training script As with the script parameters, a general walkthrough of the training script is provided in the Text-to-image training guide. Instead, this guide takes a look at the relevant parts of the ControlNet script. The training script has a make_train_dataset function for preprocessing the dataset with image transforms and caption tokenization. You’ll see that in addition to the usual caption to