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
When I run the stageI/run_exp.py. I meet the problem as follows:
Traceback (most recent call last):
File "/home/shizhenbo/PycharmProjects/StackGAN-master/stageI/run_exp.py", line 62, in
image_shape=dataset.image_shape
File "/home/shizhenbo/PycharmProjects/StackGAN-master/stageI/model.py", line 34, in init
self.d_encode_img_template = self.d_encode_image()
File "/home/shizhenbo/PycharmProjects/StackGAN-master/stageI/model.py", line 164, in d_encode_image
custom_conv2d(self.df_dim, k_h=4, k_w=4).
File "/home/shizhenbo/.conda/envs/py27/lib/python2.7/site-packages/prettytensor/pretty_tensor_class.py", line 1965, in method
with _method_scope(input_layer, scope_name) as (scope, _):
File "/home/shizhenbo/.conda/envs/py27/lib/python2.7/contextlib.py", line 17, in enter
return self.gen.next()
File "/home/shizhenbo/.conda/envs/py27/lib/python2.7/site-packages/prettytensor/pretty_tensor_class.py", line 1776, in _method_scope
scopes.var_and_name_scope((name, None)) as (scope, var_scope):
File "/home/shizhenbo/.conda/envs/py27/lib/python2.7/contextlib.py", line 17, in enter
return self.gen.next()
File "/home/shizhenbo/.conda/envs/py27/lib/python2.7/site-packages/prettytensor/scopes.py", line 55, in var_and_name_scope
vs_key = tf.get_collection_ref(variable_scope._VARSCOPE_KEY)
AttributeError: 'module' object has no attribute '_VARSCOPE_KEY'
Why ?
Maybe the number of lines are different to yours. Someone can help me? Thank you
The text was updated successfully, but these errors were encountered:
I had a similar issue and solved it using pip install tensorflow==1.7.0. This is because of PrettyTensor incompatibility in some functions with Tensorflow's latest versions.
When I run the stageI/run_exp.py. I meet the problem as follows:
Traceback (most recent call last):
File "/home/shizhenbo/PycharmProjects/StackGAN-master/stageI/run_exp.py", line 62, in
image_shape=dataset.image_shape
File "/home/shizhenbo/PycharmProjects/StackGAN-master/stageI/model.py", line 34, in init
self.d_encode_img_template = self.d_encode_image()
File "/home/shizhenbo/PycharmProjects/StackGAN-master/stageI/model.py", line 164, in d_encode_image
custom_conv2d(self.df_dim, k_h=4, k_w=4).
File "/home/shizhenbo/.conda/envs/py27/lib/python2.7/site-packages/prettytensor/pretty_tensor_class.py", line 1965, in method
with _method_scope(input_layer, scope_name) as (scope, _):
File "/home/shizhenbo/.conda/envs/py27/lib/python2.7/contextlib.py", line 17, in enter
return self.gen.next()
File "/home/shizhenbo/.conda/envs/py27/lib/python2.7/site-packages/prettytensor/pretty_tensor_class.py", line 1776, in _method_scope
scopes.var_and_name_scope((name, None)) as (scope, var_scope):
File "/home/shizhenbo/.conda/envs/py27/lib/python2.7/contextlib.py", line 17, in enter
return self.gen.next()
File "/home/shizhenbo/.conda/envs/py27/lib/python2.7/site-packages/prettytensor/scopes.py", line 55, in var_and_name_scope
vs_key = tf.get_collection_ref(variable_scope._VARSCOPE_KEY)
AttributeError: 'module' object has no attribute '_VARSCOPE_KEY'
Why ?
Maybe the number of lines are different to yours. Someone can help me? Thank you
The text was updated successfully, but these errors were encountered: