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

我在linux服务器上面搭建服务器,在自己本地的windows上面建立客户端,但是模型推理的·时候·出现下面·报错· #170

Open
MMa321 opened this issue Feb 2, 2024 · 4 comments

Comments

@MMa321
Copy link

MMa321 commented Feb 2, 2024

requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /data/upload/3/1381ce70-IMG_20210627_225110.jpg (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f178c0a27f0>: Failed to establish a new connection: [Errno 111] Connection refused'))

[2024-02-02 11:19:07,096] [INFO] [werkzeug::_log::225] 192.168.1.225 - - [02/Feb/2024 11:19:07] "POST /predict HTTP/1.1" 500 -

@RavenMuse
Copy link

RavenMuse commented Feb 23, 2024

@MMa321 Hi there , you could add hostname to the parameters to help bankend find
pictures where uploaded in LabelStudio , like this

label-studio-ml start sam --port 9500 --with
sam_config=vit_b
hostname= http://hostname:port
sam_checkpoint_file=./sam_vit_b_01ec64.pth
out_mask=True
out_bbox=True
device=cuda:0

@MMa321
Copy link
Author

MMa321 commented Feb 28, 2024

Thank you for your answer, it was useful

@wdc233
Copy link

wdc233 commented Apr 28, 2024

Thank you for your answer, it was useful

请问具体是怎样的命令呢?我加了hostname:http://localhost:8080
但是没用

@MMa321
Copy link
Author

MMa321 commented Apr 29, 2024

Thank you for your answer, it was useful

请问具体是怎样的命令呢?我加了hostname:http://localhost:8080 但是没用

If the server and the client is not a machine, you need the hostname of the hostname = http://hostname:port, such as the hostname = http://192.168.1.100:8080

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

3 participants