* [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>
* 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>
* 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
* [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>
* 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>
* [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
* 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
* 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>