-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Cannot cast ufunc 'multiply' output from dtype('float64') to dtype('uint8') with casting rule 'same_kind' #214
Comments
I got the same error, on Linux. |
requested a fix: #217 |
jensanjo
added a commit
to jensanjo/Bringing-Old-Photos-Back-to-Life
that referenced
this issue
Jan 18, 2022
Edit file "align_warp_back_multiple_dlib.py", line 219, change from this will solve the problem. |
It works. Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I run this library on Windows 10, it throws out the following error:
Running Stage 4: Blending
Traceback (most recent call last):
File "align_warp_back_multiple_dlib.py", line 428, in
blended = blur_blending_cv2(warped_back, blended, backward_mask)
File "align_warp_back_multiple_dlib.py", line 219, in blur_blending_cv2
mask *= 255.0
numpy.core._exceptions.UFuncTypeError: Cannot cast ufunc 'multiply' output from dtype('float64') to dtype('uint8') with casting rule 'same_kind'
Finish Stage 4 ...
Environment details:
The text was updated successfully, but these errors were encountered: