Instructions to use Texttra/Bh0r with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Texttra/Bh0r with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Texttra/Bh0r") prompt = "<lora:Bh0r:.8> Bh0r in tortoise shell, red lenses, dark-skinned woman with braids, neutral expression, wearing a black track jacket, front-facing portrait of sunglasses, flat white concrete wall background, daylight, hyper realistic, film photograph" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -49,7 +49,7 @@ class EndpointHandler:
|
|
| 49 |
# Generate the image
|
| 50 |
image = self.pipe(
|
| 51 |
prompt,
|
| 52 |
-
num_inference_steps=
|
| 53 |
guidance_scale=7.0,
|
| 54 |
).images[0]
|
| 55 |
|
|
|
|
| 49 |
# Generate the image
|
| 50 |
image = self.pipe(
|
| 51 |
prompt,
|
| 52 |
+
num_inference_steps=40,
|
| 53 |
guidance_scale=7.0,
|
| 54 |
).images[0]
|
| 55 |
|