Instruct2Act
Instruct2Act copied to clipboard
build_sam_vit_h() got an unexpected keyword argument 'device'
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.
Thanks for pointing it out
Yaps, you can ignore it and use the official SAM API. All we need is just a SAM detector