diff-diff-mellon / README.md
YiYiXu's picture
Update README.md
9871332 verified
---
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)
![image/png](https://cdn-uploads.huggingface.co/production/uploads/624ef9ba9d608e459387b34e/fGL1wbsyPf6LotB-Q8IIk.png)