-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: LoraInjectedLinear.forward() got an unexpected keyword argument 'scale' #259
Comments
Build the environment from source. |
I did run
Is this not building from source? |
You may need to lower the version of the Python package, such as using diffusers==0.11.0 and transformers==4.25.1. |
The latest diffusers adopts The forward method of Since
|
thanks @justin-prnd |
Modification for inference After training, I faced a similar issue for inference. The
I figured out that the error occurred because the There would be a better solution, but I fixed the issue by simply adding the
|
@justin-prnd where is the LoRACompatibleLinear defined? I get module not defined error? |
Defined at from diffusers.models.lora import LoRACompatibleLinear if |
I got this error while running two different scripts: run_lora_db_unet_only.sh and use_face_conditioning_example.sh
I only made changes regarding my own data and output directory. Also, for the second one I set use_template to "style" but everything else remained the same.
I was running this on kaggle notebooks, so I am not sure whether that is the problem.
Below are the full error descriptions by running use_face_conditioning.sh:
The error is similar to the one I get on running run_lora_db_unet_only.sh
I am not sure how to resolve this. Thank you for your time. I am just a beginner so sorry for the trouble.
The text was updated successfully, but these errors were encountered: