There are only few Steps,
First Make a Dataloader for semantic segmentation
Second, choose to write your network or perform transfer learning using pretrained network from torchvision models.
Follow any simple github example of training using the same hyperparameters