Open nissansz opened 7 months ago
output_img = Image.fromarray(labels, 'P')
output_img.putpalette(palette.flatten())
print(output_filename)
output_img.save(r"F:/"+output_filename, dpi=dpi)
Added a root folder, and it is fine to save a result, the color changes, image size reduced
pillow 10.4 error PIL\Image.py", line 1087, in convert im = self.im.convert(mode, dither) ValueError: conversion not supported