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

Integration of SAM in Java #31

Open
ericsua opened this issue Dec 3, 2024 · 1 comment
Open

Integration of SAM in Java #31

ericsua opened this issue Dec 3, 2024 · 1 comment

Comments

@ericsua
Copy link

ericsua commented Dec 3, 2024

I was wondering if you could share more details about how you converted or adapted SAM for use in Java. Is the code or method you used to achieve this integration available? Thanks in advance.

@carlosuc3m
Copy link
Contributor

carlosuc3m commented Dec 3, 2024

Hello @ericsua !
Yess eveythin is open source!
The plugin is separated in frontend and backend.
This is the repo for the front-end and here is the repo for the backend: https://github.com/segment-anything-models-java/SAMJ

As you see there is not much documentation yet, we are still in active development, but is one of my TODOs for the next week or two.

There is an api so you can call and install whatever model you want from your Java based software.

SAMJ is a Java wrapper for the Python code that calls SAM, This is achieved using a library (also in development) called appose: https://github.com/apposed/appose-java

If you want to have a look now before the documentation arrives, here are the pertinent classes:

Regards,
Carlos

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

No branches or pull requests

2 participants