DeepXuan / DuDoDp-MAR

Official implementation of the paper "Unsupervised CT Metal Artifact Reduction by Plugging Diffusion Priors in Dual Domains"
47 stars 7 forks source link

issue about torch_radon.radon import FanBeam #2

Open boktae7 opened 3 months ago

boktae7 commented 3 months ago

Hello. Among the updated codes, mar.py There is code 'from torch_radon.radon import FanBeam'. I installed it from the torch_radon site listed in requirements.txt. However, since torch_raon.radon was missing, I tried to use RadonFanbeam in torch_radon (from torchradon import RadonFanbeam). In this case, 'CUDA error at cudaMemcpy3D(&myparms) (src/texture.cu:96) error in ' = fp(Xgt)'. The error 'code: 1, error string: invalid argument' occurs. Have you ever checked for this error? I'm curious if you know a solution. What should I do if I want to use the code you posted instead of 'RadonFanbeam'?

DeepXuan commented 3 months ago

Hi, did you install this version of torchradon? https://github.com/matteo-ronchetti/torch-radon/tree/c1d3af21a64f4c97e74d37472dccda2294b65ae2 Because there are changes in the API between different versions of torchradon, I am using the version of the tag above.

boktae7 commented 3 months ago

Thank you for your reply. If you access the site using a method other than the link you sent, version 1.0.0 is displayed. I solved it!