How to save multi-output predicted masks into two different folders after using model.predict_generator
solve it, I just did this change: 

from:

saveResult(conv11,"data/membrane/test/results/road")
saveResult(convc11,"data/membrane/test/results/cl")


to :

saveResult("data/membrane/test/results/road", conv11)
saveResult("data/membrane/test/results/cl",convc11)


and Ive got each output saved into different folders