SyfSchydea / New-Horizons-Pattern-Generator

Takes an image and outputs a New Horizons pattern
3 stars 0 forks source link

"probabilities contain NaN" on image with few unique colours #44

Closed SyfSchydea closed 4 years ago

SyfSchydea commented 4 years ago

When using an image with very few unique colours, k_means_pp_init throws a ValueError on its call to random.choice