Commit Graph

443 Commits (b96e0d1641e3c5f0893f201c33074d8bcebb5c01)
 

Author SHA1 Message Date
Miao Zheng b96e0d1641
[Enhancement] Delete seed in dist_train.sh (#1519) 2022-04-28 11:35:10 +08:00
Yuan Liu dc3e1b0b54
[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:50 +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
FangjianLin f16bb06092
[Refactory] Merge BEiT and ConvNext 's LR decay optimizer constructors (#1438)
* move layer_decay_optimizer_constructor

* fix

* fix

* merge test_core

* fix

* add DeprecationWarning

* fix DeprecationWarning

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix test

* fix

* fix

* fix

* fix

* fix ut

* fix

* fix

* Update tests/test_core/test_layer_decay_optimizer_constructor.py

* fix

* fix

* fix

* fix

Co-authored-by: MeowZheng <meowzheng@outlook.com>
Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>
2022-04-27 10:43:25 +08:00
Miao Zheng 62c3a7dda9
[Fix] Revise high workers_per_gpus (#1506) 2022-04-25 13:19:47 +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
Miao Zheng 25c1318f52
[Fix] the directory of cfg file in colab demo (#1501)
* [fix] cfg dir in colab

* Update demo/MMSegmentation_Tutorial.ipynb
2022-04-23 15:00:31 +08:00
Li Dong b74e28dbd1
migrate azure blob for beit checkpoints (#1503)
We are going to use a new blob account to store the checkpoints.
2022-04-23 14:57:32 +08:00
Mladen Fernežir 7553fbe948
Fix validation loss logging (#1494) 2022-04-22 15:25:32 +08:00
jere357 e231583985
fixed a couple of issues that made the notebook not work in colab (#1460)
* fixed a couple of issues that made the notebook not work in colab

i fixed a couple of issues that made the notebook not work in colab 
1. it downloaded incompatible versions of pytorch and cuda + the conda command doesnt do anything in colab since there is no conda in colab idk w y wanna do about that - The commit of 2 days ago only changes the conda command version and not the pip command which is used while isntaling mcvv
2. /demo.png doesnt exist in colab so i added a wget to download some cityscapes photo from the internet and run inference on that photo
3. i think it would be optimal to have 2 notebooks. 1 for running locally when cloning your git branch and one to run in google colab.

* Update demo/MMSegmentation_Tutorial.ipynb

* Update demo/MMSegmentation_Tutorial.ipynb

* Update demo/MMSegmentation_Tutorial.ipynb

* Update demo/MMSegmentation_Tutorial.ipynb

* Update demo/MMSegmentation_Tutorial.ipynb

Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>
2022-04-22 10:10:02 +08:00
Miao Zheng 2aed0dec91
[Enhancement]Update checkpoint for model in deeplabv3plus (#1487)
* [WIP]Update checkpoint for model in deeplabv3plus

* add aug test

* url fix
2022-04-21 20:15:34 +08:00
Wang Xinjiang cb06ff1911
Fix potential bugs in accuracy.py (#1496) 2022-04-21 10:18:37 +08:00
Miao Zheng 618d3c3bcc
[Enhancement] MMCV maximum_version set to 1.6 (#1480)
* [Enhancement] MMCV maximum_version set to 1.6

* [Enhancement] MMCV maximum_version set to 1.6
2022-04-19 16:19:56 +08:00
FangjianLin 5b605b086d
[Fix] Register optimizer constructor with mmseg (#1456)
* [fix] register optimizer onstructor with mmseg

* fix lint

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* Update tests/test_core/test_optimizer.py

* Update tests/test_core/test_optimizer.py

* Update tests/test_core/test_optimizer.py

* Update tests/test_core/test_optimizer.py

* fix lint

Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>
2022-04-16 16:45:17 +08:00
MengzhangLI 737e7e6e6c
[Fix] Update .owners.yml (#1477) 2022-04-15 17:44:49 +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 3f797072d8
[Enhance] Add extra dataloader settings in configs (#1435)
* [Enhance] Add extra dataloader settings in configs

* val default samples

* val default samples

* del unuse

* del unused
2022-04-13 13:30:10 +08:00
panfeng-hover 91b1bcb9d8
Avoid converting label ids twice by label map during evaluation (#1417)
* Avoid converting label ids twice by label map during evaluation

* Update mmseg/datasets/custom.py

Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>

* lint

Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>
Co-authored-by: MeowZheng <meowzheng@outlook.com>
2022-04-12 18:26:25 +08:00
Miao Zheng 4841933454
[Fix] inconsistent dtype ofseg_label in stdc decode (#1463) 2022-04-10 14:18:16 +08:00
Pan Zhang da8b79b4da
[fix] fix image save path bug in Windows (#1423)
* [fix] fix image save path bug in Windows

* fix lint error
2022-04-09 21:17:51 +08:00
Yzichen 28488851fd
fix bug about label_map (#1445)
* fix bug about label_map

* Update mmseg/datasets/pipelines/loading.py

Co-authored-by: MengzhangLI <mcmong@pku.edu.cn>

* lint

Co-authored-by: MengzhangLI <mcmong@pku.edu.cn>
Co-authored-by: MeowZheng <meowzheng@outlook.com>
2022-04-09 21:11:47 +08:00
Andrey 4bd32f4c3d
[Fix] MMSegmentation Tutorial running on colab error fix (#1452)
* update pytorch and cudatoolkit versions for colab

Previous version was throwing an error after calling for mmseg.apis import (line 147) due to incompatible cudatoolkit version in colab.

* Update description about versions used
2022-04-06 22:04:37 +08:00
Miao Zheng 3432ea98db
Add DistSamplerSeedHook for when runner is EpochBasedRunner (#1449)
* Add DistSamplerSeedHook for when runner is EpochBasedRunner

* add comment
2022-04-06 22:04:11 +08:00
MengzhangLI dfcc0b68df
[Fix] Fix bug in `tools/analyse_logs.py` caused by wrong plot_iter in some cases. (#1428)
* fix_analyze_logs

* fix comments

* fix comments
2022-04-05 12:47:41 +08:00
MengzhangLI ecd2dc474a
[Feature] Provide URLs of Swin Transformer pretrained models (#1389)
* [Feature] Provide URLs of Swin Transformer pretrained models

* [Feature] Add multi machine `dist_train`. (#1383)

* Add training startup documentation

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* delete pretrained=None in all six config files

* [Fix] make arguments effective in tools/confusion_matrix.py (#1401)

* add an argument for customizing `title' of the output figure

* fix `color_theme' arguments not passing to plot function

Signed-off-by: code14 <mob5566@gmail.com>

* colab notebook: fix outdated link for doc (#1392)

* colab notebook: fix outdated link for doc

Fixed outdated link for how to customize your datasets by reorganizing data.

* fix lint

* fix typo (#1405)

* [Fix] Fix windows-style path in `md2yml.py` in Windows pre-commit.  (#1407)

* test

* avoid windows path

* [Fix] fix the config name style description (#1414)

Co-authored-by: FangjianLin <93248678+linfangjian01@users.noreply.github.com>
Co-authored-by: Cody Wong <mob5566@gmail.com>
Co-authored-by: Nemo Xiong <xiongnemo@126.com>
Co-authored-by: Xiangxu-0103 <xuxiang0103@gmail.com>
Co-authored-by: Rockey <41846794+RockeyCoss@users.noreply.github.com>
2022-04-05 11:36:38 +08:00
MengzhangLI c9f507e207
[Feature] Support Resnet strikes back (#1390)
* [Feature] Support Resnet strikes back

* fix url

* [Feature] Add multi machine `dist_train`. (#1383)

* Add training startup documentation

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* modify R-50b rsb

Co-authored-by: FangjianLin <93248678+linfangjian01@users.noreply.github.com>
2022-04-05 11:34:53 +08:00
AmirMasoud Nourollah 1924470e0e
Updating Dockerfiles From Docker Directory and get_started.md to Reach Last Stable Version of Python, PyTorch and MMCV (#1446)
* Update Dockerfile

Compatible with the latest version of MMCV and PyTorch for compatibility with Python3.10

* Update Dockerfile for serve

Compatible with the latest version of MMCV and PyTorch for compatibility with Python3.10

* Updating to the last version of supported Python

* Update Dockerfile

* Update get_started.md

* Update docs/zh_cn/get_started.md

Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>

Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>
2022-04-04 20:16:50 +08:00
kahkeng 58ad8aa299
[Docs] Fix typo (#1447)
* Fix small typo in documentation title

* Fix typo in documentation title (zh_cn version)
2022-04-04 15:02:52 +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
Miao Zheng 17f8a96981
[Enhancement] Add .owners.yml to mark daily issue shift (#1437)
* [Enhancement] Add .owners.yml to mark daily issue shift

* add chenlin
2022-04-01 17:30:20 +08:00
Miao Zheng 6670672345
Bump version to v0.23.0 (#1439)
* Bump version to v0.23.0

* new contributor

* rephrase

* tyoi

* typo

* get_started

* typo

* rephrase

* rephrase

* rephrase
2022-04-01 15:43:19 +08:00
MengzhangLI d6a6c39a70
[Fix] Fix some wrong urls of models or log in ./configs (#1433) 2022-03-30 21:06:14 +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
Miao Zheng 30864ea23d
[Feature] Support dataset initialization with file_client (#1402)
* [Feature] Support file_client in dataset initialization

* docstring

* revise osp.exist
2022-03-28 23:53:23 +08:00
MengzhangLI f3ae2342eb
[Enchance] Support random seed for distributed sampler (#1411)
* support random seed for distributed sampler

* move mmseg/utils/dist_util.py to mmseg/core/utils/dist_util.py

* move mmseg/utils/dist_util.py to mmseg/core/utils/dist_util.py

* change dist sampler

* change dist sampler

* fix docstring in sync_random_seed
2022-03-28 23:50:39 +08:00
Rockey 1a33d50d58
[Docs] add faq document (#1420)
* [Docs] add faq document

* Update docs/en/faq.md

Co-authored-by: Junjun2016 <hejunjun@sjtu.edu.cn>

* Update docs/zh_cn/faq.md

Co-authored-by: Junjun2016 <hejunjun@sjtu.edu.cn>

* modify readme

* modify index.rst

Co-authored-by: Junjun2016 <hejunjun@sjtu.edu.cn>
2022-03-28 16:50:41 +08:00
CCODING af4691bb94
fix word spelling mistake (#1424) 2022-03-28 16:06:53 +08:00
Rockey 01e35aa6f7
[Fix] fix the config name style description (#1414) 2022-03-24 14:57:20 +08:00
MengzhangLI 0d51115d85
[Fix] Fix windows-style path in `md2yml.py` in Windows pre-commit. (#1407)
* test

* avoid windows path
2022-03-23 20:55:02 +08:00
Xiangxu-0103 98984bf855
fix typo (#1405) 2022-03-23 10:36:27 +08:00
Nemo Xiong b0fd8ae68e
colab notebook: fix outdated link for doc (#1392)
* colab notebook: fix outdated link for doc

Fixed outdated link for how to customize your datasets by reorganizing data.

* fix lint
2022-03-22 14:38:26 +08:00
Cody Wong 18859e4de0
[Fix] make arguments effective in tools/confusion_matrix.py (#1401)
* add an argument for customizing `title' of the output figure

* fix `color_theme' arguments not passing to plot function

Signed-off-by: code14 <mob5566@gmail.com>
2022-03-21 10:51:27 +08:00
FangjianLin 1b24ad656f
[Feature] Add multi machine `dist_train`. (#1383)
* Add training startup documentation

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix
2022-03-18 10:55:49 +08:00
CCODING 3d0c2eb385
Support #1375: add demo/image_demo.py support for STARE (#1376)
* Support #1375: add demo/image_demo.py support for STARE

* Update mmseg/core/evaluation/class_names.py

Co-authored-by: MengzhangLI <mcmong@pku.edu.cn>

Co-authored-by: MengzhangLI <mcmong@pku.edu.cn>
2022-03-15 22:42:20 +08:00
wangliujun a3aab38bb4
Update get_flops.py (#1371)
* Update get_flops.py

argparse.ArgumentParser(description='Get the FLOPs of a segmentor')

* Update get_flops.py
2022-03-14 21:02:43 +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
andife 4250a5aec4
Update MMSegmentation_Tutorial.ipynb (#1366)
typos
2022-03-10 20:07:12 +08:00