-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[Dataset] Support GID dataset on project #3038
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
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>
你好,可以加下联系方式吗?关于gid数据集有点问题想请教 |
您可以直接在这里问呢 @Momo-coder1 |
@AI-Tianlong 按照你的方法划分好数据集训练时,Forest类别指标一直显示nan |
@Momo-coder1 ,是否能提供更详细的数据呢? |
20250323_120654.log |
@Momo-coder1 是的,需要对150张全部进行处理。教程只提供了小样本的测试,看起来其他类别都没有问题,训练集图片的裁切应该是都没有问题的。估计还是数据的问题,可以可视化下看看,是否包含。 |
Motivation
Support GID dataset on project