We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在 webgui.py 文件中,代码的第 167-168 行存在调用 crop_and_pad 函数时未正确解包返回值导致错误。
webgui.py
167-168
crop_and_pad
源代码 文件位置:webgui.py 第 167-168 行:
face_img = crop_and_pad(face_img, crop_rect) face_mask = crop_and_pad(face_mask, crop_rect)
问题原因 crop_and_pad 函数的返回值是一个包含两个元素的元组,但源代码未正确解包,导致后续代码出现错误。
建议将代码修订为:
face_img, _ = crop_and_pad(face_img, crop_rect) face_mask, _ = crop_and_pad(face_mask, crop_rect)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在
webgui.py
文件中,代码的第167-168
行存在调用crop_and_pad
函数时未正确解包返回值导致错误。源代码 文件位置:
webgui.py
第167-168
行:问题原因
crop_and_pad
函数的返回值是一个包含两个元素的元组,但源代码未正确解包,导致后续代码出现错误。建议将代码修订为:
The text was updated successfully, but these errors were encountered: