Closed charliehaydenhicks closed 1 year ago
'turbo' is not supported in older versions of matplotlib. Please upgrade matplotlib.
Okay, I had already run the pip install --upgrade matplotlib
command but the error persisted. I'll investigate as an issue with pip
Update: looks like pip was indeed able to update matplotlib. I can call cm.turbo in the terminal, but after rebooting I still have the issue in the app.
Here's what I see in the terminal (proof turbo should exist)
cm.turbo(5 / 255)
(0.21291, 0.12947, 0.37314, 1.0)
If matplotlib is the updated version in the terminal but not while running the project, could it be a virtualenv issue? I'm not sure how that works in colab.
Adding an install.py
-file like this might resolve the issue for future users:
import launch
if not launch.is_installed('matplotlib'):
launch.run_pip('install matplotlib==3.6.2', desc='Installing matplotlib==3.6.2')
import launch if not launch.is_installed('matplotlib'): launch.run_pip('install matplotlib==3.6.2', desc='Installing matplotlib==3.6.2')
Thanks @Havegum , would this be a new file or inserted into an existing. If so where would that file be made or found?
Thanks @Havegum ! I added this one line to the launch.py file. I am running it on gdrive so the file was there to edit.
run_pip('install matplotlib==3.6.2', desc='Installing matplotlib==3.6.2')
run_pip('install matplotlib==3.6.2', desc='Installing matplotlib==3.6.2')
Where exactly you added this line? Having the same issue.
Where exactly you added this line? Having the same issue.
Create a new file in the root folder of this extension. If you haven't renamed the folder, it's probably at /extensions/stable-diffusion-webui-daam
. Create a file in there called install.py
, put those three lines in, save, and start the webui.
Note that the render completed, but the extension did not. as in, the main image was rendered, but not the heatmaps.
Error
AttributeError: module 'matplotlib.cm' has no attribute 'turbo'
Using automatic 1111 colab
full dump