rafalosa commited on
Commit
c360f33
Β·
1 Parent(s): 6efdb08

README update, moving shards to separate directory

Browse files
.images/sample_naming.png ADDED

Git LFS Details

  • SHA256: 43681077ad9ede43fdd81ab1f2620d2ce190ae2e287e00e7b278e13a487556e1
  • Pointer size: 130 Bytes
  • Size of remote file: 19.1 kB
README.md CHANGED
@@ -39,10 +39,15 @@ The dataset contains in total **80,898** samples, divided into two splits:
39
  Each sample consists of 4 different files:
40
  |Type|Description|
41
  |---|---|
42
- |optical.png|The monochromatic optical image patch. Despite being monochromatic, the image still has 3 channels, with all channels being the same|
43
- |elevation.tiff|The elevation data patch in meters w.r.t. the Martian datum|
44
- |deviation_mask.png|Binary mask with locations that were identified as elevation artifacts during dataset generation and were replaced with interpolated values|
45
- |initial_nan_mask.png|Binary mask with locations that contained missing values in the Day et al. data samples and were imputed during processing|
 
 
 
 
 
46
 
47
  ## Data source
48
 
@@ -51,6 +56,44 @@ by [Day et al. 2023](https://faculty.epss.ucla.edu/~mday/index.php/mars-dems/).
51
 
52
  <img src="./.images/sankey_processing.png" alt="Sankey diagram of processed samples" style="width:50%;"/>
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  ## Citation
55
  ```bibtex
56
  @misc {}
 
39
  Each sample consists of 4 different files:
40
  |Type|Description|
41
  |---|---|
42
+ |***optical.png***|The monochromatic optical image patch. Despite being monochromatic, the image still has 3 channels, with all channels being the same|
43
+ |***elevation.tiff***|The elevation data patch in meters w.r.t. the Martian datum|
44
+ |***deviation_mask.png***|Binary mask with locations that were identified as elevation artifacts during dataset generation and were replaced with interpolated values|
45
+ |***initial_nan_mask.png***|Binary mask with locations that contained missing values in the Day et al. data samples and were imputed during processing|
46
+
47
+ ### Sample naming
48
+ Each sample follows the following naming convention:
49
+
50
+ <img src="./.images/sample_naming.png" alt="Naming convention of each sample" style="border-radius:15px;">
51
 
52
  ## Data source
53
 
 
56
 
57
  <img src="./.images/sankey_processing.png" alt="Sankey diagram of processed samples" style="width:50%;"/>
58
 
59
+ ## Typical usage
60
+ The simplest way to use MCTED is by using the `load_dataset` function from HuggingFace's `datasets` python package:
61
+ ```python
62
+ from datasets import load_dataset
63
+
64
+ # Download and load the dataset
65
+ mcted = load_dataset("ESA-Datalabs/MCTED", num_proc=8)
66
+ ```
67
+
68
+ ## Example of accessing sample data
69
+ ```python
70
+ from datasets import load_dataset
71
+ import matplotlib.pyplot as plt
72
+ import numpy as np
73
+
74
+ mcted = load_dataset("ESA-Datalabs/MCTED", num_proc=8)
75
+
76
+ # Load one sample from the validation split
77
+ sample = mcted["validation"][0]
78
+
79
+ plt.figure(figsize=(15, 5))
80
+ plt.subplot(1, 4, 1)
81
+ plt.imshow(sample["optical.png"])
82
+ plt.title("Optical image")
83
+
84
+ plt.subplot(1, 4, 2)
85
+ plt.imshow(np.array(sample["elevation.tif"]), cmap="terrain")
86
+ plt.title("DEM")
87
+
88
+ plt.subplot(1, 4, 3)
89
+ plt.imshow(sample["deviation_mask.png"], cmap="gray")
90
+ plt.title("Elevation outlier mask")
91
+
92
+ plt.subplot(1, 4, 4)
93
+ plt.imshow(sample["initial_nan_mask.png"], cmap="gray")
94
+ plt.title("Initial invalid values mask")
95
+ ```
96
+
97
  ## Citation
98
  ```bibtex
99
  @misc {}
train-000.tar β†’ data/train-000.tar RENAMED
File without changes
train-001.tar β†’ data/train-001.tar RENAMED
File without changes
train-002.tar β†’ data/train-002.tar RENAMED
File without changes
train-003.tar β†’ data/train-003.tar RENAMED
File without changes
train-004.tar β†’ data/train-004.tar RENAMED
File without changes
train-005.tar β†’ data/train-005.tar RENAMED
File without changes
train-006.tar β†’ data/train-006.tar RENAMED
File without changes
train-007.tar β†’ data/train-007.tar RENAMED
File without changes
train-008.tar β†’ data/train-008.tar RENAMED
File without changes
train-009.tar β†’ data/train-009.tar RENAMED
File without changes
train-010.tar β†’ data/train-010.tar RENAMED
File without changes
val-000.tar β†’ data/val-000.tar RENAMED
File without changes
val-001.tar β†’ data/val-001.tar RENAMED
File without changes