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

AttributeError: 'RadonFanbeam' object has no attribute 'noise_generator' #39

Open Mariulyanovamipt opened 2 years ago

Mariulyanovamipt commented 2 years ago

Got error: AttributeError: 'RadonFanbeam' object has no attribute 'noise_generator' though I don't call noise_generator

LiRunyi2001 commented 2 years ago

I also came across this problem when using radon. Is there any fix or other solution for this issue?

Masaaki-75 commented 1 year ago

Maybe check the type of your input. I got this problem when I fed my array as np.ndarray, but after converting it to floatType torch.Tensor everything ran fine.

Mucixia commented 2 months ago

我在使用 radon 时也遇到了这个问题。有没有其他解决方案可以解决这个问题?

你解决了吗