stylegan-v2 报错 error: #error "C++ versions less than C++11 are not supported.

元气小坏坏 提交于 2020-04-11 10:03:45

运行stylegan-v2报错:

error: #error "C++ versions less than C++11 are not supported.

 

解决方法:

打开   dnnlib/tflib/custom_ops.py的 修改第64行:

将 cmd = 'nvcc ' + opts.strip()

改为:cmd = 'nvcc --std=c++11 -DNDEBUG ' + opts.strip() 

 

发布了78 篇原创文章 · 获赞 239 · 访问量 54万+
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!