'How to restrict the output of GAN as "one channel one mask"?

I'm a beginner to Deep Learning, and I'm using a deep CNN structure to generate masks. I hope every channel of the output contains exactly one mask, but I found some channels may contain 0 or 2 masks, so what should I do to solve the problem.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source