Instructions to use playgroundai/playground-v2.5-1024px-aesthetic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use playgroundai/playground-v2.5-1024px-aesthetic with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("playgroundai/playground-v2.5-1024px-aesthetic", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
I need to use Lora. How do I set up the code?
#21
by 313u - opened
I need to use Lora. How do I set up the code? I used load_Lora_weights to load it, but why did it not take effect? help me
I can confirm the same problem here. You load and fuse the LoRA with
pipe.load_lora_weights(pretrained_model_name_or_path_or_dict=f"./LoRAs/lorafilename", adapter_name="lora_adapter")
pipe.fuse_lora(lora_scale=args2.lora_weight)
but no noticable change in the output.