Instruct2Act icon indicating copy to clipboard operation
Instruct2Act copied to clipboard

build_sam_vit_h() got an unexpected keyword argument 'device'

Open yusuke-coder opened this issue 9 months ago • 1 comments

def build_sam_vit_l(checkpoint=None):
    return _build_sam(
        encoder_embed_dim=1024,
        encoder_depth=24,
        encoder_num_heads=16,
        encoder_global_attn_indexes=[5, 11, 17, 23],
        checkpoint=checkpoint,
    )

in the segment anything package does not have device anymore.

yusuke-coder avatar May 07 '24 08:05 yusuke-coder

Thanks for pointing it out

Yaps, you can ignore it and use the official SAM API. All we need is just a SAM detector

SiyuanHuang95 avatar May 09 '24 19:05 SiyuanHuang95