You need to agree to share your contact information to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this dataset content.

๐Ÿšข High-Resolution Ship Image Dataset (20 Classes)

๐ŸŒŠ A high-quality, multi-category ship image dataset with refined preprocessing and intelligent annotation


๐Ÿ“‹ Project Overview

This dataset is a high-resolution ship image dataset containing 8,359 images across 20 different ship categories. The dataset has undergone a meticulously designed 9-step data preprocessing pipeline, from initial collection to final classification and archiving, with each step carefully crafted to ensure data quality and consistency.

๐Ÿ“Š Attribute ๐Ÿ“ Description
๐Ÿ–ผ๏ธ Total Images 8,359
๐Ÿท๏ธ Number of Categories 20
๐Ÿ“ Image Size 512 ร— 512 px
๐ŸŽจ Image Format PNG (RGB mode)
๐Ÿ“ฆ Annotation Format JSON (Natural language requests + Multilingual descriptions (including standardized descriptions) + Structured slots)

๐Ÿ—‚๏ธ Directory Structure

Dataset_ShipImages_PNG_px512(8359)_20_Type/
โ”œโ”€โ”€ ๐Ÿ“ aircraft_carrier/       # Aircraft Carrier
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ images/             # PNG image files
โ”‚   โ””โ”€โ”€ ๐Ÿ“ json/               # JSON annotation files
โ”œโ”€โ”€ ๐Ÿ“ bulk_carrier/           # Bulk Carrier
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ images/
โ”‚   โ””โ”€โ”€ ๐Ÿ“ json/
โ”œโ”€โ”€ ๐Ÿ“ car_carrier/            # Car Carrier
โ”œโ”€โ”€ ๐Ÿ“ container_ship/         # Container Ship
โ”œโ”€โ”€ ๐Ÿ“ cruise_ship/            # Cruise Ship
โ”œโ”€โ”€ ๐Ÿ“ destroyer/              # Destroyer
โ”œโ”€โ”€ ๐Ÿ“ dredger/                # Dredger
โ”œโ”€โ”€ ๐Ÿ“ fishing_vessel/         # Fishing Vessel
โ”œโ”€โ”€ ๐Ÿ“ frigate/                # Frigate
โ”œโ”€โ”€ ๐Ÿ“ offshore_support_vessel/# Offshore Support Vessel
โ”œโ”€โ”€ ๐Ÿ“ oil_tanker/             # Oil Tanker
โ”œโ”€โ”€ ๐Ÿ“ passenger_ferry/        # Passenger Ferry
โ”œโ”€โ”€ ๐Ÿ“ patrol_boat/            # Patrol Boat
โ”œโ”€โ”€ ๐Ÿ“ pilot_boat/             # Pilot Boat
โ”œโ”€โ”€ ๐Ÿ“ recreational/           # Recreational Yacht
โ”œโ”€โ”€ ๐Ÿ“ research_vessel/        # Research Vessel
โ”œโ”€โ”€ ๐Ÿ“ rescue_vessel/          # Rescue Vessel
โ”œโ”€โ”€ ๐Ÿ“ sailboat/               # Sailboat
โ”œโ”€โ”€ ๐Ÿ“ submarine/              # Submarine
โ”œโ”€โ”€ ๐Ÿ“ tugboat/                # Tugboat
โ””โ”€โ”€ ๐Ÿ“„ README.md

Each category folder contains:

  • ๐Ÿ“ images/ โ€” All PNG image files for that category
  • ๐Ÿ“ json/ โ€” JSON intelligent annotation files corresponding one-to-one with images

๐Ÿท๏ธ Category Distribution

Rank ๐Ÿšข Ship Category ๐Ÿ‡จ๐Ÿ‡ณ Chinese Name ๐Ÿ“Š Count
1 aircraft_carrier ่ˆช็ฉบๆฏ่ˆฐ 531
2 sailboat ๅธ†่ˆน 529
3 container_ship ้›†่ฃ…็ฎฑ่ˆน 516
4 cruise_ship ้‚ฎ่ฝฎ 492
5 passenger_ferry ๅฎข่ฟๆธก่ฝฎ 476
6 recreational ไผ‘้—ฒๆธธ่‰‡ 470
7 bulk_carrier ๆ•ฃ่ดง่ˆน 446
8 car_carrier ๆฑฝ่ฝฆ่ฟ่พ“่ˆน 427
9 rescue_vessel ๆ•‘ๆด่ˆน 415
10 tugboat ๆ‹–่ˆน 413
11 submarine ๆฝœๆฐด่‰‡ 397
12 research_vessel ็ง‘่€ƒ่ˆน 395
13 offshore_support_vessel ๆตทๆด‹ๅทฅ็จ‹ๆ”ฏๆด่ˆน 382
14 patrol_boat ๅทก้€ป่‰‡ 378
15 frigate ๆŠคๅซ่ˆฐ 374
16 destroyer ้ฉฑ้€่ˆฐ 359
17 dredger ็–ๆตš่ˆน 350
18 pilot_boat ๅผ•่ˆช่ˆน 342
19 fishing_vessel ๆธ”่ˆน 334
20 oil_tanker ๆฒน่ฝฎ 333

๐Ÿ“ˆ Classification Success Rate: 100.00% โ€” All 8,359 images successfully classified, 0 failures


๐Ÿ”ง Data Preprocessing Pipeline

The dataset has undergone the following 9-step refined preprocessing pipeline to ensure the final output meets high-quality standards:

Step 1 ๐Ÿ“ File Organization

Script: 00/01_file_organizer_*.py

Recursively scans and consolidates all files scattered across different directories into a single directory for unified management.

Step 2 ๐Ÿ”„ Format Conversion

Script: 02_image_converter.py

Unifies image formats by converting all images to RGB mode, eliminating format differences from various sources.

Step 3 ๐Ÿงน Quality Cleaning

Script: 03_image_cleaner.py

Removes low-resolution images and filters out samples that do not meet quality requirements, ensuring a visual quality baseline for the dataset.

Step 4 ๐Ÿ” Sharpness Evaluation

Script: 05_image_sharpness_evaluator.py

Evaluates image sharpness, classifies images as sharp/blurry, and further screens high-quality samples.

Step 5 ๐Ÿค– Intelligent Deduplication

Script: 06_image_deduplicator_optimized.py

Employs DINOv2 + FAISS for semantic-level deduplication, going beyond traditional perceptual hashing methods to identify and remove duplicate or highly similar images at the semantic level.

Step 6 ๐Ÿ“ Resolution Adjustment

Script: 04_image_resizer.py

Unifies image dimensions to 512 ร— 512 px, ensuring consistent resolution across the dataset for subsequent model training.

Step 7 โœจ Super-Resolution Enhancement

Script: RealESRGAN/image_upscaler.py

Uses the RealESRGAN super-resolution model to enhance image quality, improve detail representation, and make images sharper and clearer.

Step 8 ๐Ÿ“ฆ Data Annotation

System: WenYao-Maritime_LLM_Annotation

An intelligent annotation system for high-resolution ship images based on Maritime Expert Knowledge Base and Large Language Model (LLM):

  • ๐Ÿง  Utilizes RAG (Retrieval-Augmented Generation) technology combined with maritime domain expertise for precise annotation
  • โšก Multi-threaded concurrent processing for efficient annotation
  • ๐Ÿ“ Each image is annotated with: Chinese raw description, English standardized description, and structured feature slots

Step 9 ๐Ÿ“ฆ Dataset Splitting

Script: 07_Ship_image_classifier.py

Classifies and archives images by ship category, then uses stratified random sampling to split the complete dataset into a training set (80%), validation set (10%), and test set (10%). Stratification preserves the relative distribution of all 20 ship categories across the three subsets. Image files and their corresponding JSON annotations remain paired during splitting.

The resulting subsets are organized as follows:

dataset/
โ”œโ”€โ”€ train/      # 80% of the data
โ”œโ”€โ”€ val/        # 10% of the data
โ””โ”€โ”€ test/       # 10% of the data

๐Ÿ“ Annotation Format

Each image corresponds to a JSON annotation file containing the following fields:

{
    "subject": "High-resolution ship image dataset",
    "instance_name": "Ship_Image_xxxxx_XXXXX.PNG",
    "raw_description": {
        "language": "zh",
        "text": "Detailed Chinese description...",
        "natural_language_request": "Short Chinese generation prompt..."
    },
    "normalized_prompt": {
        "language": "en",
        "text": "English detailed description...",
        "natural_language_request": "English short generation prompt..."
    },
    "structured_slots": {
        "ship_type": "dredger",
        "function": "dredging",
        "view_angle": "rear_side_view",
        "scene": "coastal_water",
        "structure": ["bridge", "funnel", "crane", "mast", "superstructure", "pipeline"],
        "key_features": ["blue_hull", "white_superstructure", "discharging_sediment", "orange_cranes", "white_wake"],
        "style": "real_world_photography"
    }
}

Field Descriptions

Field Description
subject Dataset subject description
instance_name Image file name
raw_description Raw Chinese description: includes detailed text and natural language generation prompt
normalized_prompt Standardized English description: includes detailed text and natural language generation prompt
structured_slots.ship_type Ship type
structured_slots.function Ship function
structured_slots.view_angle Camera view angle
structured_slots.scene Scene type
structured_slots.structure List of visible ship structural components
structured_slots.key_features List of key visual features
structured_slots.style Image style

๐Ÿ› ๏ธ Tech Stack

๐Ÿ”ง Technology ๐Ÿ“Œ Purpose
๐Ÿค– DINOv2 Semantic feature extraction for intelligent deduplication
โšก FAISS Efficient vector retrieval to support large-scale deduplication
โœจ RealESRGAN Super-resolution enhancement for improved image quality
๐Ÿง  LLM + RAG Intelligent annotation based on maritime expert knowledge base
๐Ÿ Python Full pipeline script development

๐Ÿ“Š Dataset Statistics Overview

============================================================
๐Ÿ“Š Processing Summary
============================================================

๐Ÿ“ˆ Overall Statistics:
   ๐Ÿ“ Total Files: 8,359
   โœ… Successfully Classified: 8,359
   โŒ Classification Failures: 0
   ๐Ÿ“Š Success Rate: 100.00%

๐Ÿ“‚ File Operation Statistics:
   ๐Ÿ–ผ๏ธ  Images Copied Successfully: 8,359
   ๐Ÿ–ผ๏ธ  Image Copy Failures: 0
   ๐Ÿ“„ JSON Copied Successfully: 8,359
   ๐Ÿ“„ JSON Copy Failures: 0
============================================================

๐Ÿ’ก Use Cases

  • ๐ŸŽฏ Ship Image Classification โ€” 20-class fine-grained ship classification tasks
  • ๐Ÿง  Object Detection โ€” Ship object detection and recognition
  • ๐Ÿ“ Image Captioning โ€” Multilingual image description tasks
  • ๐ŸŽจ Text-to-Image Generation โ€” Prompt-based ship image generation
  • ๐Ÿ” Retrieval-Augmented Search โ€” Ship image semantic retrieval
  • ๐Ÿ“š Maritime Research โ€” Ship visual feature analysis research

๐Ÿ“œ License

This dataset is intended for academic research and educational purposes only. Please comply with applicable laws and regulations and respect intellectual property rights.

๐Ÿ”จ Ethics and Responsible Use

This dataset is intended solely for academic research and educational purposes. Images have been reviewed to remove or avoid inclusion of identifiable human faces and sensitive personal information. Users must not use this dataset for surveillance, tracking, military targeting, or other harmful applications. If you believe any image infringes on copyright, privacy, or other rights, please contact the maintainer for removal.

Downloads last month
13