File size: 1,061 Bytes
b600fc8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# FranceCrops Float16 Dataset

Memory-efficient version of the FranceCrops dataset stored in float16 format.

## Dataset Description

- Each sample contains Sentinel-2 time series data (shape: 100, 60, 12) and corresponding crop type labels
- Features stored in float16 format for reduced memory usage
- Labels stored as int16

## Usage

```python
from datasets import load_dataset

# Load dataset
dataset = load_dataset("saget-antoine/francecrops-float16")

# Load with specific format (recommended for training)
# As float32
dataset = dataset.with_format('torch', dtype=torch.float32)
# Or as float16 for memory efficiency
dataset = dataset.with_format('torch', dtype=torch.float16)
# Or as bfloat16 for TPU compatibility
dataset = dataset.with_format('torch', dtype=torch.bfloat16)
```

## Memory Usage

Using float16 format reduces the memory footprint by approximately 50% compared to float32, while maintaining sufficient precision for most agricultural monitoring tasks.

## Citation

If you use this dataset, please cite the original FranceCrops paper.