Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code in predictor.py #45

Open
Nastu-Ho opened this issue Sep 4, 2023 · 1 comment
Open

code in predictor.py #45

Nastu-Ho opened this issue Sep 4, 2023 · 1 comment

Comments

@Nastu-Ho
Copy link

Nastu-Ho commented Sep 4, 2023

https://github.com/ZrrSkywalker/Personalize-SAM/blob/a7e87245156e0b8efcba10a15a745e699c679d9d/per_segment_anything/predictor.py#L105C38-L105C38

The preprocess_mask() function in the sam.py should be used instead of the preprocess() function, right?

@Rinsonlaw
Copy link

Apparently, it should be preprocess_mask(). However, the code still works fine by coincidence because it reads a red mask from the file, and the positive values (255) of the mask are still normalized to positive values. 😂😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants