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

How to SOLVE this Problem? Remove weird GT visualization (Background and the white rectangle)? #3648

Closed
bjzhb666 opened this issue Apr 23, 2024 · 1 comment

Comments

@bjzhb666
Copy link

bjzhb666 commented Apr 23, 2024

73ad5bf27e00995b3aa08852da65433
The left is GT, the Visualization of GT is weird.

dataset_type = 'SatelliteSegDataset'
# data_root = 'data/satellite/'
data_root = 'data/satellite_seg_512/'
crop_size = (2048, 2048) # random crop size
bezier_order = 3
dilate_kernel = 1

train_pipeline = [
    dict(type='LoadImageFromFile'), # 第1个流程,从文件路径里加载图像
    dict(type='LoadAnnotations'),  # 第2个流程,对于当前图像,加载它的标注图像
    
    dict(type='RandomResize',  # 调整输入图像大小(resize)和其标注图像的数据增广流程
    scale=crop_size,
    keep_ratio=True),  # 图像裁剪的大小
  
    dict(type='RandomFlip',  # 翻转图像和其标注图像的数据增广流程
        prob=0.5),  # 翻转图像的概率
   
    dict(type='PhotoMetricDistortion'),  # 光学上使用一些方法扭曲当前图像和其标注图像的数据增广流程,和GT无关,不用改
    dict(type='PackSegInputs')  # 打包用于语义分割的输入数据
]

test_pipeline = [
    dict(type='LoadImageFromFile'),  # 第1个流程,从文件路径里加载图像
   
    dict(type='LoadAnnotations'),  # 加载数据集提供的语义分割标注
   
    dict(type='PackSegInputs')  # 打包用于语义分割的输入数据
]

@bjzhb666
Copy link
Author

#3649

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

No branches or pull requests

1 participant