GithubHelp home page GithubHelp logo

Comments (8)

davidsandberg avatar davidsandberg commented on May 1, 2024

Hi!
Sorry for the delayed response...
Which revision of the facenet repository are you running?
From the error message it looks like a tensor name between the stored model and the creation of the network differs.
I just tried with the latest and that one seems to work fine.

from facenet.

yobibyte avatar yobibyte commented on May 1, 2024

Hi, David!

Thank you, it works now. I would also like to ask some questions about the implementation details. Do you have time? Should I do it here in the comments? Or email/skype/facebook is better?

from facenet.

davidsandberg avatar davidsandberg commented on May 1, 2024

Hi,
Great that it works!
Feel free to ask questions in this thread.

from facenet.

yobibyte avatar yobibyte commented on May 1, 2024

The main question is about training loop here.

  • On line 147 you start iterating over the epochs and for every epoch you call train() function.
  • On line 175 you start iterating over the batches
  • but for some reason from line 202 you iterate over batches again.

Why do you need to iterate over batches inside every batch iteration?

from facenet.

davidsandberg avatar davidsandberg commented on May 1, 2024

This is a little confusing in the code and has to do with the fact that the facenet paper uses a batch size of 40_45 examples. But this requires quite a bit of GPU memory and to still be able to train using 40_45 examples the batch is split into fragments and processed sequentially in the code.

from facenet.

yobibyte avatar yobibyte commented on May 1, 2024

Got it. Thanks. Have you tried smaller batches? Does it dramatically affect the performance?

from facenet.

davidsandberg avatar davidsandberg commented on May 1, 2024

I haven't experimented with different batch sizes so I don't have a feel for how it affects performance.

from facenet.

yobibyte avatar yobibyte commented on May 1, 2024

Okay. Thanks for all the comments.

from facenet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.