Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问有人用windows配置环境吗 #52

Open
daili650 opened this issue Oct 19, 2021 · 11 comments
Open

请问有人用windows配置环境吗 #52

daili650 opened this issue Oct 19, 2021 · 11 comments
Labels
help wanted Extra attention is needed windows running on windows

Comments

@daili650
Copy link

python setup.py build_ext --inplace命令报错
Traceback (most recent call last):
File "setup.py", line 55, in
CUDA = locate_cuda()
File "setup.py", line 43, in locate_cuda
raise EnvironmentError('The nvcc binary could not be '
OSError: The nvcc binary could not be located in your $PATH. Either add it to your path, or set $CUDAHOME

@sandhyacs
Copy link

hi @daili650 ,

Have you added cuda to your environment variable?

@sandhyacs
Copy link

cuda and cudnn package setup needs to be there. set the path in Environment Variable.

@zhao-lun
Copy link

AttributeError: 'MSVCCompiler' object has no attribute 'compiler_so'

hi, i face the following error as well when trying to compile in windows system.

@Anonymous-ace
Copy link

遇到了同样的问题,请问您是怎么解决的

@LUO77123
Copy link

You need to add the cuda path to bashrc.
export CUDA_HOME=/usr/local/cuda-8.0
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64

PATH=${CUDA_HOME}/bin:${PATH}
export PATH

@daili650
Copy link
Author

可以训练,但是无法测试。出现以下问题:
Traceback (most recent call last):
File "I:/projects/RotationDetection-new/tools/r3det/test_dota.py", line 33, in
tester.eval()
File "I:/projects/RotationDetection-new/tools/r3det/test_dota.py", line 25, in eval
self.test_dota(det_net=r3det, real_test_img_list=real_test_img_list, txt_name=txt_name)
File "I:\projects\RotationDetection-new\tools\test_dota_base.py", line 299, in test_dota
proc.start()
File "D:\Anaconda\envs\rod\lib\multiprocessing\process.py", line 112, in start
self._popen = self._Popen(self)
File "D:\Anaconda\envs\rod\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "D:\Anaconda\envs\rod\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "D:\Anaconda\envs\rod\lib\multiprocessing\popen_spawn_win32.py", line 65, in init
reduction.dump(process_obj, to_child)
File "D:\Anaconda\envs\rod\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: can't pickle module objects
可能是由于windows的多进程问题,但是不知道如何解决。

@yangxue0827
Copy link
Owner

你可以改一个不用多进程的测试脚本。

PS:挺多人问我windows下面怎么跑这个repo的,我也不会,方便的话请你写一个教程。

@LUO77123
Copy link

LUO77123 commented Jan 11, 2022 via email

@yangxue0827
Copy link
Owner

非常感谢 @LUO77123

@yangxue0827 yangxue0827 added the help wanted Extra attention is needed label Jan 28, 2022
@sangheonEN
Copy link

sangheonEN commented Mar 11, 2022

I experience above the problem. I think the solution is cpp to py. because, rbbox_overlaps.cpp module don't read on train.py of each tools. please, if you can translation cpp to py, upload code for us.

what is path of each parameter below capture. (cudaconfig)

image

window cuda toolkit bin is below capture

image

and I want to know what kind of cuda toolkit file for composition parameters of cudaconfig

i download cuda toolkit url is https://developer.nvidia.com/cuda-10.1-download-archive-base?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal.

if, you can download cuda toolkit, tell me about file name consistent with parameters of cudaconfig.

@yangxue0827 yangxue0827 added the windows running on windows label Mar 11, 2022
@1xinyi
Copy link

1xinyi commented Aug 4, 2023

请教您一下关于rotationDetection这个代码如何可以在Windows跑通,我尝试搜索解决方案,但都没有效果,特向您请教!谢谢@LUO77123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed windows running on windows
Projects
None yet
Development

No branches or pull requests

8 participants