Skip to content

Commit edd64bd

Browse files
authored
Replace links to .py files with repo links, and consolidate some nodes
Revised links to my node py files, replacing them with links to independent repos. Additionally I consolidated some nodes together (Image and Mask Composition Pack, Size Stepper nodes).
1 parent 8795ea8 commit edd64bd

File tree

1 file changed

+31
-38
lines changed

1 file changed

+31
-38
lines changed

docs/nodes/communityNodes.md

Lines changed: 31 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -120,74 +120,67 @@ There are simple parameters to change the FOV, camera position, and model orient
120120

121121
Additional parameters like different image sizes will probably be added, and things like more sophisticated rotations are planned but this node is experimental and may or may not change much.
122122

123-
**Node Link:** https://github.com/dwringer/invoke-nodes/blob/main/depth_from_obj.py
123+
**Node Link:** https://github.com/dwringer/depth-from-obj-node
124+
125+
**Example Usage:**
126+
![depth from obj usage graph](https://raw.githubusercontent.com/dwringer/depth-from-obj-node/main/depth_from_obj_usage.jpg)
124127

125128
--------------------------------
126-
### Enhance Image
129+
### Enhance Image (simple adjustments)
127130

128131
**Description:** Boost or reduce color saturation, contrast, brightness, sharpness, or invert colors of any image at any stage with this simple wrapper for pillow [PIL]'s ImageEnhance module.
129132

130133
Color inversion is toggled with a simple switch, while each of the four enhancer modes are activated by entering a value other than 1 in each corresponding input field. Values less than 1 will reduce the corresponding property, while values greater than 1 will enhance it.
131134

132-
**Node Link:** https://github.com/dwringer/invoke-nodes/blob/main/image_enhance.py
135+
**Node Link:** https://github.com/dwringer/image-enhance-node
136+
137+
**Example Usage:**
138+
![enhance image usage graph](https://raw.githubusercontent.com/dwringer/image-enhance-node/main/image_enhance_usage.jpg)
133139

134140
--------------------------------
135141
### Generative Grammar-Based Prompt Nodes
136142

137-
**Description:** This generates prompts from simple user-defined grammar rules (loaded from custom files - examples provided below). The prompts are made by recursively expanding a special template string, replacing nonterminal "parts-of-speech" until no more nonterminal terms remain in the string.
143+
**Description:** This set of 3 nodes generates prompts from simple user-defined grammar rules (loaded from custom files - examples provided below). The prompts are made by recursively expanding a special template string, replacing nonterminal "parts-of-speech" until no more nonterminal terms remain in the string.
138144

139-
**Three nodes are included:**
145+
This includes 3 Nodes:
140146
- *Lookup Table from File* - loads a YAML file "prompt" section (or of a whole folder of YAML's) into a JSON-ified dictionary (Lookups output)
141147
- *Lookups Entry from Prompt* - places a single entry in a new Lookups output under the specified heading
142-
- *Prompt from LookupTable* - uses a Collection of Lookups as grammar rules from which to randomly generate prompts.
148+
- *Prompt from Lookup Table* - uses a Collection of Lookups as grammar rules from which to randomly generate prompts.
143149

144-
**Node Link:** https://github.com/dwringer/invoke-nodes/blob/main/lookuptables.py
145-
146-
**Example Templates:**
147-
- https://github.com/dwringer/invoke-nodes/blob/main/example_template.yaml
148-
- https://github.com/dwringer/invoke-nodes/blob/main/movies.yaml
149-
- https://github.com/dwringer/invoke-nodes/blob/main/photograph.yaml
150+
**Node Link:** https://github.com/dwringer/generative-grammar-prompt-nodes
150151

151152
**Example Usage:**
152-
![lookups usage example graph](https://raw.githubusercontent.com/dwringer/invoke-nodes/main/lookuptables_usage.jpg)
153+
![lookups usage example graph](https://raw.githubusercontent.com/dwringer/generative-grammar-prompt-nodes/main/lookuptables_usage.jpg)
153154

154155
--------------------------------
155-
### Ideal Size Stepper
156-
157-
**Description:** Plug in your full size dimensions as well as JPPhoto's Ideal Size node's output dimensions, and get 1, 2, or 3 intermediate pairs of dimensions for upscaling based on the natural log of the image area. Thus, each successive generation (from ideal size to full size) adds approximately the same percentage of new pixels to the image. Note this does not output the ideal size or full size dimensions. The 1, 2, or 3 outputs of this node are only the intermediate step sizes.
156+
### Image and Mask Composition Pack
158157

159-
There are up to three stages which determine how many intermediate sizes to compute and output. With Tapers B and C disabled, outputs A, B, and C will be the same (inactive outputs yield copies of the previous pair). With a taper assigned to B, Width/Height A and B will both be active with progressively larger intermediate resolutions, and if Taper C is activated, active outputs will be calculated with even finer gradations.
158+
**Description:** This is a pack of nodes for composing masks and images, including a simple text mask creator and both image and latent offset nodes. The offsets wrap around, so these can be used in conjunction with the Seamless node to progressively generate centered on different parts of the seamless tiling.
160159

161-
**Node Link:** https://github.com/dwringer/invoke-nodes/blob/main/ideal_size_stepper.py
162-
163-
--------------------------------
164-
### Image Compositor
160+
This includes 4 Nodes:
161+
- Text Mask (simple 2D) - create and position a white on black (or black on white) line of text using any font locally available to Invoke.
162+
- Image Compositor - Take a subject from an image with a flat backdrop and layer it on another image using a chroma key or flood select background removal.
163+
- Offset Latents - Offset a latents tensor in the vertical and/or horizontal dimensions, wrapping it around.
164+
- Offset Image - Offset an image in the vertical and/or horizontal dimensions, wrapping it around.
165165

166-
**Description:** Take a subject from an image with a flat backdrop and layer it on another image using a chroma key to specify a color value/threshold to remove backdrop pixels, or leave the color blank and a "flood select" will be used from the image corners.
166+
**Node Link:** https://github.com/dwringer/composition-nodes
167167

168-
The subject image may be scaled using the fill X and fill Y options (enable both to stretch-fit). Final subject position may also be adjusted with X offset and Y offset. If used, chroma key may be specified either as an (R, G, B) tuple, or a CSS-3 color string.
169-
170-
**Node Link:** https://github.com/dwringer/invoke-nodes/blob/main/image_composite.py
168+
**Example Usage:**
169+
![composition nodes usage graph](https://raw.githubusercontent.com/dwringer/composition-nodes/main/composition_nodes_usage.jpg)
171170

172171
--------------------------------
173-
### Final Size & Orientation / Random Switch (Integers)
172+
### Size Stepper Nodes
174173

175-
**Description:** Input two integers, get two out in random, landscape, or portrait orientations.
174+
**Description:** This is a set of nodes for calculating the necessary size increments for doing upscaling workflows. Use the Final Size & Orientation node to enter your full size dimensions and orientation (portrait/landscape/random), then plug that and your initial generation dimensions into the Ideal Size Stepper and get 1, 2, or 3 intermediate pairs of dimensions for upscaling. Note this does not output the initial size or full size dimensions. The 1, 2, or 3 outputs of this node are only the intermediate sizes.
176175

177-
Pretty self explanatory. You can just enter your height/width in the two inputs and then get the requested configurations of WxH or HxW from the two outputs.
176+
For the Ideal Size Stepper, there are up to three stages which determine how many intermediate sizes to compute and output. With Tapers B and C disabled, outputs A, B, and C will be the same (inactive outputs yield copies of the previous pair). With a taper assigned to B, Width/Height A and B will both be active with progressively larger intermediate resolutions, and if Taper C is activated, active outputs will be calculated with even finer gradations.
178177

179-
Contains two nodes: Final Size & Orientation, and Random Switch (Integer) which was the original, slightly more generalized version.
178+
A third node is included, Random Switch (Integers), which is just a generic version of Final Size with no orientation selection.
180179

181-
**Node Link:** https://github.com/dwringer/invoke-nodes/blob/main/random_switch.py
182-
183-
--------------------------------
184-
### Text Mask (simple 2D)
180+
**Node Link:** https://github.com/dwringer/size-stepper-nodes
185181

186-
**Description:** Create a white on black (or black on white) text image for use with controlnets or further processing in other nodes. Specify any TTF/OTF font file available to Invoke and control parameters to resize, rotate, and reposition the text.
187-
188-
Currently this only generates one line of text, but it can be layered with other images using the Image Compositor node or any other such tool.
189-
190-
**Node Link:** https://github.com/dwringer/invoke-nodes/blob/main/text_mask.py
182+
**Example Usage:**
183+
![size stepper usage graph](https://raw.githubusercontent.com/dwringer/size-stepper-nodes/main/size_nodes_usage.jpg)
191184

192185
--------------------------------
193186

0 commit comments

Comments
 (0)