使用Paddlehub推理时RuntimeError: Request Hub-Server unsuccessfully, please check your network.
Created by: wangjc7
- 版本、环境信息 1)PaddleHub和PaddlePaddle版本:PaddleHub1.8.2,PaddlePaddle1.8.4.post107 2)系统环境:请您描述系统类型:CentOS7.7,python版本:3.6.9
- 复现信息: 使用Paddlehub训练好的模型放到无外网机器上进行推理时,报如下错误: Request Hub-Server unsuccessfully. [2020-09-12 06:59:57,212] [ INFO] - Installing bert_chinese_L_12_H_768_A_12 module [2020-09-12 06:59:57,223] [ ERROR] - Request Hub-Server unsuccessfully, please check your network. Traceback (most recent call last): File "predict.py", line 44, in module = hub.Module(name="bert_chinese_L_12_H_768_A_12") File "/usr/local/python3/lib/python3.6/site-packages/paddlehub/module/module.py", line 102, in new name=name, version=version, **kwargs) File "/usr/local/python3/lib/python3.6/site-packages/paddlehub/module/module.py", line 174, in init_with_name raise RuntimeError(tips) RuntimeError: Request Hub-Server unsuccessfully, please check your network. 预训练模型已经放到.paddlehub下了 但还是提示这个 尝试设置${HUB_HOME}环境变量 export HUB_HOME=/home/chapterix后,再次尝试也无效
请帮忙解决~