first-order-model icon indicating copy to clipboard operation
first-order-model copied to clipboard

How to train the kp_detector model only?

Open GesilaA opened this issue 3 years ago • 3 comments

The architecture of kp_detector defined in 'modules/keypoint_detector.py', and applied in 'GeneratorFullModel'. Loss function contains 'perceptual', 'generator_gan', 'feature_matching', 'equivariance_value', and 'equivariance_jacobian'. Which loss are designed for the kp_detector training?How to separate the keypoint model from 'GeneratorFullModel'? I'm looking forward for your replies.

GesilaA avatar Jul 26 '21 03:07 GesilaA

You can not separate kpdetector from the rest. The most important aspect is the fact that network is able to reconstruct the driving image from the driving keypoints, so perceptual loss is the most important. However you can not separate it from generator training.

AliaksandrSiarohin avatar Jul 26 '21 09:07 AliaksandrSiarohin

@AliaksandrSiarohin Thank you for your rapid reply! Is 'perceptual' loss used to learn the unsupervised keypoints, 'equivariance_value' and 'equivariance_jacobian' losses are designed for keypoints stabilizing? Or all of the losses would affect the keypoints learning?

GesilaA avatar Jul 27 '21 06:07 GesilaA

All of them affect keypoint training.

AliaksandrSiarohin avatar Jul 27 '21 08:07 AliaksandrSiarohin