Custom TAO unet model classifying only two classes on Deepstream!

Please modify threshold to

float threshold = 0.3;

The result is as below.