๐ข 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