Pretrained network G has fewer layers; The following are not initialized: ['down0', 'first_layer', 'last_layer', 'up0']
when i run test_one_image.py exits this issue: Pretrained network G has fewer layers; The following are not initialized: ['down0', 'first_layer', 'last_layer', 'up0']
Same issue with another one on collab file
Pretrained network G has fewer layers; The following are not initialized: ['down0', 'first_layer', 'last_layer', 'up0']
AssertionError Traceback (most recent call last)
/content/SimSwap/insightface_func/face_detect_crop_multi.py in init(self, name, root) 45 print('duplicated model task type, ignore:', onnx_file, model.taskname) 46 del model ---> 47 assert 'detection' in self.models 48 self.det_model = self.models['detection'] 49
AssertionError:
Though this seems to be working
you need to set crop_size to 224, run: !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/ --crop_size 224
Originally posted by @luoxyhappy in #483
But the results were not that great not sure if I did some mistake