Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Layer named InstanceNorm5d is already registered! #30

Open
Keepbright opened this issue Oct 22, 2019 · 0 comments
Open

ValueError: Layer named InstanceNorm5d is already registered! #30

Keepbright opened this issue Oct 22, 2019 · 0 comments

Comments

@Keepbright
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant