SimSwap
SimSwap copied to clipboard
something about train
what's value the id_loss should to achieve so that the simswap have good result,looking forward to your reply,thank you
def forward(self, img_id, img_att, latent_id, latent_att, for_G = False):
the next question about tag(for_G ),is it have some effects?thank you
On question #1 The ID loss uses cosine similarity (applied in the face recognition network family a.k.a ArcFace) This is to increase the similarity between the two images in terms of ID. If model is learned in a desirable direction by this loss, the generated image reflects the ID of the source image well.