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

ValueError: text_encoder is not found in self._lora_loadable_modules=['transformer'].使用load_cogvideo_lora.py加载lora并推理报这个错误 #352

Closed
2 tasks
schhaohao opened this issue Sep 24, 2024 · 4 comments

Comments

@schhaohao
Copy link

System Info / 系統信息

Uploading image.png…

Information / 问题信息

  • The official example scripts / 官方的示例脚本
  • My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

1

Expected behavior / 期待表现

1

@cdalinghaus
Copy link

@schhaohao, please provide further information how you fixed this, I am running into the same error.

@haofengl
Copy link

haofengl commented Oct 1, 2024

please provide further information how you fixed this, I am running into the same error.

@chenshuo20
Copy link

You can skip the text encoder part in fuse_lora() in src/diffusers/loaders/lora_base.py like:

for fuse_component in components:
    if fuse_component == 'text_encoder':
    continue

But they should fix their tools/export_sat_lora_weight.py to skip text encoder.

@cdalinghaus
Copy link

I just commented out the line that throws the error and it seemed to work also

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

4 participants