qq15725 / modern-rembg

🐘 Uses an AI model to remove image backgrounds. Only the ESM.
https://www.toolpkg.com/image/matting
MIT License
19 stars 2 forks source link

Fail configuration #1

Open addreeh opened 6 months ago

addreeh commented 6 months ago

Hi, could you provide a full example to try the library, I have been trying it but I always have problems with CommonJS, modules, ... It should be fine to have a full guide to try it. Thanks in advance.

ceynri commented 4 months ago

I have problems too

image
dylie-eth commented 4 months ago

I'm receiving the same errors and am unsure what changes I need to make to config files, setup, etc. in order to make this work.

dylie-eth commented 4 months ago

I managed to resolve the issue by including wasm paths for each of the wasm files inside of the options on removeBackground calls. I assume this issue is due to the inability to find the wasm file rather than a config/setup related problem.

qq15725 commented 3 months ago

Seems to be a subversion incompatibility issue, try using "onnxruntime-web": "^1.16.3"

lnfel commented 3 months ago

Downgraded to "onnxruntime-web": "^1.16.3", error still going on:

Screen Shot 2024-03-20 at 3 23 50 PM image