diff --git a/README.md b/README.md index da1a90a..6406dc6 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,15 @@ A collection of post processing nodes for [ComfyUI](https://github.com/comfyanonymous/ComfyUI), simply download this repo and drag `post_processing_nodes.py` into your `custom_nodes/` folder +## Example Image and Workflow + +

+ + +

+ +Both images have the workflow attached, and it is included so feel free to use it as base + ## Node List - ArithmeticBlend: Blends two images using arithmetic operations like addition, subtraction, and difference. @@ -20,10 +29,6 @@ A collection of post processing nodes for [ComfyUI](https://github.com/comfyanon - Sharpen: Enhances the details in an image by applying a sharpening filter - Solarize: Inverts image colors based on a threshold for a striking, high-contrast effect -## Example workflow - -![__image__](images/example-workflow.png) - ## Combine Nodes By default `post_processing_nodes.py` should have all of the combined nodes. If you want a subset of nodes, you can run @@ -35,3 +40,7 @@ or just run python combine_files.py -h for more help + +## Old Nodes + +Some nodes have been have been added to the main repo, feel free to use those instead as they work perfectly fine. Old versions are still kept around for backwards compatability. diff --git a/examples/example_workflow.json b/examples/example_workflow.json new file mode 100644 index 0000000..580450b --- /dev/null +++ b/examples/example_workflow.json @@ -0,0 +1,905 @@ +{ + "last_node_id": 98, + "last_link_id": 162, + "nodes": [ + { + "id": 75, + "type": "LoadImage", + "pos": [ + 21, + 55 + ], + "size": { + "0": 315, + "1": 102 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 133, + 136 + ], + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "Node name for S&R": "Load Image" + }, + "widgets_values": [ + "00002-3992950279 (1).png", + "image" + ] + }, + { + "id": 91, + "type": "PixelSort", + "pos": [ + 1154, + 656 + ], + "size": { + "0": 315, + "1": 150 + }, + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 156, + "slot_index": 0 + }, + { + "name": "mask", + "type": "IMAGE", + "link": 155 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 152, + 160 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PixelSort" + }, + "widgets_values": [ + "vertical", + 0, + "hue", + "forward" + ] + }, + { + "id": 98, + "type": "SaveImage", + "pos": [ + 1720, + 652 + ], + "size": { + "0": 315, + "1": 250 + }, + "flags": {}, + "order": 20, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 162, + "slot_index": 0 + } + ], + "properties": {}, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 78, + "type": "ColorCorrect", + "pos": [ + 25, + 207 + ], + "size": { + "0": 315, + "1": 178 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 136 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 137, + 138, + 140, + 142, + 145, + 147, + 149, + 153 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ColorCorrect" + }, + "widgets_values": [ + 35, + 10, + 5, + 10, + 35, + 1 + ] + }, + { + "id": 83, + "type": "Solarize", + "pos": [ + 27, + 429 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 142 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 143, + 144 + ] + } + ], + "properties": { + "Node name for S&R": "Solarize" + }, + "widgets_values": [ + 0.9 + ] + }, + { + "id": 77, + "type": "PreviewImage", + "pos": [ + 356, + 343 + ], + "size": { + "0": 210, + "1": 250 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 137 + } + ], + "properties": { + "Node name for S&R": "Preview Image" + } + }, + { + "id": 76, + "type": "PreviewImage", + "pos": [ + 355, + 53 + ], + "size": { + "0": 210, + "1": 250 + }, + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 133, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Preview Image" + } + }, + { + "id": 84, + "type": "PreviewImage", + "pos": [ + 356, + 638 + ], + "size": { + "0": 210, + "1": 250 + }, + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 143, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Preview Image" + } + }, + { + "id": 85, + "type": "Blend", + "pos": [ + 577, + 636 + ], + "size": { + "0": 315, + "1": 102 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "image1", + "type": "IMAGE", + "link": 145, + "slot_index": 0 + }, + { + "name": "image2", + "type": "IMAGE", + "link": 144, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 146, + 156 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Blend" + }, + "widgets_values": [ + 0.5000000000000001, + "normal" + ] + }, + { + "id": 93, + "type": "CannyEdgeDetection", + "pos": [ + 581, + 791 + ], + "size": { + "0": 315, + "1": 82 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 153 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 155 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CannyEdgeDetection" + }, + "widgets_values": [ + 100, + 200 + ] + }, + { + "id": 86, + "type": "PreviewImage", + "pos": [ + 911, + 648 + ], + "size": { + "0": 210, + "1": 250 + }, + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 146, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Preview Image" + } + }, + { + "id": 82, + "type": "PreviewImage", + "pos": [ + 919, + 351 + ], + "size": { + "0": 210, + "1": 250 + }, + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 141, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Preview Image" + } + }, + { + "id": 81, + "type": "FilmGrain", + "pos": [ + 582, + 182 + ], + "size": { + "0": 315, + "1": 130 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 140, + "slot_index": 0 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 141 + ] + } + ], + "properties": { + "Node name for S&R": "FilmGrain" + }, + "widgets_values": [ + 0.4, + 5, + 20, + 0.2 + ] + }, + { + "id": 79, + "type": "PencilSketch", + "pos": [ + 585, + 54 + ], + "size": { + "0": 315, + "1": 82 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 138 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 139 + ] + } + ], + "properties": { + "Node name for S&R": "PencilSketch" + }, + "widgets_values": [ + 4, + 1 + ] + }, + { + "id": 80, + "type": "PreviewImage", + "pos": [ + 916, + 58 + ], + "size": { + "0": 210, + "1": 250 + }, + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 139, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Preview Image" + } + }, + { + "id": 87, + "type": "Pixelize", + "pos": [ + 1146, + 60 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 147 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 148 + ] + } + ], + "properties": { + "Node name for S&R": "Pixelize" + }, + "widgets_values": [ + 16 + ] + }, + { + "id": 89, + "type": "Quantize", + "pos": [ + 1147, + 167 + ], + "size": { + "0": 315, + "1": 82 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 149 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 150 + ] + } + ], + "properties": { + "Node name for S&R": "Quantize" + }, + "widgets_values": [ + 8, + "none" + ] + }, + { + "id": 88, + "type": "PreviewImage", + "pos": [ + 1475, + 59 + ], + "size": { + "0": 210, + "1": 250 + }, + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 148, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Preview Image" + } + }, + { + "id": 90, + "type": "PreviewImage", + "pos": [ + 1479, + 360 + ], + "size": { + "0": 210, + "1": 250 + }, + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 150, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Preview Image" + } + }, + { + "id": 96, + "type": "ColorCorrect", + "pos": [ + 1707, + 415 + ], + "size": { + "0": 315, + "1": 178 + }, + "flags": {}, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 160, + "slot_index": 0 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 162 + ] + } + ], + "properties": { + "Node name for S&R": "ColorCorrect" + }, + "widgets_values": [ + 0, + 0, + 30, + 5, + 5, + 1 + ] + }, + { + "id": 92, + "type": "PreviewImage", + "pos": [ + 1483, + 655 + ], + "size": { + "0": 210, + "1": 250 + }, + "flags": {}, + "order": 18, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 152, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Preview Image" + } + } + ], + "links": [ + [ + 133, + 75, + 0, + 76, + 0, + "IMAGE" + ], + [ + 136, + 75, + 0, + 78, + 0, + "IMAGE" + ], + [ + 137, + 78, + 0, + 77, + 0, + "IMAGE" + ], + [ + 138, + 78, + 0, + 79, + 0, + "IMAGE" + ], + [ + 139, + 79, + 0, + 80, + 0, + "IMAGE" + ], + [ + 140, + 78, + 0, + 81, + 0, + "IMAGE" + ], + [ + 141, + 81, + 0, + 82, + 0, + "IMAGE" + ], + [ + 142, + 78, + 0, + 83, + 0, + "IMAGE" + ], + [ + 143, + 83, + 0, + 84, + 0, + "IMAGE" + ], + [ + 144, + 83, + 0, + 85, + 1, + "IMAGE" + ], + [ + 145, + 78, + 0, + 85, + 0, + "IMAGE" + ], + [ + 146, + 85, + 0, + 86, + 0, + "IMAGE" + ], + [ + 147, + 78, + 0, + 87, + 0, + "IMAGE" + ], + [ + 148, + 87, + 0, + 88, + 0, + "IMAGE" + ], + [ + 149, + 78, + 0, + 89, + 0, + "IMAGE" + ], + [ + 150, + 89, + 0, + 90, + 0, + "IMAGE" + ], + [ + 152, + 91, + 0, + 92, + 0, + "IMAGE" + ], + [ + 153, + 78, + 0, + 93, + 0, + "IMAGE" + ], + [ + 155, + 93, + 0, + 91, + 1, + "IMAGE" + ], + [ + 156, + 85, + 0, + 91, + 0, + "IMAGE" + ], + [ + 160, + 91, + 0, + 96, + 0, + "IMAGE" + ], + [ + 162, + 96, + 0, + 98, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/examples/example_workflow.png b/examples/example_workflow.png new file mode 100644 index 0000000..3407498 Binary files /dev/null and b/examples/example_workflow.png differ diff --git a/examples/workflow_output.png b/examples/workflow_output.png new file mode 100644 index 0000000..57eb7d9 Binary files /dev/null and b/examples/workflow_output.png differ diff --git a/images/example-workflow.png b/images/example-workflow.png deleted file mode 100644 index 7ef08b5..0000000 Binary files a/images/example-workflow.png and /dev/null differ