作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想玩 Blender 聊天机器人,但快速入门或食谱页面上的大多数脚本都不起作用。例如
来自 https://parl.ai/projects/recipes/
python parlai/scripts/safe_interactive.py -t blended_skill_talk -mf zoo:blender/blender_90M/model
我有
Traceback (most recent call last):
File "parlai/scripts/safe_interactive.py", line 11, in <module>
from parlai.core.params import ParlaiParser
ModuleNotFoundError: No module named 'parlai'
或者
parlai eval_model -t twitter -mf zoo:blender/blender_90M/model
我有
17:28:54 INFO | loading dictionary from /home/jacek/ParlAI/data/models/blender/blender_90M/model.dict
17:28:54 INFO | num words = 54944
Traceback (most recent call last):
File "/usr/local/bin/parlai", line 11, in <module>
load_entry_point('parlai', 'console_scripts', 'parlai')()
File "/home/jacek/ParlAI/parlai/core/script.py", line 266, in superscript_main
SCRIPT_REGISTRY[cmd].klass._run_from_parser_and_opt(opt, parser)
File "/home/jacek/ParlAI/parlai/core/script.py", line 88, in _run_from_parser_and_opt
return script.run()
File "/home/jacek/ParlAI/parlai/scripts/eval_model.py", line 232, in run
return eval_model(self.opt, print_parser=self.parser)
File "/home/jacek/ParlAI/parlai/scripts/eval_model.py", line 198, in eval_model
agent = create_agent(opt, requireModelExists=True)
File "/home/jacek/ParlAI/parlai/core/agents.py", line 394, in create_agent
model = create_agent_from_opt_file(opt)
File "/home/jacek/ParlAI/parlai/core/agents.py", line 347, in create_agent_from_opt_file
return model_class(opt_from_file)
File "/home/jacek/ParlAI/parlai/core/torch_generator_agent.py", line 445, in __init__
super().__init__(opt, shared)
File "/home/jacek/ParlAI/parlai/core/torch_agent.py", line 728, in __init__
self.dict = self.build_dictionary()
File "/home/jacek/ParlAI/parlai/core/torch_agent.py", line 812, in build_dictionary
d = self.dictionary_class()(self.opt)
File "/home/jacek/ParlAI/parlai/core/dict.py", line 305, in __init__
self.bpe = bpe_factory(opt, shared)
File "/home/jacek/ParlAI/parlai/utils/bpe.py", line 80, in bpe_factory
bpe_helper = SubwordBPEHelper(opt, shared)
File "/home/jacek/ParlAI/parlai/utils/bpe.py", line 292, in __init__
raise RuntimeError(
RuntimeError: Please run "pip install 'git+https://github.com/rsennrich/subword-nmt.git#egg=subword-nmt'"
(我试图做那个 pip install 它说它已经安装了)
parlai train_model -t babi:task10k:1 -mf /tmp/babi_memnn -bs 1 -nt 4 -eps 5 -m memnn --no-cuda
我有
Parse Error: argument -mtw/--multitask-weights: invalid 'multitask_weights' value: 'memnn'
尽管我认为我的自我应该是“--model”标志而不是“-m”。
最佳答案
对我来说,Blender 在不到 10 分钟的时间内开箱即用。
实际上,我很惊喜地发现它运行起来如此简单。
关于python - 如何运行 ParlAI Blender 聊天机器人?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63038129/
我想玩 Blender 聊天机器人,但快速入门或食谱页面上的大多数脚本都不起作用。例如 来自 https://parl.ai/projects/recipes/ python parlai/scrip
我是一名优秀的程序员,十分优秀!