How to use LyliaEngine/cfg_scale_boost with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("xinsir/controlnet-union-sdxl-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("LyliaEngine/cfg_scale_boost") prompt = "score_9, score_8_up, score_7_up, score_6_up, score_5_up, score_4_up, realistic" image = pipe(prompt).images[0]
The community tab is the place to discuss and collaborate with the HF community!