antoinesaget commited on
Commit
b600fc8
·
1 Parent(s): 2314680

Upload float16 version of FranceCrops dataset

Browse files
Files changed (1) hide show
  1. README.md +34 -0
README.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FranceCrops Float16 Dataset
2
+
3
+ Memory-efficient version of the FranceCrops dataset stored in float16 format.
4
+
5
+ ## Dataset Description
6
+
7
+ - Each sample contains Sentinel-2 time series data (shape: 100, 60, 12) and corresponding crop type labels
8
+ - Features stored in float16 format for reduced memory usage
9
+ - Labels stored as int16
10
+
11
+ ## Usage
12
+
13
+ ```python
14
+ from datasets import load_dataset
15
+
16
+ # Load dataset
17
+ dataset = load_dataset("saget-antoine/francecrops-float16")
18
+
19
+ # Load with specific format (recommended for training)
20
+ # As float32
21
+ dataset = dataset.with_format('torch', dtype=torch.float32)
22
+ # Or as float16 for memory efficiency
23
+ dataset = dataset.with_format('torch', dtype=torch.float16)
24
+ # Or as bfloat16 for TPU compatibility
25
+ dataset = dataset.with_format('torch', dtype=torch.bfloat16)
26
+ ```
27
+
28
+ ## Memory Usage
29
+
30
+ Using float16 format reduces the memory footprint by approximately 50% compared to float32, while maintaining sufficient precision for most agricultural monitoring tasks.
31
+
32
+ ## Citation
33
+
34
+ If you use this dataset, please cite the original FranceCrops paper.