Text-to-Image
Diffusers
Safetensors
English
StableDiffusionPipeline
image-to-image
stable-diffusion
stable-diffusion-diffusers
art
Instructions to use Cyanex/D.R.E.A.M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Cyanex/D.R.E.A.M with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Cyanex/D.R.E.A.M", 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 Settings
- Draw Things
- DiffusionBee
Update pipeline.py
Browse files- pipeline.py +2 -3
pipeline.py
CHANGED
|
@@ -44,7 +44,6 @@ FlexibleUnetConfigurations = {
|
|
| 44 |
'add_upsample': [True, True, False],
|
| 45 |
}
|
| 46 |
|
| 47 |
-
|
| 48 |
def custom_sort_order(obj):
|
| 49 |
"""
|
| 50 |
Key function for sorting order of execution in forward methods
|
|
@@ -619,7 +618,7 @@ class FlexibleTransformer2DModel(ModelMixin, ConfigMixin):
|
|
| 619 |
return Transformer2DModelOutput(sample=output)
|
| 620 |
|
| 621 |
|
| 622 |
-
class
|
| 623 |
deci_default_number_of_iterations = 30
|
| 624 |
deci_default_guidance_rescale = 0.7
|
| 625 |
|
|
@@ -661,4 +660,4 @@ class DreamDiffusionPipeline(StableDiffusionPipeline):
|
|
| 661 |
kwargs.update({'guidance_rescale': self.deci_default_guidance_rescale})
|
| 662 |
if "num_inference_steps" not in kwargs:
|
| 663 |
kwargs.update({'num_inference_steps': self.deci_default_number_of_iterations})
|
| 664 |
-
return super().__call__(*args, **kwargs)
|
|
|
|
| 44 |
'add_upsample': [True, True, False],
|
| 45 |
}
|
| 46 |
|
|
|
|
| 47 |
def custom_sort_order(obj):
|
| 48 |
"""
|
| 49 |
Key function for sorting order of execution in forward methods
|
|
|
|
| 618 |
return Transformer2DModelOutput(sample=output)
|
| 619 |
|
| 620 |
|
| 621 |
+
class DreamDiffusionPipelineV2(StableDiffusionPipeline):
|
| 622 |
deci_default_number_of_iterations = 30
|
| 623 |
deci_default_guidance_rescale = 0.7
|
| 624 |
|
|
|
|
| 660 |
kwargs.update({'guidance_rescale': self.deci_default_guidance_rescale})
|
| 661 |
if "num_inference_steps" not in kwargs:
|
| 662 |
kwargs.update({'num_inference_steps': self.deci_default_number_of_iterations})
|
| 663 |
+
return super().__call__(*args, **kwargs)
|