carlosgomes98 commited on
Commit
f2c0d71
1 Parent(s): 0639e6a

get rid of channels last

Browse files
Files changed (1) hide show
  1. burn_scars_Prithvi_100M.py +2 -2
burn_scars_Prithvi_100M.py CHANGED
@@ -56,7 +56,7 @@ save_path = work_dir
56
 
57
  save_path = work_dir
58
  train_pipeline = [
59
- dict(type='LoadGeospatialImageFromFile', to_float32=image_to_float32, channels_last=True),
60
  dict(type='LoadGeospatialAnnotations', reduce_zero_label=False),
61
  dict(type='BandsExtract', bands=bands),
62
  dict(type='RandomFlip', prob=0.5),
@@ -74,7 +74,7 @@ train_pipeline = [
74
  dict(type='Collect', keys=['img', 'gt_semantic_seg'])
75
  ]
76
  test_pipeline = [
77
- dict(type='LoadGeospatialImageFromFile', to_float32=image_to_float32, channels_last=True),
78
  dict(type='BandsExtract', bands=bands),
79
  dict(type='ToTensor', keys=['img']),
80
  # to channels first
 
56
 
57
  save_path = work_dir
58
  train_pipeline = [
59
+ dict(type='LoadGeospatialImageFromFile', to_float32=image_to_float32),
60
  dict(type='LoadGeospatialAnnotations', reduce_zero_label=False),
61
  dict(type='BandsExtract', bands=bands),
62
  dict(type='RandomFlip', prob=0.5),
 
74
  dict(type='Collect', keys=['img', 'gt_semantic_seg'])
75
  ]
76
  test_pipeline = [
77
+ dict(type='LoadGeospatialImageFromFile', to_float32=image_to_float32),
78
  dict(type='BandsExtract', bands=bands),
79
  dict(type='ToTensor', keys=['img']),
80
  # to channels first