ardan-S commited on
Commit
7160ee4
·
verified ·
1 Parent(s): c0c9240

Update dataset card

Browse files
Files changed (1) hide show
  1. README.md +108 -17
README.md CHANGED
@@ -1,31 +1,122 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
2
  tags:
3
  - hirise
4
  - mars
 
 
5
  - numpy
6
  ---
7
  # HiPredict dataset
8
 
9
- Research NumPy patches and data records for HiPredict's HiRISE RED4 reconstruction.
10
- Code: https://github.com/ardan-S/HiPredict
11
- Model: https://huggingface.co/ardan-S/HiPredict
12
 
13
- The corpus contains 586,450 arrays in 51 uncompressed tar shards.
14
- The arrays retain their original bytes. CSV row order and all non-Path values
15
- are preserved; paths resolve relative to each downloaded CSV after extraction.
16
- The released model uses the recorded global normalization statistics supplied
17
- with its checkpoint and the public code.
18
 
19
- ## Download and extract
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
  ```bash
22
- hf download ardan-S/HiPredict --repo-type dataset --local-dir HiPredict-data
23
- find HiPredict-data/shards -name '*.tar' -exec tar -xf {} -C HiPredict-data \;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  ```
25
 
26
- This restores `npy_files/OBSERVATION_ID/...` for training/validation/test and
27
- `npy_files_evals/OBSERVATION_ID/...` for the separate evaluation corpus.
28
- The two directories remain separate, including when patch filenames coincide.
29
- CSV records: `data_record_alls.csv`, `data_record_evals.csv`.
30
- Patch sets contain BG12, IR10, RED4, and RED3/RED5 context arrays.
31
- `dataset_manifest.json` lists the shard checksums and record provenance.
 
 
 
1
  ---
2
+ license: cc-by-4.0
3
+ pretty_name: HiPredict dataset
4
+ configs:
5
+ - config_name: preview
6
+ default: true
7
+ data_files:
8
+ - split: preview
9
+ path: preview/*
10
+ size_categories:
11
+ - 100K<n<1M
12
  tags:
13
  - hirise
14
  - mars
15
+ - planetary-science
16
+ - image-reconstruction
17
  - numpy
18
  ---
19
  # HiPredict dataset
20
 
21
+ **Paper:** preprint coming soon · **Code:** [ardan-S/HiPredict](https://github.com/ardan-S/HiPredict) · **Model:** [ardan-S/HiPredict](https://huggingface.co/ardan-S/HiPredict)
 
 
22
 
23
+ The patches and records used to train and evaluate HiPredict. HiPredict
24
+ reconstructs the RED4 band of the HiRISE camera on the Mars Reconnaissance
25
+ Orbiter. The RED4 detector has partially failed, and many observations have no
26
+ usable RED4 band as a result.
 
27
 
28
+ ## Contents
29
+
30
+ | Record and arrays | Patch sets | Observations | Arrays | Observation dates |
31
+ | --- | ---: | ---: | ---: | --- |
32
+ | `data_record_alls.csv`, `npy_files/` | 116,790 | 19,465 | 583,950 | 2008-12-21 to 2021-08-08 |
33
+ | `data_record_evals.csv`, `npy_files_evals/` | 500 | 500 | 2,500 | 2007-09-30 to 2023-05-27 |
34
+
35
+ The arrays are stored in 51 uncompressed tar shards (`shards/0000/part-*.tar`,
36
+ about 216 GB in total). `dataset_manifest.json` lists each shard's SHA-256
37
+ checksum and the provenance of the two records.
38
+
39
+ Each patch set holds five float32 arrays from one observation:
40
+
41
+ - BG12, IR10 and RED4: 256 × 256 patches of the same ground;
42
+ - RED3 and RED5: 1024 × 32 × 4 context arrays from the detector edges next to RED4.
43
+
44
+ Values are in the calibrated units of the processed ISIS cubes.
45
+
46
+ ## Preview
47
+
48
+ The dataset viewer shows `preview/`: false-colour composites of 100 patch sets,
49
+ spread evenly over the record's dates, with IR10, RED4 and BG12 as red, green
50
+ and blue, each contrast-stretched independently. They are for browsing only;
51
+ the data are the float32 arrays in the shards.
52
+
53
+ ## Records
54
+
55
+ Each record has one row per array. The columns are:
56
+
57
+ - `Observation`, `Set`, `Patch` and `CCD`: which observation, patch set and detector the array belongs to;
58
+ - `Path`: the array's location, relative to the CSV file;
59
+ - `Height`, `Width` and `Channels`: the array's shape;
60
+ - `Patch_x` and `Patch_y`: where the patch sits in the processed cube;
61
+ - `Date`, `Binning` and `TDI`: observation settings;
62
+ - observation metadata from the HiRISE EDR index, including instrument temperatures, viewing and illumination geometry, orbit number, and solar longitude and distance;
63
+ - `Pix_min`, `Pix_max`, `Obs_center` and `Obs_scale`: pixel range and observation-level centre and scale.
64
+
65
+ ## Splits
66
+
67
+ There are no split files. The code splits `data_record_alls.csv` by date: patch
68
+ sets are sorted by observation date, and the earliest 70% are used for training,
69
+ the next 10% for validation and the last 20% for testing. On this record that
70
+ gives 81,753, 11,679 and 23,358 sets, with boundaries on 2018-02-10 and
71
+ 2018-11-19. The released model was trained when the record held 51 fewer patch
72
+ sets, so its training split had 81,717 sets.
73
+
74
+ `data_record_evals.csv` is the evaluation set for the per-category metrics
75
+ defined in the code's `hipredict/configs/evals.yaml`. 314 of its 500
76
+ observations also appear in `data_record_alls.csv` with identical patches, 240
77
+ of them in the training split.
78
+
79
+ ## Processing
80
+
81
+ Observations were selected from the HiRISE archive in the NASA Planetary Data
82
+ System. Each one has all five detectors used here (RED3, RED4, RED5, IR10 and
83
+ BG12), binning 1 or 2 and TDI 64 or 128, with matching binning across the RED
84
+ detectors and across the colour detectors. They were processed with HiPROC
85
+ 0.11.0 and ISIS 9.0.0 using the pipeline in the code repository. Patch positions
86
+ were sampled to spread the patch sets over location, orbit, solar longitude and
87
+ binning/TDI.
88
+
89
+ ## Download and use
90
+
91
+ To use the dataset with the HiPredict code, download it into the repository's
92
+ `files/` folder and unpack the shards there:
93
 
94
  ```bash
95
+ uv run hf download ardan-S/HiPredict --repo-type dataset --local-dir files \
96
+ --exclude README.md --exclude .gitattributes
97
+ for shard in files/shards/*/*.tar; do tar -xf "$shard" -C files; done
98
+ ```
99
+
100
+ Unpacking needs as much space again as the download. See the code's
101
+ [workflows guide](https://github.com/ardan-S/HiPredict/blob/main/docs/workflows.md#the-hipredict-dataset)
102
+ for storing the dataset on another disk and for training and evaluating with it.
103
+
104
+ The records can also be used directly:
105
+
106
+ ```python
107
+ import numpy as np
108
+ import pandas as pd
109
+
110
+ record = pd.read_csv("files/data_record_alls.csv")
111
+ row = record.iloc[0]
112
+ array = np.load(f"files/{row.Path}")
113
  ```
114
 
115
+ ## Licence and credit
116
+
117
+ The dataset is released under the Creative Commons Attribution 4.0 licence.
118
+ HiRISE data: NASA/JPL/University of Arizona.
119
+
120
+ ## Citation
121
+
122
+ A citation will be added here when the preprint is released.