In this tutorial 11 that was on the previously linked page, under the header " DeepLabv3 Model" they give a custom function on how to change the ‘head’ of the network to predict however many classes you want. Their example of having only 2 classes, background, and something else, is what you’re doing. So I would stick close to their tutorial.
Hope that helps!