-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[WASM/segment-anything] Error: unreachable #1695
Comments
The error seems to actually occur here:
which is defined at:
|
@radames maybe you have an idea from the top of your head of what could be causing this? |
interesting, testing the embeddings call running on CPU, it works fine, however the forward pass is crashing on wasm b0fe5e4#diff-93f2883354b5db7aed5fe70e86efcbf45fb51b2e53729c984c50db017f3eb367L30-L32
|
Interesting, thanks for looking into this. I'm not sure it would be related to the change tweaking the module trait for batchnorm. |
Actually I think I got to the bottom of this, @radames not sure how you got to the commit you mentionned but it's really close to the problematic one which is slighly earlier 4290b8.... |
#1702 has been merged, let me know it's still an issue! |
It works now! Great work @LaurentMazare |
amazing @LaurentMazare , I got the commit via git blame on the most recent changes for the SAM model implementation. |
Hi there. The wasm segment-anything demo fails to create image embeddings with the following error on all the web browsers I use (Chrome, Firefox, etc).
model: MobileSAM Tiny
rustc: 1.76.0 (07dca489a 2024-02-04)
wasm-bindgen: 0.2.88
The text was updated successfully, but these errors were encountered: