motion-cosegmentation icon indicating copy to clipboard operation
motion-cosegmentation copied to clipboard

How can I use the checkpoint of first_order_motion_model with changing the number of segments

Open xupp1989 opened this issue 4 years ago • 4 comments

Hello @AliaksandrSiarohin !

I have tried the code using the following command python part_swap.py --source_image ./final.jpeg --target_video ./crop.mp4 --checkpoint vox-first-order.pth.tar --config ./motion-cosegmentation/config/vox-256-sem-15segments.yaml --supervised --first_order_motion_model --swap_index 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15

image

How can I use the checkpoint of first_order_motion_model with changing the number of segments?

xupp1989 avatar Aug 18 '20 08:08 xupp1989

It is not possible, need retraining.

AliaksandrSiarohin avatar Aug 18 '20 09:08 AliaksandrSiarohin

Is the number of key point num_kp in first_order_motion_model correspond with the the number of segments?

xupp1989 avatar Aug 18 '20 09:08 xupp1989

Yes

AliaksandrSiarohin avatar Aug 18 '20 09:08 AliaksandrSiarohin

Thanks for the answer, makes sense now

xupp1989 avatar Aug 18 '20 09:08 xupp1989