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

Add FAIRs SAM as serverless AI interactor #5990

Closed
wants to merge 1 commit into from

Conversation

Alx-Wo
Copy link
Contributor

@Alx-Wo Alx-Wo commented Apr 6, 2023

I'm not affiliated with FAIR or Meta in any way. Just thought that including SAM as an interactor would be extremely helpful considering SAMs outstanding performance.

I just added a new interactor under serverless/pytorch/facebookresearch/

Currently this is not ready.
When trying to set a positive or negative point, I'm getting:
Error: Request failed with status code 503. "('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))"
or
cvat Error: Request failed with status code 503. "HTTPConnectionPool(host='host.docker.internal', port=32857): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f96c8e88460>: Failed to establish a new connection: [Errno 111] Connection refused'))".

And I'm not sure why this happens.
If anyone has an idea feel free to help out. I might get back to it after the weekend maybe?

Checklist

  • I submit my changes into the develop branch
  • I have added a description of my changes into the CHANGELOG file
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)
  • I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@bsekachev
Copy link
Member

Hi @Alx-Wo

I finished integration work in this PR #6008 keeping your commit.
Thank you for the contribution!
I will close this PR.

@bsekachev bsekachev closed this Apr 11, 2023
@Alx-Wo
Copy link
Contributor Author

Alx-Wo commented Apr 11, 2023

Awesome thanks, I just finished my changes to get it running, but you were a little bit quicker ;)
If I can support you in your PR #6008 let me know!

nmanovic pushed a commit that referenced this pull request Apr 12, 2023
Idea of the PR is to finish this one #5990
Deploy for GPU: ``./deploy_gpu.sh pytorch/facebookresearch/sam/nuclio/``
Deploy for CPU: ``./deploy_cpu.sh pytorch/facebookresearch/sam/nuclio/``


If you want to use GPU, be sure you setup docker for this
[guide](https://github.com/NVIDIA/nvidia-docker/blob/master/README.md#quickstart).

Resolved issue #5984
But the interface probably can be improved

Co-authored-by: Alx-Wo <alexander.wolpert@googlemail.com>
mikhail-treskin pushed a commit to retailnext/cvat that referenced this pull request Jul 1, 2023
Idea of the PR is to finish this one cvat-ai#5990
Deploy for GPU: ``./deploy_gpu.sh pytorch/facebookresearch/sam/nuclio/``
Deploy for CPU: ``./deploy_cpu.sh pytorch/facebookresearch/sam/nuclio/``


If you want to use GPU, be sure you setup docker for this
[guide](https://github.com/NVIDIA/nvidia-docker/blob/master/README.md#quickstart).

Resolved issue cvat-ai#5984
But the interface probably can be improved

Co-authored-by: Alx-Wo <alexander.wolpert@googlemail.com>
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

Successfully merging this pull request may close these issues.

2 participants