forked from PaddlePaddle/PaddleSeg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
1,042 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
_base_: './cityscapes.yml' | ||
|
||
train_dataset: | ||
transforms: | ||
- type: ResizeStepScaling | ||
min_scale_factor: 0.25 | ||
max_scale_factor: 2.0 | ||
scale_step_size: 0.25 | ||
- type: RandomPaddingCrop | ||
crop_size: [769, 769] | ||
- type: RandomHorizontalFlip | ||
- type: RandomDistort | ||
brightness_range: 0.5 | ||
contrast_range: 0.5 | ||
saturation_range: 0.5 | ||
- type: Normalize | ||
|
||
val_dataset: | ||
transforms: | ||
- type: Padding | ||
target_size: [2048, 1024] | ||
- type: Normalize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformers | ||
|
||
## Reference | ||
|
||
> Zheng, Sixiao, Jiachen Lu, Hengshuang Zhao, Xiatian Zhu, Zekun Luo, Yabiao Wang, Yanwei Fu et al. "Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformers." arXiv preprint arXiv:2012.15840 (2020). | ||
## Performance | ||
|
||
### CityScapes | ||
|
||
| Model | Backbone | Head | Resolution | Training Iters | mIoU(slice) | Links | | ||
|:-:|:-:|:-:|:-:|:-:|:-:|:-:| | ||
|Segmentation Transformer|Vision Transformer|Naive|769x769|40000|77.29%|[model](https://bj.bcebos.com/paddleseg/dygraph/cityscapes/setr_naive_large_cityscapes_769x769_40k/model.pdparams) \| [log](https://bj.bcebos.com/paddleseg/dygraph/cityscapes/setr_naive_large_cityscapes_769x769_40k/train.log) \| [vdl]()| | ||
|Segmentation Transformer|Vision Transformer|PUP|769x769|40000|78.08%|[model](https://bj.bcebos.com/paddleseg/dygraph/cityscapes/setr_pup_large_cityscapes_769x769_40k/model.pdparams) \| [log](https://bj.bcebos.com/paddleseg/dygraph/cityscapes/setr_pup_large_cityscapes_769x769_40k/train.log) \| [vdl]() | | ||
|Segmentation Transformer|Vision Transformer|MLA|769x769|40000|76.52%|[model](https://bj.bcebos.com/paddleseg/dygraph/cityscapes/setr_mla_large_cityscapes_769x769_40k/model.pdparams) \| [log](https://bj.bcebos.com/paddleseg/dygraph/cityscapes/setr_mla_large_cityscapes_769x769_40k/train.log) \| [vdl]() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
_base_: '../_base_/cityscapes_769x769_setr.yml' | ||
|
||
model: | ||
type: SegmentationTransformer | ||
backbone: | ||
type: ViT_large_patch16_384 | ||
pretrained: https://bj.bcebos.com/paddleseg/dygraph/vit_large_patch16_384.tar.gz | ||
num_classes: 19 | ||
backbone_indices: [5, 11, 17, 23] | ||
head: mla | ||
align_corners: True | ||
|
||
optimizer: | ||
weight_decay: 0.0 | ||
|
||
lr_scheduler: | ||
end_lr: 1.0e-4 | ||
|
||
iters: 40000 | ||
|
||
loss: | ||
types: | ||
- type: CrossEntropyLoss | ||
- type: CrossEntropyLoss | ||
- type: CrossEntropyLoss | ||
- type: CrossEntropyLoss | ||
- type: CrossEntropyLoss | ||
coef: [1, 0.4, 0.4, 0.4, 0.4] | ||
|
||
test_config: | ||
is_slide: True | ||
crop_size: [769, 769] | ||
stride: [512, 512] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
_base_: '../_base_/cityscapes_769x769_setr.yml' | ||
|
||
model: | ||
type: SegmentationTransformer | ||
backbone: | ||
type: ViT_large_patch16_384 | ||
pretrained: https://bj.bcebos.com/paddleseg/dygraph/vit_large_patch16_384.tar.gz | ||
num_classes: 19 | ||
backbone_indices: [9, 14, 19, 23] | ||
head: naive | ||
align_corners: True | ||
|
||
optimizer: | ||
weight_decay: 0.0 | ||
|
||
lr_scheduler: | ||
end_lr: 1.0e-4 | ||
|
||
iters: 40000 | ||
|
||
loss: | ||
types: | ||
- type: CrossEntropyLoss | ||
- type: CrossEntropyLoss | ||
- type: CrossEntropyLoss | ||
- type: CrossEntropyLoss | ||
coef: [1, 0.4, 0.4, 0.4] | ||
|
||
test_config: | ||
is_slide: True | ||
crop_size: [769, 769] | ||
stride: [512, 512] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
_base_: '../_base_/cityscapes_769x769_setr.yml' | ||
|
||
model: | ||
type: SegmentationTransformer | ||
backbone: | ||
type: ViT_large_patch16_384 | ||
pretrained: https://bj.bcebos.com/paddleseg/dygraph/vit_large_patch16_384.tar.gz | ||
num_classes: 19 | ||
backbone_indices: [9, 14, 19, 23] | ||
head: pup | ||
align_corners: True | ||
|
||
optimizer: | ||
weight_decay: 0.0 | ||
|
||
lr_scheduler: | ||
end_lr: 1.0e-4 | ||
|
||
iters: 40000 | ||
|
||
loss: | ||
types: | ||
- type: CrossEntropyLoss | ||
- type: CrossEntropyLoss | ||
- type: CrossEntropyLoss | ||
- type: CrossEntropyLoss | ||
- type: CrossEntropyLoss | ||
coef: [1, 0.4, 0.4, 0.4, 0.4] | ||
|
||
test_config: | ||
is_slide: True | ||
crop_size: [769, 769] | ||
stride: [512, 512] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ | |
from .resnet_vd import * | ||
from .xception_deeplab import * | ||
from .mobilenetv3 import * | ||
from .vit import * |
Oops, something went wrong.