Instructions to use glowforge-dev/stable-diffusion-2-1-base-custom with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use glowforge-dev/stable-diffusion-2-1-base-custom with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("glowforge-dev/stable-diffusion-2-1-base-custom", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Don't pass image to text pipeline
Browse files- handler.py +0 -1
handler.py
CHANGED
|
@@ -67,7 +67,6 @@ class EndpointHandler():
|
|
| 67 |
else:
|
| 68 |
# run text pipeline
|
| 69 |
out = self.textPipe(prompt,
|
| 70 |
-
image=init_image,
|
| 71 |
num_inference_steps=num_inference_steps,
|
| 72 |
guidance_scale=guidance_scale,
|
| 73 |
num_images_per_prompt=1,
|
|
|
|
| 67 |
else:
|
| 68 |
# run text pipeline
|
| 69 |
out = self.textPipe(prompt,
|
|
|
|
| 70 |
num_inference_steps=num_inference_steps,
|
| 71 |
guidance_scale=guidance_scale,
|
| 72 |
num_images_per_prompt=1,
|