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

Add multiple versions of the So2Sat dataset #1283

Merged
merged 22 commits into from
Apr 25, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Shorten the mean and stdev lists
  • Loading branch information
calebrob6 committed Apr 25, 2023
commit ac2d97adc84a49a86c40cf0f1c595521d676cc86
46 changes: 2 additions & 44 deletions torchgeo/datamodules/so2sat.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,29 +88,8 @@ class So2SatDataModule(NonGeoDataModule):
0.11057334452833,
]
),
"3_culture_10": torch.tensor( # note: this is the same as "2"
[
-0.00003591224260,
-0.00000765856128,
0.00005937385750,
0.00002516623150,
0.04420110660000,
0.25761027100000,
0.00075567433700,
0.00135034668000,
0.12375696117681,
0.10927746363683,
0.10108552032678,
0.11423986161140,
0.15926566920230,
0.18147236008771,
0.17457403122913,
0.19501607349635,
0.15428468872076,
0.10905050699570,
]
),
}
means_per_version["3_culture_10"] = means_per_version["2"]

stds_per_version: dict[str, Tensor] = {
"2": torch.tensor(
Expand Down Expand Up @@ -179,29 +158,8 @@ class So2SatDataModule(NonGeoDataModule):
0.0865943,
]
),
"3_culture_10": torch.tensor( # note: this is the same as "2"
[
0.17555201,
0.17556463,
0.45998793,
0.45598876,
2.85599092,
8.32480061,
2.44987574,
1.46473530,
0.03958795,
0.04777826,
0.06636616,
0.06358874,
0.07744387,
0.09101635,
0.09218466,
0.10164581,
0.09991773,
0.08780632,
]
),
}
stds_per_version["3_culture_10"] = stds_per_version["2"]

def __init__(
self,
Expand Down