Skip to content
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

text_encoder is not found in self._lora_loadable_modules=['transformer']. #17

Open
jashwanth0712 opened this issue Nov 15, 2024 · 2 comments

Comments

@jashwanth0712
Copy link

while i was trying to tun the model, i have ended up with this particular error

  File "/workspace/dimensionx/DimensionX/src/gradio_demo/app.py", line 60, in <module>
    pipe_image.fuse_lora(lora_scale=1 / lora_rank)
  File "/usr/local/lib/python3.10/dist-packages/diffusers/loaders/lora_pipeline.py", line 2888, in fuse_lora
    super().fuse_lora(
  File "/usr/local/lib/python3.10/dist-packages/diffusers/loaders/lora_base.py", line 445, in fuse_lora
    raise ValueError(f"{fuse_component} is not found in {self._lora_loadable_modules=}.")
ValueError: text_encoder is not found in self._lora_loadable_modules=['transformer'].
@chenshuo20
Copy link
Collaborator

You can take a look this issue.

@DsnTgr
Copy link

DsnTgr commented Nov 16, 2024

# pipe.load_lora_weights(lora_path, weight_name="orbit_left_lora_weights.safetensors", adapter_name="orbit_left")
pipe.load_lora_weights(lora_path, weight_name="orbit_up_lora_weights.safetensors", adapter_name="orbit_up")
pipe.fuse_lora(components=["transformer"], lora_scale=1 / lora_rank)

You need to define the components in fuse_lora fuction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants