# swin_tiny_oc
tools/dist_train.sh configs/swin/upernet_oc_swin_tiny_patch4_window7_512x512_160k_ade20k.py 2 --options model.pretrained=swin_tiny_patch4_window7_224_22k.pth

tools/dist_test.sh configs/swin/upernet_oc_swin_tiny_patch4_window7_512x512_160k_ade20k.py ./work_dirs/upernet_oc_swin_tiny_patch4_window7_512x512_160k_ade20k/latest.pth 2 --aug-test --eval mIoU

tools/dist_test.sh configs/swin/upernet_oc_swin_tiny_patch4_window7_512x512_160k_ade20k.py ./work_dirs/upernet_oc_swin_tiny_patch4_window7_512x512_160k_ade20k/latest.pth 2 --eval mIoU



# swin_small_oc
tools/dist_train.sh configs/swin/upernet_oc_swin_small_patch4_window7_512x512_160k_ade20k.py 2 --options model.pretrained=swin_small_patch4_window7_224_22k.pth

tools/dist_test.sh configs/swin/upernet_oc_swin_small_patch4_window7_512x512_160k_ade20k.py ./work_dirs/upernet_oc_swin_small_patch4_window7_512x512_160k_ade20k/latest.pth 2 --aug-test --eval mIoU

tools/dist_test.sh configs/swin/upernet_oc_swin_small_patch4_window7_512x512_160k_ade20k.py ./work_dirs/upernet_oc_swin_small_patch4_window7_512x512_160k_ade20k/latest.pth 2 --eval mIoU



# swin_base_oc
tools/dist_train.sh configs/swin/upernet_oc_swin_base_patch4_window7_512x512_160k_ade20k.py 2 --options model.pretrained=swin_base_patch4_window12_384_22k.pth

tools/dist_test.sh configs/swin/upernet_oc_swin_base_patch4_window7_512x512_160k_ade20k.py ./work_dirs/upernet_oc_swin_base_patch4_window7_512x512_160k_ade20k/latest.pth 2 --aug-test --eval mIoU

tools/dist_test.sh configs/swin/upernet_oc_swin_base_patch4_window7_512x512_160k_ade20k.py ./work_dirs/upernet_oc_swin_base_patch4_window7_512x512_160k_ade20k/latest.pth 2 --eval mIoU


tools/dist_test.sh configs/swin/upernet_swin_base_patch4_window7_512x512_160k_ade20k.py /home/shaosen/workspace/cv/Swin-Transformer-Semantic-Segmentation/upernet_swin_base_patch4_window7_512x512.pth 2 --aug-test --eval mIoU


# swin_tiny_oc
tools/dist_train.sh configs/swin/upernet_oc_swin_tiny_patch4_window7_512x512_160k_cityscapes.py 2 --options model.pretrained=swin_tiny_patch4_window7_224_22k.pth

tools/dist_test.sh configs/swin/upernet_oc_swin_tiny_patch4_window7_512x512_160k_cityscapes.py ./work_dirs/upernet_oc_swin_tiny_patch4_window7_512x512_160k_cityscapes/latest.pth 2 --aug-test --eval mIoU

tools/dist_test.sh configs/swin/upernet_oc_swin_tiny_patch4_window7_512x512_160k_cityscapes.py ./work_dirs/upernet_oc_swin_tiny_patch4_window7_512x512_160k_cityscapes/latest.pth 2 --eval mIoU 


# swin_tiny
tools/dist_train.sh configs/swin/upernet_swin_tiny_patch4_window7_512x512_160k_cityscapes.py 2 --options model.pretrained=swin_tiny_patch4_window7_224_22k.pth

tools/dist_test.sh configs/swin/upernet_swin_tiny_patch4_window7_512x512_160k_cityscapes.py ./work_dirs/upernet_swin_tiny_patch4_window7_512x512_160k_cityscapes/latest.pth 2 --aug-test --eval mIoU

tools/dist_test.sh configs/swin/upernet_swin_tiny_patch4_window7_512x512_160k_cityscapes.py ./work_dirs/upernet_swin_tiny_patch4_window7_512x512_160k_cityscapes/latest.pth 2 --eval mIoU 


# swin_small_oc
tools/dist_train.sh configs/swin/upernet_oc_swin_small_patch4_window7_512x512_160k_cityscapes.py 2 --options model.pretrained=swin_small_patch4_window7_224_22k.pth

tools/dist_test.sh configs/swin/upernet_oc_swin_small_patch4_window7_512x512_160k_cityscapes.py ./work_dirs/upernet_oc_swin_small_patch4_window7_512x512_160k_cityscapes/latest.pth 2 --aug-test --eval mIoU

tools/dist_test.sh configs/swin/upernet_oc_swin_small_patch4_window7_512x512_160k_cityscapes.py ./work_dirs/upernet_oc_swin_small_patch4_window7_512x512_160k_cityscapes/latest.pth 2 --eval mIoU   


# swin_small
tools/dist_train.sh configs/swin/upernet_swin_small_patch4_window7_512x512_160k_cityscapes.py 2 --options model.pretrained=swin_small_patch4_window7_224_22k.pth

tools/dist_test.sh configs/swin/upernet_swin_small_patch4_window7_512x512_160k_cityscapes.py ./work_dirs/upernet_swin_small_patch4_window7_512x512_160k_cityscapes/latest.pth 2 --aug-test --eval mIoU

tools/dist_test.sh configs/swin/upernet_swin_small_patch4_window7_512x512_160k_cityscapes.py ./work_dirs/upernet_swin_small_patch4_window7_512x512_160k_cityscapes/latest.pth 2 --eval mIoU 


# swin_base_oc
tools/dist_train.sh configs/swin/upernet_oc_swin_base_patch4_window7_512x512_160k_cityscapes.py 2 --options model.pretrained=swin_base_patch4_window12_384_22k.pth

tools/dist_test.sh configs/swin/upernet_oc_swin_base_patch4_window7_512x512_160k_cityscapes.py ./work_dirs/upernet_oc_swin_base_patch4_window7_512x512_160k_cityscapes/latest.pth 2 --aug-test --eval mIoU

tools/dist_test.sh configs/swin/upernet_oc_swin_base_patch4_window7_512x512_160k_cityscapes.py ./work_dirs/upernet_oc_swin_base_patch4_window7_512x512_160k_cityscapes/latest.pth 2 --eval mIoU   

# swin_base
tools/dist_train.sh configs/swin/upernet_swin_base_patch4_window7_512x512_160k_cityscapes.py 2 --options model.pretrained=swin_base_patch4_window12_384_22k.pth

tools/dist_test.sh configs/swin/upernet_swin_base_patch4_window7_512x512_160k_cityscapes.py ./work_dirs/upernet_swin_base_patch4_window7_512x512_160k_cityscapes/latest.pth 2 --aug-test --eval mIoU

tools/dist_test.sh configs/swin/upernet_swin_base_patch4_window7_512x512_160k_cityscapes.py ./work_dirs/upernet_swin_base_patch4_window7_512x512_160k_cityscapes/latest.pth 2 --eval mIoU   


# ================================pascal2012================================

# swin_base_oc
tools/dist_train.sh configs/swin/upernet_oc_swin_base_patch4_window7_512x512_160k_pascal2012.py 2 --options model.pretrained=swin_base_patch4_window12_384_22k.pth

tools/dist_test.sh configs/swin/upernet_oc_swin_base_patch4_window7_512x512_160k_pascal2012.py ./work_dirs/upernet_oc_swin_base_patch4_window7_512x512_160k_pascal2012/iter_16000.pth 2 --aug-test --eval mIoU

tools/dist_test.sh configs/swin/upernet_oc_swin_base_patch4_window7_512x512_160k_pascal2012.py ./work_dirs/upernet_oc_swin_base_patch4_window7_512x512_160k_pascal2012/iter_16000.pth 2 --eval mIoU   


# swin_base
tools/dist_train.sh configs/swin/upernet_swin_base_patch4_window7_512x512_160k_pascal2012.py 2 --options model.pretrained=swin_base_patch4_window12_384_22k.pth

tools/dist_test.sh configs/swin/upernet_swin_base_patch4_window7_512x512_160k_pascal2012.py ./work_dirs/upernet_swin_base_patch4_window7_512x512_160k_pascal2012/latest.pth 2 --aug-test --eval mIoU

tools/dist_test.sh configs/swin/upernet_swin_base_patch4_window7_512x512_160k_pascal2012.py ./work_dirs/upernet_swin_base_patch4_window7_512x512_160k_pascal2012/latest.pth 2 --eval mIoU  


# swin_samll_oc
tools/dist_train.sh configs/swin/upernet_oc_swin_small_patch4_window7_512x512_160k_pascal2012.py 2 --options model.pretrained=swin_small_patch4_window7_224_22k.pth

tools/dist_test.sh configs/swin/upernet_oc_swin_small_patch4_window7_512x512_160k_pascal2012.py ./work_dirs/upernet_oc_swin_small_patch4_window7_512x512_160k_pascal2012/iter_48000.pth 2 --aug-test --eval mIoU

tools/dist_test.sh configs/swin/upernet_oc_swin_small_patch4_window7_512x512_160k_pascal2012.py ./work_dirs/upernet_oc_swin_small_patch4_window7_512x512_160k_pascal2012/iter_48000.pth 2 --eval mIoU   


# swin_samll
tools/dist_train.sh configs/swin/upernet_swin_small_patch4_window7_512x512_160k_pascal2012.py 2 --options model.pretrained=swin_small_patch4_window7_224_22k.pth

tools/dist_test.sh configs/swin/upernet_swin_small_patch4_window7_512x512_160k_pascal2012.py ./work_dirs/upernet_swin_small_patch4_window7_512x512_160k_pascal2012/iter_16000.pth 2 --aug-test --eval mIoU

tools/dist_test.sh configs/swin/upernet_swin_small_patch4_window7_512x512_160k_pascal2012.py ./work_dirs/upernet_swin_small_patch4_window7_512x512_160k_pascal2012/iter_16000.pth 2 --eval mIoU  



# swin_tiny_oc
tools/dist_train.sh configs/swin/upernet_oc_swin_tiny_patch4_window7_512x512_160k_pascal2012.py 2 --options model.pretrained=swin_tiny_patch4_window7_224_22k.pth

tools/dist_test.sh configs/swin/upernet_oc_swin_tiny_patch4_window7_512x512_160k_pascal2012.py ./work_dirs/upernet_oc_swin_tiny_patch4_window7_512x512_160k_pascal2012/iter_16000.pth 2 --aug-test --eval mIoU

tools/dist_test.sh configs/swin/upernet_oc_swin_tiny_patch4_window7_512x512_160k_pascal2012.py ./work_dirs/upernet_oc_swin_tiny_patch4_window7_512x512_160k_pascal2012/iter_16000.pth 2 --eval mIoU   

# swin_tiny
tools/dist_train.sh configs/swin/upernet_swin_tiny_patch4_window7_512x512_160k_pascal2012.py 2 --options model.pretrained=swin_tiny_patch4_window7_224_22k.pth

tools/dist_test.sh configs/swin/upernet_swin_tiny_patch4_window7_512x512_160k_pascal2012.py ./work_dirs/upernet_swin_tiny_patch4_window7_512x512_160k_pascal2012/iter_16000.pth 2 --aug-test --eval mIoU

tools/dist_test.sh configs/swin/upernet_swin_tiny_patch4_window7_512x512_160k_pascal2012.py ./work_dirs/upernet_swin_tiny_patch4_window7_512x512_160k_pascal2012/iter_16000.pth 2 --eval mIoU   


echo "============upernet_oc_swin_base============"
tools/dist_test.sh configs/swin/upernet_oc_swin_base_patch4_window7_512x512_160k_pascal2012.py ./work_dirs/upernet_oc_swin_base_patch4_window7_512x512_160k_pascal2012/iter_16000.pth 2 --aug-test --eval mIoU
echo "============upernet_oc_swin_small============"
tools/dist_test.sh configs/swin/upernet_oc_swin_small_patch4_window7_512x512_160k_pascal2012.py ./work_dirs/upernet_oc_swin_small_patch4_window7_512x512_160k_pascal2012/iter_48000.pth 2 --aug-test --eval mIoU
echo "============upernet_swin_small============"
tools/dist_test.sh configs/swin/upernet_swin_small_patch4_window7_512x512_160k_pascal2012.py ./work_dirs/upernet_swin_small_patch4_window7_512x512_160k_pascal2012/iter_16000.pth 2 --aug-test --eval mIoU
echo "============upernet_swin_tiny============"
tools/dist_test.sh configs/swin/upernet_swin_tiny_patch4_window7_512x512_160k_pascal2012.py ./work_dirs/upernet_swin_tiny_patch4_window7_512x512_160k_pascal2012/iter_16000.pth 2 --aug-test --eval mIoU
