Skip to content
Snippets Groups Projects
Commit cbe09459 authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Use Float32 to save memory.

parent 08bf6702
No related branches found
No related tags found
No related merge requests found
...@@ -634,8 +634,8 @@ class ImageDataset(Dataset): ...@@ -634,8 +634,8 @@ class ImageDataset(Dataset):
# initialize dictionary of class spectral distribution # initialize dictionary of class spectral distribution
# exclude NoData class # exclude NoData class
cls_ds = {k: np.empty(shape=(0, len(self.use_bands))) for k, v in cls_ds = {k: np.empty(shape=(0, len(self.use_bands)), dtype=np.float32)
self.labels.items() if v['label'] != 'No_data'} for k, v in self.labels.items() if v['label'] != 'No_data'}
# iterate over the samples of the dataset # iterate over the samples of the dataset
for i in range(len(self)): for i in range(len(self)):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment