Closed ph-got closed 4 years ago
Please try the latest master branch again.
Still got the error that I solved by adding :
elif which_model_netG == 'face_unet_shift_triple': netG = FaceUnetGenerator(input_nc, output_nc, 8, opt, innerCos_list, shift_list, mask_global, \ ngf, use_spectral_norm=use_spectral_norm)
in networks.py
However then got another error:
Traceback (most recent call last):
File "/home/user/Shift-Net_pytorch/test.py", line 20, in
Process finished with exit code 1
Not netG = FaceUnetGenerator(input_nc, output_nc, 8, opt, innerCos_list, shift_list, mask_global, \ ngf, use_spectral_norm=use_spectral_norm)
It is netG = FaceUnetGenerator(input_nc, output_nc, 8, innerCos_list, shift_list, mask_global, opt, \ ngf, use_spectral_norm=use_spectral_norm)
instead.
It is not consistent with other shiftnet function declaration...
I believe it is solved, feel free to reopen it if you have any questions.
Hello, it seems while using test.py and random face model (v2 I guess) that the generator for face_unet_shift_triple is not implemented. Also should 'face_shiftnet' or 'shifnet' be used ? Many thanks.
Traceback (most recent call last): File "test.py", line 20, in <module> model = create_model(opt) File "/home/user/Shift-Net_pytorch/models/__init__.py", line 30, in create_model model.initialize(opt) File "/home/user/Shift-Net_pytorch/models/shift_net/shiftnet_model.py", line 72, in initialize opt.which_model_netG, opt, self.mask_global, opt.norm, opt.use_spectral_norm_G, opt.init_type, self.gpu_ids, opt.init_gain) File "/home/user/Shift-Net_pytorch/models/networks.py", line 111, in define_G raise NotImplementedError('Generator model name [%s] is not recognized' % which_model_netG) NotImplementedError: Generator model name [face_unet_shift_triple] is not recognized