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

LoRA not working in img2img realtime demo #181

Open
timosenko1 opened this issue Dec 12, 2024 · 0 comments
Open

LoRA not working in img2img realtime demo #181

timosenko1 opened this issue Dec 12, 2024 · 0 comments

Comments

@timosenko1
Copy link

I tried to modify the existing img2img realtime demo. I added this argument to the StreamDiffusionWrapper here:

lora_dict={"/home/ubuntu/kairon_sdxl.safetensors":1.0}

But the LoRA is not affecting the image as far as I can tell, also in the logs there is no trace of my LoRA being loaded. If I understand correctly, this line should print to the trace (full block below).

            if lora_dict is not None:
                for lora_name, lora_scale in lora_dict.items():
                    stream.load_lora(lora_name)
                    stream.fuse_lora(lora_scale=lora_scale)
                    print(f"Use LoRA: {lora_name} in weights {lora_scale}")
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

1 participant