Diffusers How to use LyliaEngine/hsDrawSwordIllust with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("LyliaEngine/ilustmix_v20", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("LyliaEngine/hsDrawSwordIllust")
prompt = "very aesthetic,masterpiece,best quality,painting \\(medium\\),exquisite details,amazing art,realistic details,pretty face,8K,RAW,movie lighting,soft light,<lora:hsDrawSwordIllust:0.8>,Draw Sword,weapon,Action,Fighting Stance,pose,Unsheathe,sword,holding weapon,holding sword,Sheath,Blade,Ken Kaneki (Tokyo Ghoul),his kagune - transformed sword. When he unsheathes it,a black,tentacle - like energy extends from the blade,and the ground beneath him is lacerated by the invisible force.,"
image = pipe(prompt).images[0]