ksugar / samapi

Segment Anything Model API
BSD 3-Clause "New" or "Revised" License
75 stars 12 forks source link

Connect with remote server #17

Closed SanghoonKang503 closed 1 year ago

SanghoonKang503 commented 1 year ago

Hello,

I used a server computer for using GPU which is separated from my Desktop. So, I installed SAM into the server computer and ran the SAM via SLURM. I tried to connect that node with my local Desktop via ssh, but it is not connected.

INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO:     Started parent process [61240]
INFO:     Started server process [61264]
INFO:     Started server process [61263]
INFO:     Waiting for application startup.
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Application startup complete
ssh -NL 8000:c0906a-s11:8000 -l "User"
channel 2: open failed: connect failed: Connection refused

image

I think it is a kind of problem with Uvicorn. Do you have a solution for connecting the node with the local computer?

SanghoonKang503 commented 1 year ago

Solve by adding --host 0.0.0.0 in the command line