replicate / lora-inference

LoRA inference model packaged with Cog
MIT License
73 stars 22 forks source link

Support lora model from civitai #3

Open seanphan opened 1 year ago

seanphan commented 1 year ago

Steps:

Actual: Error 'NoneType' object is not iterable Expect: can use civitai

cloneofsimo commented 1 year ago

This is known issue since LoRA format is different. We will work on this in the future. Thanks!

deleteman commented 1 year ago

Any update on this @cloneofsimo ? It would be amazing to use those loras.

visoar commented 1 year ago

Once supported, this will be great. Watch for progress.

lionel-alves commented 1 year ago

@cloneofsimo version 0.17 of the diffusers library now handle the A1111 / kohya_ss LoRA format. That should help updating this cog? https://github.com/huggingface/diffusers/releases/tag/v0.17.0

AlexanderKozhevin commented 10 months ago

any updates?

Vkzem commented 8 months ago

I have not used this, but check this out https://replicate.com/fofr/any-comfyui-workflow

AlexanderKozhevin commented 8 months ago

I found a create solution https://github.com/lucataco/cog-civitai-sdxl-template Worked for me, created 8 containers

yosun commented 2 months ago

hmm suppose you simply want to convert the civitai .safetensors to replicate's lora tar: which contain the safetenwsors and also embeddings.pti, special_params.json

celluuuu commented 2 months ago

hmm suppose you simply want to convert the civitai .safetensors to replicate's lora tar: which contain the safetenwsors and also embeddings.pti, special_params.json

When downloading any .safetensors file from civitai how do i get the embeddings.pti and special_params.json so that I could create the tar to use in replicate?