Instructions to use simulationcartridge/ppl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use simulationcartridge/ppl with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("simulationcartridge/ppl") prompt = "8bit avatar" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Mirza Učanbarlić commited on
Commit ·
6845182
1
Parent(s): 6815252
less guidance
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -30,7 +30,7 @@ class EndpointHandler():
|
|
| 30 |
input_image = load_image(input_image_url)
|
| 31 |
|
| 32 |
# run normal prediction
|
| 33 |
-
output = self.pipeline(prompt=prompt, image=input_image, guidance_scale=
|
| 34 |
|
| 35 |
image = output.images[0]
|
| 36 |
|
|
|
|
| 30 |
input_image = load_image(input_image_url)
|
| 31 |
|
| 32 |
# run normal prediction
|
| 33 |
+
output = self.pipeline(prompt=prompt, image=input_image, guidance_scale=16)
|
| 34 |
|
| 35 |
image = output.images[0]
|
| 36 |
|