Guest User

ComfyUI U-Net CLIP VAE extractor

a guest
May 10th, 2025
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 24.51 KB | Source Code | 0 0
  1. {
  2.   "id": "5815757a-45b7-4d72-9921-5465ea472666",
  3.   "revision": 0,
  4.   "last_node_id": 64,
  5.   "last_link_id": 41,
  6.   "nodes": [
  7.     {
  8.       "id": 25,
  9.       "type": "PlaySound|pysssss",
  10.       "pos": [
  11.         90,
  12.         1160
  13.       ],
  14.       "size": [
  15.         270,
  16.         106
  17.       ],
  18.       "flags": {},
  19.       "order": 14,
  20.       "mode": 2,
  21.       "inputs": [
  22.         {
  23.           "name": "any",
  24.           "type": "*",
  25.           "link": 30
  26.         }
  27.       ],
  28.       "outputs": [
  29.         {
  30.           "name": "*",
  31.           "shape": 6,
  32.           "type": "*",
  33.           "links": [
  34.             31
  35.           ]
  36.         }
  37.       ],
  38.       "properties": {
  39.         "cnr_id": "comfyui-custom-scripts",
  40.         "ver": "1.2.4",
  41.         "Node name for S&R": "PlaySound|pysssss",
  42.         "widget_ue_connectable": {}
  43.       },
  44.       "widgets_values": [
  45.         "always",
  46.         0.5,
  47.         "notify.mp3"
  48.       ]
  49.     },
  50.     {
  51.       "id": 19,
  52.       "type": "CheckpointLoaderSimple",
  53.       "pos": [
  54.         -360,
  55.         920
  56.       ],
  57.       "size": [
  58.         390,
  59.         110
  60.       ],
  61.       "flags": {},
  62.       "order": 0,
  63.       "mode": 2,
  64.       "inputs": [],
  65.       "outputs": [
  66.         {
  67.           "name": "MODEL",
  68.           "type": "MODEL",
  69.           "links": []
  70.         },
  71.         {
  72.           "name": "CLIP",
  73.           "type": "CLIP",
  74.           "links": [
  75.             27
  76.           ]
  77.         },
  78.         {
  79.           "name": "VAE",
  80.           "type": "VAE",
  81.           "links": null
  82.         }
  83.       ],
  84.       "properties": {
  85.         "cnr_id": "comfy-core",
  86.         "ver": "0.3.31",
  87.         "Node name for S&R": "CheckpointLoaderSimple",
  88.         "widget_ue_connectable": {}
  89.       },
  90.       "widgets_values": [
  91.         "SD15\\photon_v1.safetensors"
  92.       ]
  93.     },
  94.     {
  95.       "id": 23,
  96.       "type": "CLIPSave",
  97.       "pos": [
  98.         430,
  99.         920
  100.       ],
  101.       "size": [
  102.         450,
  103.         110
  104.       ],
  105.       "flags": {
  106.         "collapsed": false
  107.       },
  108.       "order": 17,
  109.       "mode": 2,
  110.       "inputs": [
  111.         {
  112.           "name": "clip",
  113.           "type": "CLIP",
  114.           "link": 35
  115.         }
  116.       ],
  117.       "outputs": [],
  118.       "properties": {
  119.         "cnr_id": "comfy-core",
  120.         "ver": "0.3.31",
  121.         "Node name for S&R": "CLIPSave",
  122.         "widget_ue_connectable": {}
  123.       },
  124.       "widgets_values": [
  125.         ""
  126.       ]
  127.     },
  128.     {
  129.       "id": 17,
  130.       "type": "PlaySound|pysssss",
  131.       "pos": [
  132.         90,
  133.         920
  134.       ],
  135.       "size": [
  136.         270,
  137.         106
  138.       ],
  139.       "flags": {},
  140.       "order": 13,
  141.       "mode": 2,
  142.       "inputs": [
  143.         {
  144.           "name": "any",
  145.           "type": "*",
  146.           "link": 27
  147.         }
  148.       ],
  149.       "outputs": [
  150.         {
  151.           "name": "*",
  152.           "shape": 6,
  153.           "type": "*",
  154.           "links": [
  155.             35
  156.           ]
  157.         }
  158.       ],
  159.       "properties": {
  160.         "cnr_id": "comfyui-custom-scripts",
  161.         "ver": "1.2.4",
  162.         "Node name for S&R": "PlaySound|pysssss",
  163.         "widget_ue_connectable": {}
  164.       },
  165.       "widgets_values": [
  166.         "always",
  167.         0.5,
  168.         "notify.mp3"
  169.       ]
  170.     },
  171.     {
  172.       "id": 26,
  173.       "type": "CheckpointLoaderSimple",
  174.       "pos": [
  175.         -360,
  176.         1160
  177.       ],
  178.       "size": [
  179.         390,
  180.         110
  181.       ],
  182.       "flags": {},
  183.       "order": 1,
  184.       "mode": 2,
  185.       "inputs": [],
  186.       "outputs": [
  187.         {
  188.           "name": "MODEL",
  189.           "type": "MODEL",
  190.           "links": []
  191.         },
  192.         {
  193.           "name": "CLIP",
  194.           "type": "CLIP",
  195.           "links": []
  196.         },
  197.         {
  198.           "name": "VAE",
  199.           "type": "VAE",
  200.           "links": [
  201.             30
  202.           ]
  203.         }
  204.       ],
  205.       "properties": {
  206.         "cnr_id": "comfy-core",
  207.         "ver": "0.3.31",
  208.         "Node name for S&R": "CheckpointLoaderSimple",
  209.         "widget_ue_connectable": {}
  210.       },
  211.       "widgets_values": [
  212.         "SD15\\photon_v1.safetensors"
  213.       ]
  214.     },
  215.     {
  216.       "id": 52,
  217.       "type": "MarkdownNote",
  218.       "pos": [
  219.         -700,
  220.         680
  221.       ],
  222.       "size": [
  223.         310,
  224.         120
  225.       ],
  226.       "flags": {},
  227.       "order": 2,
  228.       "mode": 0,
  229.       "inputs": [],
  230.       "outputs": [],
  231.       "title": "Fast Groups Muter tip (Markdown Note)",
  232.       "properties": {
  233.         "widget_ue_connectable": {}
  234.       },
  235.       "widgets_values": [
  236.         "Run only specific parts of the workflow with the **\"Fast Group Muter\"** node above."
  237.       ],
  238.       "color": "#432",
  239.       "bgcolor": "#653"
  240.     },
  241.     {
  242.       "id": 32,
  243.       "type": "PreviewAny",
  244.       "pos": [
  245.         20,
  246.         750
  247.       ],
  248.       "size": [
  249.         480,
  250.         90
  251.       ],
  252.       "flags": {
  253.         "collapsed": true
  254.       },
  255.       "order": 23,
  256.       "mode": 0,
  257.       "inputs": [
  258.         {
  259.           "name": "source",
  260.           "type": "*",
  261.           "link": 33
  262.         }
  263.       ],
  264.       "outputs": [],
  265.       "title": "preview file name structure (Preview Any)",
  266.       "properties": {
  267.         "cnr_id": "comfy-core",
  268.         "ver": "0.3.31",
  269.         "Node name for S&R": "PreviewAny",
  270.         "widget_ue_connectable": {}
  271.       },
  272.       "widgets_values": []
  273.     },
  274.     {
  275.       "id": 8,
  276.       "type": "WidgetToString",
  277.       "pos": [
  278.         20,
  279.         710
  280.       ],
  281.       "size": [
  282.         390,
  283.         154
  284.       ],
  285.       "flags": {
  286.         "collapsed": true
  287.       },
  288.       "order": 19,
  289.       "mode": 0,
  290.       "inputs": [
  291.         {
  292.           "name": "any_input",
  293.           "shape": 7,
  294.           "type": "*",
  295.           "link": 7
  296.         }
  297.       ],
  298.       "outputs": [
  299.         {
  300.           "name": "STRING",
  301.           "type": "STRING",
  302.           "links": [
  303.             15,
  304.             33
  305.           ]
  306.         }
  307.       ],
  308.       "title": "get model name (Widget To String)",
  309.       "properties": {
  310.         "cnr_id": "comfyui-kjnodes",
  311.         "ver": "1.0.9",
  312.         "Node name for S&R": "WidgetToString",
  313.         "widget_ue_connectable": {}
  314.       },
  315.       "widgets_values": [
  316.         0,
  317.         "",
  318.         true,
  319.         "",
  320.         2
  321.       ]
  322.     },
  323.     {
  324.       "id": 5,
  325.       "type": "CheckpointLoaderSimple",
  326.       "pos": [
  327.         20,
  328.         560
  329.       ],
  330.       "size": [
  331.         480,
  332.         110
  333.       ],
  334.       "flags": {},
  335.       "order": 15,
  336.       "mode": 0,
  337.       "inputs": [
  338.         {
  339.           "name": "ckpt_name",
  340.           "type": "COMBO",
  341.           "widget": {
  342.             "name": "ckpt_name"
  343.           },
  344.           "link": 14
  345.         }
  346.       ],
  347.       "outputs": [
  348.         {
  349.           "name": "MODEL",
  350.           "type": "MODEL",
  351.           "links": [
  352.             7,
  353.             19
  354.           ]
  355.         },
  356.         {
  357.           "name": "CLIP",
  358.           "type": "CLIP",
  359.           "links": null
  360.         },
  361.         {
  362.           "name": "VAE",
  363.           "type": "VAE",
  364.           "links": null
  365.         }
  366.       ],
  367.       "properties": {
  368.         "cnr_id": "comfy-core",
  369.         "ver": "0.3.31",
  370.         "Node name for S&R": "CheckpointLoaderSimple",
  371.         "widget_ue_connectable": {}
  372.       },
  373.       "widgets_values": [
  374.         "SD15\\photon_v1.safetensors"
  375.       ]
  376.     },
  377.     {
  378.       "id": 3,
  379.       "type": "ModelSave",
  380.       "pos": [
  381.         830,
  382.         560
  383.       ],
  384.       "size": [
  385.         460,
  386.         60
  387.       ],
  388.       "flags": {},
  389.       "order": 24,
  390.       "mode": 0,
  391.       "inputs": [
  392.         {
  393.           "name": "model",
  394.           "type": "MODEL",
  395.           "link": 39
  396.         },
  397.         {
  398.           "name": "filename_prefix",
  399.           "type": "STRING",
  400.           "widget": {
  401.             "name": "filename_prefix"
  402.           },
  403.           "link": 38
  404.         }
  405.       ],
  406.       "outputs": [],
  407.       "properties": {
  408.         "cnr_id": "comfy-core",
  409.         "ver": "0.3.31",
  410.         "Node name for S&R": "ModelSave",
  411.         "widget_ue_connectable": {}
  412.       },
  413.       "widgets_values": [
  414.         ""
  415.       ]
  416.     },
  417.     {
  418.       "id": 10,
  419.       "type": "CR Text Replace",
  420.       "pos": [
  421.         20,
  422.         790
  423.       ],
  424.       "size": [
  425.         480,
  426.         198
  427.       ],
  428.       "flags": {
  429.         "collapsed": true
  430.       },
  431.       "order": 22,
  432.       "mode": 0,
  433.       "inputs": [
  434.         {
  435.           "name": "text",
  436.           "type": "STRING",
  437.           "link": 15
  438.         }
  439.       ],
  440.       "outputs": [
  441.         {
  442.           "label": "STRING",
  443.           "name": "STRING",
  444.           "type": "*",
  445.           "links": [
  446.             38
  447.           ]
  448.         },
  449.         {
  450.           "name": "show_help",
  451.           "type": "STRING",
  452.           "links": null
  453.         }
  454.       ],
  455.       "title": "prune checkpoint name (🔤 CR Text Replace)",
  456.       "properties": {
  457.         "cnr_id": "ComfyUI_Comfyroll_CustomNodes",
  458.         "ver": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
  459.         "Node name for S&R": "CR Text Replace",
  460.         "widget_ue_connectable": {}
  461.       },
  462.       "widgets_values": [
  463.         "ckpt_name: ",
  464.         "",
  465.         ".safetensors",
  466.         "",
  467.         "",
  468.         ""
  469.       ]
  470.     },
  471.     {
  472.       "id": 15,
  473.       "type": "PlaySound|pysssss",
  474.       "pos": [
  475.         530,
  476.         560
  477.       ],
  478.       "size": [
  479.         270,
  480.         110
  481.       ],
  482.       "flags": {
  483.         "collapsed": false
  484.       },
  485.       "order": 20,
  486.       "mode": 0,
  487.       "inputs": [
  488.         {
  489.           "name": "any",
  490.           "type": "*",
  491.           "link": 19
  492.         }
  493.       ],
  494.       "outputs": [
  495.         {
  496.           "name": "*",
  497.           "shape": 6,
  498.           "type": "*",
  499.           "links": [
  500.             39
  501.           ]
  502.         }
  503.       ],
  504.       "properties": {
  505.         "cnr_id": "comfyui-custom-scripts",
  506.         "ver": "1.2.4",
  507.         "Node name for S&R": "PlaySound|pysssss",
  508.         "widget_ue_connectable": {}
  509.       },
  510.       "widgets_values": [
  511.         "always",
  512.         0.5,
  513.         "notify.mp3"
  514.       ]
  515.     },
  516.     {
  517.       "id": 36,
  518.       "type": "MarkdownNote",
  519.       "pos": [
  520.         -370,
  521.         0
  522.       ],
  523.       "size": [
  524.         460,
  525.         460
  526.       ],
  527.       "flags": {
  528.         "collapsed": false
  529.       },
  530.       "order": 3,
  531.       "mode": 0,
  532.       "inputs": [],
  533.       "outputs": [],
  534.       "title": "Custom node requirements (Markdown Note)",
  535.       "properties": {
  536.         "widget_ue_connectable": {}
  537.       },
  538.       "widgets_values": [
  539.         "# Required Custom Nodes\nOnce you open the workflow, you may get a message warning you of missing nodes. You can install them from the ComfyUI Manager or from the links below:\n\n### 1. rgthree:<br> <https://github.com/rgthree/rgthree-comfy></p>\n### 2.ComfyUI-Custom-Scripts:<br> <https://github.com/pythongosssss/ComfyUI-Custom-Scripts>\n### 3. ComfyUI_Comfyroll_CustomNodes:<br> <https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes>\n"
  540.       ],
  541.       "color": "#432",
  542.       "bgcolor": "#653"
  543.     },
  544.     {
  545.       "id": 13,
  546.       "type": "PrimitiveNode",
  547.       "pos": [
  548.         -360,
  549.         560
  550.       ],
  551.       "size": [
  552.         350,
  553.         110
  554.       ],
  555.       "flags": {},
  556.       "order": 4,
  557.       "mode": 0,
  558.       "inputs": [],
  559.       "outputs": [
  560.         {
  561.           "name": "COMBO",
  562.           "type": "COMBO",
  563.           "widget": {
  564.             "name": "ckpt_name"
  565.           },
  566.           "links": [
  567.             14
  568.           ]
  569.         }
  570.       ],
  571.       "title": "checkpoint selector (Primitive)",
  572.       "properties": {
  573.         "Run widget replace on values": false,
  574.         "widget_ue_connectable": {}
  575.       },
  576.       "widgets_values": [
  577.         "SD15\\photon_v1.safetensors",
  578.         "fixed",
  579.         ""
  580.       ]
  581.     },
  582.     {
  583.       "id": 27,
  584.       "type": "VAESave",
  585.       "pos": [
  586.         430,
  587.         1160
  588.       ],
  589.       "size": [
  590.         450,
  591.         110
  592.       ],
  593.       "flags": {
  594.         "collapsed": false
  595.       },
  596.       "order": 18,
  597.       "mode": 2,
  598.       "inputs": [
  599.         {
  600.           "name": "vae",
  601.           "type": "VAE",
  602.           "link": 31
  603.         }
  604.       ],
  605.       "outputs": [],
  606.       "properties": {
  607.         "cnr_id": "comfy-core",
  608.         "ver": "0.3.31",
  609.         "Node name for S&R": "VAESave",
  610.         "widget_ue_connectable": {}
  611.       },
  612.       "widgets_values": [
  613.         "VAE_SD15"
  614.       ]
  615.     },
  616.     {
  617.       "id": 61,
  618.       "type": "PlaySound|pysssss",
  619.       "pos": [
  620.         90,
  621.         1370
  622.       ],
  623.       "size": [
  624.         270,
  625.         106
  626.       ],
  627.       "flags": {},
  628.       "order": 16,
  629.       "mode": 2,
  630.       "inputs": [
  631.         {
  632.           "name": "any",
  633.           "type": "*",
  634.           "link": 40
  635.         }
  636.       ],
  637.       "outputs": [
  638.         {
  639.           "name": "*",
  640.           "shape": 6,
  641.           "type": "*",
  642.           "links": [
  643.             41
  644.           ]
  645.         }
  646.       ],
  647.       "properties": {
  648.         "cnr_id": "comfyui-custom-scripts",
  649.         "ver": "1.2.4",
  650.         "Node name for S&R": "PlaySound|pysssss",
  651.         "widget_ue_connectable": {}
  652.       },
  653.       "widgets_values": [
  654.         "always",
  655.         0.5,
  656.         "notify.mp3"
  657.       ]
  658.     },
  659.     {
  660.       "id": 62,
  661.       "type": "CheckpointLoaderSimple",
  662.       "pos": [
  663.         -360,
  664.         1370
  665.       ],
  666.       "size": [
  667.         390,
  668.         110
  669.       ],
  670.       "flags": {},
  671.       "order": 5,
  672.       "mode": 2,
  673.       "inputs": [],
  674.       "outputs": [
  675.         {
  676.           "name": "MODEL",
  677.           "type": "MODEL",
  678.           "links": []
  679.         },
  680.         {
  681.           "name": "CLIP",
  682.           "type": "CLIP",
  683.           "links": []
  684.         },
  685.         {
  686.           "name": "VAE",
  687.           "type": "VAE",
  688.           "links": [
  689.             40
  690.           ]
  691.         }
  692.       ],
  693.       "properties": {
  694.         "cnr_id": "comfy-core",
  695.         "ver": "0.3.31",
  696.         "Node name for S&R": "CheckpointLoaderSimple",
  697.         "widget_ue_connectable": {}
  698.       },
  699.       "widgets_values": [
  700.         "SD15\\photon_v1.safetensors"
  701.       ]
  702.     },
  703.     {
  704.       "id": 63,
  705.       "type": "VAESave",
  706.       "pos": [
  707.         430,
  708.         1370
  709.       ],
  710.       "size": [
  711.         450,
  712.         110
  713.       ],
  714.       "flags": {
  715.         "collapsed": false
  716.       },
  717.       "order": 21,
  718.       "mode": 2,
  719.       "inputs": [
  720.         {
  721.           "name": "vae",
  722.           "type": "VAE",
  723.           "link": 41
  724.         }
  725.       ],
  726.       "outputs": [],
  727.       "properties": {
  728.         "cnr_id": "comfy-core",
  729.         "ver": "0.3.31",
  730.         "Node name for S&R": "VAESave",
  731.         "widget_ue_connectable": {}
  732.       },
  733.       "widgets_values": [
  734.         "VAE_SDXL"
  735.       ]
  736.     },
  737.     {
  738.       "id": 54,
  739.       "type": "MarkdownNote",
  740.       "pos": [
  741.         -700,
  742.         880
  743.       ],
  744.       "size": [
  745.         310,
  746.         160
  747.       ],
  748.       "flags": {},
  749.       "order": 6,
  750.       "mode": 0,
  751.       "inputs": [],
  752.       "outputs": [],
  753.       "title": "CLIP Extractor tip (Markdown Note)",
  754.       "properties": {
  755.         "widget_ue_connectable": {}
  756.       },
  757.       "widgets_values": [
  758.         "Unmute this group with the **\"Fast Groups Muter\"** node to extract the CLIPs only."
  759.       ],
  760.       "color": "#432",
  761.       "bgcolor": "#653"
  762.     },
  763.     {
  764.       "id": 31,
  765.       "type": "Fast Groups Muter (rgthree)",
  766.       "pos": [
  767.         -700,
  768.         520
  769.       ],
  770.       "size": [
  771.         310,
  772.         154
  773.       ],
  774.       "flags": {},
  775.       "order": 7,
  776.       "mode": 0,
  777.       "inputs": [],
  778.       "outputs": [
  779.         {
  780.           "name": "OPT_CONNECTION",
  781.           "type": "*",
  782.           "links": null
  783.         }
  784.       ],
  785.       "properties": {
  786.         "matchColors": "",
  787.         "matchTitle": "",
  788.         "showNav": true,
  789.         "sort": "position",
  790.         "customSortAlphabet": "",
  791.         "toggleRestriction": "default",
  792.         "widget_ue_connectable": {}
  793.       }
  794.     },
  795.     {
  796.       "id": 64,
  797.       "type": "MarkdownNote",
  798.       "pos": [
  799.         -700,
  800.         1330
  801.       ],
  802.       "size": [
  803.         310,
  804.         160
  805.       ],
  806.       "flags": {},
  807.       "order": 8,
  808.       "mode": 0,
  809.       "inputs": [],
  810.       "outputs": [],
  811.       "title": "VAE Extractor tip  (Markdown Note)",
  812.       "properties": {
  813.         "widget_ue_connectable": {}
  814.       },
  815.       "widgets_values": [
  816.         "Unmute this group with the **\"Fast Groups Muter\"** node to extract an SDXL VAE only."
  817.       ],
  818.       "color": "#432",
  819.       "bgcolor": "#653"
  820.     },
  821.     {
  822.       "id": 55,
  823.       "type": "MarkdownNote",
  824.       "pos": [
  825.         -700,
  826.         1120
  827.       ],
  828.       "size": [
  829.         310,
  830.         160
  831.       ],
  832.       "flags": {},
  833.       "order": 9,
  834.       "mode": 0,
  835.       "inputs": [],
  836.       "outputs": [],
  837.       "title": "VAE Extractor tip  (Markdown Note)",
  838.       "properties": {
  839.         "widget_ue_connectable": {}
  840.       },
  841.       "widgets_values": [
  842.         "Unmute this group with the **\"Fast Groups Muter\"** node to extract an SD1.5 VAE only."
  843.       ],
  844.       "color": "#432",
  845.       "bgcolor": "#653"
  846.     },
  847.     {
  848.       "id": 38,
  849.       "type": "MarkdownNote",
  850.       "pos": [
  851.         110,
  852.         0
  853.       ],
  854.       "size": [
  855.         460,
  856.         460
  857.       ],
  858.       "flags": {
  859.         "collapsed": false
  860.       },
  861.       "order": 10,
  862.       "mode": 0,
  863.       "inputs": [],
  864.       "outputs": [],
  865.       "title": "How to use the U-Net extractor (Markdown Note)",
  866.       "properties": {
  867.         "widget_ue_connectable": {}
  868.       },
  869.       "widgets_values": [
  870.         "# How to use the U-Net extractor\n1. In the **\"checkpoint selector (Primitive)\"** node, select the checkpoint you'd like to extract the U-Net from.<br>\n\n1. Run the workflow. The extracted U-Net `.safetensors` file will be saved in your ComfyUI output folder.\n\nThe combination of **\"Widget To String\"** and **\"CR Text Replace\"** nodes automates the naming of the extracted U-Nets. Otherwise, you'd have to manually type a name every time you want to extract a U-Net from a checkpoint. It's a neat little time-saver. 🙂\n\n## If you want to extract the U-Net from more than 1 checkpoint:\n\n1. In the **\"checkpoint selector (Primitive)\"** node, set **\"control after generate\"** to **\"increment\"**\n<br>\n1. In the same node, pick the checkpoint you'd like to start extracting from.\n<br>\n1. In ComfyUI, set the \"Batch Count\" number to the amount of models you'd like to extract the U-Nets from and click the blue **> Run** button.<p>\nComfyUI will run through this many checkpoints from the **\"checkpoint selector\"** node's list, starting from the checkpoint you picked.\n\n**WARNING:**<br> If you run a large number of extractions at once, make sure you have enough space on the disk where your ComfyUI output folder resides. The SD 1.5 U-Nets are normally ~1.6 GB each, and SDXL U-Nets are ~4.8 GB each. <p>\n**NOTE:**<br>\nComfyUI adds `_00001_` to the end of the file name, so you may want to remove this after extraction to keep the model names tidy. If you have many models, there's a free program called [Advanced Renamer](https://www.advancedrenamer.com/) that you can use to bulk remove this set of characters. Even though it's free for personal use, I recommend supporting the author by purchasing a license, but only if you can afford to. It's a great little program that I personally use, and which has already saved me lots of time in file naming operations."
  871.       ],
  872.       "color": "#432",
  873.       "bgcolor": "#653"
  874.     },
  875.     {
  876.       "id": 56,
  877.       "type": "MarkdownNote",
  878.       "pos": [
  879.         590,
  880.         0
  881.       ],
  882.       "size": [
  883.         460,
  884.         460
  885.       ],
  886.       "flags": {
  887.         "collapsed": false
  888.       },
  889.       "order": 11,
  890.       "mode": 0,
  891.       "inputs": [],
  892.       "outputs": [],
  893.       "title": "What to do with the extracted models (Markdown Note)",
  894.       "properties": {
  895.         "widget_ue_connectable": {}
  896.       },
  897.       "widgets_values": [
  898.         "# What to do with the extracted models\n## Use them similarly to any Flux workflow:\n* Put the U-Nets into your ComfyUI **\"diffusion_models\"** folder\n* Put the extracted CLIP_L and CLIP_G models into your ComfyUI **\"clip\"** folder\n* Put the extracted VAEs into your ComfyUI **\"vae\"** folder\n\n### With SD 1.5 models, use the following nodes in place of the \"Load Checkpoint\" node:\n\n* Load Diffusion Model\n* Load CLIP<br>(in this loader, pick the extracted CLIP_L model)\n* Load VAE\n\n### With SDXL models, use the following nodes in place of the \"Load Checkpoint\" node:\n\n* Load Diffusion Model\n* DualCLIPLoader<br>(in this loader, pick the extracted CLIP_L and CLIP_G models)\n* Load VAE"
  899.       ],
  900.       "color": "#432",
  901.       "bgcolor": "#653"
  902.     },
  903.     {
  904.       "id": 43,
  905.       "type": "MarkdownNote",
  906.       "pos": [
  907.         -710,
  908.         0
  909.       ],
  910.       "size": [
  911.         320,
  912.         460
  913.       ],
  914.       "flags": {
  915.         "collapsed": false
  916.       },
  917.       "order": 12,
  918.       "mode": 0,
  919.       "inputs": [],
  920.       "outputs": [],
  921.       "title": "What is this? (Markdown Note)",
  922.       "properties": {
  923.         "widget_ue_connectable": {}
  924.       },
  925.       "widgets_values": [
  926.         "# What is this?\n\nI was starting to run low on disk space due to the many checkpoints I have downloaded over the past year or so.\n\nWhile their U-Nets differ, all these checkpoints normally use the same CLIP and VAE models which are baked into the checkpoint.\n\nIf you think about it, this is quite wasteful for disk space, especially when the number of checkpoints is large.\n\nTo tackle this, I came up with a workflow that breaks down my checkpoints into their individual components (U-Net, CLIP, and VAE) to reuse them and save on disk space. Now I can reuse the same CLIP and VAE with all similar models and enjoy the space savings. 🙂\n\n### How much disk space can you expect to free up? A couple of examples:\nIf you have 50 SD 1.5 models: **~ 20 GB**.<br>(each SD 1.5 model saves you ~400 MB)<p>\nIf you have 50 SDXL models: **~ 90 GB**<br>(each SDXL model saves you ~1.8 GB)<br>\n\n## RUN AT YOUR OWN RISK!<p>\nAlways test your extracted models before deleting the checkpoints by comparing images generated with the same seeds. If they differ, it's possible that the particular checkpoint is using custom CLIP_L, CLIP_G, or VAE that are different from the default SD 1.5 and SDXL ones. If such cases occur, extract them from that checkpoint, name them appropriately, and keep them along with the default SD 1.5/SDXL CLIP and VAE models."
  927.       ],
  928.       "color": "#432",
  929.       "bgcolor": "#653"
  930.     }
  931.   ],
  932.   "links": [
  933.     [
  934.       7,
  935.       5,
  936.       0,
  937.       8,
  938.       0,
  939.       "*"
  940.     ],
  941.     [
  942.       14,
  943.       13,
  944.       0,
  945.       5,
  946.       0,
  947.       "COMBO"
  948.     ],
  949.     [
  950.       15,
  951.       8,
  952.       0,
  953.       10,
  954.       0,
  955.       "STRING"
  956.     ],
  957.     [
  958.       19,
  959.       5,
  960.       0,
  961.       15,
  962.       0,
  963.       "*"
  964.     ],
  965.     [
  966.       27,
  967.       19,
  968.       1,
  969.       17,
  970.       0,
  971.       "*"
  972.     ],
  973.     [
  974.       30,
  975.       26,
  976.       2,
  977.       25,
  978.       0,
  979.       "*"
  980.     ],
  981.     [
  982.       31,
  983.       25,
  984.       0,
  985.       27,
  986.       0,
  987.       "VAE"
  988.     ],
  989.     [
  990.       33,
  991.       8,
  992.       0,
  993.       32,
  994.       0,
  995.       "*"
  996.     ],
  997.     [
  998.       35,
  999.       17,
  1000.       0,
  1001.       23,
  1002.       0,
  1003.       "CLIP"
  1004.     ],
  1005.     [
  1006.       38,
  1007.       10,
  1008.       0,
  1009.       3,
  1010.       1,
  1011.       "STRING"
  1012.     ],
  1013.     [
  1014.       39,
  1015.       15,
  1016.       0,
  1017.       3,
  1018.       0,
  1019.       "MODEL"
  1020.     ],
  1021.     [
  1022.       40,
  1023.       62,
  1024.       2,
  1025.       61,
  1026.       0,
  1027.       "*"
  1028.     ],
  1029.     [
  1030.       41,
  1031.       61,
  1032.       0,
  1033.       63,
  1034.       0,
  1035.       "VAE"
  1036.     ]
  1037.   ],
  1038.   "groups": [
  1039.     {
  1040.       "id": 1,
  1041.       "title": "U-Net Extractor group",
  1042.       "bounding": [
  1043.         -370,
  1044.         490,
  1045.         1670,
  1046.         310
  1047.       ],
  1048.       "color": "#a1309b",
  1049.       "font_size": 24,
  1050.       "flags": {}
  1051.     },
  1052.     {
  1053.       "id": 2,
  1054.       "title": "CLIP Extractor group",
  1055.       "bounding": [
  1056.         -370,
  1057.         850,
  1058.         1260,
  1059.         193.60000610351562
  1060.       ],
  1061.       "color": "#b58b2a",
  1062.       "font_size": 24,
  1063.       "flags": {}
  1064.     },
  1065.     {
  1066.       "id": 3,
  1067.       "title": "VAE SD1.5 Extractor group",
  1068.       "bounding": [
  1069.         -370,
  1070.         1090,
  1071.         1260,
  1072.         193.60000610351562
  1073.       ],
  1074.       "color": "#A88",
  1075.       "font_size": 24,
  1076.       "flags": {}
  1077.     },
  1078.     {
  1079.       "id": 4,
  1080.       "title": "VAE SDXL Extractor group",
  1081.       "bounding": [
  1082.         -370,
  1083.         1300,
  1084.         1260,
  1085.         193.60000610351562
  1086.       ],
  1087.       "color": "#A88",
  1088.       "font_size": 24,
  1089.       "flags": {}
  1090.     }
  1091.   ],
  1092.   "config": {},
  1093.   "extra": {
  1094.     "ue_links": [],
  1095.     "links_added_by_ue": [],
  1096.     "frontendVersion": "1.18.6",
  1097.     "VHS_latentpreview": true,
  1098.     "VHS_latentpreviewrate": 0,
  1099.     "VHS_MetadataImage": true,
  1100.     "VHS_KeepIntermediate": true
  1101.   },
  1102.   "version": 0.4
  1103. }
Advertisement
Add Comment
Please, Sign In to add comment