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

[Dataset] Support GID dataset on project #3038

Conversation

AI-Tianlong
Copy link
Contributor

Motivation

Support GID dataset on project

projects/gid_dataset/mmseg/datasets/gid.py Outdated Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

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

select15imgFromAll.py
请问这个脚本会用在哪呢

Copy link
Contributor Author

Choose a reason for hiding this comment

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

在文献 MACU-Net for Semantic Segmentation of Fine-Resolution Remotely Sensed Images 中,用了 15张 图像作为数据集,并划分了训练和验证集,这个脚本是从150张图像中选择出和文献相同名称的15张图像,也可以不提供这个脚本。那么就需要使用GID数据集的社区同学自己从 150 张图像中去挑选这15张了。

Copy link
Collaborator

Choose a reason for hiding this comment

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

okok, 那可以放到 tools 里面,然后加个 docstring 说明一下这个脚本的作用 :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okeyyy~💙

Comment on lines 37 to 38
dest_img_dir = r'D:\ATL\AI_work\Datasets\GID\15\images'
dest_label_dir = r'D:\ATL\AI_work\Datasets\GID\15\labels'
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个路径不是很通用,建议改用相对路径

Copy link
Contributor Author

Choose a reason for hiding this comment

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

或许,可以修改成命令行参数的输入方式😀,当时只是想方便挑选出15张图像做复现,没有考虑的那么完善,我尽快修改

RGB_label = RGB_label.astype('int32')
idx = (RGB_label[:, :, 0] * 256 +
RGB_label[:, :, 1]) * 256 + RGB_label[:, :, 2]
# print(idx.shape)
Copy link
Collaborator

Choose a reason for hiding this comment

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

可以删掉这些 debug 用的注释

Copy link
Contributor Author

Choose a reason for hiding this comment

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

收到~

AI-Tianlong and others added 4 commits May 30, 2023 10:28
Co-authored-by: 谢昕辰 <xiexinch@outlook.com>
…om:AI-Tianlong/mmsegmentation into AI-Tianlong/Support_GID_dataset_On_Project
@xiexinch xiexinch merged commit e5b8d72 into open-mmlab:dev-1.x Jun 5, 2023
nahidnazifi87 pushed a commit to nahidnazifi87/mmsegmentation_playground that referenced this pull request Apr 5, 2024
## Motivation
Support GID dataset on project

---------

Co-authored-by: 谢昕辰 <xiexinch@outlook.com>
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

2 participants