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'
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'