CASIA-IVA-Lab / ZBS

ZBS: Zero-shot Background Subtraction via Instance-level Background Modeling and Foreground Selection (CVPR2023)
Apache License 2.0
43 stars 11 forks source link

windows是运行不了吗 #3

Open liushh39 opened 1 year ago

an-yongqi commented 1 year ago

No description provided.

最终版本的代码没有尝试在Windows上运行过,但前几版能在Windows上顺利运行。请问具体遇到了什么报错,发出来我看看能不能帮助解决。

I haven't tried to run the final version of the code on Windows, but the previous versions worked fine on Windows. Please tell me exactly what error you encountered and send it to me to see if I can help solve it.

liushh39 commented 1 year ago

搭环境就不太好搭,会报错

liushh39 commented 1 year ago

writing manifest file 'detectron2.egg-info\SOURCES.txt' running build_ext building 'detectron2._C' extension E:\anaconda\envs\zbs\lib\site-packages\setuptools\command\easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( E:\anaconda\envs\zbs\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( E:\anaconda\envs\zbs\lib\site-packages\torch\utils\cpp_extension.py:304: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn(f'Error checking compiler version for {compiler}: {error}') 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/

HelyaHsiung commented 5 months ago

writing manifest file 'detectron2.egg-info\SOURCES.txt' running build_ext building 'detectron2._C' extension E:\anaconda\envs\zbs\lib\site-packages\setuptools\command\easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( E:\anaconda\envs\zbs\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( E:\anaconda\envs\zbs\lib\site-packages\torch\utils\cpp_extension.py:304: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn(f'Error checking compiler version for {compiler}: {error}') 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/

看样子似乎是在安装 detectron2 框架时产生了问题,我是最近在学习这个工作,参考 CSDN 上的文章 win10下detectron2编译安装方法及问题汇总 来安装 detectron2 框架的,迟到的回答,仍希望有所益处。