Closed
Description
Have scoured the docs for an answer to this, to no avail. Is it possible to add additional input channels to a model after initializing it using .from_pretrained
.
For example (taken from your Dreambooth example):
unet = UNet2DConditionModel.from_pretrained(
args.pretrained_model_name_or_path,
subfolder="unet",
revision=args.revision,
)
In the code above, if I now wanted to introduce additional input channels to unet
and zero-initialize the weights, would this be possible? If so, how would I do this?
Thank you in advance.