8000 Generate Image with LoRA · Issue #12 · fal-ai/f-lite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Generate Image with LoRA #12

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

Open
alfredplpl opened this issue May 6, 2025 · 0 comments
Open

Generate Image with LoRA #12

alfredplpl opened this issue May 6, 2025 · 0 comments
Assignees

Comments

@alfredplpl
Copy link
Contributor
alfredplpl commented May 6, 2025

I have create a LoRA file.
But, I cannot load the file by the following code.

pipeline.dit_model.load_lora_weights("/media/user/NVM/F-Lite-DiT/final_model")

I got the error:

Traceback (most recent call last):
  File "/mnt/raid0/github/f-lite/inference.py", line 14, in <module>
    pipeline.dit_model.load_lora_weights("/media/user/NVM/F-Lite-DiT/final_model")
  File "/mnt/raid0/github/f-lite/f_lite/model.py", line 379, in load_lora_weights
    set_peft_model_state_dict(self, lora_state_dict)
  File "/mnt/raid0/github/f-lite/.venv/lib/python3.12/site-packages/peft/utils/save_and_load.py", line 343, in set_peft_model_state_dict
    config = model.peft_config[adapter_name]
             ^^^^^^^^^^^^^^^^^
  File "/mnt/raid0/github/f-lite/.venv/lib/python3.12/site-packages/diffusers/models/modeling_utils.py", line 291, in __getattr__
    return super().__getattr__(name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/raid0/github/f-lite/.venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1940, in __getattr__
    raise AttributeError(
AttributeError: 'DiT' object has no attribute 'peft_config'. Did you mean: 'from_config'?

How can I do?

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

2 participants
0