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

batch_renorm exists some errors #4

Open
Rebeccayoyo opened this issue Mar 9, 2020 · 13 comments
Open

batch_renorm exists some errors #4

Rebeccayoyo opened this issue Mar 9, 2020 · 13 comments

Comments

@Rebeccayoyo
Copy link

TypeError: add_weight() got multiple values for argument 'name'
this is about the version of tensorflow or keras?

@hellloxiaotian
Copy link
Owner

The codes are right. Please check your environment with that of this paper.

@youngyuzheng
Copy link

TypeError: add_weight() got multiple values for argument 'name'
Have you ever figured out how to solve this error?

@hellloxiaotian
Copy link
Owner

The codes are right. Please check your environment with that of this paper.

@ouisyasser
Copy link

I have also the same error ? have someone ever figured out how to solve the problem ?

@hellloxiaotian
Copy link
Owner

I have run the code again. However, I didn't find the question above.

@hellloxiaotian
Copy link
Owner

hellloxiaotian commented Jun 24, 2020

My running environment of BRDNet is as follows,
Tensorflow 1.3.0
Keras 2.0
Numpy
Opencv 2
Python 2.7
Cuda 8.0
Cudnn 7.5
Ubuntu 14.04

@ouisyasser
Copy link

ouisyasser commented Jun 24, 2020 via email

@hellloxiaotian
Copy link
Owner

hellloxiaotian commented Jun 24, 2020 via email

@Rebeccayoyo
Copy link
Author

I have also the same error ? have someone ever figured out how to solve the problem ?

当时是复查了环境依赖项,与原作者一致,这个问题就解决了

@HaowenGuan
Copy link

HaowenGuan commented Jul 8, 2020

This problem can be solved by changing
self.gamma = self.add_weight(shape,initializer=self.gamma_init,regularizer=self.gamma_regularizer,name='{}_gamma'.format(self.name))
to
self.gamma = self.add_weight(shape=shape,initializer=self.gamma_init,regularizer=self.gamma_regularizer,name='{}_gamma'.format(self.name))
for all of add_weight call

@HaowenGuan
Copy link

It is really hard to match your original running enviroment, since tensorflow no longer support python version lower than 3.5
Can you guys fix the code to match the mainstream enviroment?
I am having problem to load_model, too.

@adnankhalid7454
Copy link

ValueError: Shape must be rank 1 but is rank 0 for 'batch_renormalization_3/Reshape_10' (op: 'Reshape') with input shapes: [1,1,1,64], [].

can you please resolve this error while loading the model

@saimayasmeen4
Copy link

Hi https://github.com/adnankhalid7454, can you please let me know either your code is running?

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

7 participants