Yes I believe that I understand your data now. To answer the questions below



 Deb_Prakash_Chatterj:

I just wanna know why this TP, TN, FP, FN is 819, 602, 1691, 181(for the first example)? if the true negative is 602, then what about other examples? Like I have 1000 images in training class 0, means first class. Where this 1691 comes from? I am pretty much confused now.


You can’t just think about one class in isolation here. You have to consider them all. The reason you have 1691 at FP is that out of all the images that is shown to it, 1691 of them were incorrectly classified as class 0. There were a lot of rightly classified images as class 0 (TP=819).
That’s it, im out. Good luck bro