chunk_content: de_palette())
  
  for label, color in enumerate(palette):
      color_seg[pred_seg == label, :] = color
  color_seg = color_seg[..., ::-1]  # convert to BGR
  
  img = np.array(image) * 0.5 + color_seg * 0.5  # plot the image with the segmentation map
  img = img.astype(np.uint8)
  
  plt.figure(figsize=(15, 10))
  plt.imshow(img)
  plt.show()
  As you can see, the results are far from perfect, however, this example is designed to illustrate the end-to-end workflow o