paddlehub保存的模型无法被手机Paddle-Lite加载,直接闪退没提示
Created by: autofish
下载paddlehub以后,通过python执行以下代码
import paddlehub as hub hub.server_check() pyramidbox_lite_mask = hub.Module(name="pyramidbox_lite_mobile_mask")
将模型保存在test_program文件夹之中
pyramidbox_lite_mask.processor.save_inference_model(dirname="test_program") 得到模型后放到paddle-lite java demo(build.lite.android.armv7.gcc\inference_lite_lib.android.armv7\demo\java\android\PaddlePredictor),加载,闪退