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 ·
dcdeaa3
1
Parent(s): 510acad
fix typo
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -26,7 +26,7 @@ class EndpointHandler():
|
|
| 26 |
prompt = data.pop("prompt", None)
|
| 27 |
|
| 28 |
# run normal prediction
|
| 29 |
-
output = self.pipeline(prompt=prompt, image=
|
| 30 |
|
| 31 |
image = output.images[0]
|
| 32 |
|
|
|
|
| 26 |
prompt = data.pop("prompt", None)
|
| 27 |
|
| 28 |
# run normal prediction
|
| 29 |
+
output = self.pipeline(prompt=prompt, image=input_image)
|
| 30 |
|
| 31 |
image = output.images[0]
|
| 32 |
|