Update block.py
Browse files
block.py
CHANGED
@@ -9,7 +9,7 @@ from diffusers.modular_pipelines import (
|
|
9 |
ComponentSpec,
|
10 |
AutoPipelineBlocks
|
11 |
)
|
12 |
-
from diffusers.image_processor import VaeImageProcessor
|
13 |
from diffusers.schedulers import EulerDiscreteScheduler
|
14 |
from diffusers.models import AutoencoderKL
|
15 |
from diffusers.configuration_utils import FrozenDict
|
@@ -54,7 +54,7 @@ class SDXLDiffDiffPrepareLatentsStep(PipelineBlock):
|
|
54 |
@property
|
55 |
def inputs(self) -> List[Tuple[str, Any]]:
|
56 |
return [
|
57 |
-
InputParam("diffdiff_map",required=True),
|
58 |
InputParam(
|
59 |
"latents",
|
60 |
type_hint=Optional[torch.Tensor],
|
|
|
9 |
ComponentSpec,
|
10 |
AutoPipelineBlocks
|
11 |
)
|
12 |
+
from diffusers.image_processor import VaeImageProcessor, PipelineImageInput
|
13 |
from diffusers.schedulers import EulerDiscreteScheduler
|
14 |
from diffusers.models import AutoencoderKL
|
15 |
from diffusers.configuration_utils import FrozenDict
|
|
|
54 |
@property
|
55 |
def inputs(self) -> List[Tuple[str, Any]]:
|
56 |
return [
|
57 |
+
InputParam("diffdiff_map",type_hint=PipelineImageInput, required=True),
|
58 |
InputParam(
|
59 |
"latents",
|
60 |
type_hint=Optional[torch.Tensor],
|