facebookresearch / facebookresearch/segment-anything

Masks not aligned with image

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

Description

Went through the notebook to generate embeddings for dogs.jpg. However, when hovering over the image the mask is offset above the original image. I have tried this with various images and the mask is always offset or skewed in some way. I tried running through the demo on a clean repo and still ran into this issue. I suspect it has something to with the scaled down model being displayed (despite console.log telling me that image and maskImage are the same dimensions). Anyone have any pointers?

Screenshot 2024-11-17 at 10 08 57 PM

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.