Instructions to use AnticPan/Anima-Role-Ref-KV with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use AnticPan/Anima-Role-Ref-KV with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("circlestone-labs/Anima", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("AnticPan/Anima-Role-Ref-KV") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
File size: 242 Bytes
6b7dcac | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | {
"r": 128,
"lora_alpha": 128,
"target_modules": [
"attn1.to_q",
"attn1.to_k",
"attn1.to_v",
"attn1.to_out.0",
"ff.net.0.proj",
"ff.net.2"
],
"peft_type": "LORA",
"bias": "none",
"inference_mode": true
}
|