We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04f9d2b commit 00a4788Copy full SHA for 00a4788
1 file changed
src/diffusers/modular_pipelines/modular_pipeline.py
@@ -861,6 +861,10 @@ def __init__(self):
861
else:
862
sub_blocks[block_name] = block
863
self.sub_blocks = sub_blocks
864
+ if not len(self.block_names) == len(self.block_classes):
865
+ raise ValueError(
866
+ f"In {self.__class__.__name__}, the number of block_names and block_classes must be the same."
867
+ )
868
869
def _get_inputs(self):
870
inputs = []
0 commit comments