SimSwap icon indicating copy to clipboard operation
SimSwap copied to clipboard

Can anyone help? Pretrained network G has fewer layers; The following are not initialized: ['down0', "first_layer',"last_layer','up0‘]

Open GoodFanxinran opened this issue 2 years ago • 3 comments

I got the strange image when I ran this: python test_one_image.py --name people --Arc_path arcface_model/arcface_checkpoint.tar --pic_a_path crop_224/6.jpg --pic_b_path crop_224/ds.jpg --output_path output/

result

Here is the details: image

Don`t know the reason. @neuralchen Could you please give me some suggestions if you are avaliable?

GoodFanxinran avatar Jul 24 '23 09:07 GoodFanxinran

me too many people have reported this problem

https://github.com/neuralchen/SimSwap/issues/432

https://github.com/neuralchen/SimSwap/issues/247

KleinXin avatar Jul 24 '23 13:07 KleinXin

Have you got this file ( latestnet_G.pth) in your /checkpoints/people folder? and that it is about 215Mb? It not then your model is not sufficiently trained. You can download the trained model from here: https://github.com/neuralchen/SimSwap/releases, if you do 224, then download the older one (not 512), and extract it to the folder above.

nghiap avatar Jul 29 '23 22:07 nghiap

solved, solution form here

shidalao avatar Aug 08 '23 09:08 shidalao