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

Error encountered while compiling and installing the "deep-hough" module. #35

Open
hungryDodo opened this issue Mar 10, 2022 · 3 comments

Comments

@hungryDodo
Copy link

Thank you for your excellent work.

I'm having problems configuring the runtime environment for the code in the repository according to the Requirements.
During the installation of the deep-hough module by compiling the model/_cdht, I encountered the following error:

1 error detected in the compilation of "C:/Users/Dodo/Desktop/deep-hough-transform/model/_cdht/deep_hough_cuda_kernel.cu".
deep_hough_cuda_kernel.cu
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "D:\ProgramData\Anaconda3\envs\dht\lib\site-packages\torch\utils\cpp_extension.py", line 1516, in _run_ninja_build
    subprocess.run(
  File "D:\ProgramData\Anaconda3\envs\nanodet\lib\subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

...

RuntimeError: Error compiling objects for extension

After some preliminary troubleshooting, it seems to be due to a version mismatch between ninja and pytorch.
I am running this code in Windows system.

What is your version number? Could you please tell me if you have encountered this problem?

Again, my respects.

@Hanqer
Copy link
Owner

Hanqer commented Mar 10, 2022

I think the trouble is not the version between ninja and PyTorch. We use pytorch>=1.3 and <= 1.6 and default ninja in Ubuntu16/18. Currently, I do not try compiling it on Windows system, all experiments are conducted in Linux/ Unbuntu system.

@HassanBinHaroon
Copy link

@hungryDodo You can follow the following Github repository to reproduce the work on pretrained or NKL and SEL datasets (hopefully without any error). The implementation is on Google Colab and you can run it from anywhere.

It successfully installs the ninja library.

https://github.com/HassanBinHaroon/deep-hough-transform

@laborer123
Copy link

Thank you for your excellent work.

I'm having problems configuring the runtime environment for the code in the repository according to the Requirements. During the installation of the module by compiling the , I encountered the following error:deep-hough``model/_cdht

1 error detected in the compilation of "C:/Users/Dodo/Desktop/deep-hough-transform/model/_cdht/deep_hough_cuda_kernel.cu".
deep_hough_cuda_kernel.cu
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "D:\ProgramData\Anaconda3\envs\dht\lib\site-packages\torch\utils\cpp_extension.py", line 1516, in _run_ninja_build
    subprocess.run(
  File "D:\ProgramData\Anaconda3\envs\nanodet\lib\subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

...

RuntimeError: Error compiling objects for extension

After some preliminary troubleshooting, it seems to be due to a version mismatch between and . I am running this code in Windows system.ninja``pytorch

What is your version number? Could you please tell me if you have encountered this problem?

Again, my respects.

Did you solve the problem? I also use it on windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants