Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

WebGUI运行错误,BUG原因及修订 #189

Open
2544939880 opened this issue Oct 31, 2024 · 0 comments
Open

WebGUI运行错误,BUG原因及修订 #189

2544939880 opened this issue Oct 31, 2024 · 0 comments

Comments

@2544939880
Copy link

webgui.py 文件中,代码的第 167-168 行存在调用 crop_and_pad 函数时未正确解包返回值导致错误。

源代码 文件位置:webgui.py167-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)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant