栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

window10 pytorch编译DCNv2 遇到的错误 (yolact ++)

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

window10 pytorch编译DCNv2 遇到的错误 (yolact ++)

window10 pytorch编译DCNv2 遇到的错误

错误1:

UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.

解决方案:

pip install ninja

错误2:

error: identifier "THCState_getCurrentStream" is undefined

解决方案

1.下载最新的DCNv2  地址:https://github.com/jinfagang/DCNv2_latest  
2.替换原来的DCNv2文件
3.环境使用目前支持的pytorch ≤ 1.8  (开始使用的pytorch 版本=1.10)

编译成功

copying buildlib.win-amd64-3.7_ext.cp37-win_amd64.pyd ->
Creating j:worksoftenvsyolactlibsite-packagesDCNv2.egg-link (link to .)
Adding DCNv2 0.1 to easy-install.pth file
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/589189.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号