ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

When I output json in API format

Open a-ru2016 opened this issue 2 years ago • 4 comments

When I output json in API format, changes made by right-clicking and Convert ○○ to input were not reflected in the json. Also, when I output the json in API format, the Rrimitive node was not in the json. Please fix this problem. I used DeepL.

APIフォーマットでjsonを出力したところ右クリックからConvert ○○ to inputした変更がjsonに反映されていませんでした。また、同じくAPIフォーマットで出力したところRrimitiveノードがjsonにありませんでした。修正よろしくお願いします。DeepLを使いました。

a-ru2016 avatar Dec 14 '23 15:12 a-ru2016

primitive node is virtualnode, the value will convert back to the real node, use customnode for value such as Comfyroll

flipnism avatar Dec 15 '23 13:12 flipnism

I understand how to use the Primitive node.you mentioned using customnode, which customnode do you use? I would like to put text from outside into CLIP Text Encode.

a-ru2016 avatar Dec 16 '23 12:12 a-ru2016

comfyroll ComfyUI-Logic i believe they have some string node

flipnism avatar Dec 18 '23 09:12 flipnism

The explanation was insufficient. I am trying to use the WD14 Tagger for a string, but when I try to convert it to the API format, the connection is lost. Do you know how to input text into CLIP Text Encode from WD14 Tagger in API format?

a-ru2016 avatar Dec 19 '23 15:12 a-ru2016

Have you solved this problem? When I converted height to input in Upscale Image,it also can not be saved in API format.In API, the connection was lost,and the input became text itself.

kerker93 avatar Jan 26 '24 03:01 kerker93

Same problem, have you solved this? I am using WD14 Tagger and convert width&height to input in Upscale Image...unfortunately,the connections are lost.

DarrenLee618 avatar Mar 05 '24 08:03 DarrenLee618

Same problem, have you solved this? I am using WD14 Tagger and convert width&height to input in Upscale Image...unfortunately,the connections are lost.

The issue remains unresolved. I've thoroughly examined the JSON file and verified that the nodes and link information are accurate. Nevertheless, when loading the API JSON, some lines and input formats are absent. This is because the conversion information is not written to the API JSON file.

babybboy avatar Mar 05 '24 10:03 babybboy