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

KeyError: "The name 'embeddings:0' refers to a Tensor which does not exist. The operation, 'embeddings', does not exist in the graph." #909

Open
huangzicheng opened this issue Nov 3, 2018 · 4 comments

Comments

@huangzicheng
Copy link

when i run validate_on_lfw.py, it always show that error.........i have used trian_softmax.py training results to run validate_on_lfw.py , it was also....could give some help.....@davidsandberg

@raphasramos
Copy link

Did u solve this problem?

@StonePanda
Copy link

hello, did u solve this problem?

@petervickers
Copy link

Hi, this may be too late to be helpful but I found this error occured when I passed the index file of the saved graph instead of the directory itself. (see src/facenet.get_model_filenames)

@Vitomir2
Copy link

Vitomir2 commented Feb 7, 2021

@davidsandberg Dear David,
I have the the error mentioned in the title. I am using the pre-defined model that is given in the 'Wiki' page and there is no 'embeddings' tensor in the default graph. I found what is the problem, the .meta file cannot imported to the graph and it gives the following error:

`` Node 'gradients/InceptionResnetV1/Bottleneck/BatchNorm/cond/FusedBatchNorm_1_grad/FusedBatchNormGrad' has an _output_shapes attribute inconsistent with the GraphDef for output #3: Dimension 0 in both shapes must be equal, but are 0 and 512. Shapes are [0] and [512]. ''

It gives the error in the facenet.py file, on line 381 - saver = tf.train.import_meta_graph(os.path.join(model_exp, meta_file), input_map=input_map)

Do you know how I can solve this issue?

I followed the 'Wiki' step by step and everything was okay, till the last step where I face this problem.

Best regards,
Vitomir

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

5 participants