yolov5_obb icon indicating copy to clipboard operation
yolov5_obb copied to clipboard

急急急!!!前面一切都很正常,在python set_up.py develop出现错误

Open BigBeardYT opened this issue 1 year ago • 4 comments

下面是全部报错信息,我的配置:Window10,CUDA Driver:11.6, CUDA RUnning(CUDA ToolKit):11.5, 该环境下安装的pytorch版本:11.3

(yolo_obb) D:\Python_OD_project\yolov5_obb-master\utils\nms_rotated>python setup.py develop running develop E:\Anaconda3\envs\yolo_obb\lib\site-packages\setuptools\command\develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated. !!

    ********************************************************************************
    Please avoid running ``setup.py`` and ``easy_install``.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://github.com/pypa/setuptools/issues/917 for details.
    ********************************************************************************

!! easy_install.initialize_options(self) E:\Anaconda3\envs\yolo_obb\lib\site-packages\setuptools_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !!

    ********************************************************************************
    Please avoid running ``setup.py`` directly.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
    ********************************************************************************

!! self.initialize_options() running egg_info writing nms_rotated.egg-info\PKG-INFO writing dependency_links to nms_rotated.egg-info\dependency_links.txt writing top-level names to nms_rotated.egg-info\top_level.txt E:\Anaconda3\envs\yolo_obb\lib\site-packages\torch\utils\cpp_extension.py:381: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) reading manifest file 'nms_rotated.egg-info\SOURCES.txt' writing manifest file 'nms_rotated.egg-info\SOURCES.txt' running build_ext E:\Anaconda3\envs\yolo_obb\lib\site-packages\torch\utils\cpp_extension.py:316: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn(f'Error checking compiler version for {compiler}: {error}') E:\Anaconda3\envs\yolo_obb\lib\site-packages\torch\utils\cpp_extension.py:782: UserWarning: The detected CUDA version (11.5) has a minor version mismatch with the version that was used to compile PyTorch (11.3). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) building '.nms_rotated_ext' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

BigBeardYT avatar Nov 08 '23 02:11 BigBeardYT

说错了,我当前环境下的pytorch为1.10.1,torchvision为0.11.2,torchaudio=0.10.1

BigBeardYT avatar Nov 08 '23 02:11 BigBeardYT

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

人家不是提示你了吗,没有msvc的gongjuji工具集,网页链接也都给你了,去下载安装就是了啊

UNeedCryDear avatar Nov 23 '23 05:11 UNeedCryDear

您好我看您使用的windows10进行运行,因为我这里用windows10运行的时候,出现运行终端不显示运行结果P,R,MAP以及各个LOSS,同时不生成结果文件,请问可以和您讨论这个问题吗? train

mbl1234 avatar Dec 25 '23 01:12 mbl1234

您好我看您使用的windows10进行运行,因为我这里用windows10运行的时候,出现运行终端不显示运行结果P,R,MAP以及各个LOSS,同时不生成结果文件,请问可以和您讨论这个问题吗?

问题有点宽泛,导致的原因有多种。从cuda版本到数据集问题都有可能导致这个问题,我比较建议你debug下源码,看下进去训练和val的时候数据对不对,计算map这些参数的时候为什么为0。如果你不会debug,建议花10分钟找下你用的IDE怎么进行debug,这个学一学是很有必要的。

UNeedCryDear avatar Dec 25 '23 02:12 UNeedCryDear