-
Notifications
You must be signed in to change notification settings - Fork 251
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
serving_client调用rpc报错(FasterRCNN) #595
Comments
Message that will be displayed on users' first issue |
这个应该是Client端的正常输出,程序运行的返回值正常吗? |
@barrierye 现在Faster RCNN Model实例代码可以正常测试。现在有另外一个问题,我的serving_server_conf.prototxt如下: 可以成功启动serving,但写client时,“im_shape”该怎么写? |
我记得imshape没什么影响,预留给图片的长和宽。比如[608, 608] |
我在client中尝试用[608, 608], 我是用yolov3微调的模型,完整的测试代码如下: from paddle_serving_app.reader import Sequential, File2Image, Resize from paddle_serving_app.reader import RGB2BGR, Transpose, Div, Normalize import time client = Client() client.load_client_config("yolov3_seq20_client/serving_client_conf.prototxt") client.connect(["127.0.0.1:9494"]) seq = Sequential([
]) start = time.time() image_file = "HouseFive696.jpg" #np.array(list(img.shape[1:]) + [1.0]) fetch_map = client.predict( print("fetch_map",type(fetch_map)) end = time.time() print(end - start) |
可以参考一下 python/examples/faster_rcnn_model/test_client.py |
你好,我在测试提供的目标检测模型提供Faster RCNN Model实例 时,可以正常启动serve端,但是client端报错如下:
测试代码也是采用实例中的test_client.py文件,麻烦看一下什么原因?
The text was updated successfully, but these errors were encountered: