11 Commits
Author SHA1 Message Date
filtered 64ace2c933 v1.1.0 2024-09-10 23:08:31 +10:00
filtered 318201cb4e Add link colour fix - set link type on connection change 2024-09-05 07:22:50 +10:00
filtered 143058b91b Fix None check 2024-09-05 07:16:48 +10:00
filtered 8f633400c8 Update pyproject.toml 2024-08-05 20:46:34 +10:00
filtered ab177722be Merge pull request #1 from ComfyNodePRs/pyproject
Add pyproject.toml for Custom Node Registry
2024-08-05 20:44:42 +10:00
filtered db3ab8b112 Merge pull request #2 from ComfyNodePRs/publish
Add Github Action for Publishing to Comfy Registry
2024-08-05 20:44:15 +10:00
snomiao 614b690fc5 chore(pyproject): Add pyproject.toml for Custom Node Registry 2024-07-31 13:39:40 +00:00
snomiao 8aca1a39b4 chore(publish): Add Github Action for Publishing to Comfy Registry 2024-07-31 13:39:39 +00:00
webfiltered 5992abe727 Fix Exception on run - missed while adding feature 2024-07-30 00:41:44 +10:00
webfiltered d899afff89 Fix textareas not resizing on list shrink 2024-07-29 20:32:15 +10:00
filtered 9235482b2b Initial README.md 2024-07-29 19:53:33 +10:00
5 changed files with 65 additions and 7 deletions
+24
View File
@@ -0,0 +1,24 @@
name: Publish to Comfy registry
on:
workflow_dispatch:
push:
branches:
- main
- master
paths:
- "pyproject.toml"
jobs:
publish-node:
name: Publish Custom Node to registry
runs-on: ubuntu-latest
# if this is a forked repository. Skipping the workflow.
if: github.event.repository.fork == false
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Publish Custom Node
uses: Comfy-Org/publish-node-action@main
with:
## Add your own personal access token to your Github Repository secrets and reference it here.
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
+17 -1
View File
@@ -1 +1,17 @@
# WTF? - a debug node for ComfyUI
# WTF? - a debug node for ComfyUI
This node provides a simple way to view the output of many nodes, without leaving ComfyUI.
### Simple string
![image](https://github.com/user-attachments/assets/f3b2f797-77f2-4fb5-b3f0-8b768b386448)
### Tensor
![image](https://github.com/user-attachments/assets/79f17776-0bcf-4066-9f8a-33ec16a19d6d)
### An OUTPUT_IS_LIST node (Rebatched images)
![image](https://github.com/user-attachments/assets/edf500ac-edce-4b58-8d2a-074bf1b8c4cc)
### A list node without OUTPUT_IS_LIST
![image](https://github.com/user-attachments/assets/d065ca60-189b-4b0b-826e-248da1a73a2e)
_"What's that field?"_
+2 -2
View File
@@ -68,10 +68,10 @@ class WTFDebugNode:
except Exception as e:
info["shape"] = str(e)
info["value"] = str(item) if item != None else None
info["value"] = str(item) if item is not None else None
out.append(info)
return { "ui": { "items": out, "length": len(anything) } }
return { "ui": { "items": out, "length": [len(anything)] } }
NODE_CLASS_MAPPINGS = {
"WTFDebugNode": WTFDebugNode,
+8 -4
View File
@@ -23,6 +23,13 @@ app.registerExtension({
name: "WTFDebugNode",
async beforeRegisterNodeDef(nodeType, nodeData, app) {
if (nodeData.name === "WTFDebugNode") {
const origOnConnectionsChange = nodeType.prototype.onConnectionsChange
nodeType.prototype.onConnectionsChange = function (type, slotIndex, isConnected, link, ioSlot) {
origOnConnectionsChange?.apply(this, arguments)
if (isConnected && link?.type === "*")
link.type = this.graph.getNodeById(link.origin_id)?.outputs?.[link.origin_slot]?.type
}
const origOnExecuted = nodeType.prototype.onExecuted;
nodeType.prototype.onExecuted = function (message) {
@@ -104,10 +111,7 @@ app.registerExtension({
}
requestAnimationFrame(() => {
const size = this.computeSize();
for (const widget of this.widgets.filter(x => x.element)) {
widget.onResize?.(size)
}
this.onResize?.(this.size)
})
return r
+14
View File
@@ -0,0 +1,14 @@
[project]
name = "debugnode-comfyui"
description = "This node provides a simple way to view the output of many nodes, without leaving ComfyUI."
version = "1.1.0"
license = {file = "LICENSE"}
[project.urls]
Repository = "https://github.com/webfiltered/DebugNode-ComfyUI"
# Used by Comfy Registry https://comfyregistry.org
[tool.comfy]
PublisherId = "filtered"
DisplayName = "DebugNode-ComfyUI"
Icon = ""