shirgur / UnsupervisedDepthFromFocus

Single Image Depth Estimation Trained via Depth from Defocus Cues
MIT License
114 stars 27 forks source link

PSF layer install error #1

Open sunnyHelen opened 5 years ago

sunnyHelen commented 5 years ago

Thank you for sharing your work. I'd like to try the code, but the first step installing is with something wrong. Could you please help me? image

everythoughthelps commented 4 years ago

i met this problem too,have you solve it?

fuy34 commented 4 years ago

I solved it by replacing the original path in the setup.py with absolute path.

Crispig commented 4 years ago

I solved it by replacing the original path in the setup.py with absolute path.

You are right! replace "gauss_psf_kernel.cu" with "gauss_psf_cuda_kernel.cu" in setup.py

xuejiancai commented 2 years ago

I solved it by replacing the original path in the setup.py with absolute path.

You are right! replace "gauss_psf_kernel.cu" with "gauss_psf_cuda_kernel.cu" in setup.py

I do the same with you,but it got error: g++: error: /home/xxx/torch_project/UnsupervisedDepthFromFocus-master/UnsupervisedDepthFromFocus-master/ext/build/temp.linux-x86_64-3.8/gauss_psf_cuda.o: 没有那个文件或目录 g++: error: /home/xxx/torch_project/UnsupervisedDepthFromFocus-master/UnsupervisedDepthFromFocus-master/ext/build/temp.linux-x86_64-3.8/gauss_psf_cuda_kernel.o: 没有那个文件或目录 could you help me? @Crispig thx!

Crispig commented 2 years ago

I forget the details of this project, but I remember that there is a difference between the call to some files in the setup file and the actual file names, so you can pay attention to that. @xuejiancai

xuejiancai commented 2 years ago

I forget the details of this project, but I remember that there is a difference between the call to some files in the setup file and the actual file names, so you can pay attention to that. @xuejiancai

ok,thx!

Moushumi9medhi commented 2 weeks ago

In case this still helps anyone, I solved it by renaming the "gauss_psf_kernel.cu" with "gauss_psf_cuda_kernel.cu" in setup.py and copying all the files inside the ext/ directory to the main folder. Then I had run the setup file inside the main folder.