Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: diffusers
|
3 |
+
tags:
|
4 |
+
- modular-diffusers
|
5 |
+
---
|
6 |
+
mellon nodes made with diffusers `ModularNode`
|
7 |
+
|
8 |
+
|
9 |
+
|
10 |
+
#### Instruction
|
11 |
+
|
12 |
+
Install [Mellon](https://github.com/cubiq/Mellon/)
|
13 |
+
|
14 |
+
download this folder insde the `custom` directory:
|
15 |
+
|
16 |
+
install from the latest modular diffusers branch. https://github.com/huggingface/diffusers/pull/11235
|
17 |
+
|
18 |
+
```
|
19 |
+
pip uninstall diffusers -y
|
20 |
+
pip install git+https://github.com/huggingface/diffusers.git@modular-refactor-0501
|
21 |
+
```
|
22 |
+
|
23 |
+
run `python main.py` and that's it
|
24 |
+
|
25 |
+
|
26 |
+
#### Components Manager
|
27 |
+
|
28 |
+
To use diffusers components manager across different custom nodes, for now, add this in your `custom/__init__.py`
|
29 |
+
|
30 |
+
|
31 |
+
```python
|
32 |
+
from diffusers import ComponentsManager
|
33 |
+
components = ComponentsManager()
|
34 |
+
```
|
35 |
+
|
36 |
+
and add this code in all your custom nodes module file
|
37 |
+
```python
|
38 |
+
from custom import components
|
39 |
+
```
|
40 |
+
|
41 |
+
e.g.
|
42 |
+
```
|
43 |
+
custom/
|
44 |
+
βββ __init__.py # create your components manager here
|
45 |
+
βββ mellon-modular-diffusers/
|
46 |
+
β βββ mellon-modular-diffusers.py # use in this
|
47 |
+
|
48 |
+

|
49 |
+
|
50 |
+
βββ diff-diff/
|
51 |
+
βββ diff-diff.py # use in this too
|
52 |
+
|
53 |
+
|
54 |
+
#### example workflow
|
55 |
+
|
56 |
+
|
57 |
+

|
58 |
+
|