{ "sha": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca", "node_id": "C_kwDOJtwj39oAKGQ3OGI3ODBhZTQzZmNmOGM2YjdjNjUwNWU2ZmZiNDU4NDI4MWNlY2E", "commit": { "author": { "name": "Suzie1", "email": "7.lyssa@gmail.com", "date": "2024-01-24T22:44:09Z" }, "committer": { "name": "Suzie1", "email": "7.lyssa@gmail.com", "date": "2024-01-24T22:44:09Z" }, "message": "version 1.76", "tree": { "sha": "12c141b4c99138cd6beb2d5197574b9fe264bc74", "url": "https://api.github.com/repos/Suzie1/ComfyUI_Comfyroll_CustomNodes/git/trees/12c141b4c99138cd6beb2d5197574b9fe264bc74" }, "url": "https://api.github.com/repos/Suzie1/ComfyUI_Comfyroll_CustomNodes/git/commits/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca", "comment_count": 1, "verification": { "verified": false, "reason": "unsigned", "signature": null, "payload": null, "verified_at": null } }, "url": "https://api.github.com/repos/Suzie1/ComfyUI_Comfyroll_CustomNodes/commits/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca", "html_url": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/commit/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca", "comments_url": "https://api.github.com/repos/Suzie1/ComfyUI_Comfyroll_CustomNodes/commits/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/comments", "author": { "login": "Suzie1", "id": 42118269, "node_id": "MDQ6VXNlcjQyMTE4MjY5", "avatar_url": "https://avatars.githubusercontent.com/u/42118269?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Suzie1", "html_url": "https://github.com/Suzie1", "followers_url": "https://api.github.com/users/Suzie1/followers", "following_url": "https://api.github.com/users/Suzie1/following{/other_user}", "gists_url": "https://api.github.com/users/Suzie1/gists{/gist_id}", "starred_url": "https://api.github.com/users/Suzie1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Suzie1/subscriptions", "organizations_url": "https://api.github.com/users/Suzie1/orgs", "repos_url": "https://api.github.com/users/Suzie1/repos", "events_url": "https://api.github.com/users/Suzie1/events{/privacy}", "received_events_url": "https://api.github.com/users/Suzie1/received_events", "type": "User", "user_view_type": "public", "site_admin": false }, "committer": { "login": "Suzie1", "id": 42118269, "node_id": "MDQ6VXNlcjQyMTE4MjY5", "avatar_url": "https://avatars.githubusercontent.com/u/42118269?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Suzie1", "html_url": "https://github.com/Suzie1", "followers_url": "https://api.github.com/users/Suzie1/followers", "following_url": "https://api.github.com/users/Suzie1/following{/other_user}", "gists_url": "https://api.github.com/users/Suzie1/gists{/gist_id}", "starred_url": "https://api.github.com/users/Suzie1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Suzie1/subscriptions", "organizations_url": "https://api.github.com/users/Suzie1/orgs", "repos_url": "https://api.github.com/users/Suzie1/repos", "events_url": "https://api.github.com/users/Suzie1/events{/privacy}", "received_events_url": "https://api.github.com/users/Suzie1/received_events", "type": "User", "user_view_type": "public", "site_admin": false }, "parents": [ { "sha": "efcdf631d1be8a6cdf7246698ea13eefb7dff7ea", "url": "https://api.github.com/repos/Suzie1/ComfyUI_Comfyroll_CustomNodes/commits/efcdf631d1be8a6cdf7246698ea13eefb7dff7ea", "html_url": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/commit/efcdf631d1be8a6cdf7246698ea13eefb7dff7ea" } ], "stats": { "total": 157, "additions": 124, "deletions": 33 }, "files": [ { "sha": "b5f3012c31e6c6a6d54f6655db2d8a7570690e12", "filename": "Patch_Notes.md", "status": "modified", "additions": 5, "deletions": 0, "changes": 5, "blob_url": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/Patch_Notes.md", "raw_url": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/raw/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/Patch_Notes.md", "contents_url": "https://api.github.com/repos/Suzie1/ComfyUI_Comfyroll_CustomNodes/contents/Patch_Notes.md?ref=d78b780ae43fcf8c6b7c6505e6ffb4584281ceca", "patch": "@@ -1,5 +1,10 @@\n # \ud83e\udde9 Comfyroll Studio - Patch Notes\n \n+## v1.76 Jan 24, 2024\n+- added CR VAE Decode\n+- added CR Combine Prompt\n+- added CR Diamond Pattern\n+\n ## v1.75.1 Jan 24, 2024\n - fix for issue 112 CR Text Blacklist, added handling for blank lines and fixed issue with finding multiple keywords\n - PR108, fix for missing import in nodes_utils_text.py" }, { "sha": "38ef95ca4ea4cd87c2289f078aec1a98093e328c", "filename": "README.md", "status": "modified", "additions": 6, "deletions": 3, "changes": 9, "blob_url": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/README.md", "raw_url": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/raw/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/README.md", "contents_url": "https://api.github.com/repos/Suzie1/ComfyUI_Comfyroll_CustomNodes/contents/README.md?ref=d78b780ae43fcf8c6b7c6505e6ffb4584281ceca", "patch": "@@ -2,7 +2,7 @@\n \n Co-authored by Suzie1 and RockOfFire\n \n-Current version: 1.75\n+Current version: 1.76\n \n # Wiki\n \n@@ -31,9 +31,11 @@ __\ud83d\udce6 Essential Nodes__\n * CR Image Output (changed 18/12/2023)\n * CR Latent Batch Size\n * CR Prompt Text\n+* CR Combine Prompt\n * CR Seed\n * CR Conditioning Mixer\n-* CR Select Model\n+* CR Select Model (new 24/1/2024)\n+* CR VAE Decode (new 24/1/2024)\n \n __\ud83d\udd33 Aspect Ratio__\n * CR Aspect Ratio\n@@ -167,7 +169,8 @@ __\ud83c\udf01 Graphics - Layout__\n * CR Feathered Border (new 21/12/2023)\n * CR Color Panel\n * CR Simple Text Panel\n-* CR Half Drop Panel\n+* CR Half Drop Panel (new 23/1/2024)\n+* CR Diamond Panel (new 24/1/2024)\n * CR Overlay Transparent Image\n * CR Select ISO Size (new 18/1/2023)\n " }, { "sha": "e5af18356e8765423954ea7c7d22b4f32fcdd9c0", "filename": "__init__.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/__init__.py", "raw_url": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/raw/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/__init__.py", "contents_url": "https://api.github.com/repos/Suzie1/ComfyUI_Comfyroll_CustomNodes/contents/__init__.py?ref=d78b780ae43fcf8c6b7c6505e6ffb4584281ceca", "patch": "@@ -21,7 +21,7 @@\n from .node_mappings import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS\n \n print(\"------------------------------------------\") \n-print(\"\\033[34mComfyroll Studio v1.75 : \\033[92m 175 Nodes Loaded\\033[0m\")\n+print(\"\\033[34mComfyroll Studio v1.76 : \\033[92m 175 Nodes Loaded\\033[0m\")\n print(\"------------------------------------------\") \n print(\"** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md\") \n print(\"** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki\") " }, { "sha": "a4a1bc4ff001961a64e24bcfa59de528fbc8a6ea", "filename": "node_mappings.py", "status": "modified", "additions": 9, "deletions": 5, "changes": 14, "blob_url": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/node_mappings.py", "raw_url": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/raw/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/node_mappings.py", "contents_url": "https://api.github.com/repos/Suzie1/ComfyUI_Comfyroll_CustomNodes/contents/node_mappings.py?ref=d78b780ae43fcf8c6b7c6505e6ffb4584281ceca", "patch": "@@ -52,8 +52,9 @@\n \"CR Conditioning Mixer\": CR_ConditioningMixer,\n \"CR Select Model\": CR_SelectModel,\n \"CR Seed\": CR_Seed, \n- \"CR Prompt Text\": CR_PromptText, \n- #\"CR VAE Decode\": CR_VAEDecode, \n+ \"CR Prompt Text\": CR_PromptText,\n+ \"CR Combine Prompt\": CR_CombinePrompt, \n+ \"CR VAE Decode\": CR_VAEDecode, \n ### List Nodes\n \"CR Text List\": CR_TextList,\n \"CR Prompt List\": CR_PromptList, \n@@ -164,7 +165,8 @@\n \"CR Simple Text Panel\": CR_SimpleTextPanel, \n \"CR Color Panel\": CR_ColorPanel,\n \"CR Overlay Transparent Image\": CR_OverlayTransparentImage,\n- \"CR Half Drop Panel\": CR_HalfDropPanel, \n+ \"CR Half Drop Panel\": CR_HalfDropPanel, \n+ \"CR Diamond Panel\": CR_DiamondPanel,\n #\"CR Simple Titles\": CR_SimpleTitles, \n ### Graphics Template\n \"CR Simple Meme Template\": CR_SimpleMemeTemplate,\n@@ -297,7 +299,8 @@\n \"CR Conditioning Mixer\": \"\u2699\ufe0f CR Conditioning Mixer\",\n \"CR Select Model\": \"\ud83d\udd2e CR Select Model\",\n \"CR Prompt Text\": \"\u2699\ufe0f CR Prompt Text\", \n- #\"CR VAE Decode\": \"\u2699\ufe0f CR VAE Decode\", \n+ \"CR Combine Prompt\": \"\u2699\ufe0f CR Combine Prompt\",\n+ \"CR VAE Decode\": \"\u2699\ufe0f CR VAE Decode\", \n ### List Nodes\n \"CR Text List\": \"\ud83d\udcdc CR Text List\",\n \"CR Prompt List\": \"\ud83d\udcdc CR Prompt List\",\n@@ -403,7 +406,8 @@\n \"CR Image Grid Panel\": \"\ud83c\udf01 CR Image Grid Panel\",\n \"CR Simple Text Panel\": \"\ud83c\udf01 CR Simple Text Panel\",\n \"CR Color Panel\": \"\ud83c\udf01 CR Color Panel\",\n- \"CR Half Drop Panel\": \"\ud83c\udf01 CR Half Drop Panel\", \n+ \"CR Half Drop Panel\": \"\ud83c\udf01 CR Half Drop Panel\",\n+ \"CR Diamond Panel\": \"\ud83c\udf01 CR Diamond Panel\", \n \"CR Page Layout\": \"\ud83c\udf01 CR Page Layout\",\n \"CR Image Border\": \"\ud83c\udf01 CR Image Border\",\n \"CR Feathered Border\": \"\ud83c\udf01 CR Feathered Border\", " }, { "sha": "02af795eace2b04226fcecd2df0c85db544caa37", "filename": "nodes/nodes_core.py", "status": "modified", "additions": 49, "deletions": 11, "changes": 60, "blob_url": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/nodes%2Fnodes_core.py", "raw_url": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/raw/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/nodes%2Fnodes_core.py", "contents_url": "https://api.github.com/repos/Suzie1/ComfyUI_Comfyroll_CustomNodes/contents/nodes%2Fnodes_core.py?ref=d78b780ae43fcf8c6b7c6505e6ffb4584281ceca", "patch": "@@ -205,17 +205,51 @@ class CR_PromptText:\n \n @classmethod\n def INPUT_TYPES(s):\n- return {\"required\": {\"prompt\": (\"STRING\", {\"default\": \"prompt\", \"multiline\": True})}}\n+ return {\"required\": {\n+ \"prompt\": (\"STRING\", {\"default\": \"prompt\", \"multiline\": True})\n+ }\n+ }\n \n RETURN_TYPES = (\"STRING\", \"STRING\", )\n RETURN_NAMES = (\"prompt\", \"show_help\", )\n FUNCTION = \"get_value\"\n CATEGORY = icons.get(\"Comfyroll/Essential/Core\")\n \n def get_value(self, prompt):\n+ \n show_help = \"https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Core-Nodes#cr-prompt-text\"\n+ \n return (prompt, show_help, )\n \n+#---------------------------------------------------------------------------------------------------------------------#\n+class CR_CombinePrompt:\n+\n+ @classmethod\n+ def INPUT_TYPES(s):\n+ return {\"required\": {\n+ },\n+ \"optional\": {\n+ \"part1\": (\"STRING\", {\"default\": \"\", \"multiline\": True}),\n+ \"part2\": (\"STRING\", {\"default\": \"\", \"multiline\": True}),\n+ \"part3\": (\"STRING\", {\"default\": \"\", \"multiline\": True}),\n+ \"part4\": (\"STRING\", {\"default\": \"\", \"multiline\": True}), \n+ \"separator\": (\"STRING\", {\"default\": \",\", \"multiline\": False}),\n+ }\n+ }\n+\n+ RETURN_TYPES = (\"STRING\", \"STRING\", )\n+ RETURN_NAMES = (\"prompt\", \"show_help\", )\n+ FUNCTION = \"get_value\"\n+ CATEGORY = icons.get(\"Comfyroll/Essential/Core\")\n+\n+ def get_value(self, part1=\"\", part2=\"\", part3=\"\", part4=\"\", separator=\"\"):\n+ \n+ show_help = \"https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Core-Nodes#cr-prompt-parts\"\n+ \n+ prompt = part1 + separator + part2 + separator + part3 + separator + part4\n+ \n+ return (prompt, show_help, )\n+ \n #---------------------------------------------------------------------------------------------------------------------#\n class CR_ConditioningMixer:\n \n@@ -350,27 +384,30 @@ class CR_VAEDecode:\n @classmethod\n def INPUT_TYPES(s):\n \n- padding_modes = [\"zeros\", \"replicate\", \"circular\"]\n- \n return {\"required\": {\n \"samples\": (\"LATENT\", ),\n \"vae\": (\"VAE\", ),\n- \"padding_mode\": (padding_modes,),\n+ \"tiled\": (\"BOOLEAN\", {\"default\": False}),\n+ \"circular\": (\"BOOLEAN\", {\"default\": False}), \n }\n }\n RETURN_TYPES = (\"IMAGE\", \"STRING\", )\n RETURN_NAMES = (\"IMAGE\", \"show_help\", )\n FUNCTION = \"vae_decode\"\n CATEGORY = icons.get(\"Comfyroll/Essential/Core\")\n \n- def vae_decode(self, samples, vae, padding_mode):\n+ def vae_decode(self, samples, vae, circular=False, tiled=False):\n \n show_help = \"https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Core-Nodes#cr-vae-decode\" \n- \n- for layer in [layer for layer in vae.first_stage_model.modules() if isinstance(layer, torch.nn.Conv2d)]:\n- layer.padding_mode = padding_mode \n- \n- c = vae.decode(samples[\"samples\"])\n+\n+ if circular == True:\n+ for layer in [layer for layer in vae.first_stage_model.modules() if isinstance(layer, torch.nn.Conv2d)]:\n+ layer.padding_mode = \"circular\" \n+ \n+ if tiled == True:\n+ c = vae.decode_tiled(samples[\"samples\"], tile_x=512, tile_y=512, )\n+ else:\n+ c = vae.decode(samples[\"samples\"])\n \n return (c, show_help, )\n \n@@ -385,9 +422,10 @@ def vae_decode(self, samples, vae, padding_mode):\n \"CR Latent Batch Size\": CR_LatentBatchSize,\n \"CR Seed\": CR_Seed,\n \"CR Prompt Text\": CR_PromptText,\n+ \"CR Combine Prompt\": CR_CombinePrompt,\n \"CR Conditioning Mixer\": CR_ConditioningMixer,\n \"CR Select Model\": CR_SelectModel, \n- #\"CR VAE Decode\": CR_VAEDecode,\n+ \"CR VAE Decode\": CR_VAEDecode,\n }\n '''\n " }, { "sha": "82fa36bf39dcb885dc058c7fee418251870ec5fe", "filename": "nodes/nodes_graphics_layout.py", "status": "modified", "additions": 54, "deletions": 13, "changes": 67, "blob_url": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/nodes%2Fnodes_graphics_layout.py", "raw_url": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/raw/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/nodes%2Fnodes_graphics_layout.py", "contents_url": "https://api.github.com/repos/Suzie1/ComfyUI_Comfyroll_CustomNodes/contents/nodes%2Fnodes_graphics_layout.py?ref=d78b780ae43fcf8c6b7c6505e6ffb4584281ceca", "patch": "@@ -616,7 +616,7 @@ class CR_HalfDropPanel:\n @classmethod\n def INPUT_TYPES(s):\n \n- patterns = [\"none\", \"half drop\", \"quarter drop\", \"diamond\", \"custom drop %\"]\n+ patterns = [\"none\", \"half drop\", \"quarter drop\", \"custom drop %\"]\n \n return {\"required\": {\n \"image\": (\"IMAGE\",),\n@@ -660,8 +660,55 @@ def make_panel(self, image, pattern, drop_percentage=0.5):\n panel_image.paste(pil_img, (0, y))\n panel_image.paste(pil_img, (x, -3*y//4))\n panel_image.paste(pil_img, (x, y//4))\n- panel_image.paste(pil_img, (x, 5*y//4)) \n- elif pattern == \"diamond\":\n+ panel_image.paste(pil_img, (x, 5*y//4)) \n+ elif pattern == \"custom drop %\": \n+ panel_image.paste(pil_img, (0, 0))\n+ panel_image.paste(pil_img, (0, y))\n+ panel_image.paste(pil_img, (x, (d-100)*y//100))\n+ panel_image.paste(pil_img, (x, d*y//100))\n+ panel_image.paste(pil_img, (x, y + d*y//100)) \n+ \n+ image_out = pil2tensor(panel_image.convert('RGB'))\n+\n+ return (image_out, show_help, ) \n+\n+#---------------------------------------------------------------------------------------------------------------------#\n+class CR_DiamondPanel:\n+\n+ @classmethod\n+ def INPUT_TYPES(s):\n+ \n+ patterns = [\"none\", \"diamond\"]\n+\n+ return {\"required\": {\n+ \"image\": (\"IMAGE\",),\n+ \"pattern\": (patterns,),\n+ }\n+ }\n+\n+ RETURN_TYPES = (\"IMAGE\", \"STRING\", )\n+ RETURN_NAMES = (\"image\", \"show_help\", )\n+ FUNCTION = \"make_panel\"\n+ CATEGORY = icons.get(\"Comfyroll/Graphics/Layout\")\n+ \n+ def make_panel(self, image, pattern, drop_percentage=0.5):\n+\n+ show_help = \"https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Layout-Nodes#cr-diamond-panel\"\n+\n+ if pattern == \"none\":\n+ return (image, show_help, )\n+\n+ # Convert to PIL image\n+ pil_img = tensor2pil(image) \n+ pil_img = pil_img.convert('RGBA')\n+ \n+ x, y = pil_img.size\n+ aspect_ratio = x / y\n+ d = int(drop_percentage * 100)\n+\n+ panel_image = Image.new('RGBA', (x*2, y*2))\n+ \n+ if pattern == \"diamond\":\n \n diamond_size = min(x, y)\n diamond_width = min(x, y * aspect_ratio)\n@@ -693,19 +740,12 @@ def make_panel(self, image, pattern, drop_percentage=0.5):\n panel_image.paste(diamond_image, (x, y), diamond_image)\n panel_image.paste(diamond_image, (3*x//2, (d-100)*y//100), diamond_image)\n panel_image.paste(diamond_image, (3*x//2, d*y//100), diamond_image)\n- panel_image.paste(diamond_image, (3*x//2, y + d*y//100), diamond_image) \n- \n- elif pattern == \"custom drop %\": \n- panel_image.paste(pil_img, (0, 0))\n- panel_image.paste(pil_img, (0, y))\n- panel_image.paste(pil_img, (x, (d-100)*y//100))\n- panel_image.paste(pil_img, (x, d*y//100))\n- panel_image.paste(pil_img, (x, y + d*y//100)) \n+ panel_image.paste(diamond_image, (3*x//2, y + d*y//100), diamond_image) \n \n image_out = pil2tensor(panel_image.convert('RGB'))\n \n- return (image_out, show_help, ) \n-\n+ return (image_out, show_help, ) \n+ \n #---------------------------------------------------------------------------------------------------------------------#\n class CR_SelectISOSize:\n \n@@ -745,6 +785,7 @@ def get_size(self, iso_size):\n \"CR Page Layout\": CR_PageLayout,\n \"CR Image Grid Panel\": CR_ImageGridPanel,\n \"CR Half Drop Panel\": CR_HalfDropPanel,\n+ \"CR Diamond Panel\": CR_DiamondPanel,\n \"CR Image Border\": CR_ImageBorder,\n \"CR Feathered Border\": CR_FeatheredBorder,\n \"CR Color Panel\": CR_ColorPanel," } ] }