CivArchive
    Segment Anything Model 2 (SAM 2) - v1.0
    NSFW
    Preview 22514299

    Masking Objects with SAM 2

    More Infor Here:
    https://github.com/kijai/ComfyUI-segment-anything-2

    Download Models:
    https://huggingface.co/Kijai/sam2-safetensors/tree/main

    Save to:
    \ComfyUI\models\sam2

    Step 1: Import Your Video

    • Import your video clip into the software.

    Step 2: Save a Single Frame

    • Save a single frame from your video clip as an image.

    Step 3: Import the Image to the Points Editor

    • Right-click on the Points Editor and select "Load Image" to load the saved frame into the editor.

    Step 4: Select the Object

    • In the Points Editor, Point to the object you want to isolate or manipulate to select it.

    Description

    FAQ

    Comments (10)

    SunsetraAug 17, 2024
    CivitAI

    Excuse me. Can I use your model in webui? I tried to use it in webui, but I got KeyError: 'sam2_hiera'...

    Crimson_Intellect
    Author
    Aug 18, 2024

    can not you run on Comfyui ?

    ThricePiAug 22, 2024
    CivitAI

    ah so cool..all the masking I have seen is whole body besides samv2 from meta..can I mask individual object in video like hair but not face,,face but not outfit etc? Also can this mask the background?

    ThricePiAug 23, 2024· 1 reaction

    Awesome, what diffusion models is it compatible with? ..sd1.5 ?... is it also compatible with Flux Dev GGUF models by any chance?...I noticed this is a workflow but every tutorial shows to put the samv2 download in sam2 folder..if that is the case then how do i load the workflow?

    Crimson_Intellect
    Author
    Aug 23, 2024· 1 reaction

    @ThricePi it works with everything :)

    ThricePiAug 23, 2024· 1 reaction

    @Crimson_Intellect oohh k sounds good. il try it out with flux..thanks for the replies.

    flufflepimpAug 29, 2024
    CivitAI

    When I try to change the resolution size to 1024x1024 it will only let me change it to xyxy not a number. Any ideas?

    Crimson_Intellect
    Author
    Aug 30, 2024

    That is not resolution XY are vertical and horizontal coordinate, try to use upscaler , Thx

    iamsaso654321987Apr 30, 2026
    CivitAI

    Thank you so much do you have one for images instead

    Workflows
    SD 1.5

    Details

    Downloads
    1,019
    Platform
    CivitAI
    Platform Status
    Available
    Created
    8/3/2024
    Updated
    6/28/2026
    Deleted
    -

    Files

    segmentAnythingModel2_v10.zip

    Mirrors