You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValueError: Variable E_conv0/w/Adam/ does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=tf.AUTO_REUSE in VarScope?
#7
I am using Tensor Flow version 1.12 and Python 3.6.
I don't know how to fix this error.
Traceback (most recent call last):
File "/home/math01/exprgan/joint-train/main.py", line 58, in
tf.app.run()
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 125, in run
_sys.exit(main(argv))
File "/home/math01/exprgan/joint-train/main.py", line 46, in main
num_epochs=FLAGS.epoch, # number of epochs
File "/home/math01/exprgan/joint-train/exprgan.py", line 267, in train
var_list=self.E_variables + self.G_variables
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/training/optimizer.py", line 410, in minimize
name=name)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/training/optimizer.py", line 593, in apply_gradients
self._create_slots(var_list)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/training/adam.py", line 135, in _create_slots
self._zeros_slot(v, "m", self._name)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/training/optimizer.py", line 1139, in _zeros_slot
new_slot_variable = slot_creator.create_zeros_slot(var, op_name)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/training/slot_creator.py", line 183, in create_zeros_slot
colocate_with_primary=colocate_with_primary)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/training/slot_creator.py", line 157, in create_slot_with_initializer
dtype)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/training/slot_creator.py", line 65, in _create_slot_var
validate_shape=validate_shape)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py", line 1487, in get_variable
aggregation=aggregation)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py", line 1237, in get_variable
aggregation=aggregation)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py", line 540, in get_variable
aggregation=aggregation)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py", line 492, in _true_getter
aggregation=aggregation)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py", line 879, in _get_single_variable
"reuse=tf.AUTO_REUSE in VarScope?" % name)
ValueError: Variable E_conv0/w/Adam/ does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=tf.AUTO_REUSE in VarScope?
Process finished with exit code 1
The text was updated successfully, but these errors were encountered:
I can't remember this error..
exprGAN has many errors and the version is too old..
and result is not good..
-----Original Message-----
From: "Ruananx"<notifications@github.com>
To: "HuiDingUMD/ExprGAN"<ExprGAN@noreply.github.com>;
Cc: "KoDongWoo"<koodoowoo@naver.com>; "State change"<state_change@noreply.github.com>;
Sent: 2019-10-19 (토) 21:03:43 (GMT+09:00)
Subject: Re: [HuiDingUMD/ExprGAN] ValueError: Variable E_conv0/w/Adam/ does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=tf.AUTO_REUSE in VarScope? (#7)
I meet the same error, too. How did you solve it?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
I am using Tensor Flow version 1.12 and Python 3.6.
I don't know how to fix this error.
Traceback (most recent call last):
File "/home/math01/exprgan/joint-train/main.py", line 58, in
tf.app.run()
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 125, in run
_sys.exit(main(argv))
File "/home/math01/exprgan/joint-train/main.py", line 46, in main
num_epochs=FLAGS.epoch, # number of epochs
File "/home/math01/exprgan/joint-train/exprgan.py", line 267, in train
var_list=self.E_variables + self.G_variables
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/training/optimizer.py", line 410, in minimize
name=name)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/training/optimizer.py", line 593, in apply_gradients
self._create_slots(var_list)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/training/adam.py", line 135, in _create_slots
self._zeros_slot(v, "m", self._name)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/training/optimizer.py", line 1139, in _zeros_slot
new_slot_variable = slot_creator.create_zeros_slot(var, op_name)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/training/slot_creator.py", line 183, in create_zeros_slot
colocate_with_primary=colocate_with_primary)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/training/slot_creator.py", line 157, in create_slot_with_initializer
dtype)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/training/slot_creator.py", line 65, in _create_slot_var
validate_shape=validate_shape)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py", line 1487, in get_variable
aggregation=aggregation)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py", line 1237, in get_variable
aggregation=aggregation)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py", line 540, in get_variable
aggregation=aggregation)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py", line 492, in _true_getter
aggregation=aggregation)
File "/home/math01/anaconda3/envs/py363/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py", line 879, in _get_single_variable
"reuse=tf.AUTO_REUSE in VarScope?" % name)
ValueError: Variable E_conv0/w/Adam/ does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=tf.AUTO_REUSE in VarScope?
Process finished with exit code 1
The text was updated successfully, but these errors were encountered: