Update README.md
Browse files
README.md
CHANGED
|
@@ -7,7 +7,7 @@ library_name: diffusers
|
|
| 7 |
This contains mellon config for A single-node Mellon block for the FLUX.2-klein-4B pipeline.
|
| 8 |
|
| 9 |
|
| 10 |
-
## How to create a modular repo?
|
| 11 |
|
| 12 |
load the pipeline and save it to a new Hub repository:
|
| 13 |
```python
|
|
@@ -29,16 +29,18 @@ from diffusers.modular_pipelines.mellon_node_utils import MellonPipelineConfig
|
|
| 29 |
|
| 30 |
mellon_config = MellonPipelineConfig.from_custom_block(
|
| 31 |
pipe.blocks,
|
| 32 |
-
|
| 33 |
"prompt": "textbox",
|
| 34 |
"image": "image",
|
| 35 |
-
"images": "image",
|
| 36 |
"num_inference_steps": "number",
|
|
|
|
|
|
|
|
|
|
| 37 |
}
|
| 38 |
)
|
| 39 |
|
| 40 |
mellon_config.save(
|
| 41 |
-
|
| 42 |
repo_id="your-username/flux2-klein-auto-blocks",
|
| 43 |
push_to_hub=True
|
| 44 |
)
|
|
@@ -57,7 +59,7 @@ The generated `mellon_pipeline_config.json` may need adjustments. You can:
|
|
| 57 |
## Use in Mellon
|
| 58 |
|
| 59 |
1. Drag a **Dynamic Block Node** from the ModularDiffusers section
|
| 60 |
-
2. Enter `
|
| 61 |
3. The node will show your configured inputs (prompt, image, num_inference_steps) and outputs (images)
|
| 62 |
|
| 63 |
## Supported Mellon Types
|
|
|
|
| 7 |
This contains mellon config for A single-node Mellon block for the FLUX.2-klein-4B pipeline.
|
| 8 |
|
| 9 |
|
| 10 |
+
## How to create a modular repo like this one?
|
| 11 |
|
| 12 |
load the pipeline and save it to a new Hub repository:
|
| 13 |
```python
|
|
|
|
| 29 |
|
| 30 |
mellon_config = MellonPipelineConfig.from_custom_block(
|
| 31 |
pipe.blocks,
|
| 32 |
+
input_types={
|
| 33 |
"prompt": "textbox",
|
| 34 |
"image": "image",
|
|
|
|
| 35 |
"num_inference_steps": "number",
|
| 36 |
+
},
|
| 37 |
+
output_types={
|
| 38 |
+
"images": "image"
|
| 39 |
}
|
| 40 |
)
|
| 41 |
|
| 42 |
mellon_config.save(
|
| 43 |
+
"local/dir",
|
| 44 |
repo_id="your-username/flux2-klein-auto-blocks",
|
| 45 |
push_to_hub=True
|
| 46 |
)
|
|
|
|
| 59 |
## Use in Mellon
|
| 60 |
|
| 61 |
1. Drag a **Dynamic Block Node** from the ModularDiffusers section
|
| 62 |
+
2. Enter `diffusers/FLUX.2-klein-4B-modular` and click "LOAD CUSTOM BLOCK"
|
| 63 |
3. The node will show your configured inputs (prompt, image, num_inference_steps) and outputs (images)
|
| 64 |
|
| 65 |
## Supported Mellon Types
|