StyleGen / custom_nodes /comfy_mtb /examples /03-animation_builder-condition-lerp.json
multimodalart's picture
Squashing commit
4450790 verified
raw
history blame
11.9 kB
{"last_node_id":100,"last_link_id":207,"nodes":[{"id":59,"type":"Reroute","pos":[-150,640],"size":[75,26],"flags":{},"order":16,"mode":0,"inputs":[{"name":"","type":"*","link":124}],"outputs":[{"name":"","type":"VAE","links":[139],"slot_index":0}],"properties":{"showOutputText":false,"horizontal":false}},{"id":56,"type":"Reroute","pos":[-1580,640],"size":[75,26],"flags":{},"order":10,"mode":0,"inputs":[{"name":"","type":"*","link":117}],"outputs":[{"name":"","type":"VAE","links":[124]}],"properties":{"showOutputText":false,"horizontal":false}},{"id":65,"type":"Reroute","pos":[-1510,-180],"size":[75,26],"flags":{},"order":8,"mode":0,"inputs":[{"name":"","type":"*","link":134}],"outputs":[{"name":"","type":"MODEL","links":[135]}],"properties":{"showOutputText":false,"horizontal":false}},{"id":6,"type":"CLIPTextEncode","pos":[-1260,-50],"size":{"0":210,"1":54},"flags":{},"order":18,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":28},{"name":"text","type":"STRING","link":196,"widget":{"name":"text"},"slot_index":1}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[151],"slot_index":0}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["A majestic Lion, fur in the wind, (smirk smile)"]},{"id":66,"type":"VAEDecodeTiled","pos":[197,-20],"size":{"0":210,"1":78},"flags":{"collapsed":false},"order":23,"mode":0,"inputs":[{"name":"samples","type":"LATENT","link":182},{"name":"vae","type":"VAE","link":139,"slot_index":1}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[161],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"VAEDecodeTiled"},"widgets_values":[512]},{"id":81,"type":"Get Batch From History (mtb)","pos":[-823,1188],"size":{"0":235.1999969482422,"1":122},"flags":{},"order":17,"mode":0,"inputs":[{"name":"passthrough_image","type":"IMAGE","link":null},{"name":"count","type":"INT","link":204,"widget":{"name":"count"},"slot_index":2},{"name":"enable","type":"BOOLEAN","link":172,"widget":{"name":"enable"},"slot_index":2}],"outputs":[{"name":"i","type":"IMAGE","links":[167],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"Get Batch From History (mtb)"},"widgets_values":[true,24,0,140]},{"id":70,"type":"CLIPTextEncode","pos":[-1230,100],"size":{"0":210,"1":54},"flags":{},"order":19,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":149,"slot_index":0},{"name":"text","type":"STRING","link":199,"widget":{"name":"text"},"slot_index":1}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[152],"slot_index":0}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["A majestic Lion, fur in the wind, (smirk smile)"]},{"id":89,"type":"Note Plus (mtb)","pos":{"0":-1047,"1":805,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"size":{"0":418.9697570800781,"1":263.1908264160156},"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[],"title":"Unnamed","properties":{},"widgets_values":["## 👈 Run the queue from this node\n\n- This will queue **24 frames**\n- The **0-1** output is an interpolated float from 0 to 1 over the **frame count**\n- Once the loop is done, **loop_ended** is set to true and activates `Get Batch from history`\n\nCurrently experimental but the idea of the loop count is to use the \"count\" output to know at which loop we are at, it can be plugged to the seed for instance so that each loop uses a new seed.\nThe reason it's experimental is that I did not find a good way to enforce Get Batch from History to be run last in the workflow, hence it's run before the final frame of the loop...\n","markdown","div {\n background: rgb(2,0,36);\n background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(60,151,223,1) 35%, rgba(0,212,255,1) 100%);\n}","one_dark"],"color":"#222","bgcolor":"#000","shape":1},{"id":16,"type":"CheckpointLoaderSimple","pos":[-2070,270],"size":{"0":315,"1":98},"flags":{},"order":1,"mode":0,"outputs":[{"name":"MODEL","type":"MODEL","links":[134],"slot_index":0},{"name":"CLIP","type":"CLIP","links":[116],"slot_index":1},{"name":"VAE","type":"VAE","links":[117],"slot_index":2}],"properties":{"Node name for S&R":"CheckpointLoaderSimple"},"widgets_values":["sd15\\rev-arcane-realistic-Precision.FP16-no-ema-clip-fix.safetensors"]},{"id":57,"type":"Reroute","pos":[-670,-190],"size":[75,26],"flags":{},"order":14,"mode":0,"inputs":[{"name":"","type":"*","link":135}],"outputs":[{"name":"","type":"MODEL","links":[179],"slot_index":0}],"properties":{"showOutputText":false,"horizontal":false}},{"id":72,"type":"ConditioningAverage","pos":[-960,0],"size":{"0":380.4000244140625,"1":78},"flags":{},"order":21,"mode":0,"inputs":[{"name":"conditioning_to","type":"CONDITIONING","link":151},{"name":"conditioning_from","type":"CONDITIONING","link":152,"slot_index":1},{"name":"conditioning_to_strength","type":"FLOAT","link":154,"widget":{"name":"conditioning_to_strength"},"slot_index":2}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[180],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"ConditioningAverage "},"widgets_values":[1]},{"id":19,"type":"CLIPSetLastLayer","pos":[-1670,290],"size":{"0":315,"1":58},"flags":{},"order":9,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":116}],"outputs":[{"name":"CLIP","type":"CLIP","links":[28,29,149],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"CLIPSetLastLayer"},"widgets_values":[-2]},{"id":7,"type":"CLIPTextEncode","pos":[-780,140],"size":{"0":210,"1":54},"flags":{},"order":15,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":29},{"name":"text","type":"STRING","link":178,"widget":{"name":"text"},"slot_index":1}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[181],"slot_index":0}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["worst quality, hands, embedding:EasyNegative,"]},{"id":5,"type":"EmptyLatentImage","pos":[-880,550],"size":{"0":315,"1":106},"flags":{},"order":2,"mode":0,"outputs":[{"name":"LATENT","type":"LATENT","links":[183],"slot_index":0}],"properties":{"Node name for S&R":"EmptyLatentImage"},"widgets_values":[768,512,1]},{"id":87,"type":"PrimitiveNode","pos":[-1200,220],"size":{"0":249.46810913085938,"1":76},"flags":{},"order":3,"mode":0,"outputs":[{"name":"STRING","type":"STRING","links":[178],"widget":{"name":"text"}}],"title":"text","properties":{"Run widget replace on values":false},"widgets_values":["worst quality, hands, embedding:EasyNegative,"]},{"id":78,"type":"SaveImage","pos":[510,-23],"size":{"0":468.0351257324219,"1":432.30364990234375},"flags":{},"order":24,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":161}],"properties":{},"widgets_values":["mtb_demo-conditional_blend"]},{"id":79,"type":"Save Gif (mtb)","pos":[-550,1189],"size":{"0":210,"1":416},"flags":{},"order":20,"mode":0,"inputs":[{"name":"image","type":"IMAGE","link":167},{"name":"pingpong","type":"BOOLEAN","link":null}],"properties":{"Node name for S&R":"Save Gif (mtb)"},"widgets_values":[12,1,true,"/view?filename=03031ebda0.gif&subfolder=&type=output","nearest",false,"/view?filename=5d1f37b693.gif&subfolder=&type=output"]},{"id":99,"type":"PrimitiveNode","pos":[-1785,1189],"size":{"0":210,"1":82},"flags":{},"order":4,"mode":0,"outputs":[{"name":"INT","type":"INT","links":[203,204],"widget":{"name":"total_frames"},"slot_index":0}],"title":"total_frames","properties":{"Run widget replace on values":false},"widgets_values":[24,"fixed"]},{"id":97,"type":"String Replace (mtb)","pos":[-1583,-72],"size":{"0":210,"1":82},"flags":{},"order":12,"mode":0,"inputs":[{"name":"string","type":"STRING","link":206,"widget":{"name":"string"},"slot_index":0}],"outputs":[{"name":"STRING","type":"STRING","links":[196],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"String Replace (mtb)"},"widgets_values":["A cinematic shot of a COLOR muscle car from 1974, (at high speed), (heavy smoke whisps in the air), (by night), COLOR neon lighting","COLOR","blue"]},{"id":98,"type":"String Replace (mtb)","pos":[-1575,78],"size":{"0":210,"1":82},"flags":{},"order":13,"mode":0,"inputs":[{"name":"string","type":"STRING","link":207,"widget":{"name":"string"}}],"outputs":[{"name":"STRING","type":"STRING","links":[199],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"String Replace (mtb)"},"widgets_values":["A cinematic shot of a COLOR muscle car from 1974, (at high speed), (heavy smoke whisps in the air), (by night), COLOR neon lighting","COLOR","yellow"]},{"id":91,"type":"SamplerLMS","pos":[-873,265],"size":{"0":315,"1":58},"flags":{},"order":5,"mode":0,"outputs":[{"name":"SAMPLER","type":"SAMPLER","links":[184],"shape":3}],"properties":{"Node name for S&R":"SamplerLMS"},"widgets_values":[2]},{"id":92,"type":"AlignYourStepsScheduler","pos":[-867,369],"size":{"0":315,"1":106},"flags":{},"order":6,"mode":0,"outputs":[{"name":"SIGMAS","type":"SIGMAS","links":[185],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"AlignYourStepsScheduler"},"widgets_values":["SD1",12,1]},{"id":90,"type":"SamplerCustom","pos":[-460,-10],"size":{"0":355.20001220703125,"1":442},"flags":{},"order":22,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":179},{"name":"positive","type":"CONDITIONING","link":180},{"name":"negative","type":"CONDITIONING","link":181},{"name":"sampler","type":"SAMPLER","link":184,"slot_index":3},{"name":"sigmas","type":"SIGMAS","link":185,"slot_index":4},{"name":"latent_image","type":"LATENT","link":183}],"outputs":[{"name":"output","type":"LATENT","links":null,"shape":3,"slot_index":0},{"name":"denoised_output","type":"LATENT","links":[182],"shape":3,"slot_index":1}],"properties":{"Node name for S&R":"SamplerCustom"},"widgets_values":[true,655,"fixed",6]},{"id":73,"type":"Animation Builder (mtb)","pos":[-1285,831],"size":{"0":211.60000610351562,"1":294},"flags":{},"order":11,"mode":0,"inputs":[{"name":"total_frames","type":"INT","link":203,"widget":{"name":"total_frames"},"slot_index":0}],"outputs":[{"name":"frame","type":"INT","links":null,"shape":3,"slot_index":0},{"name":"0-1 (scaled)","type":"FLOAT","links":[154],"shape":3,"slot_index":1},{"name":"count","type":"INT","links":null,"shape":3},{"name":"loop_ended","type":"BOOLEAN","links":[172],"shape":3,"slot_index":3}],"properties":{"Node name for S&R":"Animation Builder (mtb)"},"widgets_values":[24,1,1,24,1,"frame: 0 / 23","Done 😎!","reset","queue"],"color":"#232","bgcolor":"#353","shape":1},{"id":100,"type":"PrimitiveNode","pos":[-2035,-72],"size":{"0":210,"1":58},"flags":{},"order":7,"mode":0,"outputs":[{"name":"STRING","type":"STRING","links":[206,207],"widget":{"name":"string"},"slot_index":0}],"title":"string","properties":{"Run widget replace on values":false},"widgets_values":["A cinematic shot of a COLOR muscle car from 1974, (at high speed), (heavy smoke whisps in the air), (by night), COLOR neon lighting"]}],"links":[[28,19,0,6,0,"CLIP"],[29,19,0,7,0,"CLIP"],[116,16,1,19,0,"CLIP"],[117,16,2,56,0,"*"],[124,56,0,59,0,"*"],[134,16,0,65,0,"*"],[135,65,0,57,0,"*"],[139,59,0,66,1,"VAE"],[149,19,0,70,0,"CLIP"],[151,6,0,72,0,"CONDITIONING"],[152,70,0,72,1,"CONDITIONING"],[154,73,1,72,2,"FLOAT"],[161,66,0,78,0,"IMAGE"],[167,81,0,79,0,"IMAGE"],[172,73,3,81,2,"BOOLEAN"],[178,87,0,7,1,"STRING"],[179,57,0,90,0,"MODEL"],[180,72,0,90,1,"CONDITIONING"],[181,7,0,90,2,"CONDITIONING"],[182,90,1,66,0,"LATENT"],[183,5,0,90,5,"LATENT"],[184,91,0,90,3,"SAMPLER"],[185,92,0,90,4,"SIGMAS"],[196,97,0,6,1,"STRING"],[199,98,0,70,1,"STRING"],[203,99,0,73,0,"INT"],[204,99,0,81,1,"INT"],[206,100,0,97,0,"STRING"],[207,100,0,98,0,"STRING"]],"groups":[{"title":"Txt2Img","bounding":[-2060,-230,2032,982],"color":"#a1309b","font_size":24,"locked":false},{"title":"Save Intermediate Image","bounding":[150,-116,303,213],"color":"#3f789e","font_size":24,"locked":false}],"config":{},"extra":{"ds":{"scale":0.424097618372485,"offset":{"0":2236.104248046875,"1":602.6000366210938}}},"version":0.4}