Instructions to use PrunaAI/p-image-pixel-art-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use PrunaAI/p-image-pixel-art-lora with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("fill-in-base-model", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("PrunaAI/p-image-pixel-art-lora") prompt = "pixel art style A character with spiky hair and a red jacket standing in a neon-lit city street at night." image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -85,7 +85,7 @@ Prompts used for the gallery above:
|
|
| 85 |
|
| 86 |
## LoRA scale
|
| 87 |
|
| 88 |
-
The gallery was generated with **`lora_scale=
|
| 89 |
|
| 90 |
## Use on Replicate
|
| 91 |
|
|
@@ -97,7 +97,7 @@ output = replicate.run(
|
|
| 97 |
input={
|
| 98 |
"prompt": "pixel art style your prompt here",
|
| 99 |
"lora_weights": "https://huggingface.co/davidberenstein1957/p-image-pixel-art-lora/resolve/main/weights.safetensors",
|
| 100 |
-
"lora_scale":
|
| 101 |
"hf_api_token": "your-hf-token",
|
| 102 |
}
|
| 103 |
)
|
|
|
|
| 85 |
|
| 86 |
## LoRA scale
|
| 87 |
|
| 88 |
+
The gallery was generated with **`lora_scale=0.5`**. You can tune this when running inference (e.g. lower for a subtler effect, higher for a stronger style).
|
| 89 |
|
| 90 |
## Use on Replicate
|
| 91 |
|
|
|
|
| 97 |
input={
|
| 98 |
"prompt": "pixel art style your prompt here",
|
| 99 |
"lora_weights": "https://huggingface.co/davidberenstein1957/p-image-pixel-art-lora/resolve/main/weights.safetensors",
|
| 100 |
+
"lora_scale": 0.5,
|
| 101 |
"hf_api_token": "your-hf-token",
|
| 102 |
}
|
| 103 |
)
|