I am using Deeplabv3+ to perform semantic segmentation in an image but the result shows strong discontinuities due to patch-wise predictions. Is there a way of using overlapping patches that are aggregated (or averaged) to produce the output? I tried to use a code showed inthis example. However the output has still the patchy pattern. Any sollutions?