我是靠谱客的博主 酷酷冰淇淋,这篇文章主要介绍Win10 安装detectron2记录Win10 安装detectron2记录,现在分享给大家,希望可以做个参考。

Win10 安装detectron2记录

第一次:

虚拟环境的 pytorch=1.7.0 torvision=0.8.0
按照教程执行

python setup.py build --force develop

后报错
RuntimeError: extension 相关报错

第二次:

卸载pytorch和torchvision,重新安装pytorch=1.5 torchvision=0.6 修改相关文件

运行

Using your-pathlibsite-packages
Finished processing dependencies for detectron2==0.1

安装成功显示

Name: detectron2
Version: 0.1
Summary: Detectron2 is FAIR's next-generation research platform for object detection and segmentation.
Home-page: https://github.com/facebookresearch/detectron2
Author: FAIR
Author-email: None
License: UNKNOWN
Location: c:usersabalidetectron2
Requires: termcolor, Pillow, yacs, tabulate, cloudpickle, matplotlib, tqdm, tensorboard, imagesize
Required-by: slowfast

win10下运行slowfast相关问题欢迎讨论

更新;slowfast相关报错

1.AttributeError: module ‘torch.distributed’ has no attribute ‘is_initialized’
参考link修改C:UsersAbali.condaenvsPRLibsite-packagesslowfastutilsdistributed.py

2.detectron2输出视频文件无法播放
修改demo/demo.py
第123行

output_fname = os.path.splitext(output_fname)[0] + ".mp4"

第131行

 fourcc=cv2.VideoWriter_fourcc('X','V','I','D'),

最后

以上就是酷酷冰淇淋最近收集整理的关于Win10 安装detectron2记录Win10 安装detectron2记录的全部内容,更多相关Win10内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(104)

评论列表共有 0 条评论

立即
投稿
返回
顶部