Update pipeline.py
Browse files- pipeline.py +2 -2
pipeline.py
CHANGED
@@ -7,7 +7,7 @@ import numpy as np
|
|
7 |
import torch
|
8 |
from diffusers import DPMSolverMultistepScheduler
|
9 |
from diffusers import StableDiffusionPipeline, AutoencoderKL
|
10 |
-
from diffusers import Transformer2DModel, ModelMixin, ConfigMixin
|
11 |
from diffusers import UNet2DConditionModel
|
12 |
from diffusers.configuration_utils import register_to_config
|
13 |
from diffusers.models.attention import BasicTransformerBlock
|
@@ -96,7 +96,7 @@ FlexibleUnetConfigurations = {
|
|
96 |
}
|
97 |
|
98 |
|
99 |
-
class SqueezedDPMSolverMultistepScheduler(DPMSolverMultistepScheduler):
|
100 |
"""
|
101 |
This is a copy-paste from Diffuser's `DPMSolverMultistepScheduler`, with minor differences:
|
102 |
* Defaults are modified to accommodate DeciDiffusion
|
|
|
7 |
import torch
|
8 |
from diffusers import DPMSolverMultistepScheduler
|
9 |
from diffusers import StableDiffusionPipeline, AutoencoderKL
|
10 |
+
from diffusers import Transformer2DModel, ModelMixin, ConfigMixin, SchedulerMixin
|
11 |
from diffusers import UNet2DConditionModel
|
12 |
from diffusers.configuration_utils import register_to_config
|
13 |
from diffusers.models.attention import BasicTransformerBlock
|
|
|
96 |
}
|
97 |
|
98 |
|
99 |
+
class SqueezedDPMSolverMultistepScheduler(DPMSolverMultistepScheduler, SchedulerMixin):
|
100 |
"""
|
101 |
This is a copy-paste from Diffuser's `DPMSolverMultistepScheduler`, with minor differences:
|
102 |
* Defaults are modified to accommodate DeciDiffusion
|