YiYiXu commited on
Commit
d312652
Β·
verified Β·
1 Parent(s): 00a3c64

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +58 -0
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
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/624ef9ba9d608e459387b34e/iINNzAvo50WcZU-_1Wbsl.png)
49
+
50
+ └── diff-diff/
51
+ └── diff-diff.py # use in this too
52
+
53
+
54
+ #### example workflow
55
+
56
+
57
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/624ef9ba9d608e459387b34e/fGL1wbsyPf6LotB-Q8IIk.png)
58
+