Paper Ref :- Semantic Segmentation using Adversarial Networks
Stanford Background Segmentation dataset is used. There are 8 classes. The label maps are one-hot-encodified and compressed and stored in HD5F format.
Real_Loss = BinaryCrossEntropyLoss(discriminator(Real_Label_Map), Ones)
Fake_Loss = BinaryCrossEntropyLoss(discriminator(Fake_Label_Map), Zeroes) ## Fake label map => generated by the segmentor
SLoss = CrossEntropy(Generated, Actual) + Lambda*BinaryCrossEntropyLoss(discriminator(Fake_Label_Map), Ones)
Prolonged access to GPU was not available. This was trained for 12 epochs with only 1 image per mini-batch ( lack of high memory GPU ).