Closed shehrum closed 3 years ago
I want to finetune the Generator model in expression_reenactment_video2video.py
expression_reenactment_video2video.py
In the training script train_reenactment.py, the generator loss is defined as:
train_reenactment.py
loss_G_total = rec_weight loss_rec + seg_weight loss_seg + gan_weight * loss_G_GAN
I wanted to ask if I need to use the same loss, or a different loss for finetuning as defined in the finetuning function of master branch reenact.py file.
reenact.py
loss_pixelwise = self.criterion_pixelwise(img_pred, img[1][0]) loss_id = self.criterion_id(img_pred, img[1][0]) loss_rec = 0.1 * loss_pixelwise + loss_id
We use a different loss in the finetuning stage because of speed considerations, you can use the full loss as well.
I want to finetune the Generator model in
expression_reenactment_video2video.py
In the training script
train_reenactment.py
, the generator loss is defined as:I wanted to ask if I need to use the same loss, or a different loss for finetuning as defined in the finetuning function of master branch
reenact.py
file.