Skip to content

Commit 1db6365

Browse files
committed
update
1 parent 4bf07e5 commit 1db6365

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/diffusers/modular_pipelines/modular_pipeline.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,7 @@ def get_block_state(self, state: PipelineState) -> dict:
379379
# if kwargs_type is provided, get all inputs with matching kwargs_type
380380
if input_param.kwargs_type not in data:
381381
data[input_param.kwargs_type] = {}
382-
inputs_kwargs = state.get_by_kwargs(input_param.kwargs_type) or state.get_kwargs(
383-
input_param.kwargs_type
384-
)
382+
inputs_kwargs = state.get_by_kwargs(input_param.kwargs_type)
385383
if inputs_kwargs:
386384
for k, v in inputs_kwargs.items():
387385
if v is not None:
@@ -405,6 +403,7 @@ def set_block_state(self, state: PipelineState, block_state: BlockState):
405403
if current_value is not param: # Using identity comparison to check if object was modified
406404
state.set(input_param.name, param, input_param.kwargs_type)
407405
elif input_param.kwargs_type:
406+
import ipdb; ipdb.set_trace()
408407
# if it is a kwargs type, e.g. "guider_input_fields", it is likely to be a list of parameters
409408
# we need to first find out which inputs are and loop through them.
410409
intermediate_kwargs = state.get_by_kwargs(input_param.kwargs_type)

0 commit comments

Comments
 (0)