Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    TypeError
Message:      int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1531, in _prepare_split_single
                  for key, record in generator:
                                     ^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
                  for item in generator(*args, **kwargs):
                              ~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 127, in _generate_examples
                  for example_idx, example in enumerate(self._get_pipeline_from_tar(tar_path, tar_iterator)):
                                              ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 32, in _get_pipeline_from_tar
                  for filename, f in tar_iterator:
                                     ^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/track.py", line 49, in __iter__
                  for x in self.generator(*self.args):
                           ~~~~~~~~~~~~~~^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 1405, in _iter_from_urlpath
                  with xopen(urlpath, "rb", download_config=download_config, block_size=0) as f:
                       ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 982, in xopen
                  file_obj = fs.open(paths[0], mode)
                File "<string>", line 3, in open
                File "/usr/local/lib/python3.14/unittest/mock.py", line 1176, in __call__
                  return self._mock_call(*args, **kwargs)
                         ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/unittest/mock.py", line 1180, in _mock_call
                  return self._execute_mock_call(*args, **kwargs)
                         ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/unittest/mock.py", line 1247, in _execute_mock_call
                  result = effect(*args, **kwargs)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 786, in wrapped
                  tracker.files[urlpath] = {"read": 0, "size": int(f.size)}
                                                               ~~~^^^^^^^^
              TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1393, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1571, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

hsi.tiff
image
json
dict
label_hsi_lt.png
image
label_rgb.png
image
rgb.png
image
__key__
string
__url__
string
{ "sample_id": "20220929_02_095540", "sequence_id": "20220929_02", "timestamp": "2022-09-29T09:55:40+02:00" }
20220929_02_095540
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20221025_03_092119", "sequence_id": "20221025_03", "timestamp": "2022-10-25T09:21:19+02:00" }
20221025_03_092119
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20221025_02_091407", "sequence_id": "20221025_02", "timestamp": "2022-10-25T09:14:07+02:00" }
20221025_02_091407
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20220929_01_094804", "sequence_id": "20220929_01", "timestamp": "2022-09-29T09:48:04+02:00" }
20220929_01_094804
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20230117_01_100255", "sequence_id": "20230117_01", "timestamp": "2023-01-17T10:02:55+01:00" }
20230117_01_100255
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20230117_01_100146", "sequence_id": "20230117_01", "timestamp": "2023-01-17T10:01:46+01:00" }
20230117_01_100146
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20230117_07_111631", "sequence_id": "20230117_07", "timestamp": "2023-01-17T11:16:31+01:00" }
20230117_07_111631
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20221028_04_093715", "sequence_id": "20221028_04", "timestamp": "2022-10-28T09:37:15+02:00" }
20221028_04_093715
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20220928_03_113839", "sequence_id": "20220928_03", "timestamp": "2022-09-28T11:38:39+02:00" }
20220928_03_113839
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20220929_18_084110", "sequence_id": "20220929_18", "timestamp": "2022-09-29T08:41:10+02:00" }
20220929_18_084110
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20221014_09_102124", "sequence_id": "20221014_09", "timestamp": "2022-10-14T10:21:24+02:00" }
20221014_09_102124
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20221025_07_095129", "sequence_id": "20221025_07", "timestamp": "2022-10-25T09:51:29+02:00" }
20221025_07_095129
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20221025_06_094439", "sequence_id": "20221025_06", "timestamp": "2022-10-25T09:44:39+02:00" }
20221025_06_094439
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20221028_03_093011", "sequence_id": "20221028_03", "timestamp": "2022-10-28T09:30:11+02:00" }
20221028_03_093011
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20220929_02_095628", "sequence_id": "20220929_02", "timestamp": "2022-09-29T09:56:28+02:00" }
20220929_02_095628
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20221028_02_092204", "sequence_id": "20221028_02", "timestamp": "2022-10-28T09:22:04+02:00" }
20221028_02_092204
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20221025_04_092918", "sequence_id": "20221025_04", "timestamp": "2022-10-25T09:29:18+02:00" }
20221025_04_092918
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20230609_03_133834", "sequence_id": "20230609_03", "timestamp": "2023-06-09T13:38:34+02:00" }
20230609_03_133834
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20221011_03_085804", "sequence_id": "20221011_03", "timestamp": "2022-10-11T08:58:04+02:00" }
20221011_03_085804
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20221028_02_092138", "sequence_id": "20221028_02", "timestamp": "2022-10-28T09:21:38+02:00" }
20221028_02_092138
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20230119_06_103446", "sequence_id": "20230119_06", "timestamp": "2023-01-19T10:34:46+01:00" }
20230119_06_103446
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20230117_07_111531", "sequence_id": "20230117_07", "timestamp": "2023-01-17T11:15:31+01:00" }
20230117_07_111531
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20230119_03_100819", "sequence_id": "20230119_03", "timestamp": "2023-01-19T10:08:19+01:00" }
20230119_03_100819
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20221025_05_093737", "sequence_id": "20221025_05", "timestamp": "2022-10-25T09:37:37+02:00" }
20221025_05_093737
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20230117_08_112632", "sequence_id": "20230117_08", "timestamp": "2023-01-17T11:26:32+01:00" }
20230117_08_112632
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20221011_07_091544", "sequence_id": "20221011_07", "timestamp": "2022-10-11T09:15:44+02:00" }
20221011_07_091544
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20220928_03_113915", "sequence_id": "20220928_03", "timestamp": "2022-09-28T11:39:15+02:00" }
20220928_03_113915
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20230119_12_115512", "sequence_id": "20230119_12", "timestamp": "2023-01-19T11:55:12+01:00" }
20230119_12_115512
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20221025_06_094436", "sequence_id": "20221025_06", "timestamp": "2022-10-25T09:44:36+02:00" }
20221025_06_094436
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20221025_02_091302", "sequence_id": "20221025_02", "timestamp": "2022-10-25T09:13:02+02:00" }
20221025_02_091302
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20221011_08_091743", "sequence_id": "20221011_08", "timestamp": "2022-10-11T09:17:43+02:00" }
20221011_08_091743
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20230117_08_112649", "sequence_id": "20230117_08", "timestamp": "2023-01-17T11:26:49+01:00" }
20230117_08_112649
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20230119_03_100812", "sequence_id": "20230119_03", "timestamp": "2023-01-19T10:08:12+01:00" }
20230119_03_100812
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20230119_06_103343", "sequence_id": "20230119_06", "timestamp": "2023-01-19T10:33:43+01:00" }
20230119_06_103343
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000000.tar
{ "sample_id": "20230117_10_114440", "sequence_id": "20230117_10", "timestamp": "2023-01-17T11:44:40+01:00" }
20230117_10_114440
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20221011_06_091002", "sequence_id": "20221011_06", "timestamp": "2022-10-11T09:10:02+02:00" }
20221011_06_091002
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20230609_01_132953", "sequence_id": "20230609_01", "timestamp": "2023-06-09T13:29:53+02:00" }
20230609_01_132953
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20230117_06_103851", "sequence_id": "20230117_06", "timestamp": "2023-01-17T10:38:51+01:00" }
20230117_06_103851
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20221011_17_110836", "sequence_id": "20221011_17", "timestamp": "2022-10-11T11:08:36+02:00" }
20221011_17_110836
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20221028_04_093725", "sequence_id": "20221028_04", "timestamp": "2022-10-28T09:37:25+02:00" }
20221028_04_093725
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20221014_07_100703", "sequence_id": "20221014_07", "timestamp": "2022-10-14T10:07:03+02:00" }
20221014_07_100703
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20221025_05_093754", "sequence_id": "20221025_05", "timestamp": "2022-10-25T09:37:54+02:00" }
20221025_05_093754
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20220928_02_113145", "sequence_id": "20220928_02", "timestamp": "2022-09-28T11:31:45+02:00" }
20220928_02_113145
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20221014_06_100027", "sequence_id": "20221014_06", "timestamp": "2022-10-14T10:00:27+02:00" }
20221014_06_100027
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20220928_05_115345", "sequence_id": "20220928_05", "timestamp": "2022-09-28T11:53:45+02:00" }
20220928_05_115345
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20230119_02_095934", "sequence_id": "20230119_02", "timestamp": "2023-01-19T09:59:34+01:00" }
20230119_02_095934
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20221028_05_094416", "sequence_id": "20221028_05", "timestamp": "2022-10-28T09:44:16+02:00" }
20221028_05_094416
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20220928_04_114651", "sequence_id": "20220928_04", "timestamp": "2022-09-28T11:46:51+02:00" }
20220928_04_114651
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20221028_02_092145", "sequence_id": "20221028_02", "timestamp": "2022-10-28T09:21:45+02:00" }
20221028_02_092145
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20230119_09_113559", "sequence_id": "20230119_09", "timestamp": "2023-01-19T11:35:59+01:00" }
20230119_09_113559
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20221028_04_093804", "sequence_id": "20221028_04", "timestamp": "2022-10-28T09:38:04+02:00" }
20221028_04_093804
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20230119_01_095204", "sequence_id": "20230119_01", "timestamp": "2023-01-19T09:52:04+01:00" }
20230119_01_095204
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20221025_08_095736", "sequence_id": "20221025_08", "timestamp": "2022-10-25T09:57:36+02:00" }
20221025_08_095736
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20230117_11_115146", "sequence_id": "20230117_11", "timestamp": "2023-01-17T11:51:46+01:00" }
20230117_11_115146
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20220928_04_114647", "sequence_id": "20220928_04", "timestamp": "2022-09-28T11:46:47+02:00" }
20220928_04_114647
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20221014_07_100733", "sequence_id": "20221014_07", "timestamp": "2022-10-14T10:07:33+02:00" }
20221014_07_100733
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20230609_03_133801", "sequence_id": "20230609_03", "timestamp": "2023-06-09T13:38:01+02:00" }
20230609_03_133801
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20221028_04_093748", "sequence_id": "20221028_04", "timestamp": "2022-10-28T09:37:48+02:00" }
20221028_04_093748
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20230117_07_111527", "sequence_id": "20230117_07", "timestamp": "2023-01-17T11:15:27+01:00" }
20230117_07_111527
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20230119_05_102448", "sequence_id": "20230119_05", "timestamp": "2023-01-19T10:24:48+01:00" }
20230119_05_102448
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20230117_07_111604", "sequence_id": "20230117_07", "timestamp": "2023-01-17T11:16:04+01:00" }
20230117_07_111604
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20230117_09_113623", "sequence_id": "20230117_09", "timestamp": "2023-01-17T11:36:23+01:00" }
20230117_09_113623
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20221028_05_094528", "sequence_id": "20221028_05", "timestamp": "2022-10-28T09:45:28+02:00" }
20221028_05_094528
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20220929_01_094825", "sequence_id": "20220929_01", "timestamp": "2022-09-29T09:48:25+02:00" }
20220929_01_094825
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20230117_08_112621", "sequence_id": "20230117_08", "timestamp": "2023-01-17T11:26:21+01:00" }
20230117_08_112621
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20230609_02_133046", "sequence_id": "20230609_02", "timestamp": "2023-06-09T13:30:46+02:00" }
20230609_02_133046
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20230117_07_111638", "sequence_id": "20230117_07", "timestamp": "2023-01-17T11:16:38+01:00" }
20230117_07_111638
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20230119_02_095953", "sequence_id": "20230119_02", "timestamp": "2023-01-19T09:59:53+01:00" }
20230119_02_095953
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000001.tar
{ "sample_id": "20230518_02_113940", "sequence_id": "20230518_02", "timestamp": "2023-05-18T11:39:40+02:00" }
20230518_02_113940
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20230117_12_115749", "sequence_id": "20230117_12", "timestamp": "2023-01-17T11:57:49+01:00" }
20230117_12_115749
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20230119_11_115301", "sequence_id": "20230119_11", "timestamp": "2023-01-19T11:53:01+01:00" }
20230119_11_115301
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20230119_04_101725", "sequence_id": "20230119_04", "timestamp": "2023-01-19T10:17:25+01:00" }
20230119_04_101725
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20221025_02_091308", "sequence_id": "20221025_02", "timestamp": "2022-10-25T09:13:08+02:00" }
20221025_02_091308
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20230117_11_115203", "sequence_id": "20230117_11", "timestamp": "2023-01-17T11:52:03+01:00" }
20230117_11_115203
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20221014_10_102727", "sequence_id": "20221014_10", "timestamp": "2022-10-14T10:27:27+02:00" }
20221014_10_102727
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20230117_01_100136", "sequence_id": "20230117_01", "timestamp": "2023-01-17T10:01:36+01:00" }
20230117_01_100136
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20230119_12_115459", "sequence_id": "20230119_12", "timestamp": "2023-01-19T11:54:59+01:00" }
20230119_12_115459
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20221011_06_091005", "sequence_id": "20221011_06", "timestamp": "2022-10-11T09:10:05+02:00" }
20221011_06_091005
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20221011_03_085714", "sequence_id": "20221011_03", "timestamp": "2022-10-11T08:57:14+02:00" }
20221011_03_085714
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20221028_04_093810", "sequence_id": "20221028_04", "timestamp": "2022-10-28T09:38:10+02:00" }
20221028_04_093810
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20221011_21_113048", "sequence_id": "20221011_21", "timestamp": "2022-10-11T11:30:48+02:00" }
20221011_21_113048
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20221028_02_092125", "sequence_id": "20221028_02", "timestamp": "2022-10-28T09:21:25+02:00" }
20221028_02_092125
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20230117_08_112558", "sequence_id": "20230117_08", "timestamp": "2023-01-17T11:25:58+01:00" }
20230117_08_112558
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20220928_03_113909", "sequence_id": "20220928_03", "timestamp": "2022-09-28T11:39:09+02:00" }
20220928_03_113909
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20220929_02_095550", "sequence_id": "20220929_02", "timestamp": "2022-09-29T09:55:50+02:00" }
20220929_02_095550
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20221011_24_114146", "sequence_id": "20221011_24", "timestamp": "2022-10-11T11:41:46+02:00" }
20221011_24_114146
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20220929_17_083258", "sequence_id": "20220929_17", "timestamp": "2022-09-29T08:32:58+02:00" }
20220929_17_083258
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20230119_11_115241", "sequence_id": "20230119_11", "timestamp": "2023-01-19T11:52:41+01:00" }
20230119_11_115241
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20220928_04_114631", "sequence_id": "20220928_04", "timestamp": "2022-09-28T11:46:31+02:00" }
20220928_04_114631
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20221028_04_093744", "sequence_id": "20221028_04", "timestamp": "2022-10-28T09:37:44+02:00" }
20221028_04_093744
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20221025_01_090517", "sequence_id": "20221025_01", "timestamp": "2022-10-25T09:05:17+02:00" }
20221025_01_090517
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20221025_05_093658", "sequence_id": "20221025_05", "timestamp": "2022-10-25T09:36:58+02:00" }
20221025_05_093658
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20221011_07_091511", "sequence_id": "20221011_07", "timestamp": "2022-10-11T09:15:11+02:00" }
20221011_07_091511
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20220929_04_103656", "sequence_id": "20220929_04", "timestamp": "2022-09-29T10:36:56+02:00" }
20220929_04_103656
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20220928_02_113142", "sequence_id": "20220928_02", "timestamp": "2022-09-28T11:31:42+02:00" }
20220928_02_113142
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20221014_08_101419", "sequence_id": "20221014_08", "timestamp": "2022-10-14T10:14:19+02:00" }
20221014_08_101419
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20221011_04_090150", "sequence_id": "20221011_04", "timestamp": "2022-10-11T09:01:50+02:00" }
20221011_04_090150
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20230117_03_102005", "sequence_id": "20230117_03", "timestamp": "2023-01-17T10:20:05+01:00" }
20230117_03_102005
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20230119_05_102452", "sequence_id": "20230119_05", "timestamp": "2023-01-19T10:24:52+01:00" }
20230119_05_102452
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
{ "sample_id": "20230117_07_111517", "sequence_id": "20230117_07", "timestamp": "2023-01-17T11:15:17+01:00" }
20230117_07_111517
hf://datasets/ferpb/spectralwaste-segmentation@65542cc35c28c2f4157c1a6f5afc95030d2ab502/data/train-000002.tar
End of preview.

SpectralWaste Segmentation

SpectralWaste Segmentation is the RGB-hyperspectral dataset used for the segmentation experiments in:

SpectralWaste Dataset: Multimodal Data for Waste Sorting Automation Sara Casao, Fernando Peña, Alberto Sabater, Rosa Castillón, Darío Suárez, Eduardo Montijano, and Ana C. Murillo IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2024.

It contains synchronized RGB and hyperspectral images, semantic segmentation masks for the labeled subset, and a larger unlabeled subset. The images are spatially aligned and resized to 256×256 for training.

Dataset

The dataset contains:

Subset Samples
Labeled 852
Unlabeled 6801
Total 7653

Each sample contains synchronized:

  • RGB image
  • Hyperspectral image with 224 bands from approximately 900–1700 nm

Labeled samples additionally contain:

  • RGB semantic segmentation mask
  • Segmentation mask transferred to the hyperspectral image

Classes

The segmentation task contains six foreground waste categories plus background. Background pixels are included during training and when computing per-class metrics as class 0, but the background class is excluded when computing the mean IoU (mIoU) reported in the original experiments.

ID Class Color
0 background #000000
1 film #daf706
2 basket #33ddff
3 cardboard #3432dd
4 video_tape #ca98c3
5 filament #008000
6 bag #ffa500

Segmentation masks are stored as PNG images whose pixel values correspond directly to these class IDs.

Data format

The dataset is distributed as sharded WebDataset archives.

A labeled sample contains:

20220929_02_095520.rgb.png
20220929_02_095520.hsi.tiff
20220929_02_095520.label_rgb.png
20220929_02_095520.label_hsi_lt.png
20220929_02_095520.json

An unlabeled sample contains:

20220929_02_095520.rgb.png
20220929_02_095520.hsi.tiff
20220929_02_095520.json

The modalities are stored as:

Modality Shape Type
RGB (256, 256, 3) uint 8
HSI (224, 256, 256) uint16
label_rgb (256, 256) uint8
label_hsi_lt (256, 256) uint 8

Sample metadata

Sample identifiers follow:

YYYYMMDD_SS_HHMMSS

For example:

20220929_02_095520

Each sample includes:

{
  "sample_id": "20220929_02_095520",
  "sequence_id": "20220929_02",
  "timestamp": "2022-09-29T09:55:20+02:00"
}

Samples sharing the same sequence_id belong to the same acquisition session.

Loading

Install:

pip install webdataset numpy pillow tifffile

Load a local set of shards:

import webdataset as wds

dataset = wds.WebDataset(
    "data/train-{000000..000015}.tar"
)

sample = next(iter(dataset))
print(sample.keys())

Decode a labeled sample:

import io
import json

import numpy as np
import tifffile
from PIL import Image


def decode_sample(sample):
    return {
        "rgb": np.asarray(
            Image.open(io.BytesIO(sample["rgb.png"])).convert("RGB")
        ),
        "hsi": tifffile.imread(
            io.BytesIO(sample["hsi.tiff"])
        ),
        "label_rgb": np.asarray(
            Image.open(io.BytesIO(sample["label_rgb.png"]))
        ),
        "label_hsi_lt": np.asarray(
            Image.open(io.BytesIO(sample["label_hsi_lt.png"]))
        ),
        "metadata": json.loads(sample["json"]),
    }

For PyTorch:

import torch

sample = decode_sample(sample)

rgb = torch.from_numpy(sample["rgb"].copy()).permute(2, 0, 1) # (3, 256, 256)
hsi = torch.from_numpy(sample["hsi"].copy()) # (224, 256, 256)
label_rgb = torch.from_numpy(sample["label_rgb"].copy()).long() # (256, 256)
label_hsi_lt = torch.from_numpy(sample["label_hsi_lt"].copy()).long() # (256, 256)

Preprocessing

This dataset is generated from the original SpectralWaste acquisitions using the preprocessing pipeline in the dataset repo.

The pipeline:

  • aligns the RGB and HSI modalities
  • resizes both to 256 × 256
  • converts RGB instance annotations to semantic masks
  • transfers RGB annotations to the HSI modality
  • preserves RGB as 8-bit data and HSI as 16-bit data

The HSI masks transferred labels rather than independently annotated hyperspectral ground truth.

Splits

The labeled samples are divided into training, validation, and test sets using the script available in the dataset repo. The remaining samples form the unlabeled split.

Split Samples
train 514
validation 167
test 171
unlabeled 6801
Total 7653

Full-resolution data

This repository is intended for segmentation training and benchmarking.

The original resolution data are available separately and are substantially larger. Users requiring the original spatial resolution or sensor geometry should use the full-resolution release.

License

The dataset is released under the Creative Commons Attribution 4.0 International (CC BY 4.0) license.

Citation

If you use this dataset, please cite:

@inproceedings{casao2024spectralwaste,
  title = {{SpectralWaste} Dataset: Multimodal Data for Waste Sorting Automation},
  author = {Casao, Sara and Pe{\~n}a, Fernando and Sabater, Alberto and Castill{\'o}n, Rosa and Su{\'a}rez, Dar{\'i}o and Montijano, Eduardo and Murillo, Ana C.},
  year = {2024},
  booktitle = {2024 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS)},
  pages = {5852-5858},
  doi = {10.1109/IROS58592.2024.10801797}
}
Downloads last month
96

Paper for ferpb/spectralwaste-segmentation