MengzhangLI
b42c487767
[Doc] Update FAQ doc about binary segmentation and ReduceZeroLabel ( #2206 )
...
* [Doc] Update FAQ doc about binary segmentation and ReduceZeroLabel
* update
* modify
* fix typo and add modification
* fix typo
* fix comments
* fix order
* fix
* fix
* Update docs/en/faq.md
* Update docs/zh_cn/faq.md
Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>
2022-10-28 21:44:37 +08:00
zhijiejia
8dbbdd8c17
[Feature] Add model ensemble tools ( #2218 )
...
* [Feature] Add model ensemble tool
* [Enhance] Add en and zh_cn instructions for model_ensemble
* [Enhance] Add default-value for --out and modify instruction
* [Enhance] Add arg-type for --out
* [Enhance] Delete redundant code
2022-10-24 19:03:48 +08:00
Miao Zheng
abb0932966
Fix lint ( #2159 )
2022-10-08 17:36:56 +08:00
Edward
2eb13c6906
Improve structure and readability for FCNHead ( #2142 )
2022-10-08 16:31:17 +08:00
Miao Zheng
0391dcd105
Upgrade pre commit hooks master ( #2155 )
...
* Upgrade pre commit hooks
* Upgrade pre commit hooks
* mim install mmcv-full
* install mim
* install mmcv-full
* test mmcv-full 1.6.0
* fix timm
* fix timm
* fix timm
2022-10-08 16:29:12 +08:00
谢昕辰
c1c942e8fc
[Fix] Fix binary segmentation when num_classes==1
( #2016 )
...
* fix binary
* add ut
* fix ut
* restore metric computation
* remove metric ut update
* set out_channels by num_classes
* replace num_classes in encoder_decoder
* update props setting and fix ut
* update ut
* minor change
* update warning
2022-09-08 14:43:21 +08:00
Wencheng Wu
74e13cfa61
[Fix] Fix decode head forward_train error. ( #1997 )
2022-08-30 20:43:10 +08:00
MengzhangLI
acff83909f
[Feature] Support Tversky Loss ( #1986 )
2022-08-30 20:17:50 +08:00
MengzhangLI
a8a8fec178
[Fix] Fix liscense of SegFormer ( #1699 )
...
* [Fix] Fix liscense of SegFormer
* add liscense
* add liscense
2022-06-23 18:57:12 +08:00
FreyWang
6f43f4d5d3
[Enchance] support infererence with padding ( #1607 )
...
* [Enchance] support infererence with padding
* limite pad after flip when inference
* add test code
2022-06-15 11:28:09 +08:00
rotorliu
f3c72c6dbb
Fixed a few spelling errors ( #1656 )
...
* 修复拼写错误
* Fix lint error
* Fix lint error
* Fix lint error
2022-06-14 12:10:59 +08:00
Xiaolin Wang
df434bed69
fix typo ( #1667 )
2022-06-14 11:20:31 +08:00
RunningLeon
60655de194
change for easy deployment of segmenter ( #1642 )
2022-06-07 18:00:13 +08:00
Wencheng Wu
63fa98515b
[Fix] Fix the error of BCE loss when batch size is 1. ( #1629 )
2022-05-31 18:07:29 +08:00
wangbin
061b5b4383
[Fix] Fix the bug in binary_cross_entropy ( #1527 )
...
* [Fix] Fix the bug in binary_cross_entropy
Fix the bug in binary_cross_entropy
'label.max() <= 1' should mask out ignore_index, since the ignore_index often set as 255.
* [Fix] Fix the bug in binary_cross_entropy, add comments
As the ignore_index often set as 255, so the binary class label check should mask out ignore_index.
Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>
* [Fix] Fix the bug in binary_cross_entropy
As the ignore_index often set as 255, so the binary class label check should mask out ignore_index.
Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>
Co-authored-by: MeowZheng <meowzheng@outlook.com>
2022-04-29 19:32:12 +08:00
Yuan Liu
6563cb513e
[Feature]: Add MAE ( #1307 )
...
* [Fix]: Fix lint
* [WIP]: Add mae seg config
* [Feature]: Add MAE seg
* [Fix]: Fix mae dataset img scale bug
* [Fix]: Fix lint
* [Feature]: Change mae config to mae_segmentation's config
* [Feature]: Add interpolate pe when loading
* [Fix]: Fix pos_embed not used bug
* [Fix]: Fix lint
* [Fix]: Init rel pos embed with zeros
* [Fix]: Fix lint
* [Fix]: Change the type name of backbone to MAE
* [Fix]: Delete ade20k_512x512.py
* [Fix]: Use mmseg provided ade20k.py
* [Fix]: Change 1 sample per gpu to 2 samples per gpu
* [Fix]: Fix conflict
* [Refactor]: Use the TransformerEncoderLayer of BEiT
* [Feature]: Add UT
* [Fix]: Change the default value of qv bias to False
* [Fix]: Initialize relative pos table with zeros
* [Fix]: Delete redundant code in mae
* [Fix]: Fix lint
* [Fix]: Rename qkv_bias to qv_bias
* [Fix]: Add docstring to weight_init of MAEAttention
* [Refactor]: Delete qv_bias param
* [Fix]: Add reference to fix_init_weight
* [Fix]: Fix lint
* [Fix]: Delete extra crop size
* [Refactor]: Rename mae
* [Fix]: Set bias to True
* [Fix]: Delete redundant params
* [Fix]: Fix lint
* [Fix]: Fix UT
* [Fix]: Add resize abs pos embed
* [Fix]: Fix UT
* [Refactor]: Use build layer
* [Fix]: Add licsense and fix docstring
* [Fix]: Fix docstring
* [Feature]: Add README metafile
* [Fix]: Change 640 to 512
* [Fix]: Fix README
* fix readme of MAE
Co-authored-by: MengzhangLI <mcmong@pku.edu.cn>
2022-04-28 00:54:20 +08:00
Miao Zheng
69b28e0b59
[Refactor] Add build_pos_embed and build_layers for BEiT ( #1517 )
...
* [Refactor] Add build_pos_embed and build_layers for BEiT
* Update mmseg/models/backbones/beit.py
2022-04-27 11:37:03 +08:00
Miao Zheng
239049cf91
[Refactor] Refactor transfomer encode layer in ViT and BEiT backbone ( #1481 )
...
* [Refactor] Refactor transfomer encoder layer
* fix ffn cfg
* fix drop path cfg
* private init func
* fix qv bias
* fix qkv bias
* fix qkv bias
* wH->Wh
2022-04-23 17:35:05 +08:00
Mladen Fernežir
7553fbe948
Fix validation loss logging ( #1494 )
2022-04-22 15:25:32 +08:00
Wang Xinjiang
cb06ff1911
Fix potential bugs in accuracy.py ( #1496 )
2022-04-21 10:18:37 +08:00
Rockey
cd18b6d479
[Fix] Support single cahnnel pred
for Binary Cross Entropy Loss ( #1454 )
...
* [Fix] Fix the bug that binary cross entropy loss doesn't support single channel input
* imcrease coverage
* modify implementation
* increase coverage
* add assert
* modify implementation
* enshollow condition judge
* fix
2022-04-14 11:26:02 +08:00
Miao Zheng
23ae1ebab6
[Fix] Input previous results for the last cascade_decode_head ( #1450 )
...
* [Fix] Input previous results for the latter cascade_decode_head
* minors
2022-04-13 21:16:29 +08:00
Miao Zheng
4841933454
[Fix] inconsistent dtype ofseg_label in stdc decode ( #1463 )
2022-04-10 14:18:16 +08:00
jiangyitong
be8f073c84
[Feature] Add with cp to mit and vit ( #1431 )
...
* add with cp to mit and vit
* add test unit
Co-authored-by: jiangyitong <jiangyitong1@sensetime.com>
2022-04-01 21:01:45 +08:00
MengzhangLI
a82ebad0f6
[Fix] Add avg_non_ignore in cross entropy loss ( #1409 )
...
* [Fix] Add avg_non_ignore in cross entropy loss
* [Fix] Add avg_non_ignore in cross entropy loss
* add docstring
* fix ut
* fix docstring and comments
* fix
* fix bce
* fix avg_factor in BCE and add more ut
* add avg_non_ignore
* add more ut
* fix part of ut
* fix part of ut
* test avg_non_ignore would not affect ce/bce when reduction none/sum
* test avg_non_ignore would not affect ce/bce when reduction none/sum/mean
* re-organize ut
* re-organize ut
* re-organize ut
* re-organize hardcode case
* fix parts of comments
* fix another parts of comments
* fix
2022-03-30 18:32:47 +08:00
FangjianLin
24f1563571
[Feature] Add BEiT backbone ( #1404 )
...
* [Feature] Add BEiT backbone
* fix
* fix
* fix
* fix
* add readme
* fix
* fix
* fix
* fix
* fix
* add link
* fix memory
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix test_beit.py
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
2022-03-30 15:25:10 +08:00
Xiangxu-0103
98984bf855
fix typo ( #1405 )
2022-03-23 10:36:27 +08:00
Rockey
17b500f9df
[Feature] add nlc2nchw2nlc and nchw2nlc2nchw ( #1249 )
...
* [Feature] add nlc2nchw2nlc and nchw2nlc2nchw
* add example
* add test, add **kwargs to make it more universal
2022-03-10 20:27:28 +08:00
MengzhangLI
2e28db0dcb
[Feature] Support K-Net ( #1289 )
...
* knet first commit
* fix import error in knet
* remove kernel update head from decoder head
* [Feature] Add kenerl updation for some decoder heads.
* [Feature] Add kenerl updation for some decoder heads.
* directly use forward_feature && modify other 3 decoder heads
* remover kernel_update attr
* delete unnecessary variables in forward function
* delete kernel update function
* delete kernel update function
* delete kernel_generate_head
* add unit test & comments in knet.py
* add copyright to fix lint error
* modify config names of knet
* rename swin-l 640
* upload models&logs and refactor knet_head.py
* modify docstrings and add some ut
* add url, modify docstring and add loss ut
* modify docstrings
2022-03-10 20:05:37 +08:00
Rockey
66b379015f
[Fix] Fix the bug that when all pixels in an image is ignored, the ac… ( #1336 )
...
* [Fix] Fix the bug that when all pixels in an image is ignored, the accuracy calculation raises ZeroDivisionError
* use eps
* all close
* add ignore test
* add eps
2022-03-09 13:20:46 +08:00
sshuair
9947a3974c
fix dnl_head export onnx inference difference type Cast error ( #1161 )
...
* fix export onnx inference difference type Cast error
* fix export onnx inference difference type Cast error.
* use yapf format
* use same device type with pairwise_weight
2022-03-01 10:16:08 +08:00
MengzhangLI
4912ea2b0a
[Feature] Support kenerl updation for some decoder heads. ( #1299 )
...
* [Feature] Add kenerl updation for some decoder heads.
* [Feature] Add kenerl updation for some decoder heads.
* directly use forward_feature && modify other 3 decoder heads
* remover kernel_update attr
* delete unnecessary variables in forward function
* delete kernel update function
* delete kernel update function
* delete unnecessary docstrings
* modify comments in self._forward_feature()
* modify docstrings in self._forward_feature()
* fix docstring
* modify uperhead
2022-02-27 11:35:29 +08:00
Miao Zheng
e5cd755481
[Enhancement] Revise pre-commit-hooks ( #1315 )
2022-02-23 23:44:27 +08:00
Hyeokjoon Kwon
346f70da5f
[Fix] Make accuracy take into account ignore_index ( #1259 )
...
* make accuracy take into account ignore_index
* add UT for accuracy
2022-02-15 00:39:59 +08:00
MengzhangLI
b16310182b
[Fix] Fix type in Swin Transformer ( #1274 )
2022-02-09 19:08:32 +08:00
Jerry Jiarui XU
82a80880d2
[Improve] Add exception for PointRend for support CPU-only usage ( #1271 )
...
* [Improve] Add exception for PointRend for support CPU-only usage
* fixed linting
2022-02-09 00:52:56 -05:00
Jerry Jiarui XU
66b778c064
[Improve] Use MMCV load_state_dict func in ViT/Swin ( #1272 )
...
* [Improve] Use MMCV load_state_dict func in ViT/Swin
* use CheckpointLoader instead
2022-02-09 00:52:42 -05:00
MengzhangLI
02d2790145
delete unnecessary lines of STDCHead ( #1231 )
2022-01-28 10:53:11 +08:00
rstrudel
cb1bf9f372
[Feature] Support Segmenter ( #955 )
...
* segmenter: add model
* update
* readme: update
* config: update
* segmenter: update readme
* segmenter: update
* segmenter: update
* segmenter: update
* configs: set checkpoint path to pretrain folder
* segmenter: modify vit-s/lin, remove data config
* rreadme: update
* configs: transfer from _base_ to segmenter
* configs: add 8x1 suffix
* configs: remove redundant lines
* configs: cleanup
* first attempt
* swipe CI error
* Update mmseg/models/decode_heads/__init__.py
Co-authored-by: Junjun2016 <hejunjun@sjtu.edu.cn>
* segmenter_linear: use fcn backbone
* segmenter_mask: update
* models: add segmenter vit
* decoders: yapf+remove unused imports
* apply precommit
* segmenter/linear_head: fix
* segmenter/linear_header: fix
* segmenter: fix mask transformer
* fix error
* segmenter/mask_head: use trunc_normal init
* refactor segmenter head
* Fetch upstream (#1 )
* [Feature] Change options to cfg-option (#1129 )
* [Feature] Change option to cfg-option
* add expire date and fix the docs
* modify docstring
* [Fix] Add <!-- [ABSTRACT] --> in metafile #1127
* [Fix] Fix correct num_classes of HRNet in LoveDA dataset #1136
* Bump to v0.20.1 (#1138 )
* bump version 0.20.1
* bump version 0.20.1
* [Fix] revise --option to --options #1140
Co-authored-by: Rockey <41846794+RockeyCoss@users.noreply.github.com>
Co-authored-by: MengzhangLI <mcmong@pku.edu.cn>
* decode_head: switch from linear to fcn
* fix init list formatting
* configs: remove variants, keep only vit-s on ade
* align inference metric of vit-s-mask
* configs: add vit t/b/l
* Update mmseg/models/decode_heads/segmenter_mask_head.py
Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>
* Update mmseg/models/decode_heads/segmenter_mask_head.py
Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>
* Update mmseg/models/decode_heads/segmenter_mask_head.py
Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>
* Update mmseg/models/decode_heads/segmenter_mask_head.py
Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>
* Update mmseg/models/decode_heads/segmenter_mask_head.py
Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>
* model_converters: use torch instead of einops
* setup: remove einops
* segmenter_mask: fix missing imports
* add necessary imported init funtion
* segmenter/seg-l: set resolution to 640
* segmenter/seg-l: fix test size
* fix vitjax2mmseg
* add README and unittest
* fix unittest
* add docstring
* refactor config and add pretrained link
* fix typo
* add paper name in readme
* change segmenter config names
* fix typo in readme
* fix typos in readme
* fix segmenter typo
* fix segmenter typo
* delete redundant comma in config files
* delete redundant comma in config files
* fix convert script
* update lateset master version
Co-authored-by: MengzhangLI <mcmong@pku.edu.cn>
Co-authored-by: Junjun2016 <hejunjun@sjtu.edu.cn>
Co-authored-by: Rockey <41846794+RockeyCoss@users.noreply.github.com>
Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>
2022-01-26 13:50:51 +08:00
jbwang1997
98a353b674
[Fix] Set random seed for generating palette
if not given. ( #1152 )
...
* Fix colors
* fix comments
* Add comments
* Add comments. Add random seed in datasets
2021-12-23 09:51:50 +08:00
MengzhangLI
5783bc1d99
[Feature] Support STDC Network (new) ( #995 )
...
* refactor stdc code
* update key
* fix backbone inference
* remove comments
* fixing errors
* fixing version conflict
* fux typo
* use STDCHead
* upload models&logs
* adding model converters script and fix unittest
* fix error
* fix error
* fix error
* delete redundant keys in config
* fix errors in configs and unittest
* fix errors in configs and unittest
* fix errors in configs and unittest
* change Memory name
* refactor stdc2mmseg
* change name to STDC
* refactor stdc
* refactor stdc
* stdc refactor
* stdc refactor
* stdc refactor
* stdc refactor
* stdc refactor
* stdc refactor
* refactor stdc
* stdc refactor
Co-authored-by: xiexinch <xinchen.xie@qq.com>
2021-12-10 23:09:32 +08:00
Lxinyang
793e082eeb
[Feature] Support Twins (NeurIPS2021) ( #989 )
...
* debug
* debug
* debug
* this is a debug step, and needs to be recovered
* need recover
* git
* debug
* git
* git
* git
* git
* git
* git
* debug need recover
* debug
* git
* debug
* debug
* debug
* debug
* debug
* debug
* debug
* debug
* debugf
* debug
* debug
* debug
* debug
* debug
* debug
* debug
* debug
* git
* git
* git
* use config small/base/large
* debug
* debug
* git
* debug
* git
* debug
* debug
* debug args
* debug
* debug
* git
* git
* debug
* git
* git
* git
* git
* git
* debug
* debug
* git
* debug
* git
* debug
* debug
* debug
* debug
* git
* debug
* git
* git
* debug
* debug
* git
* git
* git
* git
* debug
* debug
* debug
* debug
* git
* debug
* debug
* git
* git
* debug
* debug
* git
* debug
* debug
* debug
* git
* debug
* debug
* debug
* Please enter the commit message for your changes. Lines starting
* git
* git
* debug
* debug
* debug
* git
* git
* debug
* debug
* debug
* debug
* debug
* debug
* debug
* debug
* debug
* debug
* debug
* git
* debug
* debug
* debug
* debug
* debug
* debug
* debug
* git
* fix pre-commit error
* fix error
* git
* git
* git
* git
* git
* git
* debug
* debug
* debug
* debug
* debug
* debug
* git
* debug
* debug
* debug
* debug
* debug
* debug
* debug
* debug
* debug
* git
* git
* git
* debug
* debug
* debug
* git
* git
* git
* git
* git
* git
* git
* git
* git
* debug
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* fix unittest error
* fix config errors
* fix twins2mmseg bug
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* git
* fix init_weights() in twins.py
* git
* git
* git
* git
* fix comment
* fix comment
* fix comment
* fix comment
* fix unit test coverage in TwinsPR
* Add Twins README
* Add Twins README
* twins refactor
* twins refactor
* delete init_cfg in FFN
* delete init_cfg in FFN
* Update mmseg/models/backbones/twins.py
* Update mmseg/models/backbones/twins.py
* Update mmseg/models/backbones/twins.py
Co-authored-by: Junjun2016 <hejunjun@sjtu.edu.cn>
* Update mmseg/models/backbones/twins.py
* add conference name
Co-authored-by: linxinyang <linxinyang@meituan.com>
Co-authored-by: MengzhangLI <mcmong@pku.edu.cn>
Co-authored-by: Junjun2016 <hejunjun@sjtu.edu.cn>
2021-12-09 19:18:10 +08:00
Rockey
c23e902896
[Fix] Fix the bug that mit cannot process init_cfg ( #1102 )
...
* [Fix] Fix the bug that mit cannot process init_cfg
* fix error
2021-12-08 23:17:43 -08:00
Rockey
a672c0563f
[Fix] Remove the inplace operation in uper_head and fpn_neck ( #1103 )
...
* [Fix] Remove the inplace operation in uper_head
* remove the inplace operation in fpn neck
* fix conflict
* increase the coverage
2021-12-09 12:12:31 +08:00
Han Zhang
f8ed148fb4
[Fix] Fix dist training infinite waiting issue ( #1035 )
...
* [#1034 ] fix dist training infinite waiting issue
* print log_vars keys in assertion msg
* linting issue
2021-12-08 21:02:41 +08:00
KangBK0120
ec0377328d
[Fix] Remove unexist arg in docstring #1106
2021-12-06 20:03:25 +08:00
Junjun2016
3057ef6d9b
[Fix] Fix wrong init usage in transformer models ( #1069 )
...
* fix wrong trunc_normal_init usage
* fix mit init weights
* fix vit init weights
* fix mit init weights
* fix typo
* fix swin init weights
2021-12-06 19:59:33 +08:00
Rockey
1b41989934
[Feature] Add focal loss ( #1024 )
...
* [Feature] add focal loss
* fix the bug of 'non' reduction type
* refine the implementation
* add class_weight and ignore_index; support different alpha values for different classes
* fixed some bugs
* fix bugs
* add comments
* modify test
* Update mmseg/models/losses/focal_loss.py
Co-authored-by: Junjun2016 <hejunjun@sjtu.edu.cn>
* update test_focal_loss.py
* modified the implementation
* Update mmseg/models/losses/focal_loss.py
Co-authored-by: Jerry Jiarui XU <xvjiarui0826@gmail.com>
* update focal_loss.py
Co-authored-by: Junjun2016 <hejunjun@sjtu.edu.cn>
Co-authored-by: Jerry Jiarui XU <xvjiarui0826@gmail.com>
2021-12-03 00:18:40 -08:00
MengzhangLI
ff1e2d8ef7
[Feature] Support Real-time model ERFNet ( #960 )
...
* first commit
* Fixing Unittest Error
* first refactory of ERFNet
* Refactorying NonBottleneck1d Module
* uploading models&logs
* uploading models&logs
* fix partial bugs & typos
* ERFNet
* add ERFNet with FCNHead
* fix typos of ERFNet
* add name on README.md cover
* chane name to T-ITS'2017
* fix lint error
2021-12-01 23:54:39 -08:00
Junjun2016
d665f6b085
fix EfficientMultiheadAttention in SegFormer ( #1037 )
2021-11-15 04:33:28 +08:00