ating a dataset. You can customize the image size, placeholder token, interpolation method, whether to crop the image, and more. If you need to change how the dataset is created, you can modify TextualInversionDataset. Next, you’ll find the dataset preprocessing code and training loop in the main() function. The script starts by loading the tokenizer, scheduler and model:   Copied # Load tokenizer
if args.tokenizer_name:
    tokenizer = CLIPTok