Update sde_ve_pipeline.py
Browse files- sde_ve_pipeline.py +4 -2
sde_ve_pipeline.py
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
from diffusers.utils.torch_utils import randn_tensor
|
2 |
from diffusers.pipelines.pipeline_utils import DiffusionPipeline, ImagePipelineOutput
|
3 |
|
@@ -14,8 +16,8 @@ class ScoreSdeVePipeline(DiffusionPipeline):
|
|
14 |
A `ScoreSdeVeScheduler` to be used in combination with `unet` to denoise the encoded image.
|
15 |
"""
|
16 |
|
17 |
-
unet
|
18 |
-
scheduler
|
19 |
|
20 |
def __init__(self, unet, scheduler):
|
21 |
super().__init__()
|
|
|
1 |
+
from .unet.unet_model import UNet2DModel
|
2 |
+
from .scheduler.sde_ve_scheduler import ScoreSdeVeScheduler
|
3 |
from diffusers.utils.torch_utils import randn_tensor
|
4 |
from diffusers.pipelines.pipeline_utils import DiffusionPipeline, ImagePipelineOutput
|
5 |
|
|
|
16 |
A `ScoreSdeVeScheduler` to be used in combination with `unet` to denoise the encoded image.
|
17 |
"""
|
18 |
|
19 |
+
unet: UNet2DModel
|
20 |
+
scheduler: ScoreSdeVeScheduler
|
21 |
|
22 |
def __init__(self, unet, scheduler):
|
23 |
super().__init__()
|