Pylette
Pylette copied to clipboard
Fix Kmeans quantization randomness, Explicit documentation on resize
What kind of changes does this PR introduce?
- Fix: Fix randomness in Kmeans quantization mode by setting the random_state to 2024
- Doc: Explicitly state the resize shape (256 x 256) used by pylette under the hood for clarity purposes
- Doc: state median-cut implementation alongside Kmeans for clarification on the future plan list
What is the current behavior?
- For every code run, the frequency, luminance, and palette colors keep changing when mode='KM'
- It can be confusing to users who are not great at inspecting code functionality
- It can be confusing to users who prefer direct documentation of available features
What is the new behavior?
- For every code run, the frequency, luminance, and palette colors are constant when mode='KM' as expected
- More explicit to users who are not great at inspecting code functionality
- More explicit to users who prefer direct documentation of available features