Open TOOFACK opened 5 months ago
The code in the official Meta SAM and my code is somewhat different and it will work when you run my example code
Hm, I see, so there is only way to work with different img_size, only using sam.individual_forward
, correct?
Yes correct! it would be better for you to modify my code to fit your purpose!
Hello, I use example from https://github.com/facebookresearch/segment-anything/blob/main/notebooks/predictor_example.ipynb
But before I resized image to (512, 512) So here code snippet to reproduce:
So when I run this code I get images like this:
You can see that point is located inside window, but for some reasons segmentation goes wrong. What am I doing wrong?