-
Notifications
You must be signed in to change notification settings - Fork 197
Adds custom_lora_url #237
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
Adds custom_lora_url #237
Conversation
|
Please add custom lora url as soon as possible @fofr Also please a node for custom base model url too |
|
Custom LoRA URL would be a game changer, please add it soon @fofr |
|
+1 |
|
@fofr please merge this branch as this feature is most important. Thank you |
|
I have a custom node for loading lora weight dynamiclly https://github.com/sourceful-official/ComfyUI_LoadLoraModelOnlyWithUrl could be useful as this code would change the contract drasticlly but having it as custom node would be more vanilla |
|
@sourceful-karlson nice can you add load base model as well from url? |
|
yes, but loading base model would take a long time to download which defeat the purpose of replicate |
|
This is another similar node https://www.runcomfy.com/comfyui-nodes/ComfyUI-GlifNodes/LoraLoaderFromURL |
but it is still needed |
|
is there anything wrong with it @fofr? or is it about legal reasons etc? |
|
Hey @guivr, this is a good start. I haven't merged yet as I'm unsure how to handle the case where a lora filename might clash, for example |
|
Taking a look at https://github.com/glifxyz/ComfyUI-GlifNodes/blob/main/nodes.py – I will investigate adding these nodes |
|
great finally some progress. @fofr please add both lora and base model loading feature. |
Maybe simply add a warning under the custom field? Or, more complicated, it could throw an error if it exists on the normal weights map |
|
It seems like the glif nodes do the work to make URLs and filenames unique: |
but if the file name is different than the one being used in the workflow, how does it work? or the workflow would have to use GlifNodes instead? |
|
I don't think it's a big problem as people using this cog + Or maybe I'm misunderstanding the issue |
|
You'd load the lora like this in the workflow: |
|
Good to me too. It's kind of a trade-off though no? Because then it would require people to use the extra custom node |
|
Or would the filename conflict break the cog for everyone? |
Good point. |
|
I can make this work, but I'd like to get #241 merged and come back to this |
Thanks, sure, go ahead. You're the owner. I'll need the Thanks for creating this cog, saves me lots of costs because its usually always warm I'm currently using a custom cog to load that custom lora workflow and the costs are huge because it always get cold The day I can move it to any-comfyui I'll be very happy! Thanks for all your work again. |
|
The GlifNodes is a better solution because it supports multiple custom loras. Will you have to manually adapt every supported custom nodes that use lora (like |
|
Is it possible to use the Load lora node without connecting it to other nodes? Like not using its outputs (MODEL, CLIP) Edit: I forgot that it changes file name so that wouldn’t be useful |
|
This is why I have loadloramodelOnlyFromUrl to load lora only and do nothing else, cos the node from GlifNodes would error if you dont give it a clip model i think |
But doesn't it also changes the filename? If there's no output, can you still use the original filename in other fields? |
|
ahh right, then you will want to use this node https://comfyui-wiki.com/en/comfyui-nodes/loaders/lora-loader-model-only, but this node doesnt accept URL, which is why i wrote my own node that combine GlifNodes and lora-loader-model-only |
|
Closing this PR now, with follow-up plans to allow more flexible usage of custom weights. |

Adds "custom_lora_url" field so that users can use their custom LoRAs.
It doesn't support downloading multiple LoRAs, but it's probably good enough for most cases.