如何在腾讯云上部署 Facebook的ParlAI训练框架
来源:互联网 发布:ocr软件免费下载 编辑:程序博客网 时间:2024/06/01 23:25
刚看到腾云阁新一期的活动又开始了,跃跃欲试,恰巧看到ParlAI我就把安装过程记录一下。
必备环境:
python3ZeroMq
安装命令:
git clone https://github.com/facebookresearch/ParlAI.gitcd ParlAIpython setup.py develop
安装过程中问题一:
UnicodeDecodeError: 'gbk' codec can't decode byte 0x9d in position 1270: illega解决方法:我把setup.py代码稍加修改了。 都是utf-8的 我这里很疑惑去掉:with open('LICENSE') as f: license = f.read()with open('requirements.txt') as f: reqs = f.read()初始化: license='', long_description='',
问题二:
“error: Microsoft Visual C++ 14.0 is required..解决办法:手工安装pip install pyzmq
问题三:
AttributeError: module 'parlai.tasks.babi.agents' has no attribute 'create_agents'TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。解决办法:安装ZeroMq
运行案例:
F:\py\parlai\ParlAI>python examples/display_data.py -t babi:task1k:1[no_images:False][download_path:f:\py\parlai\parlai\downloads][task:babi:task1k:1][datatype:train][batchsize:1][num_examples:10][numthreads:1][parlai_home:f:\py\parlai\parlai][datapath:f:\py\parlai\parlai\data][creating task(s): babi:task1k:1][building data: f:\py\parlai\parlai\data\bAbI]100% [....................................................] 19212062 / 19212062unpacking babi.tar.gz[DialogTeacher initializing.][loading fbdialog data:f:\py\parlai\parlai\data\bAbI\tasks_1-20_v1-2\en-valid-nsf\qa1_train.txt][babi:task1k:1]: Mary travelled to the garden.Daniel went to the office.Where is Daniel?[labels: office][cands: garden|kitchen|office|bedroom|bathroom|hallway] [RepeatLabelAgent]: office~~[babi:task1k:1]: Daniel travelled to the kitchen.Sandra journeyed to the kitchen.Where is Daniel?[labels: kitchen][cands: garden|kitchen|office|bedroom|bathroom|hallway] [RepeatLabelAgent]: kitchen~~[babi:task1k:1]: Mary went back to the hallway.Daniel went to the bedroom.Where is Daniel?[labels: bedroom][cands: garden|kitchen|office|bedroom|bathroom|hallway] [RepeatLabelAgent]: bedroom~~[babi:task1k:1]: Mary moved to the bathroom.Sandra journeyed to the bathroom.Where is Mary?[labels: bathroom][cands: garden|kitchen|office|bedroom|bathroom|hallway] [RepeatLabelAgent]: bathroom~~[babi:task1k:1]: John journeyed to the garden.Sandra went to the garden.Where is Sandra?[labels: garden][cands: garden|kitchen|office|bedroom|bathroom|hallway] [RepeatLabelAgent]: garden- - - - - - - - - - - - - - - - - - - - -~~[babi:task1k:1]: Mary travelled to the bedroom.Daniel travelled to the office.Where is Mary?[labels: bedroom][cands: garden|kitchen|office|bedroom|bathroom|hallway] [RepeatLabelAgent]: bedroom~~[babi:task1k:1]: Daniel journeyed to the hallway.Mary travelled to the hallway.Where is Mary?[labels: hallway][cands: garden|kitchen|office|bedroom|bathroom|hallway] [RepeatLabelAgent]: hallway~~[babi:task1k:1]: Sandra travelled to the kitchen.Mary travelled to the kitchen.Where is Daniel?[labels: hallway][cands: garden|kitchen|office|bedroom|bathroom|hallway] [RepeatLabelAgent]: hallway~~[babi:task1k:1]: John journeyed to the garden.Daniel went to the bathroom.Where is Sandra?[labels: kitchen][cands: garden|kitchen|office|bedroom|bathroom|hallway] [RepeatLabelAgent]: kitchen~~[babi:task1k:1]: Daniel moved to the garden.John went to the kitchen.Where is Daniel?[labels: garden][cands: garden|kitchen|office|bedroom|bathroom|hallway] [RepeatLabelAgent]: garden- - - - - - - - - - - - - - - - - - - - -~~
阅读全文
0 0
- 如何在腾讯云上部署 Facebook的ParlAI训练框架
- 在腾讯云上部署应用
- 在腾讯云上部署Hexo博客
- 在腾讯云上部署nginx
- 在腾讯云Winserver2016上部署网站
- 在腾讯云上部署项目
- 在腾讯云上部署tomcat+java+mysql项目
- 如何安装Facebook Like按钮在自己的网站上!
- parlai环境搭建以及模型训练
- 如何部署在阿里云主机上部署Mysql数据库
- 如何在腾讯云上搭建一个人力资源Saas
- 如何在腾讯云上开发一款O2O书签?
- 如何在腾讯云上快速搭建Web服务器
- 如何在腾讯云上开发一款O2O书签?
- SPING框架部署在websphere上碰到的问题
- 将服务器部署在腾讯云遇到的一些事
- Flask部署到腾讯云主机上
- javaweb项目部署到腾讯云上
- ubuntu14.04下安装matlab2014a
- 由static带来的一连串问题
- 支付路由设计
- C语言之计算某天为一年中第几天
- Qt标准对话框之QFileDialog
- 如何在腾讯云上部署 Facebook的ParlAI训练框架
- sql server数据库:创建数据库、建立数据库用户、为用户赋予权限
- 静态链接库与动态链接库的使用
- hunnu 10611 聪明的木匠 (优先队列)
- 读《卓越程序员密码》有感
- POJ3069 Saruman's Army【贪心】
- 三篇文章了解 TiDB 技术内幕——说存储
- python caffe报错:No module named google.protobuf.internal
- (13)spring boot中常用的注解@RestController和@RequestMapping