deep-hough-transform icon indicating copy to clipboard operation
deep-hough-transform copied to clipboard

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

Open hungryDodo opened this issue 2 years ago • 3 comments

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.

hungryDodo avatar Mar 10 '22 08:03 hungryDodo

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.

Hanqer avatar Mar 10 '22 08:03 Hanqer

@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

HassanBinHaroon avatar Aug 11 '22 01:08 HassanBinHaroon

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

laborer123 avatar May 16 '23 03:05 laborer123