lora-inference icon indicating copy to clipboard operation
lora-inference copied to clipboard

Support lora model from civitai

Open seanphan opened this issue 2 years ago • 9 comments

Steps:

  • Get link from https://civitai.com/models/4361/olivia-diffusion
  • Inference with https://replicate.com/cloneofsimo/lora and a style trained by https://replicate.com/cloneofsimo/lora-training

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

seanphan avatar Feb 05 '23 03:02 seanphan

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

cloneofsimo avatar Feb 07 '23 05:02 cloneofsimo

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

deleteman avatar May 04 '23 22:05 deleteman

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

visoar avatar May 26 '23 09:05 visoar

@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

lionel-alves avatar Jun 08 '23 16:06 lionel-alves

any updates?

AlexanderKozhevin avatar Nov 26 '23 23:11 AlexanderKozhevin

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

Vkzem avatar Feb 02 '24 04:02 Vkzem

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

AlexanderKozhevin avatar Feb 02 '24 16:02 AlexanderKozhevin

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

yosun avatar Jul 23 '24 23:07 yosun

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?

celluuuu avatar Aug 01 '24 19:08 celluuuu