gs.revision
) The special placeholder token is added next to the tokenizer, and the embedding is readjusted to account for the new token. Then, the script creates a dataset from the TextualInversionDataset:   Copied train_dataset = TextualInversionDataset(
    data_root=args.train_data_dir,
    tokenizer=tokenizer,
    size=args.resolution,
    placeholder_token=(" ".join(tokenizer.convert_ids_to_tokens(placeholder_token_ids))),
    repeats=arg