-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Dataset] Support GID dataset on project #3038
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
select15imgFromAll.py
请问这个脚本会用在哪呢
There was a problem hiding this comment.
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张了。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okok, 那可以放到 tools 里面,然后加个 docstring 说明一下这个脚本的作用 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okeyyy~💙
dest_img_dir = r'D:\ATL\AI_work\Datasets\GID\15\images' | ||
dest_label_dir = r'D:\ATL\AI_work\Datasets\GID\15\labels' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个路径不是很通用,建议改用相对路径
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以删掉这些 debug 用的注释
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
收到~
Co-authored-by: 谢昕辰 <xiexinch@outlook.com>
…I-Tianlong/Support_GID_dataset_On_Project
…om:AI-Tianlong/mmsegmentation into AI-Tianlong/Support_GID_dataset_On_Project
## Motivation Support GID dataset on project --------- Co-authored-by: 谢昕辰 <xiexinch@outlook.com>
Motivation
Support GID dataset on project