EricZgw / PyramidBox

A Context-assisted Single Shot Face Detector in TensorFlow
277 stars 89 forks source link

AttributeError: 'module' object has no attribute 'plasma' #5

Closed Adarine99 closed 6 years ago

Adarine99 commented 6 years ago

when I run demo.py , this problem came in and I couldn't solve that,appreciate if anyone can help me. the details as below: def colors_subselect(colors, num_classes=21): dt = len(colors) // num_classes sub_colors = [] for i in range(num_classes): color = colors[idt] if isinstance(color[0], float): sub_colors.append([int(c 255) for c in color]) else: sub_colors.append([c for c in color]) return sub_colors colors_plasma = colors_subselect(mpcm.plasma.colors, num_classes=21) AttributeError: 'module' object has no attribute 'plasma'

Adarine99 commented 6 years ago

need to update the version matplotlib.thanks anyway