megvii-research / HiDiffusion

[ECCV 2024] HiDiffusion: Increases the resolution and speed of your diffusion model by only adding a single line of code!
Apache License 2.0
680 stars 38 forks source link

USE_PEFT_BACKEND #23

Open YuzhiChen001 opened 1 month ago

YuzhiChen001 commented 1 month ago

nice work! I want to know if USE_PEFT_BACKEND is important and indispensable?It appears in the following two places:
if USE_PEFT_BACKEND: scale_lora_layers(self, lora_scale) and if USE_PEFT_BACKEND: unscale_lora_layers(self, lora_scale) My diffusers version is 0.19.3 ,which can not support PEFT,but it is difficult to update diffusers on my code. Any help would be greatly appreciated!

YuzhiChen001 commented 1 month ago

From version 0.19.3 to 0.27.0, Diffusers underwent significant changes, resulting in many error with ImportError.

ShenZhang-Shin commented 3 weeks ago

Can you update your diffusers to 0.25.0 ? By the way, if USE_PEFT_BACKEND: scale_lora_layers(self, lora_scale) and if USE_PEFT_BACKEND: unscale_lora_layers(self, lora_scale) is not important, you can remove them and try