XavierJiezou/cloudseg-models
Updated
Error code: StreamingRowsError Exception: UnidentifiedImageError Message: cannot identify image file <_io.BytesIO object at 0x7f83a8a93400> Traceback: Traceback (most recent call last): File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise return get_rows( File "/src/libs/libcommon/src/libcommon/utils.py", line 197, in decorator return func(*args, **kwargs) File "/src/services/worker/src/worker/utils.py", line 77, in get_rows rows_plus_one = list(itertools.islice(ds, rows_max_number + 1)) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 2097, in __iter__ example = _apply_feature_types_on_example( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1635, in _apply_feature_types_on_example decoded_example = features.decode_example(encoded_example, token_per_repo_id=token_per_repo_id) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 2044, in decode_example return { File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 2045, in <dictcomp> column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1405, in decode_nested_example return schema.decode_example(obj, token_per_repo_id=token_per_repo_id) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/image.py", line 185, in decode_example image = PIL.Image.open(bytes_) File "/src/services/worker/.venv/lib/python3.9/site-packages/PIL/Image.py", line 3339, in open raise UnidentifiedImageError(msg) PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7f83a8a93400>
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.
This dataset card aims to describe the datasets used in the cloudseg.
pip install huggingface-hub
# Step 1: Download datasets
huggingface-cli download --repo-type dataset XavierJiezou/cloudseg-datasets --local-dir data --include hrc_whu.zip
huggingface-cli download --repo-type dataset XavierJiezou/cloudseg-datasets --local-dir data --include gf12ms_whu.zip
huggingface-cli download --repo-type dataset XavierJiezou/cloudseg-datasets --local-dir data --include gf12ms_whu_gf2.zip
huggingface-cli download --repo-type dataset XavierJiezou/cloudseg-datasets --local-dir data --include cloudsen12_high/*
huggingface-cli download --repo-type dataset XavierJiezou/cloudseg-datasets --local-dir data --include l8_biome.zip
# Step 2: Extract datasets
unzip hrc_whu.zip -d hrc_whu
unzip gf12ms_whu.zip -d gf12ms_whu
cat chunk_* > cloudsen12_high.zip
unzip cloudsen12_high.zip -d cloudsen12_high
unzip l8_biome.zip -d l8_biome
@article{hrc_whu,
title = {Deep learning based cloud detection for medium and high resolution remote sensing images of different sensors},
journal = {ISPRS Journal of Photogrammetry and Remote Sensing},
volume = {150},
pages = {197-212},
year = {2019},
author = {Zhiwei Li and Huanfeng Shen and Qing Cheng and Yuhao Liu and Shucheng You and Zongyi He},
}
@article{gf12ms_whu,
author={Zhu, Shaocong and Li, Zhiwei and Shen, Huanfeng},
journal={IEEE Transactions on Geoscience and Remote Sensing},
title={Transferring Deep Models for Cloud Detection in Multisensor Images via Weakly Supervised Learning},
year={2024},
volume={62},
pages={1-18},
}
@article{cloudsen12_high,
title={CloudSEN12, a global dataset for semantic understanding of cloud and cloud shadow in Sentinel-2},
author={Aybar, Cesar and Ysuhuaylas, Luis and Loja, Jhomira and Gonzales, Karen and Herrera, Fernando and Bautista, Lesly and Yali, Roy and Flores, Angie and Diaz, Lissette and Cuenca, Nicole and others},
journal={Scientific data},
volume={9},
number={1},
pages={782},
year={2022},
}
@article{l8_biome,
title = {Cloud detection algorithm comparison and validation for operational Landsat data products},
journal = {Remote Sensing of Environment},
volume = {194},
pages = {379-390},
year = {2017},
author = {Steve Foga and Pat L. Scaramuzza and Song Guo and Zhe Zhu and Ronald D. Dilley and Tim Beckmann and Gail L. Schmidt and John L. Dwyer and M. {Joseph Hughes} and Brady Laue}
}
For questions, please contact Xavier Jiezou at xuechaozou (at) foxmail (dot) com.