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

運行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() 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章