Reputation: 81
I'm currently using matplotlib 3.9.0.
I was able to run it before, so I suspect there might be an issue with my environment. I'm not sure how to resolve it.
Here are the details of the error:
File "C:\Users\Desktop\PyTorch_OpenPose_ori\pytorch_advanced-master\4_pose_estimation\inference.py", line 11, in <module>
from utils.openpose_net import OpenPoseNet
File "C:\Users\Desktop\PyTorch_OpenPose_ori\pytorch_advanced-master\4_pose_estimation\utils\__init__.py", line 4, in <module>
from .decode_pose import *
File "C:\Users\Desktop\PyTorch_OpenPose_ori\pytorch_advanced-master\4_pose_estimation\utils\decode_pose.py", line 18, in <module>
cmap = matplotlib.cm.get_cmap('hsv')
AttributeError: module 'matplotlib.cm' has no attribute 'get_cmap'
Could anyone help me figure out how to solve this issue?
I was trying to load weights and perform inference with OpenPose.
Upvotes: 7
Views: 12478
Reputation: 97
This error originated from matplotlib version 3.9.0
.
Try to install older version which might solve your issue:
pip install matplotlib==3.7.3
Upvotes: 6