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!
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!