Closed EmilienLH closed 4 months ago
As far as I can see, themaster branch was updated three months ago to fix this problem. There are two things you can do to solve your issue:
pip install git+https://github.com/paulgavrikov/visualkeras
pip install Pillow<=9.5.0
@edoardo-tam's answer is correct, marking this as resolved. (will be updating pypi soon)
Describe the bug The title essentially explains it. Since Pillow was upgraded to version 10.x, the
getsize()
function has been removed. This raises an error when attempting to use thelegend=True
parameter, as it makes a call togetsize()
.Minimal Code To Reproduce
Expected behavior The ability to call the legend parameter without encountering any errors.
Screenshots
Environment (please complete the following information):
Additional context I've read that this issue can be easily fixed by using either
getbbox()
orgetlength()
for Pillow 10.x.x. However, I'm unsure how extensively the code needs to be modified to fully resolve it.