How many classes do you have and how is the imbalance proportion wise?
The accuracies in the first figure might come from overfitting to the majority class, thus the general accuracy seems to be good, while the mean per class accuracies are bad.
Have a look at the Accuracy paradox 26 to see, why the accuracy might lead to wrong assumptions in an imbalanced setting.
I’ll wait for the confusion matrices before further speculation.