lution),
        transforms.ToTensor(),
    ]
) Within the main() function, the T2I-Adapter is either loaded from a pretrained adapter or it is randomly initialized:   Copied if args.adapter_model_name_or_path:
    logger.info("Loading existing adapter weights.")
    t2iadapter = T2IAdapter.from_pretrained(args.adapter_model_name_or_path)
else:
    logger.info("Initializing t2iadapter weights.")
    t2iadapter = T2IAdapter(
        in_channels=