polimi-ispl / icpr2020dfdc

Video Face Manipulation Detection Through Ensemble of CNNs
GNU General Public License v3.0
259 stars 100 forks source link

what is embedding_routine function used for? #69

Closed Dero19xx closed 2 years ago

Dero19xx commented 2 years ago

Hello @CrohnEngineer, I had some problems when I ran train_triplet.py. I dont unterstand what is embedding_routine function used for? Can you help me to answer this question?

CrohnEngineer commented 2 years ago

Hey @Dero19xx ,

The embedding_routine function is used during the training loop for computing the embeddings (i.e., the features extracted by the network) for all samples of the training and validation set.
These embeddings are then plotted using Tensorboard and in this way we can "see" how the features of REAL and FAKE videos separate as the training converges and the network learns to discriminate between them. Hope this is clear, but in case just ask whatever question you have in mind! Bests