Hi there,
There are np.nan values in some of the images, which leads to problems when training ML models.
For example for the following times in 171A (fdl-sdoml-v2/sdomlv2.zarr/2020/171A):
{
"T_OBS": [
"2020-02-24T01:48:10.35Z",
"2020-02-24T01:54:10.35Z",
"2020-02-24T02:00:10.35Z",
"2020-02-24T02:06:10.35Z",
"2020-02-24T02:12:10.35Z",
"2020-02-24T02:18:10.34Z",
"2020-02-24T02:24:10.35Z",
"2020-02-24T02:30:10.35Z",
"2020-02-24T02:36:10.35Z",
"2020-02-24T02:42:10.34Z",
"2020-02-24T02:48:10.35Z",
"2020-02-24T02:54:10.34Z"
]
}
Given a Pytorch DataLoader (an example can be found here, the issue can be reproduced as follows:
for batch_idx, samples in enumerate(loader):
X, attrs = samples
for i, x in enumerate(X):
if np.isnan(x).any():
obs_time = attrs["T_OBS"][i]
print(f"found invalid sample at {obs_time}")
The resulting tensor will contain np.nan values:
tensor([[[nan, nan, nan, ..., nan, nan, nan],
[nan, nan, nan, ..., nan, nan, nan],
[nan, nan, nan, ..., nan, nan, nan],
...,
[nan, nan, nan, ..., nan, nan, nan],
[nan, nan, nan, ..., nan, nan, nan],
[nan, nan, nan, ..., nan, nan, nan]]]))
Cheers,
Marius
Hi there,
There are np.nan values in some of the images, which leads to problems when training ML models.
For example for the following times in 171A (fdl-sdoml-v2/sdomlv2.zarr/2020/171A):
Given a Pytorch DataLoader (an example can be found here, the issue can be reproduced as follows:
The resulting tensor will contain np.nan values:
Cheers,
Marius