antoinesaget commited on
Commit
7442303
·
1 Parent(s): e7fd287

Add train split and README.md

Browse files
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: FranceCrops
3
+ license: cc-by-sa-4.0
4
+ tags:
5
+ - earth-observation
6
+ - remote-sensing
7
+ - agriculture
8
+ - timeseries
9
+ - geospatial
10
+ task_categories:
11
+ - image-classification
12
+ size_categories:
13
+ - 10K<n<100K
14
+ ---
15
+
16
+ # Dataset Card for FranceCrops
17
+
18
+ ## Dataset Summary
19
+
20
+ FranceCrops is a satellite imagery time series dataset for crop classification in France.
21
+
22
+ Each sample in the dataset consists of:
23
+ - **Input Features (`x`)**: 3D arrays of shape (100, 60, 12) in float16:
24
+ - 100: number of timeseries sampled within an agricultural field
25
+ - 60: temporal dimension (measurements every 5 days from 01/02/2022 to 30/11/2022)
26
+ - 12: spectral bands from Sentinel-2 satellite
27
+ - **Labels (`y`)**: Integer class labels (int16), one of 20 crop types
28
+
29
+ ## Splits
30
+
31
+ 🚧 Work in Progress 🚧
32
+
33
+ - `train`: 20,000 samples (~3.4GB)
34
+
35
+ ## Usage
36
+
37
+ ```python
38
+ from datasets import load_dataset
39
+ # Load the dataset
40
+ dataset = load_dataset("saget-antoine/francecrops", split="train")
41
+
42
+ # Example of accessing a single sample
43
+ sample = dataset[0]
44
+ x = sample["x"] # Get the input features
45
+ y = sample["y"] # Get the label
46
+ ```
47
+
48
+ Typical usage with PyTorch:
49
+
50
+ ```python
51
+ import torch
52
+ from torch.utils.data import DataLoader
53
+ from datasets import load_dataset
54
+
55
+ dataset = load_dataset("saget-antoine/francecrops", split="train").with_format("torch", columns=["x", "y"], dtype=torch.float16)
56
+
57
+ train_loader = DataLoader(dataset, batch_size=1024, shuffle=True, num_workers=8)
58
+ ```
59
+
60
+ ## Dataset Creation
61
+
62
+ ### Source Data
63
+
64
+ 🚧 Work in Progress 🚧
65
+
66
+ - Features: Sentinel-2 L2A satellite imagery extracted using GEE
67
+ - Labels: Crop type classification from the 2022French Registre Parcellaire Graphique (RPG)
68
+
69
+ ### Preprocessing
70
+
71
+ 🚧 Work in Progress 🚧
72
+
73
+ - Remove clouds, shadows, and missing data time steps
74
+ - Temporal alignment
75
+ - Temporal interpolation when missing
76
+
77
+ ## License
78
+
79
+ Creative Commons Attribution-ShareAlike 4.0 International (CC-BY-SA-4.0)
train/data-00000-of-00004.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04f272c5d179d0ef1236e9f9fd36e114dc01c99e6a9f6a3123cb4f5758aefb22
3
+ size 842032512
train/data-00001-of-00004.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c32ec75f9485059eae16dd727f6911211470868c0a2c0228aff6e03e88ec2e58
3
+ size 842032512
train/data-00002-of-00004.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfde4e561a32a9d771446dbdd5dc350616ac160c7f47556474811078d286c541
3
+ size 842032512
train/data-00003-of-00004.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a87cfe2fe420a6b879034b6afa220729dc039382c8088506d499d33cf911b15a
3
+ size 842032512
train/dataset_info.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "builder_name": "",
3
+ "citation": "",
4
+ "config_name": "",
5
+ "dataset_name": "francecrops",
6
+ "dataset_size": 3368120000,
7
+ "description": "Francecrops train dataset with 20 classes and 1000 samples per class",
8
+ "download_checksums": {},
9
+ "download_size": 0,
10
+ "features": {
11
+ "x": {
12
+ "shape": [
13
+ 100,
14
+ 60,
15
+ 12
16
+ ],
17
+ "dtype": "float16",
18
+ "_type": "Array3D"
19
+ },
20
+ "y": {
21
+ "dtype": "int16",
22
+ "_type": "Value"
23
+ }
24
+ },
25
+ "homepage": "",
26
+ "license": "CC-BY-SA-4.0",
27
+ "size_in_bytes": 3368120000,
28
+ "splits": {
29
+ "train": {
30
+ "name": "train",
31
+ "num_bytes": 3368120000,
32
+ "num_examples": 20000,
33
+ "shard_lengths": [
34
+ 5000,
35
+ 5000,
36
+ 5000,
37
+ 5000
38
+ ],
39
+ "dataset_name": "francecrops"
40
+ }
41
+ },
42
+ "version": {
43
+ "version_str": "0.0.1",
44
+ "major": 0,
45
+ "minor": 0,
46
+ "patch": 1
47
+ }
48
+ }
train/state.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_data_files": [
3
+ {
4
+ "filename": "data-00000-of-00004.arrow"
5
+ },
6
+ {
7
+ "filename": "data-00001-of-00004.arrow"
8
+ },
9
+ {
10
+ "filename": "data-00002-of-00004.arrow"
11
+ },
12
+ {
13
+ "filename": "data-00003-of-00004.arrow"
14
+ }
15
+ ],
16
+ "_fingerprint": "f81e340b36ebafff",
17
+ "_format_columns": null,
18
+ "_format_kwargs": {},
19
+ "_format_type": null,
20
+ "_output_all_columns": false,
21
+ "_split": "train"
22
+ }