TFPnP icon indicating copy to clipboard operation
TFPnP copied to clipboard

Could not train CT dataset

Open hhapk opened this issue 3 years ago • 6 comments

Thank you for your fascinating paper. When I want to train CT dataset, where the code from script.sh, there is a mistake. "AttributeError: module 'tfpnp.utils.transforms' has no attribute 'RadonGenerator'".
1 I woder, should I set enable_CT = True(line 445, in transforms.py)? 2 But when I set enable_CT = True(line 445, in transforms.py), there is a new mistake. "NameError: name 'Radon' is not defined". (PS: have downloaded torch_radon in url:https://github.com/kshkss/torch-radon) Looking forward to your reply!

hhapk avatar Oct 14 '22 12:10 hhapk

Hi, yes you need to set enable_CT = True, and install torch_radon from https://github.com/matteo-ronchetti/torch-radon This package would be somewhat tricky to install. Please let me know if you encounter any problems.

Vandermode avatar Oct 14 '22 16:10 Vandermode

Oh, yes. When I install torch_radon from https://github.com/matteo-ronchetti/torch-radon, your CT training code runs smoothly. Thank you for your quickly reply!

hhapk avatar Oct 15 '22 02:10 hhapk

Thanks for your contribution, it is wonderful.I encounter a problem when I install torch_radon from https://github.com/matteo-ronchetti/torch-radon .When I run "python setup.py install", it raises the question: FileNotFoundError: [WinError 2] 系统找不到指定的文件。

syf0518 avatar Jun 26 '23 03:06 syf0518

Please type python setup.py install in the torch-radon main directory

Vandermode avatar Jun 26 '23 06:06 Vandermode

Please type python setup.py install in the torch-radon main directory

Thank you for your reply.The error is in line 9,setup.py. Due to I don't have a environment variable named "CUDA_NAME", I replace it by "CUDA_PATH". But it raises the question:ERROR IN COMPILATION.My computer system is Windows, how can I install torch-radon easily? 图片

syf0518 avatar Jun 26 '23 08:06 syf0518

Well it looks like a computing arch issue that is tricky to be solved. Please open a new issue in https://github.com/matteo-ronchetti/torch-radon and ask the author to see whether he can help.

Vandermode avatar Jun 27 '23 12:06 Vandermode