fofr / cog-comfyui

Run ComfyUI with an API
https://replicate.com/fofr/any-comfyui-workflow
MIT License
544 stars 124 forks source link

Load lora from the replicate storage #90

Closed sheikhfahad67 closed 5 months ago

sheikhfahad67 commented 5 months ago

Hi there,

I have a question, I want to load the lora from the trained model.

I have deployed the stabilityAi/sdxl model in my workspace and use it to fine tune the model and in return it generates the LoRA and provide the API URL to use the fine-tuned model.

So, is there a way that I can just pass the link in the LoraLoadModel class in the workflow to use the LoRA automatically from the Replicate?

Lalimec commented 5 months ago

I remember seeing a Load Model From URL node somewhere. Maybe that will do it. I did a similar thing with load image from url nodes, where i just pass the url of the images to the wf instead of renaming zipping and uploading.

Qualzz commented 5 months ago

I remember seeing a Load Model From URL node somewhere. Maybe that will do it. I did a similar thing with load image from url nodes, where i just pass the url of the images to the wf instead of renaming zipping and uploading.

This one ? https://github.com/pkpkTech/ComfyUI-TemporaryLoader

Lalimec commented 5 months ago

Im not sure, but let me know if it works.

On Thu, Jun 6, 2024, 03:41 Qualzz @.***> wrote:

I remember seeing a Load Model From URL node somewhere. Maybe that will do it. I did a similar thing with load image from url nodes, where i just pass the url of the images to the wf instead of renaming zipping and uploading.

This one ? https://github.com/pkpkTech/ComfyUI-TemporaryLoader

— Reply to this email directly, view it on GitHub https://github.com/fofr/cog-comfyui/issues/90#issuecomment-2151176725, or unsubscribe https://github.com/notifications/unsubscribe-auth/APT4OETEBLYFXRYUYTLBTPDZF6V45AVCNFSM6AAAAABIWKYWAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJRGE3TMNZSGU . You are receiving this because you commented.Message ID: @.***>

sheikhfahad67 commented 5 months ago

Thanks @Qualzz and @Lalimec I have tried it hopefully it will works. But currently facing issue that is Replicate provides the URL of .tar file. So, ComfyUI through error while loading it.