satyajitghana / sdxl-dreambooth-finetune

SDXL 1.0 DreamBooth Finetune with Diffusers
Apache License 2.0
8 stars 3 forks source link

AttributeError: 'Linear' object has no attribute 'set_lora_layer' #3

Open jvel07 opened 6 months ago

jvel07 commented 6 months ago

Hi, awesome repo! I am getting the error below. I have no peft installed. Are any workarounds available?

  File "C:\Users\win\PycharmProjects\sdxl-dreambooth-finetune\main.py", line 90, in dreambooth
    train_dreambooth(
  File "C:\Users\win\PycharmProjects\sdxl-dreambooth-finetune\training\dreambooth.py", line 254, in train
    attn_module.to_q.set_lora_layer(
  File "C:\Users\win\anaconda3\envs\sdxl\lib\site-packages\torch\nn\modules\module.py", line 1709, in __getattr__
    raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
AttributeError: 'Linear' object has no attribute 'set_lora_layer'
shoaibmustafakhan commented 5 months ago

Facing the same issue. @satyajitghana any way into this????? Need it very very urgently !!