diff --git a/CHANGELOG.md b/CHANGELOG.md index 152ae6c..0f3ead8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ All notable changes to ComfyUI-AusBoss are documented here. sure SAM 3 must be, **Fill holes**, and **Free VRAM**, which takes SAM 3 out of the graphics card's memory right after the search. Turn it on in a workflow that loads a big model after this node. The search is - ComfyUI's own SAM 3 (ComfyUI 0.38 or newer): wire model and clip from a + ComfyUI's own SAM 3 (ComfyUI 0.20 or newer): wire model and clip from a Load Checkpoint that loads the SAM 3 file. - **Opening More no longer shrinks the picture.** A node you made taller keeps that height when a group such as **More** opens or closes on its diff --git a/README.md b/README.md index c3ecdb9..95b70e8 100644 --- a/README.md +++ b/README.md @@ -172,7 +172,7 @@ Krea 2 Inpaint Masked turns the painted fur coat into a leather jacket, using Ma Type what to find in a picture, like "the dog" or "the red jacket", and get its mask. Nothing to paint. The node shows what it found, tinted on the picture, with how sure it is, and **FIND** runs only this node so you can check the mask before the rest of the workflow runs. When it finds nothing it stops the run with a plain message, so nothing after it runs on an empty mask; a setting passes an empty mask on instead. -It also returns the thing cut out on a see-through background, and how many things matched. Under **More**: how sure SAM 3 must be, fill the holes in the mask, and free SAM 3 from VRAM after the search. If you build a workflow that loads a big model after this node, turn **Free VRAM** on. The search is ComfyUI's own SAM 3: wire `model` and `clip` from a Load Checkpoint that loads the SAM 3 file. Needs ComfyUI 0.38 or newer. +It also returns the thing cut out on a see-through background, and how many things matched. Under **More**: how sure SAM 3 must be, fill the holes in the mask, and free SAM 3 from VRAM after the search. If you build a workflow that loads a big model after this node, turn **Free VRAM** on. The search is ComfyUI's own SAM 3: wire `model` and `clip` from a Load Checkpoint that loads the SAM 3 file. Needs ComfyUI 0.20 or newer, which has SAM 3 built in. ### Mask Refine diff --git a/js/docs/AUSBOSS_NODES_MaskByName.md b/js/docs/AUSBOSS_NODES_MaskByName.md index 36daebe..0f7358b 100644 --- a/js/docs/AUSBOSS_NODES_MaskByName.md +++ b/js/docs/AUSBOSS_NODES_MaskByName.md @@ -80,7 +80,7 @@ nothing instead. - Each name can match up to 16 things. Without that, SAM 3 returns one match per name, and only one of two scarves is found. - The search is ComfyUI's own SAM 3 (CLIP Text Encode, then SAM3 Detect, with - its two edge passes). The node needs ComfyUI 0.38 or newer and says so on an + its two edge passes). The node needs ComfyUI 0.20 or newer and says so on an older one. - The mask is the size of the picture. For more control over the edge (close holes, smooth, snap to the picture) follow it with Mask Refine. @@ -95,6 +95,8 @@ nothing instead. SAM 3 out at once, also after a search that found nothing. Measured on one machine: about 1.7 GB of VRAM back, and a search took 0.8 seconds instead of 0.5. + It needs ComfyUI 0.23 or newer. On an older one the switch does nothing + and the run goes on. - With several pictures in a batch, each one is searched on its own. A picture without the thing gets an empty mask, and the run stops only when no picture has it. diff --git a/nodes/_mask_by_name_helpers.py b/nodes/_mask_by_name_helpers.py index 7b96d7f..695e77b 100644 --- a/nodes/_mask_by_name_helpers.py +++ b/nodes/_mask_by_name_helpers.py @@ -31,7 +31,7 @@ TINT_STRENGTH = 0.5 NO_NAME = 'Mask by Name: type what to find, like "the dog" or "the jacket".' NEEDS_SAM3 = ( - "Mask by Name needs ComfyUI 0.38 or newer. It uses ComfyUI's own SAM 3 " + "Mask by Name needs ComfyUI 0.20 or newer. It uses ComfyUI's own SAM 3 " "Detect node, and this ComfyUI does not have it." ) NOT_SAM3 = (