Marcel031/dior
收藏资源简介:
--- dataset_info: features: - name: image_id dtype: int64 - name: image dtype: image - name: width dtype: int64 - name: height dtype: int64 - name: objects sequence: - name: bbox_id dtype: int64 - name: category dtype: class_label: names: '0': Airplane '1': Airport '2': Baseball field '3': Basketball court '4': Bridge '5': Chimney '6': Dam '7': Expressway service area '8': Expressway toll station '9': Golf course '10': Ground track field '11': Harbor '12': Overpass '13': Ship '14': Stadium '15': Storage tank '16': Tennis court '17': Train station '18': Vehicle '19': Wind mill - name: bbox sequence: int64 length: 4 - name: area dtype: int64 splits: - name: train num_bytes: 5902685454 num_examples: 18000 - name: test num_bytes: 1150035824 num_examples: 3463 - name: validation num_bytes: 645393741 num_examples: 2000 download_size: 7626168863 dataset_size: 7698115019 configs: - config_name: default data_files: - split: train path: data/train-* - split: test path: data/test-* - split: validation path: data/validation-* task_categories: - object-detection language: - en pretty_name: DIOR --- # DIOR Hugging Face-Ready Vision Dataset This dataset is a restructured version of the DIOR (Object Detection in Optical Remote Sensing Images), specifically designed to simplify object detection workflows. By converting them to the COCO format, this project provides an easier way to use DIOR with popular computer vision frameworks. Additionally, the dataset is formatted for seamless integration with Hugging Face datasets, unlocking new possibilities for training and experimentation. ## 📂 Dataset Structure ### COCO Format The dataset follows the COCO dataset structure, making it straightforward to work with: ```plaintext dior/ ├── annotations/ │ ├── instances_train.json │ ├── instances_val.json │ └── instances_test.json ├── train/ ├── val/ ├── test/ ``` ### Hugging Face Format The dataset is compatible with the datasets library. You can load it directly using: ```python from datasets import load_dataset dataset = load_dataset("HichTala/dior") ``` ## 🖼️ Sample Visualizations Above: An example of resized images with bounding boxes in COCO format. ## 🚀 Getting Started ### Install Required Libraries - Install datasets for Hugging Face compatibility: ```bash pip install datasets ``` - Use any object detection framework supporting COCO format for training. ### Load the Dataset #### Hugging Face: ```python from datasets import load_dataset dataset = load_dataset("HichTala/dior") train_data = dataset["train"] ``` #### Custom Script for COCO-Compatible Frameworks: ```python import json from pycocotools.coco import COCO coco = COCO("annotations/train.json") ``` see demo notebook [here](https://github.com/cocodataset/cocoapi/blob/master/PythonAPI/pycocoDemo.ipynb) for more details. ## 📚 Used in Research This processed version of DIOR has been used in the paper:\ 📄 [LoRA for Cross-Domain Few-Shot Object Detection](https://huggingface.co/papers/2504.06330)\ The dataset served as a target domain for evaluating the generalization capabilities of diffusion-based object detectors in low-data regimes. ## 📝 How to Cite If you use this dataset, please consider citing the original DIOR dataset: ```plaintext @article{Li_2020, title={Object detection in optical remote sensing images: A survey and a new benchmark}, volume={159}, ISSN={0924-2716}, url={http://dx.doi.org/10.1016/j.isprsjprs.2019.11.023}, DOI={10.1016/j.isprsjprs.2019.11.023}, journal={ISPRS Journal of Photogrammetry and Remote Sensing}, publisher={Elsevier BV}, author={Li, Ke and Wan, Gang and Cheng, Gong and Meng, Liqiu and Han, Junwei}, year={2020}, month=jan, pages={296–307}} ``` Additionally, you can mention this repository for the resized COCO and Hugging Face formats. Enjoy using DIOR in coco format for your object detection experiments! 🚀
数据集信息: 特征: - 名称:图像ID(image_id),数据类型:int64 - 名称:图像(image),数据类型:image - 名称:图像宽度(width),数据类型:int64 - 名称:图像高度(height),数据类型:int64 - 名称:目标(objects),序列类型: - 名称:边界框ID(bbox_id),数据类型:int64 - 名称:类别(category),数据类型: 类标签(class_label): 类别名称: '0': 飞机(Airplane) '1': 机场(Airport) '2': 棒球场(Baseball field) '3': 篮球场(Basketball court) '4': 桥梁(Bridge) '5': 烟囱(Chimney) '6': 水坝(Dam) '7': 高速公路服务区(Expressway service area) '8': 高速公路收费站(Expressway toll station) '9': 高尔夫球场(Golf course) '10': 田径场(Ground track field) '11': 港口(Harbor) '12': 立交桥(Overpass) '13': 船舶(Ship) '14': 体育场(Stadium) '15': 储油罐(Storage tank) '16': 网球场(Tennis court) '17': 火车站(Train station) '18': 车辆(Vehicle) '19': 风力发电机(Wind mill) - 名称:边界框(bbox),序列类型:int64,长度为4 - 名称:目标面积(area),数据类型:int64 数据集划分: - 名称:训练集(train),占用字节数:5902685454,样本数:18000 - 名称:测试集(test),占用字节数:1150035824,样本数:3463 - 名称:验证集(validation),占用字节数:645393741,样本数:2000 下载大小:7626168863 数据集总大小:7698115019 配置项: - 配置名称:default 数据文件: - 划分集:train,路径:data/train-* - 划分集:test,路径:data/test-* - 划分集:validation,路径:data/validation-* 任务类别:目标检测(object-detection) 语言:英语(en) 数据集别名:DIOR --- # DIOR 适配Hugging Face的视觉数据集 本数据集是DIOR(光学遥感图像目标检测,Object Detection in Optical Remote Sensing Images)的重构版本,专为简化目标检测工作流而设计。本项目将其转换为COCO(Common Objects in Context)格式,以便用户更便捷地将DIOR与主流计算机视觉框架结合使用。此外,本数据集针对Hugging Face数据集库进行了格式优化,可为训练与实验提供更多可能性。 ## 📂 数据集结构 ### COCO格式 本数据集遵循COCO格式规范,便于用户快速上手使用,目录结构如下: plaintext dior/ ├── annotations/ │ ├── instances_train.json │ ├── instances_val.json │ └── instances_test.json ├── train/ ├── val/ ├── test/ ### Hugging Face格式 本数据集兼容Hugging Face数据集库,可通过以下代码直接加载: python from datasets import load_dataset dataset = load_dataset("HichTala/dior") ## 🖼️ 样本可视化 上图为COCO格式下带边界框的缩放后图像示例。 ## 🚀 快速上手 ### 安装依赖库 - 安装适配Hugging Face的datasets库: bash pip install datasets - 使用任意支持COCO格式的目标检测框架进行模型训练。 ### 加载数据集 #### Hugging Face方式: python from datasets import load_dataset dataset = load_dataset("HichTala/dior") train_data = dataset["train"] #### 适配COCO框架的自定义脚本: python import json from pycocotools.coco import COCO coco = COCO("annotations/train.json") 更多细节可参考示例笔记本:[此处](https://github.com/cocodataset/cocoapi/blob/master/PythonAPI/pycocoDemo.ipynb)。 ## 📚 研究应用 此重构版DIOR数据集已被用于以下论文: 📄 [面向跨域少样本目标检测的LoRA方法](https://huggingface.co/papers/2504.06330)(LoRA for Cross-Domain Few-Shot Object Detection) 该数据集被用作评估低数据量场景下基于扩散模型的目标检测器泛化能力的目标域。 ## 📝 引用方式 若您使用本数据集,请优先引用原始DIOR数据集: plaintext @article{Li_2020, title={Object detection in optical remote sensing images: A survey and a new benchmark}, volume={159}, ISSN={0924-2716}, url={http://dx.doi.org/10.1016/j.isprsjprs.2019.11.023}, DOI={10.1016/j.isprsjprs.2019.11.023}, journal={ISPRS Journal of Photogrammetry and Remote Sensing}, publisher={Elsevier BV}, author={Li, Ke and Wan, Gang and Cheng, Gong and Meng, Liqiu and Han, Junwei}, year={2020}, month=jan, pages={296–307}} 此处论文标题可翻译为《光学遥感图像目标检测:综述与新基准》,同时保留英文原名以供参考。 此外,您可提及本仓库以说明该版本为转换后的COCO格式与Hugging Face格式数据集。 祝您在目标检测实验中顺利使用COCO格式的DIOR数据集!🚀




