Commit Graph

928 Commits (7254f5330f399ec81c3d8f443026e376ca2825b5)
 

Author SHA1 Message Date
ZiAn-Su 7254f5330f
[Fix] Fix SegTTAModel with no attribute '_gt_sem_seg' error (#3152)
## Motivation

When using the - tta command for multi-scale prediction, and the test
set is not annotated, although format_only has been set true in
test_evaluator, but SegTTAModel class still threw error 'AttributeError:
'SegDataSample' object has no attribute '_gt_sem_seg''.

## Modification

The reason is SegTTAModel didn't determine if there were annotations in
the dataset, so I added the code to make the judgment and let the
program run normally on my computer.
2023-07-13 17:06:06 +08:00
谢昕辰 067a95e40b
[Fix] fix mim search error (#3194) 2023-07-13 16:26:08 +08:00
OliverGrace ac78b1308d
[Fix] Fix train map path for coco-stuff164k.py (#3187) 2023-07-12 15:29:45 +08:00
xiexinch 00790766af Release MMSegmentation v1.1.0 2023-07-04 11:13:57 +08:00
谢昕辰 e4c1865a82
Bump1.1 (#3140)
Co-authored-by: CSH <40987381+csatsurnh@users.noreply.github.com>
2023-07-04 11:11:30 +08:00
谢昕辰 8806b4e548
[Fix] Fix visualizor (#3154)
## Motivation

**Current visualize result**


![rs-dev](https://github.com/open-mmlab/mmsegmentation/assets/15952744/147ea3f7-f632-457b-b257-031199320825)

**Fixed the visualization result**



![rs-fix](https://github.com/open-mmlab/mmsegmentation/assets/15952744/98a86025-5a1e-4c2b-83e0-653dd659ba79)


## Modification

remove mmengine `draw_binary_masks` api
2023-07-03 09:43:00 +08:00
谢昕辰 cc74c5c3fe
[Enhancement] update segformer default pretrain to configs (#3153) 2023-06-30 16:40:13 +08:00
谢昕辰 c55d7a721e
[Feature] support mim download dataset (#3089)
## Motivation

Please describe the motivation of this PR and the goal you want to
achieve through this PR.

## Modification

- add dataset-index.yml

## Dependencies

- [ ] https://github.com/open-mmlab/mim/pull/212
2023-06-28 17:57:22 +08:00
谢昕辰 b633093c27
[Dev] update owners (#3143) 2023-06-28 16:15:54 +08:00
谢昕辰 3dca9a0a5c
[Project] add x-decoder link (#3142) 2023-06-28 16:15:37 +08:00
谢昕辰 a2efc04a17
[CI] fix merge stage (#3138) 2023-06-26 17:10:42 +08:00
谢昕辰 ffb7e2e239
[Fix] Fix dependency (#3136)
## Motivation

Change the dependency `mmcls` to `mmpretrain`

## Modification

- modify `mmcls` to `mmpretrain`
- modify CI requirements

## BC-breaking (Optional)

If users have installed mmcls but not install mmpretrain, it might raise some error.
2023-06-26 16:02:37 +08:00
masaaki d3f2922ff5
[Project] Medical semantic seg dataset: Chest x ray images with pneumothorax masks (#2687) 2023-06-25 18:24:49 +08:00
masaaki c923f4d25b
[Project] Medical semantic seg dataset: Crass (#2690) 2023-06-25 16:54:38 +08:00
masaaki c1de52a8be
[Project] Medical semantic seg dataset: Covid 19 ct cxr (#2688) 2023-06-25 16:36:17 +08:00
masaaki e4db1f20c9
[Project] Medical semantic seg dataset: Pannuke (#2683) 2023-06-25 15:57:40 +08:00
masaaki 30e3b49b0b
[Project] Medical semantic seg dataset: Pcam (#2684) 2023-06-25 15:44:43 +08:00
masaaki 942b054426
[Project] Medical semantic seg dataset: 2pm vessel (#2685) 2023-06-25 15:05:00 +08:00
masaaki ac241117cb
[Project] Medical semanti seg dataset: Fusc2021 (#2682) 2023-06-25 14:11:00 +08:00
masaaki d934d10148
[Project] Medical semantic seg dataset: Rite (#2680) 2023-06-25 13:14:29 +08:00
masaaki 5a9cfa9193
[Project] Medical dataset: Kvasir seg aliyun (#2678) 2023-06-25 12:57:18 +08:00
masaaki 2ea4784012
[Project] Medical semantic seg dataset: Kvasir seg (#2677) 2023-06-25 11:50:46 +08:00
legendchilli 3cc9d30d04
[Project] Medical semantic seg dataset: ISIC-2017 Task1 (#2709) 2023-06-22 11:03:34 +08:00
legendchilli b24f422a95
[Project] Medical semantic seg dataset: ISIC-2016 Task1 (#2708) 2023-06-21 16:39:07 +08:00
tianbin li 78e036c36f
[Project] Medical semantic seg dataset: orvs (#2728) 2023-06-21 15:16:27 +08:00
tianbin li 6333dc14f3
[Project] Medical semantic seg dataset: dr_hagis (#2729) 2023-06-21 14:41:58 +08:00
tianbin li 81edd98c05
[Project] Medical semantic seg dataset: conic2022 (#2725) 2023-06-21 14:24:56 +08:00
tianbin li 65c8d77d62
[Project] Medical semantic seg dataset: chest_image_pneum (#2727) 2023-06-20 21:13:32 +08:00
tianbin li 041f1f0f4f
[Project] Medical semantic seg dataset: breast_cancer_cell_seg (#2726) 2023-06-20 21:09:04 +08:00
tianbin li b5fc5abcc4
[Project] Medical semantic seg dataset: consep (#2724) 2023-06-20 16:55:47 +08:00
Sizheng Guo f419f618a1
[Project] add Gamma Task3 dataset project in dev-1.x (#2695) 2023-06-20 15:28:46 +08:00
Sizheng Guo 4feba3114f
[Project] Medical semantic seg dataset: bccs (#2861) 2023-06-20 11:39:22 +08:00
谢昕辰 b8b6ee6017
fix assert (#3119) 2023-06-19 18:34:52 +08:00
Leon Hamnett b0635ff783
[Enhancement] Change assertion logic inference cfg.model.test_cfg (#3012)
## Motivation

In encode_decoder.py , assertion logic is not working correctly if user
modifes cfg.test_cfg and defines it in a dictionary format. See:
https://github.com/open-mmlab/mmsegmentation/issues/3011

## Modification

Slight change to assertion behaviour to change assertion depending on if
received test_cfg object is a dict or not.

## BC-breaking (Optional)

Unsure - I believe this will not break any downstream tasks as the
previous logic is still included

## Use cases (Optional)

n/a

---------

Co-authored-by: xiexinch <xiexinch@outlook.com>
2023-06-19 18:12:04 +08:00
谢昕辰 20adcfa355
[Dev] update benchmark script (#3116) 2023-06-19 16:59:33 +08:00
jinxianwei bb93b482b8
[Feature] huasdorff distance loss (#2820)
Thanks for your contribution and we appreciate it a lot. The following
instructions would make your pull request more healthy and more easily
get feedback. If you do not understand some items, don't worry, just
make the pull request and seek help from maintainers.

## Motivation

Add Huasdorff distance loss

---------

Co-authored-by: xiexinch <xiexinch@outlook.com>
2023-06-19 14:26:08 +08:00
谢昕辰 b2f4b4fe33
[Fix] fix inferencer ut (#3117) 2023-06-19 13:08:04 +08:00
WRH c30d5060f1
[Fix] Robust mapping from image path to seg map path (#3091)
## Motivation

Suppose an image is named `jpg.jpg` and its corresponding segmap is
named `jpg.png`.
The original implementation will try to read segmap from `png.png` and
causes FileNotfoundError

## Modification

Only replace the suffix, instead of full string search and replacement. 

## BC-breaking (Optional)

Probably no. 

## Use cases (Optional)


## Checklist

1. Pre-commit or other linting tools are used to fix the potential lint
issues.
2. The modification is covered by complete unit tests. If not, please
add more unit test to ensure the correctness.
3. If the modification has potential influence on downstream projects,
this PR should be tested with downstream projects, like MMDet or
MMDet3D.
4. The documentation has been modified accordingly, like docstring or
example tutorials.

---------

Co-authored-by: 谢昕辰 <xiexinch@outlook.com>
Co-authored-by: CSH <40987381+csatsurnh@users.noreply.github.com>
2023-06-16 11:07:17 +08:00
Xu CAO 279b89783e
[Feature] enhance swin pretrained model loading (#3097)
Thanks for your contribution and we appreciate it a lot. The following
instructions would make your pull request more healthy and more easily
get feedback. If you do not understand some items, don't worry, just
make the pull request and seek help from maintainers.

## Motivation

Enhance pretrained SwinTransformer loading when setting non-standard
backbone `depths`.

## Modification

Enhance pretrained SwinTransformer loading when setting non-standard
backbone `depths`.

## BC-breaking (Optional)

Does the modification introduce changes that break the
backward-compatibility of the downstream repos?
If so, please describe how it breaks the compatibility and how the
downstream projects should modify their code to keep compatibility with
this PR.

## Use cases (Optional)

If this PR introduces a new feature, it is better to list some use cases
here, and update the documentation.

## Checklist

1. Pre-commit or other linting tools are used to fix the potential lint
issues.
2. The modification is covered by complete unit tests. If not, please
add more unit test to ensure the correctness.
3. If the modification has potential influence on downstream projects,
this PR should be tested with downstream projects, like MMDet or
MMDet3D.
4. The documentation has been modified accordingly, like docstring or
example tutorials.

---------

Co-authored-by: SheffieldCao <1751899@tongji.edu.cn>
2023-06-16 10:43:34 +08:00
shi gengtian e5cb1d2675
[Docker] update Dockerfile libgl1-mesa-dev (#3095)
add libgl1-mesa-dev

---------

Co-authored-by: 谢昕辰 <xiexinch@outlook.com>
Co-authored-by: CSH <40987381+csatsurnh@users.noreply.github.com>
2023-06-16 10:15:33 +08:00
Tianlong Ai cdc5d4d4ed
[Docs] Add docs contents at README.md (#3083)
Add docs contents at README.md to easily find documents.
Issue: #2664 

![image](https://github.com/open-mmlab/mmsegmentation/assets/50650583/0763e108-f095-44d1-8e2a-ba2e83f02625)

![image](https://github.com/open-mmlab/mmsegmentation/assets/50650583/088e0945-55b4-4d3f-97bb-02e39dfafb5e)

![image](https://github.com/open-mmlab/mmsegmentation/assets/50650583/109e0320-d6a9-405f-b169-87acb5a0f94d)

![image](https://github.com/open-mmlab/mmsegmentation/assets/50650583/d1d72bde-40c0-451a-be6e-010f1f2d193b)
2023-06-07 16:36:48 +08:00
nightrain01 13e42cc2ae
[Fix] Fix bug cannot use both '--tta' and '--out' while testing. (#3067)
## Motivation

Fix bug cannot use both '--tta' and '--out' while testing.
For details, please refer to #3064 .

## Modification

Add 'img_path' in TTA predictions.

---------

Co-authored-by: xiexinch <xiexinch@outlook.com>
2023-06-06 16:39:41 +08:00
谢昕辰 e8c8b94e8c
Clean jupyter output (#3082) 2023-06-06 14:40:03 +08:00
谢昕辰 c0d98305ee
[CI] Fix mmdet version (#3081) 2023-06-06 11:24:45 +08:00
Tianlong Ai e5b8d72e01
[Dataset] Support GID dataset on project (#3038)
## Motivation
Support GID dataset on project

---------

Co-authored-by: 谢昕辰 <xiexinch@outlook.com>
2023-06-05 11:25:50 +08:00
Kedreamix b6ec4ab1e6
Fixes an issue in isaid.py (#3010)
## Motivation

When processing data in the isaid experiment, generated images only have
binary pixel values of 0 or 1 instead of the corresponding class values.
This causes significant interference and prevents subsequent experiments
from proceeding. After investigation, it was found that the issue was
caused by using the wrong image format for saving the images. Saving the
images as PNG resulted in binary pixel values, while saving the images
as BMP resolved the issue and correctly saved the class values.

## Modification

`img_patch.save(save_path_image, format='BMP')`

This code will save the image data as BMP format.

## BC-breaking 

Confirm that the modification does not introduce new issues and test
that the modified code successfully resolves the original problem.

---------

Co-authored-by: 谢昕辰 <xiexinch@outlook.com>
Co-authored-by: CSH <40987381+csatsurnh@users.noreply.github.com>
2023-05-30 14:44:05 +08:00
Tianlong Ai 5563480e70
[Doc] Repair invalid link of potsdam and vaihingen (#3042)
Repair invalid link of potsdam and vaihingen in docs
2023-05-30 09:54:55 +08:00
Sizheng Guo a9e960c40b
[Project] add Ravir dataset project in dev-1.x (#2635) 2023-05-23 17:35:05 +08:00
tang576225574 0bfe255fe6
[Project] Added a supported for Visual Attention Network (VAN) (#2987)
## Motivation
The original version of Visual Attention Network (VAN) can be found from
https://github.com/Visual-Attention-Network/VAN-Segmentation
添加Visual Attention Network (VAN)的支持。



## Modification
added a floder mmsegmentation/projects/van/
added 13 configs totally and aligned performance basically.
只增加了一个文件夹,共增加13个配置文件,基本对齐性能(没有全部跑)。


## Use cases (Optional)
Before running, you may need to download the pretrain model from
https://cloud.tsinghua.edu.cn/d/0100f0cea37d41ba8d08/
and then move them to the folder mmsegmentation/pretrained/, i.e.
"mmsegmentation/pretrained/van_b2.pth".
After that, run the following command:
    cd mmsegmentation
bash tools/dist_train.sh
projects/van/configs/van/van-b2_pre1k_upernet_4xb2-160k_ade20k-512x512.py
4

---------

Co-authored-by: xiexinch <xiexinch@outlook.com>
2023-05-22 20:26:26 +08:00
masaaki75 7d6156776e
[Project] Cranium (#2675) 2023-05-18 10:01:18 +08:00