Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "id": "c75f7aa8-2651-46d4-af40-90a8b03cc595",
- "revision": 0,
- "last_node_id": 50,
- "last_link_id": 77,
- "nodes": [
- {
- "id": 50,
- "type": "78aad6b7-d56d-41c4-aaab-2b71599bfdb1",
- "pos": [
- 1550,
- -20
- ],
- "size": [
- 210,
- 280
- ],
- "flags": {},
- "order": 0,
- "mode": 0,
- "inputs": [
- {
- "label": "image",
- "name": "images.image0",
- "type": "IMAGE",
- "link": null
- }
- ],
- "outputs": [
- {
- "label": "image",
- "name": "IMAGE0",
- "type": "IMAGE",
- "links": []
- }
- ],
- "properties": {
- "proxyWidgets": [
- [
- "46",
- "$$canvas-image-preview"
- ]
- ],
- "cnr_id": "comfy-core",
- "ver": "0.27.0"
- },
- "widgets_values": [],
- "color": "#232",
- "bgcolor": "#353"
- }
- ],
- "links": [],
- "groups": [],
- "definitions": {
- "subgraphs": [
- {
- "id": "78aad6b7-d56d-41c4-aaab-2b71599bfdb1",
- "version": 1,
- "state": {
- "lastGroupId": 0,
- "lastNodeId": 50,
- "lastLinkId": 77,
- "lastRerouteId": 0
- },
- "revision": 0,
- "config": {},
- "name": "2px Grid Nyquist Notch",
- "inputNode": {
- "id": -10,
- "bounding": [
- 1368.3613636109517,
- -149.1410005882169,
- 128,
- 68
- ]
- },
- "outputNode": {
- "id": -20,
- "bounding": [
- 1826.3613636109517,
- -149.1410005882169,
- 128,
- 68
- ]
- },
- "inputs": [
- {
- "id": "9e0e89fd-f590-4869-ac0f-965391cc1d91",
- "name": "images.image0",
- "type": "IMAGE",
- "linkIds": [
- 66
- ],
- "label": "image",
- "pos": [
- 1472.3613636109517,
- -125.14100058821691
- ]
- }
- ],
- "outputs": [
- {
- "id": "1a201211-9128-4176-a3fa-b2b89bc198e2",
- "name": "IMAGE0",
- "type": "IMAGE",
- "linkIds": [
- 67
- ],
- "label": "image",
- "pos": [
- 1850.3613636109517,
- -125.14100058821691
- ]
- }
- ],
- "widgets": [],
- "nodes": [
- {
- "id": 46,
- "type": "GLSLShader",
- "pos": [
- 1510,
- -140
- ],
- "size": [
- 300,
- 220
- ],
- "flags": {},
- "order": 0,
- "mode": 0,
- "inputs": [
- {
- "label": "image0",
- "localized_name": "images.image0",
- "name": "images.image0",
- "type": "IMAGE",
- "link": 66
- },
- {
- "label": "image1",
- "localized_name": "images.image1",
- "name": "images.image1",
- "shape": 7,
- "type": "IMAGE",
- "link": null
- },
- {
- "label": "u_float0",
- "localized_name": "floats.u_float0",
- "name": "floats.u_float0",
- "shape": 7,
- "type": "FLOAT",
- "link": null
- },
- {
- "label": "u_int0",
- "localized_name": "ints.u_int0",
- "name": "ints.u_int0",
- "shape": 7,
- "type": "INT",
- "link": null
- },
- {
- "label": "u_bool0",
- "localized_name": "bools.u_bool0",
- "name": "bools.u_bool0",
- "shape": 7,
- "type": "BOOLEAN",
- "link": null
- },
- {
- "label": "u_curve0",
- "localized_name": "curves.u_curve0",
- "name": "curves.u_curve0",
- "shape": 7,
- "type": "CURVE",
- "link": null
- }
- ],
- "outputs": [
- {
- "localized_name": "IMAGE0",
- "name": "IMAGE0",
- "type": "IMAGE",
- "links": [
- 67
- ]
- },
- {
- "localized_name": "IMAGE1",
- "name": "IMAGE1",
- "type": "IMAGE",
- "links": null
- },
- {
- "localized_name": "IMAGE2",
- "name": "IMAGE2",
- "type": "IMAGE",
- "links": null
- },
- {
- "localized_name": "IMAGE3",
- "name": "IMAGE3",
- "type": "IMAGE",
- "links": null
- }
- ],
- "properties": {
- "cnr_id": "comfy-core",
- "ver": "0.19.3",
- "Node name for S&R": "GLSLShader"
- },
- "widgets_values": [
- "#version 300 es\nprecision highp float;\nuniform sampler2D u_image0;\nuniform vec2 u_resolution;\nin vec2 v_texCoord;\nlayout(location = 0) out vec4 fragColor0;\n\n// Nyquist Notch — removes 2px grid artifacts. Place before deconvolution.\n// b = [-1, +6, -15, +20, -15, +6, -1] / 64 (binomial * (-1)^n, +1 at center)\nconst float B[7] = float[7](-1.0, 6.0, -15.0, 20.0, -15.0, 6.0, -1.0);\n\nvoid main() {\n vec2 texel = 1.0 / u_resolution;\n vec4 center = texture(u_image0, v_texCoord);\n\n vec3 Bx = vec3(0.0), By = vec3(0.0), Bxy = vec3(0.0);\n for (int i = -3; i <= 3; i++) {\n float wi = B[i + 3] / 64.0;\n Bx += wi * texture(u_image0, v_texCoord + vec2(float(i) * texel.x, 0.0)).rgb;\n By += wi * texture(u_image0, v_texCoord + vec2(0.0, float(i) * texel.y)).rgb;\n for (int j = -3; j <= 3; j++) {\n float wj = B[j + 3] / 64.0;\n Bxy += wi * wj * texture(u_image0,\n v_texCoord + vec2(float(i) * texel.x, float(j) * texel.y)).rgb;\n }\n }\n\n vec3 notched = center.rgb - Bx - By + Bxy;\n fragColor0 = vec4(clamp(notched, 0.0, 1.0), 1.0); // alpha forced to 1.0\n}",
- "from_input"
- ]
- }
- ],
- "groups": [],
- "links": [
- {
- "id": 66,
- "origin_id": -10,
- "origin_slot": 0,
- "target_id": 46,
- "target_slot": 0,
- "type": "IMAGE"
- },
- {
- "id": 67,
- "origin_id": 46,
- "origin_slot": 0,
- "target_id": -20,
- "target_slot": 0,
- "type": "IMAGE"
- }
- ],
- "extra": {}
- }
- ]
- },
- "config": {},
- "extra": {
- "ds": {
- "scale": 1.6350799082655818,
- "offset": [
- -829.1404157357588,
- 456.16671518937727
- ]
- },
- "frontendVersion": "1.45.20",
- "VHS_latentpreview": false,
- "VHS_latentpreviewrate": 0,
- "VHS_MetadataImage": true,
- "VHS_KeepIntermediate": true
- },
- "version": 0.4
- }
Advertisement
Add Comment
Please, Sign In to add comment