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

Use Float16 to save memory.

parent ec10598b
No related branches found
No related tags found
No related merge requests found
......@@ -634,7 +634,7 @@ class ImageDataset(Dataset):
# initialize dictionary of class spectral distribution
# exclude NoData class
cls_ds = {k: np.empty(shape=(0, len(self.use_bands)), dtype=np.float32)
cls_ds = {k: np.empty(shape=(0, len(self.use_bands)), dtype=np.float16)
for k, v in self.labels.items() if v['label'] != 'No_data'}
# iterate over the samples of the dataset
......
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