Datasets:
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: ArrowInvalid
Message: JSON parse error: The document is empty.
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 324, in _generate_tables
df = pandas_read_json(f)
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 38, in pandas_read_json
return pd.read_json(path_or_buf, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 815, in read_json
return json_reader.read()
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1014, in read
obj = self._get_object_parser(self.data)
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1040, in _get_object_parser
obj = FrameParser(json, **kwargs).parse()
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1176, in parse
self._parse()
~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1391, in _parse
self.obj = DataFrame(
~~~~~~~~~^
ujson_loads(json, precise_float=self.precise_float), dtype=None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/pandas/core/frame.py", line 782, in __init__
mgr = dict_to_mgr(data, index, columns, dtype=dtype, copy=copy, typ=manager)
File "/usr/local/lib/python3.14/site-packages/pandas/core/internals/construction.py", line 503, in dict_to_mgr
return arrays_to_mgr(arrays, columns, index, dtype=dtype, typ=typ, consolidate=copy)
File "/usr/local/lib/python3.14/site-packages/pandas/core/internals/construction.py", line 114, in arrays_to_mgr
index = _extract_index(arrays)
File "/usr/local/lib/python3.14/site-packages/pandas/core/internals/construction.py", line 677, in _extract_index
raise ValueError("All arrays must be of the same length")
ValueError: All arrays must be of the same length
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1827, in _prepare_split_single
for key, table 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/json/json.py", line 327, in _generate_tables
raise e
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 290, in _generate_tables
pa_table = paj.read_json(
io.BytesIO(batch), read_options=paj.ReadOptions(block_size=block_size)
)
File "pyarrow/_json.pyx", line 342, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
return check_status(status)
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
raise convert_status(status)
pyarrow.lib.ArrowInvalid: JSON parse error: The document is empty.
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 1694, 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 1880, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
info dict | licenses list | images list | annotations list | categories list |
|---|---|---|---|---|
{"description":"FloatWaste: a multi-region benchmark for floating debris detection β 7,906 images (...TRUNCATED) | [{"id":1,"name":"Creative Commons Attribution 4.0 International (CC BY 4.0)","url":"https://creative(...TRUNCATED) | [{"id":0,"width":6826,"height":3840,"file_name":"images/Hobart/Hobart.S1LSB.vlcsnap-2021-12-15-15h46(...TRUNCATED) | [{"id":0,"image_id":0,"category_id":1,"segmentation":[],"area":46765.0,"bbox":[3981.0,3474.0,235.0,1(...TRUNCATED) | [{"id":1,"name":"Packaging","supercategory":""},{"id":2,"name":"Other_packaging","supercategory":""}(...TRUNCATED) |
FloatWaste
A multi-region benchmark for detecting floating waste in rivers. 7,906 annotated images and 27,583 bounding-box annotations across 25 litter categories, from three regions in two countries. COCO detection format.
| images | 7,906 |
| annotations | 27,583 |
| categories | 25 |
| regions | 3 |
| size | 38.1 GB |
| format | COCO detection (bbox, no masks) |
Licence and citation
This dataset is released under the Creative Commons Attribution 4.0 International
Licence (CC BY 4.0). The complete legal
text is in LICENSE at the root of this repository.
You are free to share (copy and redistribute in any medium or format) and adapt (remix, transform, and build upon the material) for any purpose, including commercially, provided you give appropriate credit, link to the licence, and indicate if changes were made.
Attribution is given by citing the dataset. Under CC BY 4.0 the credit requirement is satisfied by the citation below β include it in any paper, report, model card, or derived dataset that uses this material. No separate permission is needed.
@misc{wu_floatwaste,
title = {FloatWaste: a multi-region riverine floating-waste detection benchmark},
author = {Wu, Yujiao and PLACEHOLDER-FULL-AUTHOR-LIST},
howpublished = {PLACEHOLDER-VENUE},
year = {PLACEHOLDER-YEAR},
note = {Licensed under CC BY 4.0},
url = {https://huggingface.co/datasets/OliviaWuYJ/SC-floatwaste}
}
β οΈ The author, howpublished and year fields above are placeholders pending
publication and must be replaced with the final reference before the citation is used.
The title, licence and URL are final.
This dataset is also available on Zenodo (DOI: 10.5281/zenodo.21934286), which is the citable version of record.
Regions
| region | where | images | annotations | per image | size |
|---|---|---|---|---|---|
Hobart |
Hobart, Tasmania, Australia | 5,413 | 16,315 | 3.01 | 31.7 GB |
NSW |
Sydney metropolitan councils, NSW, Australia | 1,631 | 1,992 | 1.22 | 4.9 GB |
Indonesia |
Citarum basin, West Java, Indonesia | 862 | 9,276 | 10.76 | 1.5 GB |
| total | 7,906 | 27,583 | 3.49 | 38.1 GB |
Annotation density differs by almost an order of magnitude across regions: pooled annotation-level metrics are dominated by Indonesia, pooled image-level metrics by Hobart. Indonesia is also the smallest partition at 10.9% of images against Hobart's 68.5%. Report per-region results alongside pooled ones.
Sites
site is published for NSW (council) and Indonesia (location), and is null for Hobart. The Hobart source folders are processing batches with no geographic meaning, so publishing them as sites would invite a spatial reading they cannot support β Hobart imagery was collected uniformly across the Hobart region. source_path retains full provenance for every image regardless.
| region | site | images |
|---|---|---|
Indonesia |
sapan |
283 |
Indonesia |
solokanjeruk |
579 |
NSW |
blacktown |
111 |
NSW |
canterburybankstown |
852 |
NSW |
northernbeaches |
149 |
NSW |
parramatta |
413 |
NSW |
sopa |
106 |
Hobart |
null | 5,413 |
Splits
| split | images | annotations | annotation-free images |
|---|---|---|---|
| train | 7,110 | 24,950 | 49 |
| val | 796 | 2,633 | 5 |
| total | 7,906 | 27,583 | 54 |
Train and val are disjoint and all 25 classes appear in both. The 54 annotation-free images are intentional negatives and are full members of the dataset β see Keep the negatives below.
What is not in the dataset
The Indonesian source folder holds 1,500 images, of which 862 are annotated and released; the other 638 were never annotated and are not part of this dataset β not in any count, split or total on this page. They are raw surplus frames, not negatives. The distinction matters: the 54 negatives are images that were examined and found to contain no litter; the 638 are images nobody has examined. Only the first kind is evidence of absence.
Categories
25 litter classes, ids contiguous 1..25 and identical across both splits.
| id | name | anns | id | name | anns |
|---|---|---|---|---|---|
| 1 | Packaging |
6,723 | 14 | H_plate/bowl |
232 |
| 2 | Other_packaging |
4,960 | 15 | H_utensil |
197 |
| 3 | S_bubblewrap |
458 | 16 | DH_lid |
779 |
| 4 | S_label |
288 | 17 | D_polystyrene |
3,652 |
| 5 | S_squeeze |
475 | 18 | M_beveragecan |
651 |
| 6 | S_straw |
174 | 19 | M_foodcan/tin |
388 |
| 7 | PS_string |
501 | 20 | M_aerosol |
171 |
| 8 | P_cardboard |
1,160 | 21 | R_ball/balloon |
394 |
| 9 | P_foodcontainer |
730 | 22 | G_beveragebottle |
179 |
| 10 | PH_cup |
1,087 | 23 | F_facemask |
51 |
| 11 | H_packaging |
771 | 24 | T_wood/timber |
557 |
| 12 | H_beveragebottle |
1,141 | 25 | Other |
1,594 |
| 13 | H_otherbottle |
270 |
The distribution is long-tailed. Packaging (6,723) and Other_packaging (4,960) together account for 42% of all annotations, while F_facemask (51), M_aerosol (171), S_straw (174) fall below 200. This is a property of the litter stream, not a defect, but it should frame any per-class AP discussion.
Directory structure
Images are laid out by region, not by split. The train/val partition lives only in the two annotation JSONs, so re-splitting the dataset never requires moving a file.
floatwaste/
βββ README.md
βββ LICENSE # CC BY 4.0, full legal text
βββ annotations/
β βββ instances_train.json
β βββ instances_val.json
βββ images/
βββ Hobart/ # flat β no site subfolders
βββ NSW/
βββ Indonesia/
file_name in each JSON is dataset-root-relative, e.g.
images/NSW/coxscreek-TIMEL0062_200-717.jpg, so a loader points img_prefix at the
dataset root and needs no split-aware path logic. Basenames are unique across the whole
dataset.
Metadata schema
Standard COCO, plus three fields on every image record:
| field | type | meaning |
|---|---|---|
region |
string | Hobart, NSW or Indonesia |
site |
string or null |
council (NSW) or location (Indonesia); null for Hobart |
source_path |
string | provenance: the image's path in the project's source store |
Annotation records are unmodified COCO: bbox is [x, y, width, height] in absolute
pixels, area is in square pixels, iscrowd is present, and there are no segmentation
masks β this is a detection benchmark.
Loading, and how to filter by region / site
import os
from pycocotools.coco import COCO
ROOT = "." # local snapshot of this dataset
coco = COCO(os.path.join(ROOT, "annotations/instances_train.json"))
# every image, with its region and site
for img_id in coco.getImgIds()[:5]:
info = coco.loadImgs(img_id)[0]
path = os.path.join(ROOT, info["file_name"]) # -> images/Hobart/....jpg
anns = coco.loadAnns(coco.getAnnIds(imgIds=img_id))
print(path, info["region"], info["site"], len(anns))
# filter by region β no path parsing needed
indonesia_ids = [i for i in coco.getImgIds()
if coco.loadImgs(i)[0]["region"] == "Indonesia"]
# filter by site (NSW councils / Indonesian locations; Hobart has no site)
parramatta_ids = [i for i in coco.getImgIds()
if coco.loadImgs(i)[0]["site"] == "parramatta"]
# annotations for one region, e.g. to score per-region
indonesia_anns = coco.loadAnns(coco.getAnnIds(imgIds=indonesia_ids))
Fetch one region instead of the whole dataset:
from huggingface_hub import snapshot_download
snapshot_download("<org>/<dataset>", repo_type="dataset",
allow_patterns=["annotations/*", "images/Indonesia/*"])
Keep the negatives
Some images carry no annotations on purpose β clean water and shoreline retained so a detector learns to produce no detections there. Their emptiness is a label, not a gap, and they are counted in every total on this page. Detection pipelines that drop annotation-free images by default will silently discard them:
# do NOT do this on FloatWaste β it deletes the negative signal
img_ids = [i for i in coco.getImgIds() if coco.getAnnIds(imgIds=i)]
Collection folder naming convention
Collection folders in this project are named:
City_Location_Year_Month_Date e.g. Hobart_Rivulet1_2024_October_14
City_Location_BridgeName_Year_Month_Date e.g. Bandung_Citarik_Haurpugur_2025_January_20
- Underscores are the only delimiter β no spaces, no hyphens, no commas anywhere in the name.
BridgeNameis used only where a specific bridge is known; otherwise the shorter form applies.Dateis the capture date of the first image in the folder, not the date the folder was created, copied, or processed.Monthis the full month name (October,January).
The convention governs NSW, Indonesia, and all future collections. The Hobart material predates it and does not follow it; nothing is parsed from Hobart filenames.
Known limitations
- No capture-date field yet β but many frames are dated in the pixels. No
date_capturedvalue is published in this revision, because filenames cannot supply one reliably: NSW filenames encode only camera/sequence/frame, and Hobart files often carry two dates (deployment and frame extraction) that can differ by weeks. The camera-stamped capture date and time is however burned into the imagery itself, in a status strip along the frame edge, for the trail-camera material: all NSW frames (e.g.10/21/2023 09:03:30AM), the Indonesian frames (e.g.10/22/2024 07:03:27AM), and the Hobarthobart_scannedsubset. The video-derived Hobart frames and thetrashnet_reviewedSBimages carry no strip. Where both exist they can disagree β one Hobart file named..._2021_09_21_...is stamped2021/09/22β and the burned-in stamp is the capture time. A parsed date field is planned for a future revision. Until then, do not infer capture dates from filenames. - Image ids are per-split and 0-based in both, so they collide across train and val. Fine for standard COCO loading; any merge must re-key.
- Severe class imbalance and uneven regional composition β see the tables above. Report per-region and per-class results alongside pooled ones.
- A folder name in the provenance is misleading. Some
source_pathvalues containtrashnet_reviewedSB. This is self-collected Hobart field data and has nothing to do with the public TrashNet dataset (Thung & Yang) β the name collision is coincidental and carries no provenance or licensing implication.
Provenance and verification
The release was audited and repaired before publication: 977 dead image links repaired, 17
swapped width/height records corrected, and region / site / source_path derived from
store paths rather than parsed from filenames. A 30-check verification suite is re-run on
every change and must be fully green before release; the annotation and category blocks are
byte-identical to the project originals, and 0 bounding boxes are out of bounds or
degenerate.
The full audit report and the long-form datasheet are maintained with the project source, not in this repository.
Changelog
v1.0.1 β corrected 1 annotation label found in pre-release stratified review.
One annotation in images/Indonesia/bandung_citarik6_2024_october_12_2_frame_0035.jpg
(train, annotation id 24815) was relabelled from R_ball/balloon to Other: the object
is an irregular crumpled item, not a ball or balloon. Only category_id changed β the box
geometry, area, iscrowd and all ids are untouched, so the annotation total is unchanged
at 27,583. Affected class counts: R_ball/balloon 395 β 394, Other 1,593 β 1,594. The
annotator confirmed the case is a singleton; adjacent frames were checked and show no
repeat. Its attributes.Material was also moved from Rubber to Unknown, since
that material had been recorded on the assumption the object was a rubber ball. Label
errata are recorded as data in the project source and re-asserted by the verification
suite, which fails on any undocumented change to an annotation.
This revision also populates the COCO info and licenses blocks in both annotation
files, and repoints every image record's license field to the single CC BY 4.0 entry
(id: 1).
v1.0 β initial release: 7,906 images, 27,583 annotations, 25 categories, 3 regions.
- Downloads last month
- 8