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

torch_radon_cuda.forward() method returns tensors with all zero #38

Open
braynisboring opened this issue Oct 5, 2022 · 7 comments
Open

Comments

@braynisboring
Copy link

Thank you for your excellent work on this project, but I ran into some problems and wanted to confirm with you.
I have followed your documentation as:

After I run these commands,the terminal displays these commands
image
and I use python and import torch and import torch_radon_cuda,The program reports no errors.

But,when I use :

  x = torch.randn(2, 1, 512, 512).to("cuda")
  from torch_radon import Radon
  angeles = np.linspace(0, np.pi, 512, endpoint=False)
  radon = Radon(512,angeles)
  pro = radon.forward(x)

I found that the pro here is a tensor with all zero, I also converted this tensor into a PIL image to save, the picture is all black.
I want to know where is the problem.
Hope for your reply

@braynisboring
Copy link
Author

At the same time, I noticed that the radon.forward() method is implemented through the torch_radon_cuda.forward() method of RadonForward(), but I found that there is noforward()method in torch_radon_cuda, is this normal, or am I doing something wrong with the installation.
image

The image is the entire content of torch_radon_cuda.py

@linfengyu77
Copy link

I have the same problem. Did you solve this problem ?

@braynisboring
Copy link
Author

I have the same problem. Did you solve this problem ?

not yet..

@Love-Sunshine
Copy link

I have the same problem. Did you solve this problem ?

@amberhappy
Copy link

Same problem!

@Mucixia
Copy link

Mucixia commented Sep 18, 2024

解决了吗

@Mucixia
Copy link

Mucixia commented Sep 18, 2024

同样的问题!

请问你解决了吗

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

5 participants