Error running example image
Closed this issue · 0 comments
shiliang26 commented
'''
Traceback (most recent call last):
File "e4s/scripts/face_swap.py", line 392, in
faceSwapping_pipeline(opts.source, opts.target, opts, save_dir=opts.output_dir,
File "python3.9/site-packages/torch/autograd/grad_mode.py", line 28, in decorate_context
return func(*args, **kwargs)
File "e4s/scripts/face_swap.py", line 314, in faceSwapping_pipeline
swapped_and_pasted = smooth_face_boundry(swapped_face_image, T, full_mask_image, radius=outer_dilation)
File "e4s/scripts/face_swap.py", line 95, in smooth_face_boundry
image_masked.putalpha(blurred_mask)
File "python3.9/site-packages/PIL/Image.py", line 1705, in putalpha
self.im.putband(alpha.im, band)
ValueError: images do not match
'''
Please assist. Thank you!