It's possible to mix and match all sorts of encoders and decoders. If the output of the encoder can be mapped to the input of the decoder, and a loss function can be backpropagated through the model, then it is possible to combine them.
HoweverImage segmentation, although many encoders gohowever, can be done simply with many decodersU-NET, as it does not necessarily mean that the performance willcan be any goodtrained as an image segmentation model. ForYou can use an encoder to 'encode' your example, in particularimage, part ofto make it easier to segment with the appeal of U-NET is the skip connections. If you removeIm assuming that the UImage-NETSegmentation library you linked is actually just doing that, using an encoder and use a different encoder, then those skip connections will not exist, and I would assume the resulting model will not perform incredibly wellapplying U-NET for image segmentation.