Reconstructed image does not display

I have tried to implement k means code on other images and the practice image but each time I try the reconstructed image never displays

Hello @Me_Regi,

how did you do this? Can you describe it and maybe share one example image file here that couldn’t be displayed properly? I suspect you only need to make some code changes to make it work.

Note: please don’t share your notebook here, nor any assignment code for exercises. If you have implemented additional code that’s not about the exercises, you may share it here.

Raymond

Ok after running the code the only output I get is the compressed image with 16 clusters that is black I don’t get the pale colour

Hello @Me_Regi,

how did you do this? Can you describe it and maybe share one example image file here that couldn’t be displayed properly? I suspect you only need to make some code changes to make it work.

Note: please don’t share your notebook here, nor any assignment code for exercises. If you have implemented additional code that’s not about the exercises, you may share it here.

Please also share the compressed image here.

Raymond

I had the same problem. It was solved once I did ‘Kernel’->‘Restart & Run All’