KPatr1ck / paddlehub-wechaty-demo

34 stars 7 forks source link

结果都不打印,直接就finished ,还没报错 #1

Open xzkzdx opened 3 years ago

xzkzdx commented 3 years ago

from collections import deque import paddlehub as hub model = hub.Module(name='plato-mini', version='1.0.0') model._interactive_mode = True model.max_turn = 10 model.context = deque(maxlen=model.max_turn)

result = model.predict("hello") print(result)

结果都不打印,直接就finished ,还没报错 [2021-06-23 18:28:37,384] [ INFO] - Already cached C:\Users\pc.paddlenlp\models\plato-mini\plato-mini.pdparams [2021-06-23 18:28:48,339] [ INFO] - Found C:\Users\pc.paddlenlp\models\plato-mini\plato-mini-vocab.txt [2021-06-23 18:28:48,340] [ INFO] - Found C:\Users\pc.paddlenlp\models\plato-mini\plato-mini-spm.model Building prefix dict from the default dictionary ... Loading model from cache C:\Users\pc\AppData\Local\Temp\jieba.cache Loading model cost 0.696 seconds. Prefix dict has been built successfully.

KPatr1ck commented 3 years ago

image

本地测试是正常执行预测的。

xzkzdx commented 3 years ago

您那是好的,我这不是啊,predict中self()那个直接导致程序退出

------------------ 原始邮件 ------------------ 发件人: KP @.> 发送时间: 2021年6月24日 00:05 收件人: KPatr1ck/paddlehub-wechaty-demo @.> 抄送: 詹生松 @.>, Author @.> 主题: 回复:[KPatr1ck/paddlehub-wechaty-demo] 结果都不打印,直接就finished ,还没报错 (#1)

本地测试是正常执行预测的。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

xzkzdx commented 3 years ago

cpu下运行 2.0.0版本居然要配置CUDA_HOME image

2.0.3不出结果 image

KPatr1ck commented 3 years ago

windows系统的模型使用问题已修复,重新安装plato-mini可解决。