marcotcr / lime

Lime: Explaining the predictions of any machine learning classifier
BSD 2-Clause "Simplified" License
11.64k stars 1.81k forks source link

correction in data_labels function #752

Open eduardoafonso1089 opened 4 months ago

eduardoafonso1089 commented 4 months ago

The "temp" image needs to be converted to grayscale for the new version of Keras models. However, the image must be in RGB format for segmentation. Therefore, this line of code makes the routine more robust.