Upload 4 files
Browse filesFiles changed (4)
- workflows/FLUX Try-on v.1.0.jsonAdded+2511
- workflows/FaceReplicator_v1.0.jsonAdded
- workflows/Flux_Lora_Trainer_v2.0.jsonAdded+4259
- workflows/Tenofas_PuLID.v.1.0.jsonAdded+1942
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511{ "last_node_id": 114, "last_link_id": 249, "nodes": [ { "id": 105, "type": "Seed (rgthree)", "pos": [ -1039.423095703125, 192.58592224121094 ], "size": [ 339.62640380859375, 130 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "name": "SEED", "type": "INT", "links": [ 238 ], "slot_index": 0, "shape": 3, "dir": 4 } ], "properties": {}, "widgets_values": [ -1, null, null, null ], "color": "#232", "bgcolor": "#353" }, { "id": 106, "type": "Sampler Selector (Image Saver)", "pos": [ -1032.6602783203125, 364.8855895996094 ], "size": [ 337.9477233886719, 78 ], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "name": "sampler", "type": "COMBO", "links": [ 239 ], "slot_index": 0 }, { "name": "sampler_name", "type": "STRING", "links": null } ], "properties": { "Node name for S&R": "Sampler Selector (Image Saver)" }, "widgets_values": [ "euler" ], "color": "#232", "bgcolor": "#353" }, { "id": 58, "type": "ConditioningZeroOut", "pos": [ -1026.8255615234375, -24.632272720336914 ], "size": [ 211.60000610351562, 29.7861270904541 ], "flags": {}, "order": 35, "mode": 0, "inputs": [ { "name": "conditioning", "type": "CONDITIONING", "link": 144 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 145 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "ConditioningZeroOut" }, "widgets_values": [] }, { "id": 56, "type": "DifferentialDiffusion", "pos": [ -1675.499755859375, 374.4490661621094 ], "size": [ 277.20001220703125, 26 ], "flags": { "collapsed": true }, "order": 18, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 233 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 138 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "DifferentialDiffusion" }, "widgets_values": [] }, { "id": 108, "type": "Scheduler Selector (Comfy) (Image Saver)", "pos": [ -1029.842529296875, 489.53900146484375 ], "size": [ 336, 78 ], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [ { "name": "scheduler", "type": "COMBO", "links": [ 240 ], "slot_index": 0 }, { "name": "scheduler_name", "type": "STRING", "links": null } ], "properties": { "Node name for S&R": "Scheduler Selector (Comfy) (Image Saver)" }, "widgets_values": [ "beta" ], "color": "#232", "bgcolor": "#353" }, { "id": 39, "type": "CLIPVisionEncode", "pos": [ -1385.260009765625, -10.878236770629883 ], "size": [ 290, 78 ], "flags": {}, "order": 33, "mode": 0, "inputs": [ { "name": "clip_vision", "type": "CLIP_VISION", "link": 117 }, { "name": "image", "type": "IMAGE", "link": 181 } ], "outputs": [ { "name": "CLIP_VISION_OUTPUT", "type": "CLIP_VISION_OUTPUT", "links": [ 120 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "CLIPVisionEncode" }, "widgets_values": [ "center" ] }, { "id": 26, "type": "FluxGuidance", "pos": [ -1388.4735107421875, 475.6677551269531 ], "size": [ 317.4000244140625, 58 ], "flags": {}, "order": 23, "mode": 0, "inputs": [ { "name": "conditioning", "type": "CONDITIONING", "link": 234 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 122 ], "slot_index": 0, "shape": 3 } ], "title": "FluxGuidance (keep at 30.0)", "properties": { "Node name for S&R": "FluxGuidance" }, "widgets_values": [ 30 ], "color": "#233", "bgcolor": "#355" }, { "id": 104, "type": "Primitive integer [Crystools]", "pos": [ -1041.0802001953125, 100.05131530761719 ], "size": [ 342.76470947265625, 60.77650833129883 ], "flags": {}, "order": 3, "mode": 0, "inputs": [], "outputs": [ { "name": "int", "type": "INT", "links": [ 237 ], "slot_index": 0 } ], "title": "Steps", "properties": { "Node name for S&R": "Primitive integer [Crystools]" }, "widgets_values": [ 30 ], "color": "#232", "bgcolor": "#353" }, { "id": 76, "type": "Image Overlay", "pos": [ -1742.1099853515625, -75.83529663085938 ], "size": [ 315, 290 ], "flags": {}, "order": 31, "mode": 0, "inputs": [ { "name": "base_image", "type": "IMAGE", "link": 179 }, { "name": "overlay_image", "type": "IMAGE", "link": 180 }, { "name": "optional_mask", "type": "MASK", "link": null, "shape": 7 }, { "name": "width", "type": "INT", "link": 182, "widget": { "name": "width" } }, { "name": "height", "type": "INT", "link": 183, "widget": { "name": "height" } } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 181 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "Image Overlay" }, "widgets_values": [ "None", "nearest-exact", 1, 512, 512, 0, 0, 0, 0 ], "color": "#223333", "bgcolor": "#335555", "shape": 1 }, { "id": 102, "type": "Power Lora Loader (rgthree)", "pos": [ -1744.9278564453125, 263.2802734375 ], "size": [ 326.4233093261719, 318.0140380859375 ], "flags": {}, "order": 15, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 232, "dir": 3 }, { "name": "clip", "type": "CLIP", "link": 235, "dir": 3 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 233 ], "slot_index": 0, "shape": 3, "dir": 4 }, { "name": "CLIP", "type": "CLIP", "links": [ 236 ], "slot_index": 1, "shape": 3, "dir": 4 } ], "properties": { "Show Strengths": "Single Strength" }, "widgets_values": [ null, { "type": "PowerLoraLoaderHeaderWidget" }, null, "" ], "color": "#232", "bgcolor": "#353" }, { "id": 95, "type": "LoadImage", "pos": [ -3130.24609375, -913.1038208007812 ], "size": [ 561.0575561523438, 589.0514526367188 ], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 219, 227, 246 ], "slot_index": 0 }, { "name": "MASK", "type": "MASK", "links": [ 228 ], "slot_index": 1 } ], "title": "Model image", "properties": { "Node name for S&R": "LoadImage" }, "widgets_values": [ "clipspace/clipspace-mask-17962831.299999952.png [input]", "image" ], "color": "#232", "bgcolor": "#353" }, { "id": 41, "type": "StyleModelApply", "pos": [ -1034.0684814453125, -70.70128631591797 ], "size": [ 320, 122 ], "flags": {}, "order": 34, "mode": 0, "inputs": [ { "name": "conditioning", "type": "CONDITIONING", "link": 122 }, { "name": "style_model", "type": "STYLE_MODEL", "link": 172 }, { "name": "clip_vision_output", "type": "CLIP_VISION_OUTPUT", "link": 120, "shape": 7 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 143, 144 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "StyleModelApply" }, "widgets_values": [ 1, "multiply" ], "color": "#233", "bgcolor": "#355" }, { "id": 6, "type": "CLIPTextEncode", "pos": [ -1398.7655029296875, 113.14105224609375 ], "size": [ 334.5587463378906, 315.6915283203125 ], "flags": {}, "order": 19, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 236 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 234 ], "slot_index": 0 } ], "title": "Prompt (do not change)", "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "A pair of professional photographs that highlights a clothing and its styling on a model. The photographs are in high resolution and extremely detailed. \nThe image on the left shows a detailed product shot of a piece of clothing, in the image on the right the same clothing is worn by a model in a lifestyle setting.\nThe model is portaied in a professional fashion photography style, she has professional makeup and hairstyle." ], "color": "#233", "bgcolor": "#355" }, { "id": 112, "type": "GetImageSize+", "pos": [ -2481.459228515625, -768.6283569335938 ], "size": [ 214.20001220703125, 66 ], "flags": { "collapsed": true }, "order": 13, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 246 } ], "outputs": [ { "name": "width", "type": "INT", "links": [ 247 ], "slot_index": 0 }, { "name": "height", "type": "INT", "links": [ 248 ], "slot_index": 1 }, { "name": "count", "type": "INT", "links": null } ], "properties": { "Node name for S&R": "GetImageSize+" }, "widgets_values": [] }, { "id": 51, "type": "ImageResize+", "pos": [ -2489.936767578125, -777.9014282226562 ], "size": [ 297.1544189453125, 170 ], "flags": {}, "order": 16, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 230 }, { "name": "width", "type": "INT", "link": 247, "widget": { "name": "width" } }, { "name": "height", "type": "INT", "link": 248, "widget": { "name": "height" } } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 132, 185 ], "slot_index": 0 }, { "name": "width", "type": "INT", "links": null }, { "name": "height", "type": "INT", "links": null } ], "properties": { "Node name for S&R": "ImageResize+" }, "widgets_values": [ 768, 1024, "nearest", "pad", "always", 0 ] }, { "id": 47, "type": "LayerMask: LoadBiRefNetModelV2", "pos": [ -2494.377197265625, -279.67254638671875 ], "size": [ 352.79998779296875, 58 ], "flags": {}, "order": 5, "mode": 0, "inputs": [], "outputs": [ { "name": "birefnet_model", "type": "BIREFNET_MODEL", "links": [ 126 ] } ], "properties": { "Node name for S&R": "LayerMask: LoadBiRefNetModelV2" }, "widgets_values": [ "RMBG-2.0" ], "color": "rgba(27, 80, 119, 0.7)" }, { "id": 46, "type": "LayerMask: BiRefNetUltraV2", "pos": [ -2492.225341796875, -562.7713012695312 ], "size": [ 352.79998779296875, 246 ], "flags": {}, "order": 20, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 132 }, { "name": "birefnet_model", "type": "BIREFNET_MODEL", "link": 126 } ], "outputs": [ { "name": "image", "type": "IMAGE", "links": [ 175, 180 ], "slot_index": 0 }, { "name": "mask", "type": "MASK", "links": null } ], "properties": { "Node name for S&R": "LayerMask: BiRefNetUltraV2" }, "widgets_values": [ "VITMatte", 4, 2, 0.01, 0.99, true, "cuda", 2 ], "color": "rgba(27, 80, 119, 0.7)" }, { "id": 59, "type": "GrowMask", "pos": [ -2130.880615234375, -783.53857421875 ], "size": [ 246.9031982421875, 82 ], "flags": {}, "order": 14, "mode": 0, "inputs": [ { "name": "mask", "type": "MASK", "link": 228 } ], "outputs": [ { "name": "MASK", "type": "MASK", "links": [ 150 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "GrowMask" }, "widgets_values": [ 2, true ] }, { "id": 75, "type": "MaskToImage", "pos": [ -2115.722412109375, -368.9703674316406 ], "size": [ 233.39779663085938, 26.861953735351562 ], "flags": {}, "order": 29, "mode": 0, "inputs": [ { "name": "mask", "type": "MASK", "link": 178 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 179 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "MaskToImage" }, "widgets_values": [] }, { "id": 74, "type": "GetImageSize+", "pos": [ -2087.13623046875, -484.32501220703125 ], "size": [ 214.20001220703125, 66 ], "flags": { "collapsed": true }, "order": 24, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 175 } ], "outputs": [ { "name": "width", "type": "INT", "links": [ 176, 182 ], "slot_index": 0 }, { "name": "height", "type": "INT", "links": [ 177, 183 ], "slot_index": 1 }, { "name": "count", "type": "INT", "links": null } ], "properties": { "Node name for S&R": "GetImageSize+" }, "widgets_values": [] }, { "id": 73, "type": "SolidMask", "pos": [ -2123.144287109375, -494.0954284667969 ], "size": [ 241.42361450195312, 78 ], "flags": {}, "order": 26, "mode": 0, "inputs": [ { "name": "width", "type": "INT", "link": 176, "widget": { "name": "width" } }, { "name": "height", "type": "INT", "link": 177, "widget": { "name": "height" } } ], "outputs": [ { "name": "MASK", "type": "MASK", "links": [ 178 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "SolidMask" }, "widgets_values": [ 1, 512, 512 ] }, { "id": 49, "type": "ImageConcanate", "pos": [ -2131.0986328125, -654.3838500976562 ], "size": [ 248.62716674804688, 102 ], "flags": {}, "order": 21, "mode": 0, "inputs": [ { "name": "image1", "type": "IMAGE", "link": 185 }, { "name": "image2", "type": "IMAGE", "link": 227 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 152, 162 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "ImageConcanate" }, "widgets_values": [ "right", true ] }, { "id": 60, "type": "Mask Fill Holes", "pos": [ -1841.080078125, -755.823974609375 ], "size": [ 210, 26 ], "flags": { "collapsed": true }, "order": 17, "mode": 0, "inputs": [ { "name": "masks", "type": "MASK", "link": 150 } ], "outputs": [ { "name": "MASKS", "type": "MASK", "links": [ 151 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "Mask Fill Holes" }, "widgets_values": [] }, { "id": 62, "type": "GetImageSize+", "pos": [ -1844.063720703125, -629.7202758789062 ], "size": [ 214.20001220703125, 66 ], "flags": { "collapsed": true }, "order": 25, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 152 } ], "outputs": [ { "name": "width", "type": "INT", "links": [ 153, 169, 241 ], "slot_index": 0 }, { "name": "height", "type": "INT", "links": [ 154, 170 ], "slot_index": 1 }, { "name": "count", "type": "INT", "links": null } ], "properties": { "Node name for S&R": "GetImageSize+" }, "widgets_values": [] }, { "id": 63, "type": "EmptyImage", "pos": [ -1852.3287353515625, -662.1111450195312 ], "size": [ 261.5569152832031, 123.96615600585938 ], "flags": {}, "order": 28, "mode": 0, "inputs": [ { "name": "width", "type": "INT", "link": 153, "widget": { "name": "width" } }, { "name": "height", "type": "INT", "link": 154, "widget": { "name": "height" } } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 155 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "EmptyImage" }, "widgets_values": [ 512, 512, 1, 0 ] }, { "id": 61, "type": "MaskToImage", "pos": [ -1852.3040771484375, -773.8860473632812 ], "size": [ 264.5999755859375, 26 ], "flags": {}, "order": 22, "mode": 0, "inputs": [ { "name": "mask", "type": "MASK", "link": 151 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 156 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "MaskToImage" }, "widgets_values": [] }, { "id": 109, "type": "SimpleMath+", "pos": [ -1825.7039794921875, -491.8083190917969 ], "size": [ 217.59568786621094, 78 ], "flags": {}, "order": 27, "mode": 0, "inputs": [ { "name": "a", "type": "INT,FLOAT", "link": 241, "shape": 7 }, { "name": "b", "type": "INT,FLOAT", "link": null, "shape": 7 } ], "outputs": [ { "name": "INT", "type": "INT", "links": [ 242, 243 ], "slot_index": 0 }, { "name": "FLOAT", "type": "FLOAT", "links": null } ], "properties": { "Node name for S&R": "SimpleMath+" }, "widgets_values": [ "a/2" ] }, { "id": 64, "type": "ImageCompositeMasked", "pos": [ -1553.877685546875, -771.36962890625 ], "size": [ 315, 146 ], "flags": {}, "order": 30, "mode": 0, "inputs": [ { "name": "destination", "type": "IMAGE", "link": 155 }, { "name": "source", "type": "IMAGE", "link": 156 }, { "name": "mask", "type": "MASK", "link": null, "shape": 7 }, { "name": "x", "type": "INT", "link": 242, "widget": { "name": "x" } } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 160 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "ImageCompositeMasked" }, "widgets_values": [ 0, 0, false ] }, { "id": 68, "type": "ImageToMask", "pos": [ -1551.947509765625, -579.6597290039062 ], "size": [ 315, 58 ], "flags": {}, "order": 32, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 160 } ], "outputs": [ { "name": "MASK", "type": "MASK", "links": [ 161 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "ImageToMask" }, "widgets_values": [ "red" ] }, { "id": 42, "type": "StyleModelLoader", "pos": [ -2483.963134765625, -23.9359130859375 ], "size": [ 306.682373046875, 60 ], "flags": {}, "order": 6, "mode": 0, "inputs": [], "outputs": [ { "name": "STYLE_MODEL", "type": "STYLE_MODEL", "links": [ 172 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "StyleModelLoader" }, "widgets_values": [ "flux1-redux-dev.safetensors" ], "color": "#223", "bgcolor": "#335" }, { "id": 38, "type": "CLIPVisionLoader", "pos": [ -2144.714111328125, -23.52039337158203 ], "size": [ 305.30816650390625, 58 ], "flags": {}, "order": 7, "mode": 0, "inputs": [], "outputs": [ { "name": "CLIP_VISION", "type": "CLIP_VISION", "links": [ 117 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "CLIPVisionLoader" }, "widgets_values": [ "sigclip_vision_patch14_384.safetensors" ], "color": "#223", "bgcolor": "#335" }, { "id": 55, "type": "UNETLoader", "pos": [ -2481.41455078125, 75.09271240234375 ], "size": [ 306.38018798828125, 82 ], "flags": {}, "order": 8, "mode": 0, "inputs": [], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 232 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "UNETLoader" }, "widgets_values": [ "flux1-fill-dev.safetensors", "default" ], "color": "#223", "bgcolor": "#335" }, { "id": 10, "type": "VAELoader", "pos": [ -2480.760009765625, 201.3509521484375 ], "size": [ 303.196533203125, 58.70587921142578 ], "flags": {}, "order": 9, "mode": 0, "inputs": [], "outputs": [ { "name": "VAE", "type": "VAE", "links": [ 12, 146 ], "slot_index": 0, "shape": 3 } ], "properties": { "Node name for S&R": "VAELoader" }, "widgets_values": [ "ae.safetensors" ], "color": "#223", "bgcolor": "#335" }, { "id": 11, "type": "DualCLIPLoader", "pos": [ -2141.210205078125, 84.31764221191406 ], "size": [ 299.4842529296875, 106 ], "flags": {}, "order": 10, "mode": 0, "inputs": [], "outputs": [ { "name": "CLIP", "type": "CLIP", "links": [ 235 ], "slot_index": 0, "shape": 3 } ], "properties": { "Node name for S&R": "DualCLIPLoader" }, "widgets_values": [ "t5xxl_fp16.safetensors", "clip_l.safetensors", "flux", "default" ], "color": "#223", "bgcolor": "#335" }, { "id": 97, "type": "SaveImage", "pos": [ -932.718017578125, -1207.9002685546875 ], "size": [ 941.7351684570312, 1011.4095458984375 ], "flags": {}, "order": 40, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 216 } ], "outputs": [], "properties": { "Node name for S&R": "SaveImage" }, "widgets_values": [ "%date:yyyy-MM-dd%/TryOn" ], "color": "#232", "bgcolor": "#353" }, { "id": 99, "type": "Image Comparer (rgthree)", "pos": [ 52.4533576965332, -1081.86767578125 ], "size": [ 1408.967529296875, 1581.227783203125 ], "flags": {}, "order": 41, "mode": 0, "inputs": [ { "name": "image_a", "type": "IMAGE", "link": 219, "dir": 3 }, { "name": "image_b", "type": "IMAGE", "link": 218, "dir": 3 } ], "outputs": [], "properties": { "comparer_mode": "Slide" }, "widgets_values": [ [ { "name": "A", "selected": true, "url": "/api/view?filename=rgthree.compare._temp_mlbnu_00025_.png&type=temp&subfolder=&rand=0.7398491719607028" }, { "name": "B", "selected": true, "url": "/api/view?filename=rgthree.compare._temp_mlbnu_00026_.png&type=temp&subfolder=&rand=0.2384491683837866" } ] ], "color": "#222", "bgcolor": "#000" }, { "id": 57, "type": "InpaintModelConditioning", "pos": [ -681.1238403320312, -67.26879119873047 ], "size": [ 315, 138 ], "flags": {}, "order": 36, "mode": 0, "inputs": [ { "name": "positive", "type": "CONDITIONING", "link": 143 }, { "name": "negative", "type": "CONDITIONING", "link": 145 }, { "name": "vae", "type": "VAE", "link": 146 }, { "name": "pixels", "type": "IMAGE", "link": 162 }, { "name": "mask", "type": "MASK", "link": 161 } ], "outputs": [ { "name": "positive", "type": "CONDITIONING", "links": [ 139 ], "slot_index": 0 }, { "name": "negative", "type": "CONDITIONING", "links": [ 140 ], "slot_index": 1 }, { "name": "latent", "type": "LATENT", "links": [ 141 ], "slot_index": 2 } ], "properties": { "Node name for S&R": "InpaintModelConditioning" }, "widgets_values": [ true ] }, { "id": 69, "type": "ImageCrop+", "pos": [ -675.7874145507812, 119.07998657226562 ], "size": [ 315, 194 ], "flags": {}, "order": 39, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 163 }, { "name": "width", "type": "INT", "link": 169, "widget": { "name": "width" } }, { "name": "height", "type": "INT", "link": 170, "widget": { "name": "height" } }, { "name": "x_offset", "type": "INT", "link": 243, "widget": { "name": "x_offset" } } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 216, 218 ], "slot_index": 0 }, { "name": "x", "type": "INT", "links": null }, { "name": "y", "type": "INT", "links": null } ], "properties": { "Node name for S&R": "ImageCrop+" }, "widgets_values": [ 256, 256, "top-left", 0, 0 ] }, { "id": 54, "type": "KSampler", "pos": [ -338.1947326660156, -68.30671691894531 ], "size": [ 315, 262 ], "flags": {}, "order": 37, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 138 }, { "name": "positive", "type": "CONDITIONING", "link": 139 }, { "name": "negative", "type": "CONDITIONING", "link": 140 }, { "name": "latent_image", "type": "LATENT", "link": 141 }, { "name": "steps", "type": "INT", "link": 237, "widget": { "name": "steps" } }, { "name": "seed", "type": "INT", "link": 238, "widget": { "name": "seed" } }, { "name": "sampler_name", "type": "COMBO", "link": 239, "widget": { "name": "sampler_name" } }, { "name": "scheduler", "type": "COMBO", "link": 240, "widget": { "name": "scheduler" } } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 147 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "KSampler" }, "widgets_values": [ 612593047352726, "randomize", 31, 1, "euler", "beta", 1 ] }, { "id": 8, "type": "VAEDecode", "pos": [ -295.3216857910156, 242.7046661376953 ], "size": [ 210, 46 ], "flags": {}, "order": 38, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 147 }, { "name": "vae", "type": "VAE", "link": 12 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 163 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "VAEDecode" }, "widgets_values": [] }, { "id": 114, "type": "MarkdownNote", "pos": [ -2373.70556640625, -1187.2247314453125 ], "size": [ 986.7086791992188, 299.7860412597656 ], "flags": {}, "order": 11, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "# TENOFAS' Try-on workflow\nThis workflow allows you to transfer a specific cloth/garment to another image in a way that the final output image will show the subject of the second image wearing that specific cloth/garment.\n\n## 1. Upload the images\nFirst thing to do is to upload the \"Model image\" with the subject that you want to dress-up and the \"Cloth/garment to be trasfered\", containing the image of the piece of cloth you want to use. This image can contain only the cloth/garment or it could show someone wearing that cloth/garment.\n\n## 2. Leave the Prompt as it is.\nThe workflow will generate a \"double image\", on the left the garment, on the right the model with the masked area where the garment will be transfered. This is needed for consistency: this way FLUX will generate a single image with the same details in the left area and in the right area. Once the image is generated, it will be split, and only the model image, with the new clothing, will be saved. Leave Flux Guidance to 30.0 too.\n\n## 3. FLUX Settings\nYou can choose the numnber of steps, the seed (fixed or random), sampler and scheduler, and you can add LoRAs' too (green nodes). JUst remember that the generation will be focused ONLY on the masked area!" ], "color": "#222", "bgcolor": "#000" }, { "id": 45, "type": "LoadImage", "pos": [ -3128.85205078125, -275.45452880859375 ], "size": [ 558.8815307617188, 588.358642578125 ], "flags": {}, "order": 12, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 230 ], "slot_index": 0 }, { "name": "MASK", "type": "MASK", "links": null, "slot_index": 1 } ], "title": "Cloth/garment to be transfered", "properties": { "Node name for S&R": "LoadImage" }, "widgets_values": [ "palm-angels-t-shirt-bear-in-mind-cropped_25370000_57339446_800.webp", "image" ], "color": "#232", "bgcolor": "#353" } ], "links": [ [ 12, 10, 0, 8, 1, "VAE" ], [ 117, 38, 0, 39, 0, "CLIP_VISION" ], [ 120, 39, 0, 41, 2, "CLIP_VISION_OUTPUT" ], [ 122, 26, 0, 41, 0, "CONDITIONING" ], [ 126, 47, 0, 46, 1, "BIREFNET_MODEL" ], [ 132, 51, 0, 46, 0, "IMAGE" ], [ 138, 56, 0, 54, 0, "MODEL" ], [ 139, 57, 0, 54, 1, "CONDITIONING" ], [ 140, 57, 1, 54, 2, "CONDITIONING" ], [ 141, 57, 2, 54, 3, "LATENT" ], [ 143, 41, 0, 57, 0, "CONDITIONING" ], [ 144, 41, 0, 58, 0, "CONDITIONING" ], [ 145, 58, 0, 57, 1, "CONDITIONING" ], [ 146, 10, 0, 57, 2, "VAE" ], [ 147, 54, 0, 8, 0, "LATENT" ], [ 150, 59, 0, 60, 0, "MASK" ], [ 151, 60, 0, 61, 0, "MASK" ], [ 152, 49, 0, 62, 0, "IMAGE" ], [ 153, 62, 0, 63, 0, "INT" ], [ 154, 62, 1, 63, 1, "INT" ], [ 155, 63, 0, 64, 0, "IMAGE" ], [ 156, 61, 0, 64, 1, "IMAGE" ], [ 160, 64, 0, 68, 0, "IMAGE" ], [ 161, 68, 0, 57, 4, "MASK" ], [ 162, 49, 0, 57, 3, "IMAGE" ], [ 163, 8, 0, 69, 0, "IMAGE" ], [ 169, 62, 0, 69, 1, "INT" ], [ 170, 62, 1, 69, 2, "INT" ], [ 172, 42, 0, 41, 1, "STYLE_MODEL" ], [ 175, 46, 0, 74, 0, "IMAGE" ], [ 176, 74, 0, 73, 0, "INT" ], [ 177, 74, 1, 73, 1, "INT" ], [ 178, 73, 0, 75, 0, "MASK" ], [ 179, 75, 0, 76, 0, "IMAGE" ], [ 180, 46, 0, 76, 1, "IMAGE" ], [ 181, 76, 0, 39, 1, "IMAGE" ], [ 182, 74, 0, 76, 3, "INT" ], [ 183, 74, 1, 76, 4, "INT" ], [ 185, 51, 0, 49, 0, "IMAGE" ], [ 216, 69, 0, 97, 0, "IMAGE" ], [ 218, 69, 0, 99, 1, "IMAGE" ], [ 219, 95, 0, 99, 0, "IMAGE" ], [ 227, 95, 0, 49, 1, "IMAGE" ], [ 228, 95, 1, 59, 0, "MASK" ], [ 230, 45, 0, 51, 0, "IMAGE" ], [ 232, 55, 0, 102, 0, "MODEL" ], [ 233, 102, 0, 56, 0, "MODEL" ], [ 234, 6, 0, 26, 0, "CONDITIONING" ], [ 235, 11, 0, 102, 1, "CLIP" ], [ 236, 102, 1, 6, 0, "CLIP" ], [ 237, 104, 0, 54, 4, "INT" ], [ 238, 105, 0, 54, 5, "INT" ], [ 239, 106, 0, 54, 6, "COMBO" ], [ 240, 108, 0, 54, 7, "COMBO" ], [ 241, 62, 0, 109, 0, "INT,FLOAT" ], [ 242, 109, 0, 64, 3, "INT" ], [ 243, 109, 0, 69, 3, "INT" ], [ 246, 95, 0, 112, 0, "IMAGE" ], [ 247, 112, 0, 51, 1, "INT" ], [ 248, 112, 1, 51, 2, "INT" ] ], "groups": [ { "id": 1, "title": "MASK Generator", "bounding": [ -2503.02978515625, -855.1921997070312, 1284.943115234375, 652.7342529296875 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 2, "title": "FLUX settings and image generation", "bounding": [ -1760.475830078125, -161.8750457763672, 1773.8109130859375, 767.65576171875 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 4, "title": "Load FLUX model files", "bounding": [ -2495.48876953125, -98.80638122558594, 675.9940795898438, 377.4039306640625 ], "color": "#88A", "font_size": 24, "flags": {} } ], "config": {}, "extra": { "ds": { "scale": 0.7203390053643542, "offset": [ 3381.596967263404, 1254.6297871382935 ] }, "groupNodes": {}, "node_versions": { "rgthree-comfy": "5d771b8b56a343c24a26e8cea1f0c87c3d58102f", "comfyui-image-saver": "1.4.0", "comfy-core": "0.3.12", "comfyui-crystools": "1.21.0", "efficiency-nodes-comfyui": "1.0.5", "comfyui_essentials": "1.1.0", "ComfyUI_LayerStyle_Advance": "7fdcbce0727a541efcd3ff393a099b3f0fa52d33", "comfyui-kjnodes": "1.0.5", "pr-was-node-suite-comfyui-47064894": "1.0.2" }, "ue_links": [], "VHS_latentpreview": false, "VHS_latentpreviewrate": 0 }, "version": 0.4}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259{ "last_node_id": 168, "last_link_id": 282, "nodes": [ { "id": 62, "type": "FluxTrainSave", "pos": [ 4046.59814453125, -390.90887451171875 ], "size": [ 335.8072204589844, 122 ], "flags": {}, "order": 58, "mode": 0, "inputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "link": 224 } ], "outputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "links": [ 225 ], "slot_index": 0, "shape": 3 }, { "name": "lora_path", "type": "STRING", "links": null, "shape": 3 }, { "name": "steps", "type": "INT", "links": [], "slot_index": 2, "shape": 3 } ], "properties": { "Node name for S&R": "FluxTrainSave" }, "widgets_values": [ false, false ], "color": "#232", "bgcolor": "#353" }, { "id": 60, "type": "FluxTrainValidate", "pos": [ 4397.59814453125, -390.90887451171875 ], "size": [ 312.3999938964844, 55.36396026611328 ], "flags": {}, "order": 62, "mode": 0, "inputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "link": 225 }, { "name": "validation_settings", "type": "VALSETTINGS", "link": 245, "shape": 7 } ], "outputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "links": [ 226 ], "slot_index": 0, "shape": 3 }, { "name": "validation_images", "type": "IMAGE", "links": [ 90, 122 ], "slot_index": 1, "shape": 3 } ], "properties": { "Node name for S&R": "FluxTrainValidate" }, "widgets_values": [], "color": "#232", "bgcolor": "#353" }, { "id": 61, "type": "PreviewImage", "pos": [ 3645.59814453125, -199.9092559814453 ], "size": [ 1064.4329833984375, 704.880615234375 ], "flags": {}, "order": 64, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 90 } ], "outputs": [], "properties": { "Node name for S&R": "PreviewImage" }, "widgets_values": [], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 123, "type": "GetNode", "pos": [ 4285.20263671875, -1300.16796875 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 202, 209 ], "slot_index": 0 } ], "title": "Get_Sampler1", "properties": {}, "widgets_values": [ "Sampler1" ], "color": "#322", "bgcolor": "#533" }, { "id": 117, "type": "ImageConcatFromBatch", "pos": [ 4443.20263671875, -1084.1678466796875 ], "size": [ 315, 106 ], "flags": {}, "order": 29, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 195 }, { "name": "num_columns", "type": "INT", "link": 199, "widget": { "name": "num_columns" } } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 210 ], "slot_index": 0, "shape": 3 } ], "properties": { "Node name for S&R": "ImageConcatFromBatch" }, "widgets_values": [ 3, false, 4096 ], "color": "#322", "bgcolor": "#533" }, { "id": 124, "type": "GetNode", "pos": [ 4288.20263671875, -1249.16796875 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 203 ], "slot_index": 0 } ], "title": "Get_Sampler2", "properties": {}, "widgets_values": [ "Sampler2" ], "color": "#322", "bgcolor": "#533" }, { "id": 126, "type": "GetNode", "pos": [ 4291.20263671875, -1198.1678466796875 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 2, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 206 ], "slot_index": 0 } ], "title": "Get_Sampler3", "properties": {}, "widgets_values": [ "Sampler3" ], "color": "#322", "bgcolor": "#533" }, { "id": 128, "type": "GetNode", "pos": [ 4290.20263671875, -1152.16796875 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 3, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 208 ], "slot_index": 0 } ], "title": "Get_Sampler4", "properties": {}, "widgets_values": [ "Sampler4" ], "color": "#322", "bgcolor": "#533" }, { "id": 119, "type": "ImageBatchMulti", "pos": [ 4537.20263671875, -1297.16796875 ], "size": [ 210, 142 ], "flags": {}, "order": 25, "mode": 0, "inputs": [ { "name": "image_1", "type": "IMAGE", "link": 202 }, { "name": "image_2", "type": "IMAGE", "link": 203 }, { "name": "image_3", "type": "IMAGE", "link": 206 }, { "name": "image_4", "type": "IMAGE", "link": 208 } ], "outputs": [ { "name": "images", "type": "IMAGE", "links": [ 195 ], "slot_index": 0, "shape": 3 } ], "properties": {}, "widgets_values": [ 4, null ], "color": "#322", "bgcolor": "#533" }, { "id": 120, "type": "GetImageSizeAndCount", "pos": [ 4548.20263671875, -1398.1678466796875 ], "size": [ 210, 86 ], "flags": { "collapsed": true }, "order": 24, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 209 } ], "outputs": [ { "name": "image", "type": "IMAGE", "links": [], "slot_index": 0, "shape": 3 }, { "name": "width", "type": "INT", "links": null, "shape": 3 }, { "name": "height", "type": "INT", "links": null, "shape": 3 }, { "name": "count", "type": "INT", "links": [ 199 ], "slot_index": 3, "shape": 3 } ], "properties": { "Node name for S&R": "GetImageSizeAndCount" }, "widgets_values": [], "color": "#322", "bgcolor": "#533" }, { "id": 129, "type": "AddLabel", "pos": [ 4572.20263671875, -1463.1676025390625 ], "size": [ 315, 274 ], "flags": { "collapsed": true }, "order": 75, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 210 }, { "name": "caption", "type": "STRING", "link": null, "widget": { "name": "caption" } }, { "name": "text", "type": "STRING", "link": 231, "widget": { "name": "text" } } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 214 ], "slot_index": 0, "shape": 3 } ], "properties": { "Node name for S&R": "AddLabel" }, "widgets_values": [ 10, 2, 48, 32, "white", "black", "FreeMono.ttf", "Text", "up", "" ], "color": "#322", "bgcolor": "#533" }, { "id": 109, "type": "TrainDatasetAdd", "pos": [ 1891.603515625, -1495.0498046875 ], "size": [ 281.5897521972656, 338 ], "flags": {}, "order": 26, "mode": 4, "inputs": [ { "name": "dataset_config", "type": "JSON", "link": 185 }, { "name": "regularization", "type": "JSON", "link": null, "shape": 7 } ], "outputs": [ { "name": "dataset", "type": "JSON", "links": [ 252 ], "slot_index": 0, "shape": 3 } ], "title": "Train 512x512 Dataset", "properties": { "Node name for S&R": "TrainDatasetAdd" }, "widgets_values": [ 512, 512, 2, "../training/input/", "LoraTrigger", true, false, 10, 256, 1024 ], "color": "#232", "bgcolor": "#353" }, { "id": 9, "type": "PreviewImage", "pos": [ 1376.6004638671875, -197.80015563964844 ], "size": [ 1099.023193359375, 710.3143920898438 ], "flags": {}, "order": 46, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 8 } ], "outputs": [], "properties": { "Node name for S&R": "PreviewImage" }, "widgets_values": [], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 78, "type": "AddLabel", "pos": [ 1944.6004638671875, 567.6812744140625 ], "size": [ 315, 274 ], "flags": { "collapsed": true }, "order": 47, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 112 }, { "name": "caption", "type": "STRING", "link": null, "widget": { "name": "caption" } }, { "name": "text", "type": "STRING", "link": 111, "widget": { "name": "text" } } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 200 ], "slot_index": 0, "shape": 3 } ], "properties": { "Node name for S&R": "AddLabel" }, "widgets_values": [ 10, 2, 48, 32, "white", "black", "FreeMono.ttf", "Text", "up", "" ] }, { "id": 121, "type": "SetNode", "pos": [ 2101.6005859375, 567.6812744140625 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 51, "mode": 0, "inputs": [ { "name": "IMAGE", "type": "IMAGE", "link": 200 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_Sampler1", "properties": { "previousName": "Sampler1" }, "widgets_values": [ "Sampler1" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 80, "type": "AddLabel", "pos": [ 2982.400634765625, 560.1680908203125 ], "size": [ 315, 274 ], "flags": { "collapsed": true }, "order": 56, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 119 }, { "name": "caption", "type": "STRING", "link": null, "widget": { "name": "caption" } }, { "name": "text", "type": "STRING", "link": 117, "widget": { "name": "text" } } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 201 ], "slot_index": 0, "shape": 3 } ], "properties": { "Node name for S&R": "AddLabel" }, "widgets_values": [ 10, 2, 48, 32, "white", "black", "FreeMono.ttf", "Text", "up", "" ] }, { "id": 84, "type": "SomethingToString", "pos": [ 5018.2724609375, 553.1358642578125 ], "size": [ 315, 82 ], "flags": { "collapsed": true }, "order": 67, "mode": 0, "inputs": [ { "name": "input", "type": "*", "link": 215 } ], "outputs": [ { "name": "STRING", "type": "STRING", "links": [ 124 ], "slot_index": 0, "shape": 3 } ], "properties": { "Node name for S&R": "SomethingToString" }, "widgets_values": [ "steps ", "" ] }, { "id": 85, "type": "AddLabel", "pos": [ 5228.2724609375, 553.1358642578125 ], "size": [ 315, 274 ], "flags": { "collapsed": true }, "order": 73, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 126 }, { "name": "caption", "type": "STRING", "link": null, "widget": { "name": "caption" } }, { "name": "text", "type": "STRING", "link": 124, "widget": { "name": "text" } } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 207 ], "slot_index": 0, "shape": 3 } ], "properties": { "Node name for S&R": "AddLabel" }, "widgets_values": [ 10, 2, 48, 32, "white", "black", "FreeMono.ttf", "Text", "up", "" ] }, { "id": 127, "type": "SetNode", "pos": [ 5398.2724609375, 553.1358642578125 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 77, "mode": 0, "inputs": [ { "name": "IMAGE", "type": "IMAGE", "link": 207 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_Sampler4", "properties": { "previousName": "Sampler4" }, "widgets_values": [ "Sampler4" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 66, "type": "PreviewImage", "pos": [ 4777.2724609375, -199.14544677734375 ], "size": [ 1080.4327392578125, 711.6444702148438 ], "flags": {}, "order": 72, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 95 } ], "outputs": [], "properties": { "Node name for S&R": "PreviewImage" }, "widgets_values": [], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 111, "type": "TrainDatasetAdd", "pos": [ 2239.6884765625, -1496.58984375 ], "size": [ 267.5897521972656, 338 ], "flags": {}, "order": 32, "mode": 4, "inputs": [ { "name": "dataset_config", "type": "JSON", "link": 253 }, { "name": "regularization", "type": "JSON", "link": null, "shape": 7 } ], "outputs": [ { "name": "dataset", "type": "JSON", "links": [ 249 ], "slot_index": 0, "shape": 3 } ], "title": "Train 768x768 Dataset", "properties": { "Node name for S&R": "TrainDatasetAdd" }, "widgets_values": [ 768, 768, 2, "../training/input/", "LoraTrigger", true, false, 10, 256, 1024 ], "color": "#232", "bgcolor": "#353" }, { "id": 83, "type": "AddLabel", "pos": [ 4081.39990234375, 556.772216796875 ], "size": [ 315, 274 ], "flags": { "collapsed": true }, "order": 65, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 122 }, { "name": "caption", "type": "STRING", "link": null, "widget": { "name": "caption" } }, { "name": "text", "type": "STRING", "link": 121, "widget": { "name": "text" } } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 204 ], "slot_index": 0, "shape": 3 } ], "properties": { "Node name for S&R": "AddLabel" }, "widgets_values": [ 10, 2, 48, 32, "white", "black", "FreeMono.ttf", "Text", "up", "" ] }, { "id": 108, "type": "TrainDatasetGeneralConfig", "pos": [ 1528.8372802734375, -1483.1605224609375 ], "size": [ 315, 220 ], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [ { "name": "dataset_general", "type": "JSON", "links": [ 185 ], "slot_index": 0, "shape": 3 } ], "properties": { "Node name for S&R": "TrainDatasetGeneralConfig" }, "widgets_values": [ false, false, false, 0, false, false, ".txt" ], "color": "#232", "bgcolor": "#353" }, { "id": 95, "type": "OptimizerConfig", "pos": [ 2952.0234375, -1078.1832275390625 ], "size": [ 392.78570556640625, 285.4857177734375 ], "flags": {}, "order": 5, "mode": 0, "inputs": [], "outputs": [ { "name": "optimizer_settings", "type": "ARGS", "links": [ 261 ], "slot_index": 0, "shape": 3 } ], "properties": { "Node name for S&R": "OptimizerConfig" }, "widgets_values": [ "CAME", 1, "constant", 0, 1, 1, 5, "" ], "color": "#223", "bgcolor": "#335" }, { "id": 38, "type": "SetNode", "pos": [ 3917.2724609375, -1028.9246826171875 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 27, "mode": 0, "inputs": [ { "name": "VALSETTINGS", "type": "VALSETTINGS", "link": 243 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_validation_settings", "properties": { "previousName": "validation_settings" }, "widgets_values": [ "validation_settings" ], "color": "#223", "bgcolor": "#335" }, { "id": 37, "type": "FluxTrainValidationSettings", "pos": [ 3838.050048828125, -1107.60595703125 ], "size": [ 302.0130310058594, 250 ], "flags": {}, "order": 6, "mode": 0, "inputs": [], "outputs": [ { "name": "validation_settings", "type": "VALSETTINGS", "links": [ 243 ], "slot_index": 0, "shape": 3 } ], "properties": { "Node name for S&R": "FluxTrainValidationSettings" }, "widgets_values": [ 20, 1024, 1024, 3, 42, "fixed", true, 0.5, 1.15 ], "color": "#223", "bgcolor": "#335" }, { "id": 151, "type": "SimpleMath+", "pos": [ 3074.86962890625, -732.6830444335938 ], "size": [ 315, 78 ], "flags": { "collapsed": true }, "order": 28, "mode": 0, "inputs": [ { "name": "a", "type": "INT,FLOAT", "link": 266, "shape": 7 }, { "name": "b", "type": "INT,FLOAT", "link": null, "shape": 7 } ], "outputs": [ { "name": "INT", "type": "INT", "links": [ 271 ], "slot_index": 0 }, { "name": "FLOAT", "type": "FLOAT", "links": null, "slot_index": 1 } ], "properties": { "Node name for S&R": "SimpleMath+" }, "widgets_values": [ "a/4" ], "color": "#223", "bgcolor": "#335" }, { "id": 159, "type": "SetNode", "pos": [ 3077.303466796875, -737.0303955078125 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 31, "mode": 0, "inputs": [ { "name": "INT", "type": "INT", "link": 271 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_trainingsteps", "properties": { "previousName": "trainingsteps" }, "widgets_values": [ "trainingsteps" ], "color": "#1b4669", "bgcolor": "#29699c" }, { "id": 125, "type": "SetNode", "pos": [ 4222.86865234375, 556.772216796875 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 68, "mode": 0, "inputs": [ { "name": "IMAGE", "type": "IMAGE", "link": 204 } ], "outputs": [ { "name": "*", "type": "*", "links": [], "slot_index": 0 } ], "title": "Set_Sampler3", "properties": { "previousName": "Sampler3" }, "widgets_values": [ "Sampler3" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 137, "type": "Fast Bypasser (rgthree)", "pos": [ 2220.712158203125, -1107.977783203125 ], "size": [ 304, 78 ], "flags": {}, "order": 33, "mode": 0, "inputs": [ { "name": "Train 768x768 Dataset", "type": "*", "link": 249, "dir": 3 }, { "name": "", "type": "*", "link": null, "dir": 3 } ], "outputs": [ { "name": "OPT_CONNECTION", "type": "*", "links": [ 250 ], "slot_index": 0, "dir": 4 } ], "title": "768x768 Dataset switch (on/off)", "properties": { "toggleRestriction": "default" }, "color": "#232", "bgcolor": "#353" }, { "id": 113, "type": "Note", "pos": [ 1527.4512939453125, -1204.1746826171875 ], "size": [ 327.63427734375, 168.70933532714844 ], "flags": {}, "order": 7, "mode": 0, "inputs": [], "outputs": [], "title": "Datasets Note", "properties": { "text": "" }, "widgets_values": [ "For multiresolution training, input same source directory with different dataset resolution. From what I hear, Flux likes multiple resolutions.\n\nFor single resolution training, just add single dataset.\n\nVery important: remember to set the directory where input images is located (../training/input/ by default) and the LoraTrigger word if you want one." ], "color": "#222", "bgcolor": "#000" }, { "id": 150, "type": "Primitive integer [Crystools]", "pos": [ 2952.9638671875, -750.3392333984375 ], "size": [ 383.9097900390625, 58 ], "flags": {}, "order": 8, "mode": 0, "inputs": [], "outputs": [ { "name": "int", "type": "INT", "links": [ 265, 266 ], "slot_index": 0 } ], "title": "Max training steps", "properties": { "Node name for S&R": "Primitive integer [Crystools]" }, "widgets_values": [ 3000 ], "color": "#223", "bgcolor": "#335" }, { "id": 2, "type": "FluxTrainModelSelect", "pos": [ 2950.31201171875, -1289.39794921875 ], "size": [ 392.21954345703125, 172 ], "flags": {}, "order": 9, "mode": 0, "inputs": [], "outputs": [ { "name": "flux_models", "type": "TRAIN_FLUX_MODELS", "links": [ 179 ], "shape": 3 } ], "properties": { "Node name for S&R": "FluxTrainModelSelect" }, "widgets_values": [ "flux1-dev-fp8.safetensors", "ae.safetensors", "clip_l.safetensors", "t5xxl_fp8_e4m3fn.safetensors", "" ], "color": "#223", "bgcolor": "#335" }, { "id": 115, "type": "Note", "pos": [ 2954.2373046875, -1480.9620361328125 ], "size": [ 389.0325622558594, 140.34963989257812 ], "flags": {}, "order": 10, "mode": 0, "inputs": [], "outputs": [], "title": "Note on FLUX model", "properties": { "text": "" }, "widgets_values": [ "You can use same models as you use for inference in Comfy. When fp8_base is enabled, the model is downcasted to torch.float_e4m3fn on initialize, meaning if you load fp8 model here it should also be in same format.\n\nDownload the flux1-dev-fp8.safetensors transformer from this link:\nhttps://huggingface.co/Kijai/flux-fp8/tree/main " ], "color": "#222", "bgcolor": "#000" }, { "id": 138, "type": "Fast Bypasser (rgthree)", "pos": [ 1883.6600341796875, -1107.0262451171875 ], "size": [ 304, 78 ], "flags": {}, "order": 30, "mode": 0, "inputs": [ { "name": "Train 512x512 Dataset", "type": "*", "link": 252, "dir": 3 }, { "name": "", "type": "*", "link": null, "dir": 3 } ], "outputs": [ { "name": "OPT_CONNECTION", "type": "*", "links": [ 253 ], "slot_index": 0, "dir": 4 } ], "title": "512x512 Dataset switch (on/off)", "properties": { "toggleRestriction": "default" }, "color": "#232", "bgcolor": "#353" }, { "id": 139, "type": "Fast Bypasser (rgthree)", "pos": [ 2563.347412109375, -1114.5146484375 ], "size": [ 320.79998779296875, 78 ], "flags": {}, "order": 35, "mode": 0, "inputs": [ { "name": "Train 1024x1024 Dataset", "type": "*", "link": 256, "dir": 3, "label": "" }, { "name": "", "type": "*", "link": null, "dir": 3 } ], "outputs": [ { "name": "OPT_CONNECTION", "type": "*", "links": [ 280 ], "slot_index": 0, "dir": 4 } ], "title": "1024x1024 Dataset switch (on/off)", "properties": { "toggleRestriction": "default" }, "color": "#232", "bgcolor": "#353" }, { "id": 133, "type": "FluxTrainEnd", "pos": [ 4238.630859375, -1477.979736328125 ], "size": [ 254.98214721679688, 98 ], "flags": {}, "order": 71, "mode": 0, "inputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "link": 281 } ], "outputs": [ { "name": "lora_name", "type": "STRING", "links": [ 231 ], "slot_index": 0, "shape": 3 }, { "name": "metadata", "type": "STRING", "links": null, "shape": 3 }, { "name": "lora_path", "type": "STRING", "links": [ 236 ], "slot_index": 2, "shape": 3 } ], "properties": { "Node name for S&R": "FluxTrainEnd" }, "widgets_values": [ false ], "color": "#322", "bgcolor": "#533" }, { "id": 88, "type": "Display Any (rgthree)", "pos": [ 3872.21533203125, -1475.426513671875 ], "size": [ 210, 76 ], "flags": {}, "order": 38, "mode": 0, "inputs": [ { "name": "source", "type": "*", "link": 182, "dir": 3 } ], "outputs": [], "title": "Number of epochs", "properties": { "Node name for S&R": "Display Any (rgthree)" }, "widgets_values": [ "" ], "color": "#223", "bgcolor": "#335" }, { "id": 59, "type": "FluxTrainLoop", "pos": [ 3641.59814453125, -390.90887451171875 ], "size": [ 385.8282165527344, 61.11687088012695 ], "flags": {}, "order": 54, "mode": 0, "inputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "link": 223 }, { "name": "steps", "type": "INT", "link": 275, "widget": { "name": "steps" } } ], "outputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "links": [ 166, 224 ], "slot_index": 0, "shape": 3 }, { "name": "steps", "type": "INT", "links": [ 234 ], "slot_index": 1, "shape": 3 } ], "properties": { "Node name for S&R": "FluxTrainLoop" }, "widgets_values": [ 250 ], "color": "#232", "bgcolor": "#353" }, { "id": 82, "type": "SomethingToString", "pos": [ 3840.56884765625, 556.772216796875 ], "size": [ 315, 82 ], "flags": { "collapsed": true }, "order": 59, "mode": 0, "inputs": [ { "name": "input", "type": "*", "link": 234 } ], "outputs": [ { "name": "STRING", "type": "STRING", "links": [ 121 ], "slot_index": 0, "shape": 3 } ], "properties": { "Node name for S&R": "SomethingToString" }, "widgets_values": [ "steps ", "" ] }, { "id": 130, "type": "SaveImage", "pos": [ 4764.2744140625, -1440.8135986328125 ], "size": [ 733.1328735351562, 801.8506469726562 ], "flags": {}, "order": 78, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 214 } ], "outputs": [], "properties": { "Node name for S&R": "SaveImage" }, "widgets_values": [ "Deadpool_style" ], "color": "#322", "bgcolor": "#533" }, { "id": 168, "type": "Bookmark (rgthree)", "pos": [ 1328.283935546875, -1588.7122802734375 ], "size": [ 210, 62 ], "flags": { "collapsed": true }, "order": 11, "mode": 0, "inputs": [], "outputs": [], "title": "🔖", "properties": {}, "widgets_values": [ "1", 0.5 ] }, { "id": 79, "type": "SomethingToString", "pos": [ 1738.1943359375, 567.6812744140625 ], "size": [ 315, 82 ], "flags": { "collapsed": true }, "order": 42, "mode": 0, "inputs": [ { "name": "input", "type": "*", "link": 220 } ], "outputs": [ { "name": "STRING", "type": "STRING", "links": [ 111 ], "slot_index": 0, "shape": 3 } ], "properties": { "Node name for S&R": "SomethingToString" }, "widgets_values": [ "steps ", "" ] }, { "id": 97, "type": "VisualizeLoss", "pos": [ 1388.2611083984375, 625.74462890625 ], "size": [ 358.9443664550781, 204.9143829345703 ], "flags": {}, "order": 40, "mode": 0, "inputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "link": 162 } ], "outputs": [ { "name": "plot", "type": "IMAGE", "links": [ 161 ], "slot_index": 0, "shape": 3 }, { "name": "loss_list", "type": "FLOAT", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "VisualizeLoss" }, "widgets_values": [ "seaborn-v0_8-dark-palette", 100, true, 768, 512, false ] }, { "id": 98, "type": "SaveImage", "pos": [ 1831.6236572265625, 607.86328125 ], "size": [ 645.9608764648438, 439.37261962890625 ], "flags": {}, "order": 43, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 161 } ], "outputs": [], "properties": { "Node name for S&R": "SaveImage" }, "widgets_values": [ "flux_lora_loss_plot" ] }, { "id": 99, "type": "VisualizeLoss", "pos": [ 2562.622802734375, 626.550048828125 ], "size": [ 336.36163330078125, 198 ], "flags": {}, "order": 48, "mode": 0, "inputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "link": 164 } ], "outputs": [ { "name": "plot", "type": "IMAGE", "links": [ 163 ], "slot_index": 0, "shape": 3 }, { "name": "loss_list", "type": "FLOAT", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "VisualizeLoss" }, "widgets_values": [ "seaborn-v0_8-dark-palette", 100, true, 768, 512, false ] }, { "id": 81, "type": "SomethingToString", "pos": [ 2753.400634765625, 560.1680908203125 ], "size": [ 315, 82 ], "flags": { "collapsed": true }, "order": 50, "mode": 0, "inputs": [ { "name": "input", "type": "*", "link": 235 } ], "outputs": [ { "name": "STRING", "type": "STRING", "links": [ 117 ], "slot_index": 0, "shape": 3 } ], "properties": { "Node name for S&R": "SomethingToString" }, "widgets_values": [ "steps ", "" ] }, { "id": 122, "type": "SetNode", "pos": [ 3180.400634765625, 560.1680908203125 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 60, "mode": 0, "inputs": [ { "name": "IMAGE", "type": "IMAGE", "link": 201 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_Sampler2", "properties": { "previousName": "Sampler2" }, "widgets_values": [ "Sampler2" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 100, "type": "SaveImage", "pos": [ 2951.7451171875, 607.0157470703125 ], "size": [ 630.8016967773438, 434.8973693847656 ], "flags": {}, "order": 52, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 163 } ], "outputs": [], "properties": { "Node name for S&R": "SaveImage" }, "widgets_values": [ "flux_lora_loss_plot" ] }, { "id": 102, "type": "SaveImage", "pos": [ 4076.7158203125, 608.6092529296875 ], "size": [ 628.0889892578125, 428.0353698730469 ], "flags": {}, "order": 61, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 165 } ], "outputs": [], "properties": { "Node name for S&R": "SaveImage" }, "widgets_values": [ "flux_lora_loss_plot" ] }, { "id": 90, "type": "SaveImage", "pos": [ 5284.26171875, 627.4050903320312 ], "size": [ 574.23046875, 414.46881103515625 ], "flags": {}, "order": 74, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 138 } ], "outputs": [], "properties": { "Node name for S&R": "SaveImage" }, "widgets_values": [ "flux_lora_loss_plot" ] }, { "id": 70, "type": "VisualizeLoss", "pos": [ 4838.1748046875, 639.4810791015625 ], "size": [ 345.30908203125, 205.7921905517578 ], "flags": {}, "order": 70, "mode": 0, "inputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "link": 217 } ], "outputs": [ { "name": "plot", "type": "IMAGE", "links": [ 138 ], "slot_index": 0, "shape": 3 }, { "name": "loss_list", "type": "FLOAT", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "VisualizeLoss" }, "widgets_values": [ "ggplot", 1000, true, 768, 512, false ] }, { "id": 101, "type": "VisualizeLoss", "pos": [ 3686.531982421875, 620.63037109375 ], "size": [ 315.8711853027344, 206.78160095214844 ], "flags": {}, "order": 57, "mode": 0, "inputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "link": 166 } ], "outputs": [ { "name": "plot", "type": "IMAGE", "links": [ 165 ], "slot_index": 0, "shape": 3 }, { "name": "loss_list", "type": "FLOAT", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "VisualizeLoss" }, "widgets_values": [ "seaborn-v0_8-dark-palette", 100, true, 768, 512, false ] }, { "id": 105, "type": "Display Any (rgthree)", "pos": [ 2969.12939453125, 1276.5263671875 ], "size": [ 1586.287353515625, 411.3103942871094 ], "flags": {}, "order": 39, "mode": 0, "inputs": [ { "name": "source", "type": "*", "link": 183, "dir": 3 } ], "outputs": [], "properties": { "Node name for S&R": "Display Any (rgthree)" }, "widgets_values": [ "" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 116, "type": "Note", "pos": [ 3834.38720703125, -814.5722045898438 ], "size": [ 311.99798583984375, 213.0215301513672 ], "flags": {}, "order": 12, "mode": 0, "inputs": [], "outputs": [], "title": "Note on Training and Validation", "properties": { "text": "\n" }, "widgets_values": [ "Validation sampling settings are set here for all the 4 sampler nodes.\nRemeber to write a prompt in the \"Promprs for Validation\" green node (above). You can generate more than one image just separating each image's prompt with \"|\".\n\nMax training steps: suggested min 1.000 \n\nFor training settings in the \"Init Flux LoRA Training\" node visit: https://github.com/kohya-ss/sd-scripts" ], "color": "#222", "bgcolor": "#000" }, { "id": 107, "type": "InitFluxLoRATraining", "pos": [ 3359.13720703125, -1473.387451171875 ], "size": [ 461.4108581542969, 888 ], "flags": {}, "order": 36, "mode": 0, "inputs": [ { "name": "flux_models", "type": "TRAIN_FLUX_MODELS", "link": 179 }, { "name": "dataset", "type": "JSON", "link": 280 }, { "name": "optimizer_settings", "type": "ARGS", "link": 261 }, { "name": "resume_args", "type": "ARGS", "link": null, "shape": 7 }, { "name": "block_args", "type": "ARGS", "link": null, "shape": 7 }, { "name": "sample_prompts", "type": "STRING", "link": 262, "widget": { "name": "sample_prompts" } }, { "name": "network_config", "type": "NETWORK_CONFIG", "link": null, "shape": 7 }, { "name": "loss_args", "type": "ARGS", "link": null, "shape": 7 }, { "name": "max_train_steps", "type": "INT", "link": 265, "widget": { "name": "max_train_steps" } } ], "outputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "links": [ 282 ], "slot_index": 0, "shape": 3 }, { "name": "epochs_count", "type": "INT", "links": [ 182 ], "shape": 3 }, { "name": "args", "type": "KOHYA_ARGS", "links": [ 183 ], "shape": 3 } ], "properties": { "Node name for S&R": "InitFluxLoRATraining" }, "widgets_values": [ "Lora_file_name", "../training/output/", 16, 1, 0.00039999999999999996, 3000, true, "disk", "disk", 18, "logit_normal", 0, 1, 1.29, "shift", 1, "raw", 1, 3.1582000000000003, false, true, "bf16", "bf16", "sdpa", "", "", "disabled", 0, 0, "enabled" ], "color": "#223", "bgcolor": "#335" }, { "id": 74, "type": "Display Any (rgthree)", "pos": [ 4314.20263671875, -848.1674194335938 ], "size": [ 358.62896728515625, 76 ], "flags": {}, "order": 76, "mode": 0, "inputs": [ { "name": "source", "type": "*", "link": 236, "dir": 3 } ], "outputs": [], "properties": { "Node name for S&R": "Display Any (rgthree)" }, "widgets_values": [ "" ], "color": "#322", "bgcolor": "#533" }, { "id": 162, "type": "GetNode", "pos": [ 3642.994140625, -294.14288330078125 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 13, "mode": 0, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "links": [ 275 ], "slot_index": 0 } ], "title": "Get_trainingsteps", "properties": {}, "widgets_values": [ "trainingsteps" ], "color": "#223", "bgcolor": "#335" }, { "id": 134, "type": "FluxTrainSave", "pos": [ 5156.27099609375, -407.0669860839844 ], "size": [ 305.3969421386719, 122 ], "flags": {}, "order": 66, "mode": 0, "inputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "link": 232 } ], "outputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "links": [ 233 ], "slot_index": 0, "shape": 3 }, { "name": "lora_path", "type": "STRING", "links": null, "shape": 3 }, { "name": "steps", "type": "INT", "links": [], "slot_index": 2, "shape": 3 } ], "properties": { "Node name for S&R": "FluxTrainSave" }, "widgets_values": [ false, false ], "color": "#232", "bgcolor": "#353" }, { "id": 65, "type": "FluxTrainValidate", "pos": [ 5499.0244140625, -413.08319091796875 ], "size": [ 312.3999938964844, 46 ], "flags": {}, "order": 69, "mode": 0, "inputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "link": 233 }, { "name": "validation_settings", "type": "VALSETTINGS", "link": 94, "shape": 7 } ], "outputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "links": [ 217, 281 ], "slot_index": 0, "shape": 3 }, { "name": "validation_images", "type": "IMAGE", "links": [ 95, 126 ], "slot_index": 1, "shape": 3 } ], "properties": { "Node name for S&R": "FluxTrainValidate" }, "widgets_values": [], "color": "#232", "bgcolor": "#353" }, { "id": 68, "type": "GetNode", "pos": [ 5497.08251953125, -324.3271484375 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 14, "mode": 0, "inputs": [], "outputs": [ { "name": "VALSETTINGS", "type": "VALSETTINGS", "links": [ 94 ], "slot_index": 0 } ], "title": "Get_validation_settings", "properties": {}, "widgets_values": [ "validation_settings" ], "color": "#232", "bgcolor": "#353" }, { "id": 63, "type": "GetNode", "pos": [ 4403.177734375, -296.2549743652344 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 15, "mode": 0, "inputs": [], "outputs": [ { "name": "VALSETTINGS", "type": "VALSETTINGS", "links": [ 245 ], "slot_index": 0 } ], "title": "Get_validation_settings", "properties": {}, "widgets_values": [ "validation_settings" ], "color": "#232", "bgcolor": "#353" }, { "id": 64, "type": "FluxTrainLoop", "pos": [ 4770.54052734375, -399.4755859375 ], "size": [ 348.72076416015625, 78 ], "flags": {}, "order": 63, "mode": 0, "inputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "link": 226 }, { "name": "steps", "type": "INT", "link": 274, "widget": { "name": "steps" } } ], "outputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "links": [ 232 ], "slot_index": 0, "shape": 3 }, { "name": "steps", "type": "INT", "links": [ 215 ], "slot_index": 1, "shape": 3 } ], "properties": { "Node name for S&R": "FluxTrainLoop" }, "widgets_values": [ 250 ], "color": "#232", "bgcolor": "#353" }, { "id": 163, "type": "GetNode", "pos": [ 4775.693359375, -283.00885009765625 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 16, "mode": 0, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "links": [ 274 ], "slot_index": 0 } ], "title": "Get_trainingsteps", "properties": {}, "widgets_values": [ "trainingsteps" ], "color": "#223", "bgcolor": "#335" }, { "id": 44, "type": "FluxTrainLoop", "pos": [ 2524.035888671875, -404.0621337890625 ], "size": [ 363.81671142578125, 61.116878509521484 ], "flags": {}, "order": 45, "mode": 0, "inputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "link": 219 }, { "name": "steps", "type": "INT", "link": 273, "widget": { "name": "steps" } } ], "outputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "links": [ 164, 222 ], "slot_index": 0, "shape": 3 }, { "name": "steps", "type": "INT", "links": [ 235 ], "slot_index": 1, "shape": 3 } ], "properties": { "Node name for S&R": "FluxTrainLoop" }, "widgets_values": [ 250 ], "color": "#232", "bgcolor": "#353" }, { "id": 47, "type": "FluxTrainSave", "pos": [ 2902.74072265625, -401.2630920410156 ], "size": [ 337.2362976074219, 122 ], "flags": {}, "order": 49, "mode": 0, "inputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "link": 222 } ], "outputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "links": [ 227 ], "slot_index": 0, "shape": 3 }, { "name": "lora_path", "type": "STRING", "links": null, "shape": 3 }, { "name": "steps", "type": "INT", "links": [], "slot_index": 2, "shape": 3 } ], "properties": { "Node name for S&R": "FluxTrainSave" }, "widgets_values": [ false, false ], "color": "#232", "bgcolor": "#353" }, { "id": 161, "type": "GetNode", "pos": [ 2524.86328125, -301.5628662109375 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 17, "mode": 0, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "links": [ 273 ], "slot_index": 0 } ], "title": "Get_trainingsteps", "properties": {}, "widgets_values": [ "trainingsteps" ], "color": "#223", "bgcolor": "#335" }, { "id": 8, "type": "FluxTrainValidate", "pos": [ 2148.002685546875, -400.9291687011719 ], "size": [ 321.6932373046875, 51.817989349365234 ], "flags": { "collapsed": false }, "order": 44, "mode": 0, "inputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "link": 221 }, { "name": "validation_settings", "type": "VALSETTINGS", "link": 242, "shape": 7 } ], "outputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "links": [ 219 ], "slot_index": 0, "shape": 3 }, { "name": "validation_images", "type": "IMAGE", "links": [ 8, 112 ], "slot_index": 1, "shape": 3 } ], "properties": { "Node name for S&R": "FluxTrainValidate" }, "widgets_values": [], "color": "#232", "bgcolor": "#353" }, { "id": 40, "type": "GetNode", "pos": [ 2150.754638671875, -303.72357177734375 ], "size": [ 277.0899353027344, 58 ], "flags": { "collapsed": true }, "order": 18, "mode": 0, "inputs": [], "outputs": [ { "name": "VALSETTINGS", "type": "VALSETTINGS", "links": [ 242 ], "slot_index": 0 } ], "title": "Get_validation_settings", "properties": {}, "widgets_values": [ "validation_settings" ], "color": "#232", "bgcolor": "#353" }, { "id": 45, "type": "FluxTrainValidate", "pos": [ 3259.0361328125, -403.1290588378906 ], "size": [ 312.3999938964844, 49.711063385009766 ], "flags": {}, "order": 53, "mode": 0, "inputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "link": 227 }, { "name": "validation_settings", "type": "VALSETTINGS", "link": 244, "shape": 7 } ], "outputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "links": [ 223 ], "slot_index": 0, "shape": 3 }, { "name": "validation_images", "type": "IMAGE", "links": [ 70, 119 ], "slot_index": 1, "shape": 3 } ], "properties": { "Node name for S&R": "FluxTrainValidate" }, "widgets_values": [], "color": "#232", "bgcolor": "#353" }, { "id": 48, "type": "GetNode", "pos": [ 3266.811767578125, -310.980712890625 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 19, "mode": 0, "inputs": [], "outputs": [ { "name": "VALSETTINGS", "type": "VALSETTINGS", "links": [ 244 ], "slot_index": 0 } ], "title": "Get_validation_settings", "properties": {}, "widgets_values": [ "validation_settings" ], "color": "#232", "bgcolor": "#353" }, { "id": 46, "type": "PreviewImage", "pos": [ 2535.643798828125, -198.75820922851562 ], "size": [ 1041.0751953125, 707.7618408203125 ], "flags": {}, "order": 55, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 70 } ], "outputs": [], "properties": { "Node name for S&R": "PreviewImage" }, "widgets_values": [], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 14, "type": "FluxTrainSave", "pos": [ 1790.7769775390625, -404.9439697265625 ], "size": [ 341.3186340332031, 122 ], "flags": {}, "order": 41, "mode": 0, "inputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "link": 218 } ], "outputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "links": [ 221 ], "slot_index": 0, "shape": 3 }, { "name": "lora_path", "type": "STRING", "links": [], "slot_index": 1, "shape": 3 }, { "name": "steps", "type": "INT", "links": [], "slot_index": 2, "shape": 3 } ], "properties": { "Node name for S&R": "FluxTrainSave" }, "widgets_values": [ false, false ], "color": "#232", "bgcolor": "#353" }, { "id": 4, "type": "FluxTrainLoop", "pos": [ 1363.4276123046875, -403.70208740234375 ], "size": [ 391.7012634277344, 54 ], "flags": {}, "order": 37, "mode": 0, "inputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "link": 282 }, { "name": "steps", "type": "INT", "link": 272, "widget": { "name": "steps" } } ], "outputs": [ { "name": "network_trainer", "type": "NETWORKTRAINER", "links": [ 162, 218 ], "slot_index": 0, "shape": 3 }, { "name": "steps", "type": "INT", "links": [ 220 ], "slot_index": 1, "shape": 3 } ], "properties": { "Node name for S&R": "FluxTrainLoop" }, "widgets_values": [ 250 ], "color": "#232", "bgcolor": "#353" }, { "id": 160, "type": "GetNode", "pos": [ 1364.072021484375, -307.156494140625 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 20, "mode": 0, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "links": [ 272 ], "slot_index": 0 } ], "title": "Get_trainingsteps", "properties": {}, "widgets_values": [ "trainingsteps" ], "color": "#223", "bgcolor": "#335" }, { "id": 131, "type": "Note", "pos": [ 2972.55810546875, 1179.3834228515625 ], "size": [ 370.4340515136719, 60.30167007446289 ], "flags": {}, "order": 21, "mode": 0, "inputs": [], "outputs": [], "properties": { "text": "" }, "widgets_values": [ "Check that all the args are chosen correctly - for debug" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 112, "type": "TrainDatasetAdd", "pos": [ 2590.6884765625, -1498.58984375 ], "size": [ 259.5897521972656, 338 ], "flags": {}, "order": 34, "mode": 0, "inputs": [ { "name": "dataset_config", "type": "JSON", "link": 250 }, { "name": "regularization", "type": "JSON", "link": null, "shape": 7 } ], "outputs": [ { "name": "dataset", "type": "JSON", "links": [ 256 ], "slot_index": 0, "shape": 3 } ], "title": "Train 1024x1024 Dataset", "properties": { "Node name for S&R": "TrainDatasetAdd" }, "widgets_values": [ 1024, 1024, 1, "../training/input/", "LoraTrigger", true, false, 10, 256, 1024 ], "color": "#232", "bgcolor": "#353" }, { "id": 146, "type": "StringConstantMultiline", "pos": [ 3836.18701171875, -1354.546630859375 ], "size": [ 302.5973815917969, 206.4935302734375 ], "flags": {}, "order": 22, "mode": 0, "inputs": [], "outputs": [ { "name": "STRING", "type": "STRING", "links": [ 262 ], "slot_index": 0, "shape": 3 } ], "title": "Prompts for Validation (at least 1)", "properties": { "Node name for S&R": "StringConstantMultiline" }, "widgets_values": [ "", true ], "color": "#232", "bgcolor": "#353" }, { "id": 140, "type": "Note Plus (mtb)", "pos": [ 1506.52001953125, -1003.4448852539062 ], "size": [ 1392.3038330078125, 482.61871337890625 ], "flags": {}, "order": 23, "mode": 0, "inputs": [], "outputs": [], "title": "Unnamed", "properties": {}, "widgets_values": [ "<h2 id=\"fluxloratraineroncomfyui\"><center>FLUX LoRA Trainer on ComfyUI</center></h2>\n<br>\n<p>This workflow is based on the incredible work by Kijai (<a rel=\"noopener noreferrer\" href=\"https://github.com/kijai/ComfyUI-FluxTrainer\">https://github.com/kijai/ComfyUI-FluxTrainer</a>) who created the training nodes for ComfyUI based on Kohya_ss (<a rel=\"noopener noreferrer\" href=\"https://github.com/kohya-ss/sd-scripts\">https://github.com/kohya-ss/sd-scripts</a>) work.</p>\n----------------\n<p>To train a LoRA (Low Rank Adaptation) for FLUX these are the steps you should follow before clicking on Queue:<br><br>\n1) Prepare learning data - that is an images set (min 10, 20-30 is fine, but for some specifici LoRA's the more is better)<br>\n2) You don't need to create the caption .txt files, FLUX model's LoRA's can be trained on images only, but on some specific kind of training caption is needed.<br>\n3) Check you have set the input (training images) and the output (saved LoRA's) folders correctly. For ComfyUI windows-portable version the \"training\" directory must be created in the same directory with \"ComfyUI_windows_portable\" one.<br>\n4) Set your LoraTrigger word (optional)<br>\n5) Add a prompt (or multiple prompts) for Training Validation in the Prompts for Validation\" green node, at the bottom. Prompts must be separated by \"|\".<br>\n6) Adjust training settings (or leave default ones)<br>\n-Max training steps: 1000-4000<br>\n-Network_dim: can be 4,8,16,32,64,128 (high values mean better quality but larger lora files)<br>\n-Network_alpha: default is 1<br>\n-Learning rate: suggested 0.0004<br>\n-Blocks_to_swap: default 18\n<br><br>\nFor more details on settings here are a couple of links:<br>\n<a rel=\"noopener noreferrer\" href=\"https://tinyurl.com/5n6242nx\">-Kohya-ss usage documentation</a> <br>\n<a rel=\"noopener noreferrer\" href=\"https://tinyurl.com/2xnb8cpc\">-Kohya-ss lora training</a> <br>\n\nNow click \"Queue\" and wait a few hours...(Unless you have a nVidia H100 as GPU)<br>\nAt the end of the trainig you will have a few different LoRA's, chose the best one and enjoy it in your next workflow!<br>\n</p>", "markdown", "", "one_dark" ], "color": "#222", "bgcolor": "#000", "shape": 1 } ], "links": [ [ 8, 8, 1, 9, 0, "IMAGE" ], [ 70, 45, 1, 46, 0, "IMAGE" ], [ 90, 60, 1, 61, 0, "IMAGE" ], [ 94, 68, 0, 65, 1, "VALSETTINGS" ], [ 95, 65, 1, 66, 0, "IMAGE" ], [ 111, 79, 0, 78, 2, "STRING" ], [ 112, 8, 1, 78, 0, "IMAGE" ], [ 117, 81, 0, 80, 2, "STRING" ], [ 119, 45, 1, 80, 0, "IMAGE" ], [ 121, 82, 0, 83, 2, "STRING" ], [ 122, 60, 1, 83, 0, "IMAGE" ], [ 124, 84, 0, 85, 2, "STRING" ], [ 126, 65, 1, 85, 0, "IMAGE" ], [ 138, 70, 0, 90, 0, "IMAGE" ], [ 161, 97, 0, 98, 0, "IMAGE" ], [ 162, 4, 0, 97, 0, "NETWORKTRAINER" ], [ 163, 99, 0, 100, 0, "IMAGE" ], [ 164, 44, 0, 99, 0, "NETWORKTRAINER" ], [ 165, 101, 0, 102, 0, "IMAGE" ], [ 166, 59, 0, 101, 0, "NETWORKTRAINER" ], [ 179, 2, 0, 107, 0, "TRAIN_FLUX_MODELS" ], [ 182, 107, 1, 88, 0, "*" ], [ 183, 107, 2, 105, 0, "*" ], [ 185, 108, 0, 109, 0, "JSON" ], [ 195, 119, 0, 117, 0, "IMAGE" ], [ 199, 120, 3, 117, 1, "INT" ], [ 200, 78, 0, 121, 0, "*" ], [ 201, 80, 0, 122, 0, "*" ], [ 202, 123, 0, 119, 0, "IMAGE" ], [ 203, 124, 0, 119, 1, "IMAGE" ], [ 204, 83, 0, 125, 0, "*" ], [ 206, 126, 0, 119, 2, "IMAGE" ], [ 207, 85, 0, 127, 0, "*" ], [ 208, 128, 0, 119, 3, "IMAGE" ], [ 209, 123, 0, 120, 0, "IMAGE" ], [ 210, 117, 0, 129, 0, "IMAGE" ], [ 214, 129, 0, 130, 0, "IMAGE" ], [ 215, 64, 1, 84, 0, "*" ], [ 217, 65, 0, 70, 0, "NETWORKTRAINER" ], [ 218, 4, 0, 14, 0, "NETWORKTRAINER" ], [ 219, 8, 0, 44, 0, "NETWORKTRAINER" ], [ 220, 4, 1, 79, 0, "*" ], [ 221, 14, 0, 8, 0, "NETWORKTRAINER" ], [ 222, 44, 0, 47, 0, "NETWORKTRAINER" ], [ 223, 45, 0, 59, 0, "NETWORKTRAINER" ], [ 224, 59, 0, 62, 0, "NETWORKTRAINER" ], [ 225, 62, 0, 60, 0, "NETWORKTRAINER" ], [ 226, 60, 0, 64, 0, "NETWORKTRAINER" ], [ 227, 47, 0, 45, 0, "NETWORKTRAINER" ], [ 231, 133, 0, 129, 2, "STRING" ], [ 232, 64, 0, 134, 0, "NETWORKTRAINER" ], [ 233, 134, 0, 65, 0, "NETWORKTRAINER" ], [ 234, 59, 1, 82, 0, "*" ], [ 235, 44, 1, 81, 0, "*" ], [ 236, 133, 2, 74, 0, "*" ], [ 242, 40, 0, 8, 1, "VALSETTINGS" ], [ 243, 37, 0, 38, 0, "VALSETTINGS" ], [ 244, 48, 0, 45, 1, "VALSETTINGS" ], [ 245, 63, 0, 60, 1, "VALSETTINGS" ], [ 249, 111, 0, 137, 0, "*" ], [ 250, 137, 0, 112, 0, "JSON" ], [ 252, 109, 0, 138, 0, "*" ], [ 253, 138, 0, 111, 0, "JSON" ], [ 256, 112, 0, 139, 0, "*" ], [ 261, 95, 0, 107, 2, "ARGS" ], [ 262, 146, 0, 107, 5, "STRING" ], [ 265, 150, 0, 107, 8, "INT" ], [ 266, 150, 0, 151, 0, "INT,FLOAT" ], [ 271, 151, 0, 159, 0, "*" ], [ 272, 160, 0, 4, 1, "INT" ], [ 273, 161, 0, 44, 1, "INT" ], [ 274, 163, 0, 64, 1, "INT" ], [ 275, 162, 0, 59, 1, "INT" ], [ 280, 139, 0, 107, 1, "JSON" ], [ 281, 65, 0, 133, 0, "NETWORKTRAINER" ], [ 282, 107, 0, 4, 0, "NETWORKTRAINER" ] ], "groups": [ { "id": 1, "title": "LoRA Training 01", "bounding": [ 1342.6004638671875, -496.7998046875, 1140, 1549 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 2, "title": "FLUX model - Optimizer select - Training and Validate settings", "bounding": [ 2934.51318359375, -1557.326416015625, 1236.7333984375, 985.2694702148438 ], "color": "#88A", "font_size": 24, "flags": {} }, { "id": 3, "title": "LoRA Training 02", "bounding": [ 2513.400146484375, -494.99981689453125, 1074, 1543 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 4, "title": "LoRA Training 03", "bounding": [ 3620.3994140625, -491.90899658203125, 1094, 1538 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 5, "title": "LoRA Training 04", "bounding": [ 4749.2724609375, -491.1453857421875, 1118, 1541 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 6, "title": "Dataset", "bounding": [ 1510.4984130859375, -1563.4027099609375, 1389, 545 ], "color": "#8A8", "font_size": 24, "flags": {} }, { "id": 8, "title": "End of LoRA Training", "bounding": [ 4207.74853515625, -1554.98974609375, 1312.7633056640625, 983.0827026367188 ], "color": "#ff8080", "font_size": 24, "flags": {} }, { "id": 9, "title": "Args check", "bounding": [ 2959.12939453125, 1105.78369140625, 1619.8109130859375, 598.0638427734375 ], "color": "#3f789e", "font_size": 24, "flags": {} } ], "config": {}, "extra": { "ds": { "scale": 0.8052550000000023, "offset": [ -1127.612924485317, 1344.5964286592516 ] }, "node_versions": { "comfyui-fluxtrainer": "1.0.2", "comfy-core": "0.3.12", "comfyui-kjnodes": "1.0.5", "comfyui_essentials": "1.1.0", "comfyui-crystools": "1.21.0", "rgthree-comfy": "5d771b8b56a343c24a26e8cea1f0c87c3d58102f" }, "ue_links": [] }, "version": 0.4}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942{ "last_node_id": 227, "last_link_id": 385, "nodes": [ { "id": 114, "type": "PulidFluxModelLoader", "pos": [ -719.9072875976562, 1741.8153076171875 ], "size": [ 299.536376953125, 58 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "name": "PULIDFLUX", "type": "PULIDFLUX", "links": [ 302 ], "slot_index": 0, "shape": 3, "label": "PULIDFLUX" } ], "properties": { "Node name for S&R": "PulidFluxModelLoader" }, "widgets_values": [ "pulid_flux_v0.9.0.safetensors" ], "color": "#223", "bgcolor": "#335" }, { "id": 119, "type": "PulidFluxEvaClipLoader", "pos": [ -684.4613647460938, 1853.76318359375 ], "size": [ 218.39999389648438, 26 ], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "name": "EVA_CLIP", "type": "EVA_CLIP", "links": [ 303 ], "slot_index": 0, "shape": 3, "label": "EVA_CLIP" } ], "properties": { "Node name for S&R": "PulidFluxEvaClipLoader" }, "widgets_values": [], "color": "#223", "bgcolor": "#335" }, { "id": 124, "type": "PulidFluxInsightFaceLoader", "pos": [ -707.3450927734375, 1930.249755859375 ], "size": [ 243.60000610351562, 58 ], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [ { "name": "FACEANALYSIS", "type": "FACEANALYSIS", "links": [ 304 ], "slot_index": 0, "shape": 3, "label": "FACEANALYSIS" } ], "properties": { "Node name for S&R": "PulidFluxInsightFaceLoader" }, "widgets_values": [ "CUDA" ], "color": "#223", "bgcolor": "#335" }, { "id": 194, "type": "BasicGuider", "pos": [ 894.2489013671875, 1071.256591796875 ], "size": [ 241.79998779296875, 46 ], "flags": { "collapsed": true }, "order": 32, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 335 }, { "name": "conditioning", "type": "CONDITIONING", "link": 344 } ], "outputs": [ { "name": "GUIDER", "type": "GUIDER", "links": [ 333 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "BasicGuider" }, "widgets_values": [] }, { "id": 195, "type": "BasicScheduler", "pos": [ 884.923095703125, 1077.3541259765625 ], "size": [ 315, 106 ], "flags": { "collapsed": true }, "order": 29, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 341 }, { "name": "scheduler", "type": "COMBO", "link": 360, "widget": { "name": "scheduler" } }, { "name": "steps", "type": "INT", "link": 363, "widget": { "name": "steps" } }, { "name": "denoise", "type": "FLOAT", "link": 364, "widget": { "name": "denoise" } } ], "outputs": [ { "name": "SIGMAS", "type": "SIGMAS", "links": [ 342 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "BasicScheduler" }, "widgets_values": [ "beta", 20, 0.6 ] }, { "id": 213, "type": "ReroutePrimitive|pysssss", "pos": [ 863.6495361328125, 1037.9287109375 ], "size": [ 210, 58 ], "flags": {}, "order": 20, "mode": 0, "inputs": [ { "name": "value", "type": "*", "link": 361, "label": " " } ], "outputs": [ { "name": "*", "type": "*", "links": [ 360 ], "label": "COMBO" } ], "properties": { "Node name for S&R": "ReroutePrimitive|pysssss" } }, { "id": 203, "type": "KSamplerSelect", "pos": [ 902.837158203125, 1085.3131103515625 ], "size": [ 315, 58 ], "flags": { "collapsed": true }, "order": 19, "mode": 0, "inputs": [ { "name": "sampler_name", "type": "COMBO", "link": 362, "widget": { "name": "sampler_name" } } ], "outputs": [ { "name": "SAMPLER", "type": "SAMPLER", "links": [ 352 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "KSamplerSelect" }, "widgets_values": [ "euler" ] }, { "id": 202, "type": "RandomNoise", "pos": [ 911.2757568359375, 1087.4752197265625 ], "size": [ 315, 82 ], "flags": { "collapsed": true }, "order": 21, "mode": 0, "inputs": [ { "name": "noise_seed", "type": "INT", "link": 350, "widget": { "name": "noise_seed" } } ], "outputs": [ { "name": "NOISE", "type": "NOISE", "links": [ 351 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "RandomNoise" }, "widgets_values": [ 461137480634070, "randomize" ] }, { "id": 206, "type": "VAEEncode", "pos": [ 111.96389770507812, 807.66455078125 ], "size": [ 210, 46 ], "flags": { "collapsed": true }, "order": 22, "mode": 0, "inputs": [ { "name": "pixels", "type": "IMAGE", "link": 355 }, { "name": "vae", "type": "VAE", "link": 357 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 365 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "VAEEncode" }, "widgets_values": [] }, { "id": 217, "type": "Joy_caption_two_load", "pos": [ 52.835880279541016, 742.21484375 ], "size": [ 315, 58 ], "flags": { "collapsed": true }, "order": 3, "mode": 0, "inputs": [], "outputs": [ { "name": "JoyTwoPipeline", "type": "JoyTwoPipeline", "links": [ 372 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "Joy_caption_two_load" }, "widgets_values": [ "unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit" ] }, { "id": 218, "type": "Joy_caption_two", "pos": [ 78.19462585449219, 779.7717895507812 ], "size": [ 315, 126 ], "flags": { "collapsed": true }, "order": 23, "mode": 0, "inputs": [ { "name": "joy_two_pipeline", "type": "JoyTwoPipeline", "link": 372 }, { "name": "image", "type": "IMAGE", "link": 373 } ], "outputs": [ { "name": "STRING", "type": "STRING", "links": [ 374 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "Joy_caption_two" }, "widgets_values": [ "Descriptive", "long", false ] }, { "id": 197, "type": "UNETLoader", "pos": [ -723.5252685546875, 1332.3890380859375 ], "size": [ 315, 82 ], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 382 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "UNETLoader" }, "widgets_values": [ "flux1-dev.sft", "default" ], "color": "#223", "bgcolor": "#335" }, { "id": 215, "type": "Switch any [Crystools]", "pos": [ 379.2525939941406, 999.701171875 ], "size": [ 315, 78 ], "flags": {}, "order": 25, "mode": 0, "inputs": [ { "name": "on_true", "type": "*", "link": 365 }, { "name": "on_false", "type": "*", "link": 384 } ], "outputs": [ { "name": "*", "type": "*", "links": [ 367 ], "slot_index": 0 } ], "title": "img2img = true / txt2img = false", "properties": { "Node name for S&R": "Switch any [Crystools]" }, "widgets_values": [ true ], "color": "#432", "bgcolor": "#653" }, { "id": 219, "type": "ShowText|pysssss", "pos": [ -56.43059158325195, 974.7340698242188 ], "size": [ 380.27020263671875, 243.68934631347656 ], "flags": {}, "order": 26, "mode": 0, "inputs": [ { "name": "text", "type": "STRING", "link": 374, "widget": { "name": "text" } } ], "outputs": [ { "name": "STRING", "type": "STRING", "links": [ 378 ], "slot_index": 0, "shape": 6 } ], "title": "Img2img prompt from image above", "properties": { "Node name for S&R": "ShowText|pysssss" }, "widgets_values": [ "", "A photograph of a slender, attractive woman with fair skin and shoulder-length, wavy auburn hair. She is wearing a fitted, light grey V-neck t-shirt and high-waisted blue jeans with a brown belt. The background features a narrow, urban street lined with trees and historic buildings, leading to a distant, iconic skyline with a prominent skyscraper. The lighting suggests early evening, casting a warm glow. The woman stands confidently in the foreground, with a slight smile, exuding a casual yet stylish vibe." ], "color": "#233", "bgcolor": "#355" }, { "id": 222, "type": "UnetLoaderGGUF", "pos": [ -725.252685546875, 1469.19970703125 ], "size": [ 315, 58 ], "flags": {}, "order": 5, "mode": 0, "inputs": [], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 381 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "UnetLoaderGGUF" }, "widgets_values": [ "flux1-dev-Q8_0.gguf" ], "color": "#223", "bgcolor": "#335" }, { "id": 108, "type": "VAELoader", "pos": [ -714.2196044921875, 1576.2841796875 ], "size": [ 298.2596130371094, 58 ], "flags": {}, "order": 6, "mode": 0, "inputs": [], "outputs": [ { "name": "VAE", "type": "VAE", "links": [ 348, 357 ], "slot_index": 0, "shape": 3, "label": "VAE" } ], "properties": { "Node name for S&R": "VAELoader" }, "widgets_values": [ "ae.safetensors" ], "color": "#223", "bgcolor": "#335" }, { "id": 123, "type": "DualCLIPLoader", "pos": [ -381.4864196777344, 1491.836669921875 ], "size": [ 311.31231689453125, 126.00000762939453 ], "flags": {}, "order": 7, "mode": 0, "inputs": [], "outputs": [ { "name": "CLIP", "type": "CLIP", "links": [ 368 ], "slot_index": 0, "shape": 3, "label": "CLIP" } ], "properties": { "Node name for S&R": "DualCLIPLoader" }, "widgets_values": [ "t5xxl_fp16.safetensors", "clip_l.safetensors", "flux", "default" ], "color": "#223", "bgcolor": "#335" }, { "id": 178, "type": "ApplyPulidFlux", "pos": [ -384.6868896484375, 1748.428955078125 ], "size": [ 315, 206 ], "flags": {}, "order": 27, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 371, "label": "model" }, { "name": "pulid_flux", "type": "PULIDFLUX", "link": 302, "label": "pulid_flux" }, { "name": "eva_clip", "type": "EVA_CLIP", "link": 303, "label": "eva_clip" }, { "name": "face_analysis", "type": "FACEANALYSIS", "link": 304, "label": "face_analysis" }, { "name": "image", "type": "IMAGE", "link": 346, "label": "image" }, { "name": "attn_mask", "type": "MASK", "link": null, "shape": 7, "label": "attn_mask" } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 335, 341 ], "slot_index": 0, "label": "MODEL" } ], "properties": { "Node name for S&R": "ApplyPulidFlux" }, "widgets_values": [ 1, 0, 1 ], "color": "#223", "bgcolor": "#335" }, { "id": 225, "type": "SDXL Empty Latent Image (rgthree)", "pos": [ 734.353515625, 1633.9722900390625 ], "size": [ 310.79998779296875, 146 ], "flags": {}, "order": 8, "mode": 0, "inputs": [], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 384 ] }, { "name": "CLIP_WIDTH", "type": "INT", "links": null }, { "name": "CLIP_HEIGHT", "type": "INT", "links": null } ], "title": "Empty Latent Image ( width x height )", "properties": { "Node name for S&R": "SDXL Empty Latent Image (rgthree)" }, "widgets_values": [ "1024 x 1024 (square)", 1, 1 ], "color": "#232", "bgcolor": "#353" }, { "id": 210, "type": "Sampler Selector (Image Saver)", "pos": [ 383.9654846191406, 1456.259033203125 ], "size": [ 308.7879333496094, 78 ], "flags": {}, "order": 9, "mode": 0, "inputs": [], "outputs": [ { "name": "sampler", "type": "COMBO", "links": [ 362 ], "slot_index": 0 }, { "name": "sampler_name", "type": "STRING", "links": null, "slot_index": 1 } ], "title": "Sampler Selector", "properties": { "Node name for S&R": "Sampler Selector (Image Saver)" }, "widgets_values": [ "euler" ], "color": "#232", "bgcolor": "#353" }, { "id": 209, "type": "Scheduler Selector (Image Saver)", "pos": [ 390.2576904296875, 1581.4932861328125 ], "size": [ 306.0369873046875, 81.99298858642578 ], "flags": {}, "order": 10, "mode": 0, "inputs": [], "outputs": [ { "name": "scheduler", "type": "COMBO", "links": [ 361 ], "slot_index": 0 }, { "name": "scheduler_name", "type": "STRING", "links": null, "slot_index": 1 } ], "title": "Scheduler Selector", "properties": { "Node name for S&R": "Scheduler Selector (Image Saver)" }, "widgets_values": [ "beta" ], "color": "#232", "bgcolor": "#353" }, { "id": 211, "type": "Primitive float [Crystools]", "pos": [ 390.6212158203125, 1713.8682861328125 ], "size": [ 310.79998779296875, 58 ], "flags": {}, "order": 11, "mode": 0, "inputs": [], "outputs": [ { "name": "float", "type": "FLOAT", "links": [ 364 ], "slot_index": 0 } ], "title": "Denoise (default 1.00 - img2img 0.60)", "properties": { "Node name for S&R": "Primitive float [Crystools]" }, "widgets_values": [ 0.6 ], "color": "#232", "bgcolor": "#353" }, { "id": 198, "type": "LoadImage", "pos": [ -732.966796875, 567.161376953125 ], "size": [ 638.8821411132812, 644.3048706054688 ], "flags": {}, "order": 12, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 346 ], "slot_index": 0 }, { "name": "MASK", "type": "MASK", "links": null } ], "title": "Load face image for PuLID", "properties": { "Node name for S&R": "LoadImage" }, "widgets_values": [ "FaceDetailer_00005_.png", "image" ], "color": "#232", "bgcolor": "#353" }, { "id": 196, "type": "FluxGuidance", "pos": [ 378.566650390625, 1349.9976806640625 ], "size": [ 317.4000244140625, 58 ], "flags": {}, "order": 31, "mode": 0, "inputs": [ { "name": "conditioning", "type": "CONDITIONING", "link": 354 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 344 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "FluxGuidance" }, "widgets_values": [ 2.5 ], "color": "#232", "bgcolor": "#353" }, { "id": 204, "type": "CLIPTextEncode", "pos": [ 102.55099487304688, 1423.3033447265625 ], "size": [ 400, 200 ], "flags": { "collapsed": true }, "order": 30, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 369 }, { "name": "text", "type": "STRING", "link": 379, "widget": { "name": "text" } } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 354 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "A hyper-realistic digital painting depicts a beautiful Asian woman with long, wavy black hair, holding a large, white snake. She has fair skin, delicate features, and wears a red, off-shoulder dress with floral patterns. The background is softly blurred, featuring large, pink peonies, creating a dreamy, ethereal atmosphere. The woman's expression is serene, and the snake's scales are textured, adding realism. The artwork combines elements of realism and fantasy, with a focus on intricate details and soft lighting." ], "color": "#232", "bgcolor": "#353" }, { "id": 193, "type": "SamplerCustomAdvanced", "pos": [ 771.4756469726562, 1012.0790405273438 ], "size": [ 355.20001220703125, 106 ], "flags": {}, "order": 33, "mode": 0, "inputs": [ { "name": "noise", "type": "NOISE", "link": 351 }, { "name": "guider", "type": "GUIDER", "link": 333 }, { "name": "sampler", "type": "SAMPLER", "link": 352 }, { "name": "sigmas", "type": "SIGMAS", "link": 342 }, { "name": "latent_image", "type": "LATENT", "link": 367 } ], "outputs": [ { "name": "output", "type": "LATENT", "links": [ 347 ], "slot_index": 0 }, { "name": "denoised_output", "type": "LATENT", "links": null } ], "properties": { "Node name for S&R": "SamplerCustomAdvanced" }, "widgets_values": [], "color": "#322", "bgcolor": "#533" }, { "id": 199, "type": "VAEDecode", "pos": [ 841.1201171875, 1176.1390380859375 ], "size": [ 210, 46 ], "flags": {}, "order": 34, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 347 }, { "name": "vae", "type": "VAE", "link": 348 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 385 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "VAEDecode" }, "widgets_values": [], "color": "#322", "bgcolor": "#533" }, { "id": 221, "type": "Switch any [Crystools]", "pos": [ 376.6815490722656, 1129.131591796875 ], "size": [ 327.6000061035156, 78 ], "flags": {}, "order": 28, "mode": 0, "inputs": [ { "name": "on_true", "type": "*", "link": 378 }, { "name": "on_false", "type": "*", "link": 377 } ], "outputs": [ { "name": "*", "type": "*", "links": [ 379 ], "slot_index": 0 } ], "title": "Prompt img2img = true / txt2img = false", "properties": { "Node name for S&R": "Switch any [Crystools]" }, "widgets_values": [ true ], "color": "#432", "bgcolor": "#653" }, { "id": 220, "type": "CR Prompt Text", "pos": [ 340.5408020019531, 612.5630493164062 ], "size": [ 345, 326.0000305175781 ], "flags": {}, "order": 13, "mode": 0, "inputs": [], "outputs": [ { "name": "prompt", "type": "STRING", "links": [ 377 ], "slot_index": 0 }, { "name": "show_help", "type": "STRING", "links": null } ], "title": "Text prompt", "properties": { "Node name for S&R": "CR Prompt Text" }, "widgets_values": [ "This is a highly detailed, professional photograph " ], "color": "#233", "bgcolor": "#355" }, { "id": 216, "type": "Power Lora Loader (rgthree)", "pos": [ 22.36603355407715, 1351.6182861328125 ], "size": [ 351.46160888671875, 417.5493469238281 ], "flags": {}, "order": 24, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 383, "dir": 3 }, { "name": "clip", "type": "CLIP", "link": 368, "dir": 3 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 371 ], "slot_index": 0, "shape": 3, "dir": 4 }, { "name": "CLIP", "type": "CLIP", "links": [ 369 ], "slot_index": 1, "shape": 3, "dir": 4 } ], "properties": { "Show Strengths": "Single Strength" }, "widgets_values": [ null, { "type": "PowerLoraLoaderHeaderWidget" }, null, "" ], "color": "#232", "bgcolor": "#353" }, { "id": 223, "type": "Switch any [Crystools]", "pos": [ -384.5315246582031, 1362.0322265625 ], "size": [ 315, 78 ], "flags": {}, "order": 18, "mode": 0, "inputs": [ { "name": "on_true", "type": "*", "link": 382 }, { "name": "on_false", "type": "*", "link": 381 } ], "outputs": [ { "name": "*", "type": "*", "links": [ 383 ], "slot_index": 0 } ], "title": "Use Flux1.dev = true / GGUF = false", "properties": { "Node name for S&R": "Switch any [Crystools]" }, "widgets_values": [ false ], "color": "#432", "bgcolor": "#653" }, { "id": 201, "type": "Seed (rgthree)", "pos": [ 726.2456665039062, 1451.122802734375 ], "size": [ 307.27276611328125, 140 ], "flags": {}, "order": 14, "mode": 0, "inputs": [], "outputs": [ { "name": "SEED", "type": "INT", "links": [ 350 ], "slot_index": 0, "shape": 3, "dir": 4 } ], "properties": {}, "widgets_values": [ -1, null, null, null ], "color": "#232", "bgcolor": "#353" }, { "id": 226, "type": "MarkdownNote", "pos": [ 726.087158203125, 572.8058471679688 ], "size": [ 441.62567138671875, 349.4283142089844 ], "flags": {}, "order": 15, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "# PuLID for FLUX\n\n## 1) Upload the face image you want to use\n\n## 2) Set the Prompt module \n> a) Select if you want to use img2img or txt2img. \n> b) Select if you want the auto-prompt from image or text prompt. \n\n## 3) Select Loras and generation settings\n> **Warning:** if you use img2img you need to set Denoise at around 0.60. \n> If you use txt2img Denoise must be set at 1.00\n\n\n## 4) Press \"Queue\" to run the workflow\n\n### You can use both standard FLUX1.dev model or GGUF model. GGUF (Q8 or Q6) is suggested if you have 16Gb Vram or less. Select the one you want to use in the \"Load FLUX model\" group. \n### Yellow nodes are the switches of the workflow.\n\nPuLID FLUX 2 link:\nhttps://github.com/lldacing/ComfyUI_PuLID_Flux_ll/\n" ], "color": "#432", "bgcolor": "#653" }, { "id": 214, "type": "Primitive integer [Crystools]", "pos": [ 718.5670166015625, 1350.17578125 ], "size": [ 315, 58 ], "flags": {}, "order": 16, "mode": 0, "inputs": [], "outputs": [ { "name": "int", "type": "INT", "links": [ 363 ], "slot_index": 0 } ], "title": "Steps", "properties": { "Node name for S&R": "Primitive integer [Crystools]" }, "widgets_values": [ 30 ], "color": "#232", "bgcolor": "#353" }, { "id": 227, "type": "SaveImage", "pos": [ 1156.8311767578125, 971.218994140625 ], "size": [ 994.3382568359375, 813.502685546875 ], "flags": {}, "order": 35, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 385 } ], "outputs": [], "properties": {}, "widgets_values": [ "%date:yyyy-MM-dd%/FLUX" ], "color": "#222", "bgcolor": "#000" }, { "id": 205, "type": "LoadImage", "pos": [ -58.70946502685547, 611.7521362304688 ], "size": [ 385.8624572753906, 326.40093994140625 ], "flags": {}, "order": 17, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 355, 373 ], "slot_index": 0 }, { "name": "MASK", "type": "MASK", "links": null } ], "title": "Load Image for img2img", "properties": { "Node name for S&R": "LoadImage" }, "widgets_values": [ "ComfyUI_temp_cevby_00008_.png", "image" ], "color": "#233", "bgcolor": "#355" } ], "links": [ [ 302, 114, 0, 178, 1, "PULIDFLUX" ], [ 303, 119, 0, 178, 2, "EVA_CLIP" ], [ 304, 124, 0, 178, 3, "FACEANALYSIS" ], [ 333, 194, 0, 193, 1, "GUIDER" ], [ 335, 178, 0, 194, 0, "MODEL" ], [ 341, 178, 0, 195, 0, "MODEL" ], [ 342, 195, 0, 193, 3, "SIGMAS" ], [ 344, 196, 0, 194, 1, "CONDITIONING" ], [ 346, 198, 0, 178, 4, "IMAGE" ], [ 347, 193, 0, 199, 0, "LATENT" ], [ 348, 108, 0, 199, 1, "VAE" ], [ 350, 201, 0, 202, 0, "INT" ], [ 351, 202, 0, 193, 0, "NOISE" ], [ 352, 203, 0, 193, 2, "SAMPLER" ], [ 354, 204, 0, 196, 0, "CONDITIONING" ], [ 355, 205, 0, 206, 0, "IMAGE" ], [ 357, 108, 0, 206, 1, "VAE" ], [ 360, 213, 0, 195, 1, "COMBO" ], [ 361, 209, 0, 213, 0, "*" ], [ 362, 210, 0, 203, 0, "COMBO" ], [ 363, 214, 0, 195, 2, "INT" ], [ 364, 211, 0, 195, 3, "FLOAT" ], [ 365, 206, 0, 215, 0, "*" ], [ 367, 215, 0, 193, 4, "LATENT" ], [ 368, 123, 0, 216, 1, "CLIP" ], [ 369, 216, 1, 204, 0, "CLIP" ], [ 371, 216, 0, 178, 0, "MODEL" ], [ 372, 217, 0, 218, 0, "JoyTwoPipeline" ], [ 373, 205, 0, 218, 1, "IMAGE" ], [ 374, 218, 0, 219, 0, "STRING" ], [ 377, 220, 0, 221, 1, "*" ], [ 378, 219, 0, 221, 0, "*" ], [ 379, 221, 0, 204, 1, "STRING" ], [ 381, 222, 0, 223, 1, "*" ], [ 382, 197, 0, 223, 0, "*" ], [ 383, 223, 0, 216, 0, "MODEL" ], [ 384, 225, 0, 215, 1, "*" ], [ 385, 199, 0, 227, 0, "IMAGE" ] ], "groups": [ { "id": 1, "title": "Prompt module", "bounding": [ -68.70948791503906, 538.1521606445312, 772.962158203125, 690.2711791992188 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 2, "title": "Load FLUX model - Standard/GGUF switch", "bounding": [ -735.252685546875, 1258.7890625, 675.72119140625, 385.4951477050781 ], "color": "#88A", "font_size": 24, "flags": {} }, { "id": 3, "title": "Load PuLID Flux model", "bounding": [ -729.9072875976562, 1668.21533203125, 673.2203979492188, 327.034423828125 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 4, "title": "Workflow Settings", "bounding": [ 13.754240036010742, 1271.4925537109375, 1040.7093505859375, 520.1148681640625 ], "color": "#8A8", "font_size": 24, "flags": {} }, { "id": 5, "title": "Image generation", "bounding": [ 761.4756469726562, 938.47900390625, 375.199951171875, 293.6599426269531 ], "color": "#A88", "font_size": 24, "flags": {} } ], "config": {}, "extra": { "ds": { "scale": 0.8140274938684012, "offset": [ 733.6381173835557, -471.6407262462905 ] }, "workspace_info": { "id": "wj8ZpCiIPAG2BZFJdw9nf" }, "ue_links": [], "node_versions": { "ComfyUI_PuLID_Flux_ll": "2ab739ac1a4cb6af785c8d8420d6c0ee3e993b7b", "comfy-core": "0.3.12", "comfyui-custom-scripts": "1.0.0", "comfyui_slk_joy_caption_two": "667751cab945bd8e9fb0be4d557d47e36821350a", "comfyui-crystools": "1.21.0", "ComfyUI-GGUF": "5875c52f59baca3a9372d68c43a3775e21846fe0", "rgthree-comfy": "5d771b8b56a343c24a26e8cea1f0c87c3d58102f", "comfyui-image-saver": "1.4.0", "ComfyUI_Comfyroll_CustomNodes": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca" } }, "version": 0.4}workflows/FLUX Try-on v.1.0.jsonAdded+2511
workflows/FaceReplicator_v1.0.jsonAdded
workflows/Flux_Lora_Trainer_v2.0.jsonAdded+4259
workflows/Tenofas_PuLID.v.1.0.jsonAdded+1942