CovPoolFER
CovPoolFER copied to clipboard
tensorflow.python.framework.errors_impl.InvalidArgumentError: <exception str() failed>
I am running this code, after training several epochs on the two data sets, this error will occur, can you give me some advice? Thank you.
Traceback (most recent call last):
File "src/train.py", line 330, in
I have the same problem. Have you solved it?
Sorry, I can not solve the problem. I have tried some methods to solve it, but it faild.
------------------ 原始邮件 ------------------ 发件人: "JFanL"<[email protected]>; 发送时间: 2019年11月18日(星期一) 上午8:11 收件人: "d-acharya/CovPoolFER"<[email protected]>; 抄送: "ZRL"<[email protected]>;"Author"<[email protected]>; 主题: Re: [d-acharya/CovPoolFER] tensorflow.python.framework.errors_impl.InvalidArgumentError: <exception str() failed> (#10)
I have the same problem. Have you solved it?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I solved it. In sess, the normalized place went wrong. mean, var = tf.nn.moments(m, axes=[2]) leads to tf.nn.batch_normalization(x=m, mean=mean, variance =var, offset=shift, scale=scale, variance_epsilon=0) The data does not correspond (the number of digits is different) and cannot be calculated. It needs to be changed to mean, var = tf.nn.moments(m, axes=[0,1, 2]), it is solved.
Where is the code "mean, var = tf.nn.moments(m, axes=[2])"? I can't find it. Please help me. Thank you very much.
------------------ 原始邮件 ------------------ 发件人: "JFanL"<[email protected]>; 发送时间: 2019年11月19日(星期二) 上午8:43 收件人: "d-acharya/CovPoolFER"<[email protected]>; 抄送: "ZRL"<[email protected]>;"Author"<[email protected]>; 主题: Re: [d-acharya/CovPoolFER] tensorflow.python.framework.errors_impl.InvalidArgumentError: <exception str() failed> (#10)
I solved it. In sess, the normalized place went wrong. mean, var = tf.nn.moments(m, axes=[2]) leads to tf.nn.batch_normalization(x=m, mean=mean, variance =var, offset=shift, scale=scale, variance_epsilon=0) The data does not correspond (the number of digits is different) and cannot be calculated. It needs to be changed to mean, var = tf.nn.moments(m, axes=[0,1, 2]), it is solved.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.