Commit
·
95b8d0f
1
Parent(s):
d8590ea
get rid of channels last
Browse files
multi_temporal_crop_classification_Prithvi_100M.py
CHANGED
|
@@ -72,7 +72,7 @@ tile_size = 224
|
|
| 72 |
orig_nsize = 512
|
| 73 |
crop_size = (tile_size, tile_size)
|
| 74 |
train_pipeline = [
|
| 75 |
-
dict(type='LoadGeospatialImageFromFile', to_float32=True
|
| 76 |
dict(type='LoadGeospatialAnnotations', reduce_zero_label=True),
|
| 77 |
dict(type='RandomFlip', prob=0.5),
|
| 78 |
dict(type='ToTensor', keys=['img', 'gt_semantic_seg']),
|
|
@@ -87,7 +87,7 @@ train_pipeline = [
|
|
| 87 |
]
|
| 88 |
|
| 89 |
test_pipeline = [
|
| 90 |
-
dict(type='LoadGeospatialImageFromFile', to_float32=True
|
| 91 |
dict(type='ToTensor', keys=['img']),
|
| 92 |
# to channels first
|
| 93 |
dict(type="TorchPermute", keys=["img"], order=(2, 0, 1)),
|
|
|
|
| 72 |
orig_nsize = 512
|
| 73 |
crop_size = (tile_size, tile_size)
|
| 74 |
train_pipeline = [
|
| 75 |
+
dict(type='LoadGeospatialImageFromFile', to_float32=True),
|
| 76 |
dict(type='LoadGeospatialAnnotations', reduce_zero_label=True),
|
| 77 |
dict(type='RandomFlip', prob=0.5),
|
| 78 |
dict(type='ToTensor', keys=['img', 'gt_semantic_seg']),
|
|
|
|
| 87 |
]
|
| 88 |
|
| 89 |
test_pipeline = [
|
| 90 |
+
dict(type='LoadGeospatialImageFromFile', to_float32=True),
|
| 91 |
dict(type='ToTensor', keys=['img']),
|
| 92 |
# to channels first
|
| 93 |
dict(type="TorchPermute", keys=["img"], order=(2, 0, 1)),
|