Instructions to use superdiff/superdiff-sd-v1-4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use superdiff/superdiff-sd-v1-4 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("superdiff/superdiff-sd-v1-4", 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
Update pipeline.py
Browse files- pipeline.py +1 -6
pipeline.py
CHANGED
|
@@ -2,7 +2,7 @@ import random
|
|
| 2 |
from typing import Callable, Dict, List, Optional
|
| 3 |
|
| 4 |
import torch
|
| 5 |
-
from diffusers import DiffusionPipeline
|
| 6 |
from diffusers.configuration_utils import ConfigMixin
|
| 7 |
|
| 8 |
|
|
@@ -374,8 +374,3 @@ class SuperDiffPipeline(DiffusionPipeline, ConfigMixin):
|
|
| 374 |
images = self.postprocess(latents)
|
| 375 |
return images
|
| 376 |
|
| 377 |
-
|
| 378 |
-
DiffusionPipelineRegistry.register_pipeline(
|
| 379 |
-
task="superdiff-and", # Custom task name
|
| 380 |
-
pipeline_class=SuperDiffPipeline
|
| 381 |
-
)
|
|
|
|
| 2 |
from typing import Callable, Dict, List, Optional
|
| 3 |
|
| 4 |
import torch
|
| 5 |
+
from diffusers import DiffusionPipeline
|
| 6 |
from diffusers.configuration_utils import ConfigMixin
|
| 7 |
|
| 8 |
|
|
|
|
| 374 |
images = self.postprocess(latents)
|
| 375 |
return images
|
| 376 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|