ai_swap_api.json 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. {
  2. "265": {
  3. "inputs": {
  4. "image": "l1.jpg"
  5. },
  6. "class_type": "LoadImage",
  7. "_meta": {
  8. "title": "加载图像"
  9. }
  10. },
  11. "267": {
  12. "inputs": {
  13. "prompt": [
  14. "278",
  15. 0
  16. ],
  17. "aspect_ratio": "3:4",
  18. "seed": 487309547673818,
  19. "guidance_scale": 3.5,
  20. "output_format": "jpeg",
  21. "disable_prompt_enhancement": false,
  22. "image_prompt_strength": 0.10000000000000002,
  23. "num_inference_steps": 30,
  24. "safety_tolerance": "6",
  25. "speak_and_recognation": {
  26. "__value__": [
  27. false,
  28. true
  29. ]
  30. },
  31. "image1": [
  32. "265",
  33. 0
  34. ]
  35. },
  36. "class_type": "FalKontextMaxMultiImageNode",
  37. "_meta": {
  38. "title": "Fal Kontext[Max] Multi-Image API"
  39. }
  40. },
  41. "268": {
  42. "inputs": {
  43. "text": "一个美女站在美丽的湖边,湖边长满了白桦树,风景如画,全景人像,穿着黑色低帮鞋,注视着前方",
  44. "speak_and_recognation": {
  45. "__value__": [
  46. false,
  47. true
  48. ]
  49. }
  50. },
  51. "class_type": "CR Text",
  52. "_meta": {
  53. "title": "文本"
  54. }
  55. },
  56. "269": {
  57. "inputs": {
  58. "model_name": "doubao-1.5-vision-lite-250315",
  59. "base_url": "https://ark.cn-beijing.volces.com/api/v3",
  60. "api_key": "817dff39-5586-4f9b-acba-55004167c0b1",
  61. "is_ollama": false
  62. },
  63. "class_type": "LLM_api_loader",
  64. "_meta": {
  65. "title": "☁️API LLM Loader"
  66. }
  67. },
  68. "270": {
  69. "inputs": {
  70. "system_prompt": "## 任务:请对图像中的人物脸部进行描述 ,需要有肤色、脸型(椭圆脸、方脸、瓜子脸、圆脸)、发型、发色、眼睛、鼻子、表情、神情等五官描述,并判断其人种(亚洲人\\欧美人),输出字数少于100字符,以英文形式输出。",
  71. "user_prompt": "请直接输出人物脸部描述英文文本",
  72. "temperature": 0.7000000000000001,
  73. "is_memory": "enable",
  74. "is_tools_in_sys_prompt": "disable",
  75. "is_locked": "disable",
  76. "main_brain": "enable",
  77. "max_length": 1920,
  78. "imgbb_api_key": "",
  79. "conversation_rounds": 100,
  80. "historical_record": "",
  81. "is_enable": true,
  82. "stream": false,
  83. "speak_and_recognation": {
  84. "__value__": [
  85. false,
  86. true
  87. ]
  88. },
  89. "model": [
  90. "269",
  91. 0
  92. ],
  93. "images": [
  94. "271",
  95. 0
  96. ]
  97. },
  98. "class_type": "LLM",
  99. "_meta": {
  100. "title": "☁️API LLM general link"
  101. }
  102. },
  103. "271": {
  104. "inputs": {
  105. "image": "mastergirl.jpg"
  106. },
  107. "class_type": "LoadImage",
  108. "_meta": {
  109. "title": "加载图像"
  110. }
  111. },
  112. "272": {
  113. "inputs": {
  114. "enabled": true,
  115. "swap_model": "inswapper_128.onnx",
  116. "facedetection": "retinaface_mobile0.25",
  117. "face_restore_model": "codeformer.pth",
  118. "face_restore_visibility": 1,
  119. "codeformer_weight": 0.5000000000000001,
  120. "detect_gender_input": "no",
  121. "detect_gender_source": "no",
  122. "input_faces_index": "0",
  123. "source_faces_index": "0",
  124. "console_log_level": 1,
  125. "input_image": [
  126. "267",
  127. 0
  128. ],
  129. "source_image": [
  130. "271",
  131. 0
  132. ]
  133. },
  134. "class_type": "ReActorFaceSwap",
  135. "_meta": {
  136. "title": "ReActor换脸"
  137. }
  138. },
  139. "275": {
  140. "inputs": {
  141. "filename_prefix": "ComfyUI",
  142. "images": [
  143. "272",
  144. 0
  145. ]
  146. },
  147. "class_type": "SaveImage",
  148. "_meta": {
  149. "title": "保存图像"
  150. }
  151. },
  152. "276": {
  153. "inputs": {
  154. "delimiter": ", ",
  155. "clean_whitespace": "true",
  156. "text_a": [
  157. "270",
  158. 0
  159. ],
  160. "text_b": [
  161. "268",
  162. 0
  163. ]
  164. },
  165. "class_type": "Text Concatenate",
  166. "_meta": {
  167. "title": "文本连锁"
  168. }
  169. },
  170. "277": {
  171. "inputs": {
  172. "model_name": "deepseek-v3-250324",
  173. "base_url": "https://ark.cn-beijing.volces.com/api/v3",
  174. "api_key": "817dff39-5586-4f9b-acba-55004167c0b1",
  175. "is_ollama": false
  176. },
  177. "class_type": "LLM_api_loader",
  178. "_meta": {
  179. "title": "☁️API LLM Loader"
  180. }
  181. },
  182. "278": {
  183. "inputs": {
  184. "system_prompt": "## 角色:文生图提示词优化工程师\n## 任务:以一个女生为生图主角,对用户输入的提示词进行优化,重点关注人物动作姿态的详细描述和场景描述的优化,以自然语言形式进行描述,尽可能不要改变用户输入中有关人物长相和场景的描述\n## 优化后的提示词字数在300字以内,英文输出优化后的结果\n## 不要对人物服装穿着进行任何描述",
  185. "user_prompt": "除输出优化后的提示词外,不要有任何其他任何输出,不要有任何人物着装服装描述",
  186. "temperature": 0.7000000000000001,
  187. "is_memory": "enable",
  188. "is_tools_in_sys_prompt": "disable",
  189. "is_locked": "disable",
  190. "main_brain": "enable",
  191. "max_length": 1920,
  192. "imgbb_api_key": "",
  193. "conversation_rounds": 100,
  194. "historical_record": "",
  195. "is_enable": true,
  196. "stream": false,
  197. "speak_and_recognation": {
  198. "__value__": [
  199. false,
  200. true
  201. ]
  202. },
  203. "model": [
  204. "277",
  205. 0
  206. ],
  207. "user_prompt_input": [
  208. "276",
  209. 0
  210. ]
  211. },
  212. "class_type": "LLM",
  213. "_meta": {
  214. "title": "☁️API LLM general link"
  215. }
  216. },
  217. "279": {
  218. "inputs": {
  219. "PreviewTextNode_0": "",
  220. "speak_and_recognation": {
  221. "__value__": [
  222. false,
  223. true
  224. ]
  225. },
  226. "text": [
  227. "278",
  228. 0
  229. ]
  230. },
  231. "class_type": "PreviewTextNode",
  232. "_meta": {
  233. "title": "预览文本"
  234. }
  235. }
  236. }