You are viewing main version, which requires installation from source. If you'd like
regular pip install, checkout the latest stable version (v0.42.1).
Pipeline 状态
PipelineState
class diffusers.modular_pipelines.PipelineState
< source >( values: dict = <factory>kwargs_mapping: dict = <factory> )
PipelineState 存储流水线的状态。它用于在流水线块之间传递数据。
获取
< source >( keys: str | list[str]default: Any = None ) → Any | dict[str, Any]
从 pipeline 状态中获取一个或多个值。
get_by_kwargs
< source >( kwargs_type: str ) → dict[str, Any]
获取所有与 kwargs_type 匹配的值。
set
< source >( key: strvalue: Anykwargs_type: str = None )
向流水线状态添加一个值。
将 PipelineState 转换为字典。
BlockState
用于块状态数据的容器,支持属性访问和格式化表示。
将 BlockState 转换为字典。