Skip to content

Commit 5ee815b

Browse files
committed
reviews
1 parent 3d17125 commit 5ee815b

10 files changed

+51
-468
lines changed

docs/source/en/_toctree.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,8 @@
114114
title: Overview
115115
- local: modular_diffusers/quickstart
116116
title: Quickstart
117-
- local: modular_diffusers/end_to_end_guide
118-
title: End-to-end example
119117
- local: modular_diffusers/modular_diffusers_states
120-
title: Block states
118+
title: States
121119
- local: modular_diffusers/pipeline_block
122120
title: PipelineBlock
123121
- local: modular_diffusers/sequential_pipeline_blocks

docs/source/en/modular_diffusers/auto_pipeline_blocks.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,13 @@ class AutoImageBlocks(AutoPipelineBlocks):
155155

156156
It is **very** important to include a `description` to avoid any confusion over how to run a block and what inputs are required. While [`~modular_pipelines.AutoPipelineBlocks`] are convenient, it's conditional logic may be difficult to figure out if it isn't properly explained.
157157

158-
Create an instance of `AutoImageBlocks` and use [`~modular_pipelines.ModularPipelineBlocks.init_pipeline`] to convert it to a pipeline.
158+
Create an instance of `AutoImageBlocks`.
159159

160160
```py
161161
auto_blocks = AutoImageBlocks()
162-
auto_pipeline = auto_blocks.init_pipeline()
163162
```
164163

165-
For more complex compositions, nested [`~modular_pipelines.AutoPipelineBlocks`] blocks when they're used as sub-blocks in larger pipelines, use the [`~modular_pipelines.SequentialPipelineBlocks.get_execution_blocks`] method to extract the a block that is actually run based on your input.
164+
For more complex compositions, such as nested [`~modular_pipelines.AutoPipelineBlocks`] blocks when they're used as sub-blocks in larger pipelines, use the [`~modular_pipelines.SequentialPipelineBlocks.get_execution_blocks`] method to extract the a block that is actually run based on your input.
166165

167166
```py
168167
auto_blocks.get_execution_blocks("mask")

docs/source/en/modular_diffusers/components_manager.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ t2i_pipeline = t2i_blocks.init_pipeline(modular_repo_id, components_manager=comp
5151
</hfoption>
5252
</hfoptions>
5353

54-
Components are only loaded and registered when using [`~ModularPipeline.load_components`] or [`~ModularPipeline.load_default_components`]. The example below uses [`~ModularPipeline.load_default_components`] to create a second pipeline that reuses all the components from the first one, and assign it to a different collection
54+
Components are only loaded and registered when using [`~ModularPipeline.load_components`] or [`~ModularPipeline.load_default_components`]. The example below uses [`~ModularPipeline.load_default_components`] to create a second pipeline that reuses all the components from the first one, and assigns it to a different collection
5555

5656
```py
5757
pipe.load_default_components()
@@ -68,7 +68,7 @@ comp_dict = comp.get_components_by_names(names=pipe2.null_component_names)
6868
pipe2.update_components(**comp_dict)
6969
```
7070

71-
To add individual components, use the [`~ComponentsManager.add`] method. This registers a component with a unique identifier.
71+
To add individual components, use the [`~ComponentsManager.add`] method. This registers a component with a unique id.
7272

7373
```py
7474
from diffusers import AutoModel
@@ -107,7 +107,7 @@ comp.get_one(name="unet", collection="sdxl")
107107

108108
### get_components_by_names
109109

110-
The [`~ComponentsManager.get_components_by_names`] method accepts a list of names and returns a dictionary mapping names to components. This is especially useful with a [`ModularPipeline`] since they provide lists of required component names and the returned dictionary can be passed directly to [`~ModularPipeline.update_components`].
110+
The [`~ComponentsManager.get_components_by_names`] method accepts a list of names and returns a dictionary mapping names to components. This is especially useful with [`ModularPipeline`] since they provide lists of required component names and the returned dictionary can be passed directly to [`~ModularPipeline.update_components`].
111111

112112
```py
113113
component_dict = comp.get_components_by_names(names=["text_encoder", "unet", "vae"])
@@ -153,7 +153,7 @@ comp.add("text_encoder", text_encoder_2)
153153

154154
## Collections
155155

156-
Collections are labels you can assign to components for better organization and management. Add a component to a collection with the `collection` argument in [`~ComponentsManager.add`].
156+
Collections are labels assigned to components for better organization and management. Add a component to a collection with the `collection` argument in [`~ComponentsManager.add`].
157157

158158
Only one component per name is allowed in each collection. Adding a second component with the same name automatically removes the first component.
159159

@@ -173,7 +173,7 @@ comp.add("unet", spec2.load(), collection="sdxl")
173173

174174
This makes it convenient to work with node-based systems because you can:
175175

176-
- Mark all models loaded from one node with the `collection` label.
176+
- Mark all models as loaded from one node with the `collection` label.
177177
- Automatically replace models when new checkpoints are loaded under the same name.
178178
- Batch delete all models in a collection when a node is removed.
179179

0 commit comments

Comments
 (0)