Duplicated from sczhou/CodeFormer
206 unmodified lines207208209210211212213214206 unmodified lines restored_img = face_helper.paste_faces_to_input_image( upsample_img=bg_img, draw_box=draw_box ) else: restored_img = restored_face # save restored img save_path = f'output/out.png'