Closed satyanarayan-rao closed 6 years ago
Hi @marcotcr,
Could you please look into this problem setting and let me know if there are significant changes to be made to make it work.
Thanks a lot, Satya
Yeah , I think we assume the image will have 3 channels (which I think is pretty standard for images) throughout lime_image.py
. The segmentation function definitely assumes it, and so does the part that hides superpixels. Sorry, I won't make the changes to make it work with 4. They're not super major, but I think 3 is standard enough.
Hi,
I have a keras model with two separate input and output in [0,1] (please see the model architecture below). The loss function used here is
mse
.Both input data has four channels. And prediction is done as per the standard keras call:
I tried to use
lime_image
module, but it doesn't support list as input instance to predict function. To address this concern, I followedlime_image.py
to create another file (attached as txt)lime_multi_input.py.txt
lime_multi_input.py.txtAnother issue I have is that my input has four channels and
SegmentationAlgorithm
function throws error:ValueError: the input array must be have a shape == (.., ..,[ ..,] 3)), got (1, 24, 4, 4)
Has someone encountered similar issues? I am wondering how to handle input with four channels. And how feasible it is to do for regression?
Thanks!