facebookresearch / facebookresearch/segment-anything

"AssertionError: set_torch_image input must be BCHW with long side 1024. "

Open
#413 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
54.9k
Forks
6.4k
PR merge metrics
No merged PRs in 30d

Description

Hi

I have been working with SAM, but I have this problem:

**"AssertionError: set_torch_image input must be BCHW with long side 1024. "**

The problem occurred when I run the "generated" method :

**sam_mask.generate(image)**

Can I work with different image sizes?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.