nightrome / cocostuff10k

The official homepage of the (outdated) COCO-Stuff 10K dataset.
https://arxiv.org/abs/1612.03716
277 stars 55 forks source link

How can I visualize my DeepLab test results? #25

Closed night-zhang closed 6 years ago

night-zhang commented 6 years ago

Hi,

First of all, thanks for your great work.

My question is, after I finished training my model, the training process gave me some results for my test set. Those results are in .mat format. Is there any script that I can use to visualize .mat files (e.g., a script that help me convert .mat file into .png file with different color for different class)? I have been searching a lot but I am not a Matlab guru.

Thanks in advance!

nightrome commented 6 years ago

Just use basic Matlab functions:

mat = load(fileName);
imagesc(mat.varName); % not sure what the name of the variable is that file
saveas(...)

Alternatively look at Matlab functions ind2rgb and imwrite.