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

Import Exception (missing torch_radon_cuda.py?) #61

Open
dichen9412 opened this issue Jan 28, 2024 · 2 comments
Open

Import Exception (missing torch_radon_cuda.py?) #61

dichen9412 opened this issue Jan 28, 2024 · 2 comments

Comments

@dichen9412
Copy link

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 dichen9412 changed the title Import Exception Import Exception (missing torch_radon_cuda.py?) Jan 28, 2024
@dichen9412
Copy link
Author

dichen9412 commented Jan 28, 2024

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
Copy link

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

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

2 participants