matteo-ronchetti / torch-radon

Computational Tomography in PyTorch
https://torch-radon.readthedocs.io
GNU General Public License v3.0
219 stars 45 forks source link

Import Exception (missing torch_radon_cuda.py?) #61

Open dichen9412 opened 10 months ago

dichen9412 commented 10 months ago

Hi there,

I encountered an error saying " Import Exception" after install it via "wget -qO- https://raw.githubusercontent.com/matteo-ronchetti/torch-radon/master/auto_install.py | python -". The main problem seems to be the missing import of "torch_radon_cuda".

There is a code in torch_radon/init.py

try: import torch_radon_cuda from torch_radon_cuda import RaysCfg except Exception as e: print("Importing exception")

However, the file "torch_radon_cuda" is completely missing.

Could you have a look at this? Thanks!

Best, Di

dichen9412 commented 10 months ago

I tried to compile it from the source and after fixing a few typos in the C++ code (I solved a conflict with "cudafp16.h" (by removing using namespace std; and change it to std:: xxxx instead ). After all this, I made it work on my EC2 environment. However, I hope the author could solve these issues.

rafi4rlr commented 9 months ago

I tried to compile it from the source and after fixing a few typos in the C++ code (I solved a conflict with "cudafp16.h" (by removing using namespace std; and change it to std:: xxxx instead ). After all this, I made it work on my EC2 environment. However, I hope the author could solve these issues.

Can you share the updated codes