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
Image RGB array must be uint8 or floating point; found int32 #61
Comments
change plt = plotter.Plotter(plot, num_images=1, out_filename=out_filename) to: |
Guml's answer above works. |
This issue stems from the call to the locater here: face_morpher/facemorpher/averager.py Line 103 in 7a30611
The locator.average_points returns an int32 type as defined here: face_morpher/facemorpher/locator.py Lines 91 to 97 in 7a30611
The version of matplotlib uses requires it to be a uint8 when attempting to save the plot - hence the raised exception. |
When using background=average, got this:
root@bfa4a21e5b8e:/app# python face_morpher/facemorpher/averager.py --work=/app/work/tmp/avg --out=work/result/1.png --background=average
<class 'numpy.ndarray'>
Averaged 3 work
Image RGB array must be uint8 or floating point; found int32
The text was updated successfully, but these errors were encountered: