You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# filename: trans_model.py
import os
import time
import sys
import paddle.fluid as fluid
import paddle_serving_client.io as serving_io
path = sys.argv[1]
exe = fluid.Executor(fluid.CPUPlace())
inference_program, feed_target_names, fetch_targets = fluid.io.load_inference_model(dirname=path, executor=exe)
feed_dict = {x: inference_program.global_block().var(x) for x in feed_target_names}
fetch_dict = {x.name : x for x in fetch_targets}
serving_io.save_model('model_server', 'model_client', feed_dict, fetch_dict, inference_program)
1.我发布完的paddlex的模型,我想通过http调用进行预测。
2.我文章可以直接安装paddleserving,但文章后面链接到此项目,需要安装docker在安装paddleserving。
https://paddlepaddle.org.cn/support/news?action=detail&id=1945
我现在想知道如何快速的将paddleserving安装并发布我的paddlex的模型。
谢谢
The text was updated successfully, but these errors were encountered: