HiLab-git / PyMIC_examples

examples of using PyMIC for medical image computing with deep learning
32 stars 4 forks source link

How to train #1

Closed 2873238593 closed 2 years ago

2873238593 commented 2 years ago

First of all, thank you for your work, and secondly, I would like to ask how to solve this error during training。

2873238593 commented 2 years ago

site-packages/pymic/transform/normalize.py", line 28, in init self.mask_enable = params['NormalizeWithMeanStd_mask'.lower()] KeyError: 'normalizewithmeanstd_mask'

taigw commented 2 years ago

You should set the value of 'normalizewithmeanstd_mask' in the configure file. For example:

normalizewithmeanstd_mask = False
2873238593 commented 2 years ago

Thanks for your answer, the problem has been solved. I noticed that there is a part of image cropping in your network, but I didn’t find out where it is. Could you please point it out?

taigw commented 2 years ago

The image cropping is implemented in pymic.transform.crop