|
--- |
|
library_name: diffusers |
|
tags: |
|
- modular-diffusers |
|
--- |
|
mellon nodes made with diffusers `ModularNode` |
|
|
|
|
|
|
|
#### Instruction |
|
|
|
Install [Mellon](https://github.com/cubiq/Mellon/) |
|
|
|
download this folder insde the `custom` directory: |
|
|
|
install from the latest modular diffusers branch. https://github.com/huggingface/diffusers/pull/11235 |
|
|
|
``` |
|
pip uninstall diffusers -y |
|
pip install git+https://github.com/huggingface/diffusers.git@modular-refactor |
|
``` |
|
|
|
run `python main.py` and that's it |
|
|
|
|
|
#### Components Manager |
|
|
|
To use diffusers components manager across different custom nodes, for now, add this in your `custom/__init__.py` |
|
|
|
|
|
```python |
|
from diffusers import ComponentsManager |
|
components = ComponentsManager() |
|
``` |
|
|
|
and add this code in all your custom nodes module file |
|
```python |
|
from custom import components |
|
``` |
|
|
|
e.g. |
|
``` |
|
custom/ |
|
βββ __init__.py # create your components manager here |
|
βββ mellon-modular-diffusers/ |
|
β βββ mellon-modular-diffusers.py # use in this |
|
|
|
|
|
βββ diff-diff/ |
|
βββ diff-diff.py # use in this too |
|
|
|
``` |
|
|
|
#### example workflow |
|
|
|
find workflow [here](https://huggingface.co/YiYiXu/diff-diff-mellon/resolve/main/workflow_modular.json) |
|
|
|
 |
|
|
|
|