Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
35
49
O2023_84_40_1_0210_00112921_6730_5000.tif
O2021_83_31_1_0042_00092144_7000_2000.tif
O2023_85_45_1_0028_00002923_3000_6000.tif
O2021_84_40_1_0044_00082852_4000_1000.tif
O2021_82_11_1_0023_00003031_3000_5000.tif
O2021_82_21_1_0004_00002040_16000_1000.tif
O2021_82_16_1_0028_00005676_10cm_4000_1000.tif
O2021_82_22_1_0032_00000909_1000_4000.tif
O2021_84_40_1_0039_00062707_0_2000.tif
O2021_83_25_1_0027_00001529_0_3000.tif
O2021_83_26_1_0014_00001457_5000_0.tif
O2021_83_25_1_0026_00001215_9990_4000.tif
O2023_84_40_1_0153_00102521_6000_3000.tif
O2023_84_40_1_0211_00112304_4000_4000.tif
O2021_82_13_1_0025_00144232_8000_2000.tif
O2021_82_22_1_0031_00000385_4000_4000.tif
O2023_82_24_1_0012_00000542_2000_8000.tif
O2021_82_13_1_0025_00144232_8000_0.tif
O2021_82_11_1_0027_00002539_8000_3000.tif
O2021_82_11_1_0025_00003595_2000_2000.tif
O2021_82_22_1_0031_00000390_7000_4000.tif
O2021_84_40_1_0040_00092534_0_0.tif
O2021_84_40_1_0047_00073804_4000_3000.tif
O2021_84_40_1_0047_00073821_7000_4000.tif
O2021_83_26_1_0014_00001452_2000_3000.tif
O2023_85_45_1_0025_00001590_2000_7000.tif
O2021_82_20_1_0023_00004974_10000_3000.tif
O2021_82_11_1_0024_00002866_3000_3000.tif
O2021_83_25_1_0017_00002705_10030_1000.tif
O2021_83_25_1_0022_00002142_9970_7000.tif
O2021_84_40_1_0038_00060839_1000_0.tif
O2023_84_40_1_0210_00112926_6000_1000.tif
O2023_84_40_1_0141_00115830_0_7000.tif
O2021_82_16_1_0030_00006122_10cm_3000_5000.tif
O2021_83_26_1_0012_00001782_6000_0.tif
O2021_84_40_1_0039_00062712_5000_5000.tif
O2021_84_40_1_0044_00082855_4000_0.tif
O2021_82_22_1_0030_00000260_8000_5000.tif
O2023_84_40_1_0152_00103343_5000_4000.tif
O2021_83_25_1_0023_00001884_3000_6000.tif
O2023_85_45_1_0027_00002587_5000_1000.tif
O2023_84_40_1_0210_00112921_4000_5000.tif
O2021_83_31_1_0039_00123200_7000_5000.tif
O2021_84_40_1_0039_00062715_7000_1000.tif
O2021_83_25_1_0023_00001883_1000_2000.tif
O2023_84_40_1_0211_00112250_6780_5000.tif
O2023_84_40_1_0143_00113927_0_2000.tif
O2021_83_31_1_0040_00094632_8200_2000.tif
O2021_83_25_1_0024_00001857_1000_0.tif
O2021_83_26_1_0013_00001596_5000_4000.tif
O2021_82_13_1_0025_00144221_1000_0.tif
O2021_83_34_1_0024_00002340_8000_5000.tif
O2021_82_19_1_0024_00005011_2000_6000.tif
O2023_84_40_1_0144_00111245_3000_1000.tif
O2021_83_25_1_0025_00001598_5000_7000.tif
O2021_83_25_1_0024_00001849_2000_2000.tif
O2021_83_25_1_0022_00002146_9980_2000.tif
O2023_85_48_1_0052_00000182_8790_1000.tif
O2021_84_40_1_0039_00062718_8000_5000.tif
O2021_83_25_1_0017_00002699_5000_0.tif
O2023_84_40_1_0126_00090908_5000_4000.tif
O2021_82_11_1_0025_00003597_8000_1000.tif
O2021_82_22_1_0032_00000906_4000_3000.tif
O2021_82_13_1_0026_00144941_3000_2000.tif
O2023_85_45_1_0026_00002358_1000_3000.tif
O2021_82_11_1_0026_00002615_1000_2000.tif
O2023_84_40_1_0146_00110502_8700_1000.tif
O2021_83_25_1_0015_00002817_6000_5000.tif
O2021_83_25_1_0025_00001596_2000_0.tif
O2021_84_40_1_0038_00060852_1000_4000.tif
O2021_82_22_1_0030_00000262_2000_6000.tif
O2023_84_40_1_0144_00111250_8700_4000.tif
O2021_82_13_1_0025_00144247_0_5000.tif
O2021_82_13_1_0025_00144232_7000_0.tif
O2021_82_11_1_0027_00002535_2000_0.tif
O2021_83_25_1_0016_00002734_10000_3000.tif
O2021_82_16_1_0028_00005676_10cm_7450_5000.tif
O2021_83_25_1_0027_00001529_3000_2000.tif
O2023_84_40_1_0143_00113917_5000_5000.tif
O2021_83_25_1_0023_00001881_4000_1000.tif
O2021_83_31_1_0042_00092144_8000_2000.tif
O2021_82_20_1_0023_00004976_14000_3000.tif
O2021_82_19_1_0023_00005476_10000_6000.tif
O2021_83_26_1_0014_00001457_5000_4000.tif
O2023_84_40_1_0210_00112923_6740_1000.tif
O2021_82_13_1_0025_00144232_7000_2000.tif
O2021_83_25_1_0023_00001889_3000_2000.tif
O2023_82_24_1_0012_00000543_3000_7000.tif
O2021_82_22_1_0029_00002082_5000_4000.tif
O2021_82_24_1_0021_00002046_2000_2000.tif
O2021_83_26_1_0012_00001783_5000_1000.tif
O2021_82_13_1_0026_00144935_1000_3000.tif
O2021_82_20_1_0023_00004975_14000_4000.tif
O2021_84_40_1_0047_00073821_8000_4000.tif
O2021_83_26_1_0012_00001782_9000_0.tif
O2023_84_40_1_0153_00102524_1000_4000.tif
O2021_84_40_1_0040_00092541_3000_1000.tif
O2021_82_11_1_0027_00002539_7000_3000.tif
O2021_83_26_1_0014_00001454_7000_0.tif
O2021_82_22_1_0031_00000390_8000_4000.tif
End of preview. Expand in Data Studio

KDS befæstelse

Training data for the surface-type (befæstelse) segmentation models of the Danish Agency for Climate Data (Klimadatastyrelsen, KDS). The models classify each pixel as asphalt, tiles, gravel, unpaved, green roof and so on.

The models were trained with ML_sdfi_fastai2.

Contents

Path What
data/splitted/rgb/part_NN/ RGB image tiles
data/splitted/cir/part_NN/ CIR (color infrared) image tiles
data/splitted/OrtoRGB/part_NN/ RGB orthophoto tiles
data/splitted/OrtoCIR/part_NN/ CIR orthophoto tiles
data/splitted/DSM/part_NN/ Digital surface model tiles
data/splitted/DTM/part_NN/ Digital terrain model tiles
labels/splitted_labels/part_NN/ One label raster per tile, with the same file name
data/all.txt All 22,997 tiles, used for training and validation
data/train.txt Training tiles
data/valid_all_minus_train.txt The 25 validation tiles: all.txt minus train.txt
data/READMKE.txt Short descriptions of some of the hand-picked validation tiles
codes.txt Class names, one per label value

Every data type has the same 22,997 tiles, about 280 GB in total. All rasters are 1000 x 1000 pixel GeoTIFFs at 10 cm in EPSG:25832.

Data type Bands Type
rgb, cir, OrtoRGB, OrtoCIR 3 uint8
DSM, DTM 1 float32
labels 1 uint8

The tile name prefix is the image year: O2021_* (14,174 tiles), O2023_* (5,150) and O2025_* (3,673).

Some DSM and DTM tiles are all zeros (no elevation data). In a random sample this was about 25% of the O2025_* tiles and 5-7% of the O2021_* tiles. The models were trained on the data as it is here.

The Hub allows at most 10,000 files per folder, so the tiles are split into part_00/ to part_02/ subfolders: the names in all.txt, sorted, in chunks of 10,000. A tile has the same part_NN in every data type and in the labels. Training expects one flat folder per data type; see Download.

Classes

Value Class
0 unknown (ignore_index, excluded from the loss)
1 asfalt (asphalt)
2 fliser (paving tiles)
3 grus (gravel)
4 ubefestet (unpaved)
5 green_roof
6 drivhus (greenhouse)
7 betonflade (concrete)
8 brosten (cobblestones)
9 unknown2
10 solceller (solar panels)

How the labels were made

The labels were rasterized from the polygons in 20261023_labels.gpkg, which is not part of this dataset.

Training setup

The models read the dataset like this (from the ML_sdfi_fastai2 .ini configs):

[CONFIG]
datatypes = ["rgb","cir","OrtoRGB","OrtoCIR","DSM","DTM"]
channels  = [[0,1,2],[0],[0,1,2],[0],[0],[0]]

[DATASET]
path_to_images    = <dataset>/data/splitted/rgb
path_to_labels    = <dataset>/labels/splitted_labels
path_to_dataset   = <dataset>/
path_to_all_txt   = <dataset>/data/all.txt
path_to_valid_txt = <dataset>/data/valid_all_minus_train.txt
path_to_codes     = <dataset>/codes.txt

The 10 input channels are the three RGB bands, the first CIR band, the three OrtoRGB bands, the first OrtoCIR band, DSM and DTM. Training uses random 992 x 992 crops of the tiles.

Download

Use download_dataset.sh from ML_datasets_on_hugging_face. --flatten-parts moves the tiles out of the part_NN/ folders, which gives the layout the training configs expect:

./download_dataset.sh \
    --repo-id rasmuspjohansson/KDS_befaestelse \
    --output-dir ./KDS_befaestelse \
    --flatten-parts

To skip the elevation models, add --exclude "data/splitted/DSM/*" --exclude "data/splitted/DTM/*".

With only the hf CLI:

hf download rasmuspjohansson/KDS_befaestelse \
    --repo-type dataset \
    --local-dir ./KDS_befaestelse
cd KDS_befaestelse
for d in data/splitted/* labels/splitted_labels; do
    find "$d" -mindepth 2 -type f -exec mv -n -t "$d" {} + && rmdir "$d"/part_*
done

Contact

rajoh@kds.dk

Downloads last month
-