MobileFaceNet_TF icon indicating copy to clipboard operation
MobileFaceNet_TF copied to clipboard

How to create tfrecords for VGGFace2 dataset using utils/dataprocess.py.

Open Mamtesh11 opened this issue 4 years ago • 2 comments

Thanks for sharing code for this MobileFaceNet!

I am trying to train this on VGGFace2 dataset, to do that train_nets.py required tfrecords as input data. I am generating tfrecords using below script.

https://github.com/Merle314/WildFace/blob/master/tools/convert_vggface2.py

This script creates multiple shared of tfrecord, I created multiple shared and single shared both and feed to train_nets.py. In the both the cases I am getting below error.

tensorflow.python.framework.errors_impl.InvalidArgumentError: Input to reshape is a tensor with 76800 values, but the requested shape has 37632

I am suspecting above error because of inappropriate format of tfrecord. So, kindly help me to generate correct tfrecords.

Thanks!

Mamtesh11 avatar Jul 07 '20 06:07 Mamtesh11

Hey @Mamtesh11 I got the same issue. Input to reshape is a tensor with 76800 values, but the requested shape has 37632. Have you found the solution?

malik-anhar avatar Oct 07 '20 05:10 malik-anhar

Hi @malik-anhar,

I have overcome from that error after using the tfrecords from VGGFace2@GoogleDrive.

I hope this will help.

Mamtesh11 avatar Oct 08 '20 10:10 Mamtesh11