Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeCamp #139 [Feature] Support REFUGE dataset. #2554

Merged
merged 14 commits into from
Feb 3, 2023

Conversation

liuruiqiang
Copy link
Contributor

@liuruiqiang liuruiqiang commented Feb 2, 2023

Motivation

Add REFUGE datasets
Old PR: #2420

│ ├── __MACOSX
```

To convert REFUGE dataset to MMSegmentation format, you should run the following command:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To convert REFUGE dataset to MMSegmentation format, you should run the following command:
Please run the following command to convert REFUGE dataset:

@MengzhangLI
Copy link
Contributor

Please also add unit test image & annotation from #2420

image

Using command below:

git add tests/data/pseudo_refuge_dataset/img_dir/pseudo_g0001.png

git add tests/data/pseudo_refuge_dataset/ann_dir/pseudo_g0001.png

@codecov
Copy link

codecov bot commented Feb 2, 2023

Codecov Report

Base: 83.25% // Head: 83.27% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (2d26d87) compared to base (7ac0888).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           dev-1.x    #2554      +/-   ##
===========================================
+ Coverage    83.25%   83.27%   +0.01%     
===========================================
  Files          145      146       +1     
  Lines         8505     8515      +10     
  Branches      1273     1274       +1     
===========================================
+ Hits          7081     7091      +10     
  Misses        1213     1213              
  Partials       211      211              
Flag Coverage Δ
unittests 83.27% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmseg/datasets/__init__.py 100.00% <100.00%> (ø)
mmseg/datasets/refuge.py 100.00% <100.00%> (ø)
mmseg/datasets/transforms/transforms.py 89.49% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment on lines 419 to 421
首先,去[REFUGE 挑战赛官网](https://refuge.grand-challenge.org)注册后, 在指定[链接](https://refuge.grand-challenge.org/REFUGE2Download) 下载 REFUGE 数据集.

随后解压 `REFUGE2.zip` 然后得到如下所示的原始数据目录.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
首先,去[REFUGE 挑战赛官网](https://refuge.grand-challenge.org)注册后, 在指定[链接](https://refuge.grand-challenge.org/REFUGE2Download) 下载 REFUGE 数据集.
随后解压 `REFUGE2.zip` 然后得到如下所示的原始数据目录.
[官网](https://refuge.grand-challenge.org)注册后, 下载 [REFUGE 数据集](https://refuge.grand-challenge.org/REFUGE2Download) `REFUGE2.zip` , 解压后的内容如下:

│ ├── __MACOSX
```

为了将 REFUGE 数据集转换成 MMSegmentation 格式, 您需要运行如下命令:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
为了将 REFUGE 数据集转换成 MMSegmentation 格式, 您需要运行如下命令:
运行如下命令,就可以按照 REFUGE2018 挑战赛划分数据集的标准将数据集切分成训练集、验证集、测试集:

│ │ │ ├── test
```

就可以按照 REFUGE2018 挑战赛划分数据集的标准, 将数据集切分 400 张图片的训练集, 400 张图片的验证集和 400 张图片的测试集.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
就可以按照 REFUGE2018 挑战赛划分数据集的标准, 将数据集切分 400 张图片的训练集, 400 张图片的验证集和 400 张图片的测试集.
其中包括 400 张图片的训练集, 400 张图片的验证集和 400 张图片的测试集.

docs/en/user_guides/2_dataset_prepare.md Outdated Show resolved Hide resolved
docs/en/user_guides/2_dataset_prepare.md Outdated Show resolved Hide resolved
@MeowZheng MeowZheng merged commit 49b062e into open-mmlab:dev-1.x Feb 3, 2023
nahidnazifi87 pushed a commit to nahidnazifi87/mmsegmentation_playground that referenced this pull request Apr 5, 2024
…#2554)

## Motivation 
Add REFUGE datasets
Old PR: open-mmlab#2420

---------

Co-authored-by: MengzhangLI <mcmong@pku.edu.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants