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

pretrained model #1

Open
kaishijeng opened this issue Apr 28, 2019 · 7 comments
Open

pretrained model #1

kaishijeng opened this issue Apr 28, 2019 · 7 comments

Comments

@kaishijeng
Copy link

@seasonSH

Since CASIA dataset is difficult to get, can you provide your pretrained models for performance evaluation?

Thanks
Kaishi

@seasonSH
Copy link
Owner

I will upload one PFE model trained with this code.

@kaishijeng
Copy link
Author

Thanks,

@seasonSH
Copy link
Owner

I have uploaded more pre-trained models, including a better one which is trained on Ms-ArcFace.

@kaishijeng
Copy link
Author

I will download both pretrained models and try them out.

Thanks,

@kaishijeng
Copy link
Author

i use PFE_sphere64_msarcface_am and got the following lfw accuracy:

Euclidean (cosine) accuracy: 0.99717 threshold: 1.50062
MLS accuracy: 0.99833 threshold: -2435.03760

Not sure why MLS accuracy threshold is huge negative number.

I have a question of how to use PFE_sphere64_msarcface_am to do face recognition of 2 face images.
I know preprocessing, alignment and network.extract_feature(image) to obtain mu, sigma_sq.
How to use features of mu, sigma_sq to identify whether these 2 images beloging to the same person or not?

Thanks,

@tanpengshi
Copy link

tanpengshi commented Jul 8, 2021

I can no longer evaluate the PFE_sphere64_msarcface_am pretrained model for lfw accuracy! Came across the error here:

    157             print('Metagraph file: %s' % meta_file)
    158             print('Checkpoint file: %s' % ckpt_file)
--> 159             saver = tf.compat.v1.train.import_meta_graph(meta_file, clear_devices=False, import_scope=scope)
    160             saver.restore(self.sess, ckpt_file)

ValueError: Node 'gradients/UncertaintyModule/fc_log_sigma_sq/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].

Kindly help! Thank you! :)

@chidaksh
Copy link

@tanpengshi were you able to find any workaround for the same? Even I'm stuck at the same issue and unable to move forward

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

4 participants