-
Notifications
You must be signed in to change notification settings - Fork 335
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
Errors while removing background on deployed server #106
Comments
Same issue |
Would you be open to share the minimal example as I cannot reproduce it. |
My server is running on digital ocean with the same issue. |
Hi, Could be related to "onnxruntime-node" or WASM and the fact that TensorFlow and the model need a GPU and on server or a remote environment they are not available ? I noticed that in the source, the function: async function createOnnxSession(model, config) {
if (config.debug) {
ort.env.debug = true;
ort.env.logLevel = "verbose";
console.debug("ort.env.wasm:", ort.env.wasm);
}
} on my WSL2 environment actually prints an empty object to the console:
Thanks! |
I have no access to such a machine at the moment, so unfortunately I cannot reproduce the error. |
Thanks for looking into it. For other devs that might encounter this, I used a different package: rembg on replicate and just paid the small out of pocket cost. |
When I attempt to remove the background from a file on my server I get the following issue
corrupted size vs. prev_size
OR
free(): invalid size
OR
munmap_chunk(): invalid pointer
Have not been able to identify what triggers which, but feels like it might be an issue with the ML image (I'm using the small one)
Docker host: 20.10.12 linux x86_64
Node version: Node.js v21.6.2
Package version: 1.4.4
The text was updated successfully, but these errors were encountered: