0.自定义数据集参考：
mmseg/datasets/stare.py
configs/_base_/datasets/stare.py

1.自定义数据集构建相关问题：
提示’MYDataset is not in the dataset registry’
python setup.py install # 运行此命令即可解决
# 参考网站：https://blog.csdn.net/qq_43199876/article/details/128000202

2.RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [2, 512, 27, 27]], which is output 0 of ReluBackward0, is at version 1; expected version 0 instead.
Turns out the uper_head.py code in mmseg/models/decode_heads will throw an error on line 104 due to the +=/-= operation. 
# 由于/mmseg/models/XXX有+=/-=操作
重新运行：python setup.py install # 运行此命令即可解决
# 参考网站：https://github.com/SwinTransformer/Swin-Transformer-Semantic-Segmentation/issues/60