Skip to content
New issue

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

remove the folders from the "path" variable causing bug during inference #499

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SAMN-DS
Copy link

@SAMN-DS SAMN-DS commented Nov 17, 2022

The following error was caused because of subfolders in the input folder:

File "C:\Users......\AppData\Local\Programs\Python\Python310\lib\site-packages\facexlib\utils\face_restoration_helper.py", line 355, in paste_faces_to_input_image
upsample_img = inv_soft_mask * pasted_face + (1 - inv_soft_mask) * upsample_img
ValueError: operands could not be broadcast together with shapes (1404,2000,1) (1404,2000)

By taking away the folders from the "path" variable. The problem is fixed.

Great Job to you!

@SAMN-DS SAMN-DS changed the title remove the folders from the "path" variable, those are causing bug du… remove the folders from the "path" variable causing bug during inference Nov 17, 2022
@Dalaoyel
Copy link

hello,I used your method but it still failed. Is there any latest progress? tanke,you

@Dalaoyel
Copy link

Maybe it's because the grayscale is missing a channel?It's well when i remove 00017 gry.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants