tkuanlun350 / 3DUnet-Tensorflow-Brats18

3D Unet biomedical segmentation model powered by tensorpack with fast io speed
202 stars 68 forks source link

ValueError: Layer named InstanceNorm5d is already registered! #30

Open Keepbright opened 5 years ago

Keepbright commented 5 years ago

Hi, @tkuanlun350 , when I ran train.py, the error occurred. And the dataset and filepath have been modified already.

Traceback (most recent call last): File "E:/CTAs/HeartSegmentaion/Codes/3DUnet-Tensorflow-Brats18-master/train.py", line 20, in from model import ( unet3d, Loss )

File "E:\CTAs\HeartSegmentaion\Codes\3DUnet-Tensorflow-Brats18-master\model.py", line 14, in from custom_ops import BatchNorm3d, InstanceNorm5d

File "E:\CTAs\HeartSegmentaion\Codes\3DUnet-Tensorflow-Brats18-master\custom_ops.py", line 29, in def InstanceNorm5d(x, epsilon=1e-5, use_affine=True, gamma_init=None, data_format='channels_last'):

File "D:\ProgramData\Anaconda3\lib\site-packages\tensorpack\models\registry.py", line 138, in wrapper _register(func.name, wrapped_func)

File "D:\ProgramData\Anaconda3\lib\site-packages\tensorpack\models\registry.py", line 24, in _register raise ValueError("Layer named {} is already registered!".format(name))

ValueError: Layer named InstanceNorm5d is already registered!