Closed rakesh-reddy95 closed 1 year ago
yes, you can use lora weights.
May i know how I can do that?
@zhangjiewu I see that the LoRA weights can be used with the pre-trained SD with UNet2DConditionLoadersMixin but I don't see the support for Unet3D. Tune-A-Video loads the pre-trained SD and adds the temporal attention. What if I have LoRA weights and want to tune-a-video with using those weights, I have to load the attn_procs with Unet3D which is missing.
you can first load the lora weights to the pretrained SD, and then use it for tune-a-video. you can also upgrade the attention file to the latest one in diffusers, which supports lora weights loading with attention processor.
@zhangjiewu I have loaded the lora weights but issue is while doing inference. I see that there will be a mismatch in matrices for cross attention as the lora will be trained on 2D images.
Issue is resolved.
Can I use LoRA weights instead of complete Unet to load and finetune.