Unexpected behavior with zero width or zero height bool mask #696
-
Hi and thanks a lot for your work! When running the library, we encountered an issue in |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Thanks a lot for reporting your issue @vincent-vdb! What type of instance segmentation model are you using? |
Beta Was this translation helpful? Give feedback.
-
Thanks for your quick answer. We are using MMDet, we actually have a simple fix proposal, but it seems I can't push a new branch to propose it. Basically, in |
Beta Was this translation helpful? Give feedback.
-
@vincent-vdb you can fork this repo, push your update to a branch in your fork, then open a PR to this repo 🚀. We are open to PRs 👍 I have opened a PR to fix this can you test it by installing the sahi from branch You have to first uninstall your current pip uninstall sahi -y Then install pip install git+https://github.com/obss/sahi.git@handle-invalid-mask If you confirm this fix we can merge it 👍 |
Beta Was this translation helpful? Give feedback.
-
This PR does not fix the issue on my side :/ Here is the traceback if it can be of any help:
|
Beta Was this translation helpful? Give feedback.
-
@vincent-vdb found the issue and updated just now. Can you please remove sahi and install again from branch and check if its fixed? You have to first uninstall your current pip uninstall sahi -y Then install pip install git+https://github.com/obss/sahi.git@handle-invalid-mask |
Beta Was this translation helpful? Give feedback.
-
It seems to be working now, thanks. At least I did not encounter the issue for the moment on the same data. Hope you can merge this PR soon! |
Beta Was this translation helpful? Give feedback.
-
@vincent-vdb it is merged, you can install from master till next release! Thanks for your feedback 🚀 |
Beta Was this translation helpful? Give feedback.
@vincent-vdb found the issue and updated just now. Can you please remove sahi and install again from branch and check if its fixed?
You have to first uninstall your current
sahi
installation by:Then install
sahi
from branch: