amiralansary / rl-medical

Deep Reinforcement Learning (DRL) agents applied to medical images
Apache License 2.0
177 stars 69 forks source link

'function' object has no attribute 'symbolic_function' #12

Closed Vonisoa closed 5 years ago

Vonisoa commented 5 years ago

Hi, when I try to run the DQN.py inside examples/LandmarkDetection using the command: python DQN.py --task play --algo DQN --gpu 0 --load data/models/DQN_multiscale_brain_mri_point_pc_ROI_45_45_45/model-600000 --files './data/filenames/image_files.txt'

I got the following error:

File "DQN.py", line 88, in _get_DQN_prediction with argscope(Conv3D, nl=PReLU.symbolic_function, use_bias=True): AttributeError: 'function' object has no attribute 'symbolic_function'

Can you help please?

klekass commented 5 years ago

I had the same error, because I was using the wrong tensorpack version. Downgrading tensorpack to version 0.9.5 solved the issue for me.

amiralansary commented 5 years ago

Hey @Vonisoa As @klekass mentioned, you will need to use the same package versions as here requirments