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

How can i use this Model for image matting? #565

Closed
cyio opened this issue Feb 5, 2024 · 2 comments · Fixed by #569
Closed

How can i use this Model for image matting? #565

cyio opened this issue Feb 5, 2024 · 2 comments · Fixed by #569
Labels
question Further information is requested

Comments

@cyio
Copy link

cyio commented Feb 5, 2024

Question

https://github.com/ZHKKKe/MODNet?tab=readme-ov-file

They have ONNX file and the python cli usage looks simple, but I can't find how to use with transformers.js.

!python -m demo.image_matting.colab.inference \
        --input-path demo/image_matting/colab/input \
        --output-path demo/image_matting/colab/output \
        --ckpt-path ./pretrained/modnet_photographic_portrait_matting.ckpt
@cyio cyio added the question Further information is requested label Feb 5, 2024
@xenova xenova linked a pull request Feb 5, 2024 that will close this issue
@xenova
Copy link
Collaborator

xenova commented Feb 5, 2024

Hi there 👋 I've opened a PR which will add support for MODNet to transformers.js. See the model card for example usage.

@cyio
Copy link
Author

cyio commented Feb 7, 2024

online demo: https://huggingface.co/spaces/oakerx/vanilla-js-portrait-matting

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

Successfully merging a pull request may close this issue.

2 participants