hub serving start pyramidbox_lite_server_mask
Created by: linux-devil
hub version 1.6.2 Ubuntu
Followed steps in serving section of : https://www.paddlepaddle.org.cn/hubdetail?name=pyramidbox_lite_server_mask&en_category=ObjectDetection
data = {'images':[cv2_to_base64(cv2.imread(file_name))]}
headers = {"Content-type": "application/json"}
url = "http://127.0.0.1:8866/predict/pyramidbox_lite_server_mask"
r = requests.post(url=url, headers=headers, data=json.dumps(data))
print(r.json())
gives output :
{'msg': 'Please check data format!', 'results': '', 'status': '-1'}