I encounter
line 195 in build_image_embeddings tf.GraphKeys.GLOBAL_VARIABLES, scope="InceptionV3")
AttributeError: type object 'GraphKeys' has no attribute 'GLOBAL_VARIABLES'
when I try to run readme example using pretrained model executing
bazel-bin/im2txt/run_inference --checkpoint_path=${CHECKPOINT_DIR} --vocab_file=${VOCAB_FILE} --input_files=${IMAGE_FILE}
Please, let me know about additional information you may need. Thank you in advance.
I got the same error with the older version of tensorflow - '0.11.0rc0'. Try upgrading it to 12.
What does this error mean, I get the same error ...
/Users/Pro/anaconda/lib/python3.5/site-packages/prettytensor/pretty_tensor_image_methods.py in __call__(self, input_layer, kernel, depth, activation_fn, stride, l2loss, weights, bias, edges, batch_normalize, phase, parameter_modifier, name)
209 params = parameter_modifier(
210 'weights',
--> 211 self.variable('weights', size, weights, dt=dtype),
212 phase)
213 y = tf.nn.conv2d(input_layer, params, stride, edges)
/Users/Pro/anaconda/lib/python3.5/site-packages/prettytensor/pretty_tensor_class.py in variable(self, var_name, shape, init, dt, train)
1660 train = _defaults.get('trainable_variables', True)
1661 variable_collections = _defaults.get('variable_collections', ())
-> 1662 if tf.GraphKeys.GLOBAL_VARIABLES not in variable_collections:
1663 variable_collections = list(variable_collections) + [
1664 tf.GraphKeys.GLOBAL_VARIABLES]
AttributeError: type object 'GraphKeys' has no attribute 'GLOBAL_VARIABLES'
got a same error.
Got the same error after upgrading TF to 0.12 and downgrading it back to 0.10
Automatically closing due to lack of recent activity. Since this issue is old at this point, please reopen the issue if it still occurs when tried with the latest version of Tensorflow. Thank you.
Most helpful comment
I got the same error with the older version of tensorflow - '0.11.0rc0'. Try upgrading it to 12.