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

Fixed the bandorder of EuroSAT #2480

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/tutorials/transforms.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,11 @@
" 'B06': 'Vegetation Red Edge 2',\n",
" 'B07': 'Vegetation Red Edge 3',\n",
" 'B08': 'NIR 1',\n",
" 'B8A': 'NIR 2',\n",
" 'B09': 'Water Vapour',\n",
" 'B10': 'SWIR 1',\n",
" 'B11': 'SWIR 2',\n",
" 'B12': 'SWIR 3',\n",
" 'B8A': 'NIR 2',\n",
"}"
]
},
Expand Down
40 changes: 20 additions & 20 deletions torchgeo/datamodules/eurosat.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
'B06': 2130.3491,
'B07': 2524.0549,
'B08': 2454.1938,
'B8A': 785.4963,
'B09': 12.4639,
'B10': 1969.9224,
'B11': 1206.2421,
'B12': 2779.4104,
'B09': 785.4963,
'B10': 12.4639,
'B11': 1969.9224,
'B12': 1206.2421,
'B8A': 2779.4104,
}

SPATIAL_STD = {
Expand All @@ -35,11 +35,11 @@
'B06': 806.8271,
'B07': 1022.6378,
'B08': 1065.4312,
'B8A': 410.5831,
'B09': 4.8878,
'B10': 958.4751,
'B11': 740.6196,
'B12': 1157.2896,
'B09': 410.5831,
'B10': 4.8878,
'B11': 958.4751,
'B12': 740.6196,
'B8A': 1157.2896,
}

MEAN = {
Expand All @@ -51,11 +51,11 @@
'B06': 1999.79090914,
'B07': 2369.22292565,
'B08': 2296.82608323,
'B8A': 732.08340178,
'B09': 12.11327804,
'B10': 1819.01027855,
'B11': 1118.92391149,
'B12': 2594.14080798,
'B09': 732.08340178,
'B10': 12.11327804,
'B11': 1819.01027855,
'B12': 1118.92391149,
'B8A': 2594.14080798,
}

STD = {
Expand All @@ -67,11 +67,11 @@
'B06': 861.18399006,
'B07': 1086.63139075,
'B08': 1117.98170791,
'B8A': 404.91978886,
'B09': 4.77584468,
'B10': 1002.58768311,
'B11': 761.30323499,
'B12': 1231.58581042,
'B09': 404.91978886,
'B10': 4.77584468,
'B11': 1002.58768311,
'B12': 761.30323499,
'B8A': 1231.58581042,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These don't need to be moved around, this is a dictionary

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, but it's better to keep them in the same order as everything else.

}


Expand Down
2 changes: 1 addition & 1 deletion torchgeo/datasets/eurosat.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ class EuroSAT(NonGeoClassificationDataset):
'B06',
'B07',
'B08',
'B8A',
'B09',
'B10',
'B11',
'B12',
'B8A',
)

rgb_bands = ('B04', 'B03', 'B02')
Expand Down
Loading