New Issue about:Pretrained network G has fewer layers #441

Closed
opened 2023-08-06 09:44:30 +02:00 by ShawnLeung-SII · 2 comments
ShawnLeung-SII commented 2023-08-06 09:44:30 +02:00 (Migrated from github.com)

Totally follow the guidance of this method. And I am sure that the pretrain models are downloaded from the link given by SimSwap.
But the Error is:
Pretrained network G has fewer layers; The following are not initialized:
['down0', 'first_layer', 'last_layer', 'up0']
I see that many same issues here, looking forward to your reply. Thanks.

Totally follow the guidance of this method. And I am sure that the pretrain models are downloaded from the link given by SimSwap. But the Error is: Pretrained network G has fewer layers; The following are not initialized: ['down0', 'first_layer', 'last_layer', 'up0'] I see that many same issues here, looking forward to your reply. Thanks.
ShawnLeung-SII commented 2023-08-08 08:34:20 +02:00 (Migrated from github.com)

I solved that. The first test file lack a hyperparameters. Just add the --crop_size 224/512 after py command. Such as
python test_one_image.py --crop_size 224 --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/

I solved that. The first test file lack a hyperparameters. Just add the --crop_size 224/512 after py command. Such as python test_one_image.py --crop_size 224 --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/
LiangqinRen commented 2024-01-03 17:17:12 +01:00 (Migrated from github.com)

I'm also confused about this, and your post works! Many many thanks.

I'm also confused about this, and your post works! Many many thanks.
Sign in to join this conversation.