|
27 | 27 | from ...utils import logging |
28 | 28 | from ...utils.torch_utils import randn_tensor, unwrap_module |
29 | 29 | from ..modular_pipeline import ( |
30 | | - PipelineBlock, |
| 30 | + ModularPipelineBlocks, |
31 | 31 | PipelineState, |
32 | 32 | ) |
33 | 33 | from ..modular_pipeline_utils import ComponentSpec, ConfigSpec, InputParam, OutputParam |
@@ -195,7 +195,7 @@ def prepare_latents_img2img( |
195 | 195 | return latents |
196 | 196 |
|
197 | 197 |
|
198 | | -class StableDiffusionXLInputStep(PipelineBlock): |
| 198 | +class StableDiffusionXLInputStep(ModularPipelineBlocks): |
199 | 199 | model_name = "stable-diffusion-xl" |
200 | 200 |
|
201 | 201 | @property |
@@ -394,7 +394,7 @@ def __call__(self, components: StableDiffusionXLModularPipeline, state: Pipeline |
394 | 394 | return components, state |
395 | 395 |
|
396 | 396 |
|
397 | | -class StableDiffusionXLImg2ImgSetTimestepsStep(PipelineBlock): |
| 397 | +class StableDiffusionXLImg2ImgSetTimestepsStep(ModularPipelineBlocks): |
398 | 398 | model_name = "stable-diffusion-xl" |
399 | 399 |
|
400 | 400 | @property |
@@ -543,7 +543,7 @@ def denoising_value_valid(dnv): |
543 | 543 | return components, state |
544 | 544 |
|
545 | 545 |
|
546 | | -class StableDiffusionXLSetTimestepsStep(PipelineBlock): |
| 546 | +class StableDiffusionXLSetTimestepsStep(ModularPipelineBlocks): |
547 | 547 | model_name = "stable-diffusion-xl" |
548 | 548 |
|
549 | 549 | @property |
@@ -611,7 +611,7 @@ def __call__(self, components: StableDiffusionXLModularPipeline, state: Pipeline |
611 | 611 | return components, state |
612 | 612 |
|
613 | 613 |
|
614 | | -class StableDiffusionXLInpaintPrepareLatentsStep(PipelineBlock): |
| 614 | +class StableDiffusionXLInpaintPrepareLatentsStep(ModularPipelineBlocks): |
615 | 615 | model_name = "stable-diffusion-xl" |
616 | 616 |
|
617 | 617 | @property |
@@ -900,7 +900,7 @@ def __call__(self, components: StableDiffusionXLModularPipeline, state: Pipeline |
900 | 900 | return components, state |
901 | 901 |
|
902 | 902 |
|
903 | | -class StableDiffusionXLImg2ImgPrepareLatentsStep(PipelineBlock): |
| 903 | +class StableDiffusionXLImg2ImgPrepareLatentsStep(ModularPipelineBlocks): |
904 | 904 | model_name = "stable-diffusion-xl" |
905 | 905 |
|
906 | 906 | @property |
@@ -981,7 +981,7 @@ def __call__(self, components: StableDiffusionXLModularPipeline, state: Pipeline |
981 | 981 | return components, state |
982 | 982 |
|
983 | 983 |
|
984 | | -class StableDiffusionXLPrepareLatentsStep(PipelineBlock): |
| 984 | +class StableDiffusionXLPrepareLatentsStep(ModularPipelineBlocks): |
985 | 985 | model_name = "stable-diffusion-xl" |
986 | 986 |
|
987 | 987 | @property |
@@ -1092,7 +1092,7 @@ def __call__(self, components: StableDiffusionXLModularPipeline, state: Pipeline |
1092 | 1092 | return components, state |
1093 | 1093 |
|
1094 | 1094 |
|
1095 | | -class StableDiffusionXLImg2ImgPrepareAdditionalConditioningStep(PipelineBlock): |
| 1095 | +class StableDiffusionXLImg2ImgPrepareAdditionalConditioningStep(ModularPipelineBlocks): |
1096 | 1096 | model_name = "stable-diffusion-xl" |
1097 | 1097 |
|
1098 | 1098 | @property |
@@ -1316,7 +1316,7 @@ def __call__(self, components: StableDiffusionXLModularPipeline, state: Pipeline |
1316 | 1316 | return components, state |
1317 | 1317 |
|
1318 | 1318 |
|
1319 | | -class StableDiffusionXLPrepareAdditionalConditioningStep(PipelineBlock): |
| 1319 | +class StableDiffusionXLPrepareAdditionalConditioningStep(ModularPipelineBlocks): |
1320 | 1320 | model_name = "stable-diffusion-xl" |
1321 | 1321 |
|
1322 | 1322 | @property |
@@ -1499,7 +1499,7 @@ def __call__(self, components: StableDiffusionXLModularPipeline, state: Pipeline |
1499 | 1499 | return components, state |
1500 | 1500 |
|
1501 | 1501 |
|
1502 | | -class StableDiffusionXLControlNetInputStep(PipelineBlock): |
| 1502 | +class StableDiffusionXLControlNetInputStep(ModularPipelineBlocks): |
1503 | 1503 | model_name = "stable-diffusion-xl" |
1504 | 1504 |
|
1505 | 1505 | @property |
@@ -1718,7 +1718,7 @@ def __call__(self, components: StableDiffusionXLModularPipeline, state: Pipeline |
1718 | 1718 | return components, state |
1719 | 1719 |
|
1720 | 1720 |
|
1721 | | -class StableDiffusionXLControlNetUnionInputStep(PipelineBlock): |
| 1721 | +class StableDiffusionXLControlNetUnionInputStep(ModularPipelineBlocks): |
1722 | 1722 | model_name = "stable-diffusion-xl" |
1723 | 1723 |
|
1724 | 1724 | @property |
|
0 commit comments