caffe2分布式样例resnet50_trainer.py运行时出现参数shared_model错误
2018-01-30 14:48
369 查看
在执行resnet50_trainer.py时,出现如下错误:
原因为data_parallel_model中的Parallelize接口更新,增加了shared_model参数,样例中与源码不对应,所以出现这个错误。
解决方法:去掉shared_model=args.use_cpu参数,建议直接使用源码中example的代码
同样类型错误还有如下:解决方案一样
Traceback (most recent call last): File "resnet50_trainer.py", line 593, in <module> main() File "resnet50_trainer.py", line 589, in main Train(args) File "resnet50_trainer.py", line 429, in Train shared_model=args.use_cpu, TypeError: Parallelize() got an unexpected keyword argument 'shared_model'
原因为data_parallel_model中的Parallelize接口更新,增加了shared_model参数,样例中与源码不对应,所以出现这个错误。
解决方法:去掉shared_model=args.use_cpu参数,建议直接使用源码中example的代码
同样类型错误还有如下:解决方案一样
File "resnet50_trainer.py", line 339, in create_resnet50_model_ops fp16_data=True if args.dtype == 'float16' else False, TypeError: create_resnet50() got an unexpected keyword argument 'fp16_data'
相关文章推荐
- 在python中运行selective-search.py出现no module named numpy错误
- 运行python程序时出现错误“SyntaxError: Non-ASCII character '\xe8' in file variable.py on line 1, but no encod”
- caffe中运行mnist的demo时出现create_mnist.sh: 17: ......convert.bin:not found 错误
- caffe利用caffenet运行bvlc_reference_caffenet.caffemodel时错误
- Loadrunner 出现第一个迭代运行正常,第二个迭代出现错误,参数找不到等等,可能是勾选了“在每个迭代模拟一个新用户”
- cuDNN兼容性问题造成的caffe/mnist,py-faster-rcnn/demo运行结果错误
- 运行setup.py时出现no commands supplied 错误
- cuDNN兼容性问题造成的caffe/mnist,py-faster-rcnn/demo运行结果错误
- 运行scrapy爬虫出现错误:exceptions.ImportError: libmysqlclient.so.18: cannot open shared object file
- mac下运行CocosCreator的genbindings.py出现的错误
- opencv运行出现错误ffmpeg
- caffe Resnet-50 finetune 所有代码+需要注意的地方
- 使用WebView控件时运行出现错误提示
- 修改桌面堆栈大小,解决运行大量程序时出现”Out of Memory”(内存不足)错误信息的问题
- Cocos2dx 模拟器运行出现错误:cannot find GLES2.0
- [我的Linux技术支持生涯]运行ntpq -p出现“timed out, nothing received”错误
- 【python问题系列--2】脚本运行出现语法错误:IndentationError: unindent does not match any outer indentation level
- 在eclipse中运行pygraphviz 错误(ValueError: Program dot not found in path.)
- 解决QPST 出现的 "服务器正在运行" 的 下载错误.