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