This commit is contained in:
end-4 2024-03-28 20:56:12 +07:00
parent 58e67bf0ca
commit f9c060a497

View file

@ -46,7 +46,7 @@ if args.path is not None:
wsize_new, hsize_new = calculate_optimal_size(wsize, hsize, args.size)
if wsize_new < wsize or hsize_new < hsize:
image = image.resize((wsize_new, hsize_new), Image.Resampling.BICUBIC)
colors = QuantizeCelebi(image.getdata(), 128)
colors = QuantizeCelebi(list(image.getdata()), 128)
argb = Score.score(colors)[0]
if args.cache is not None: