Tank Nationality Identification — YOLO26s
Detects main battle tanks and classifies their nationality into 4 classes. The model was re-trained with Ultralytics YOLO26s on the dataset of
Lim, S. & Kang, D. (2021). Identifications and Evaluation of Tank Nationality using YOLO Algorithm. KIISE Transactions on Computing Practices, 27(12), 555–562. doi:10.5626/KTCP.2021.27.12.555
which used YOLOv4 (Darknet). This release re-evaluates the same task with a modern detector and a stricter, leakage-free test protocol.

| id | class |
|---|---|
| 0 | usa |
| 1 | japan |
| 2 | north_korea |
| 3 | south_korea |
Files
| File | Description |
|---|---|
tank_yolo26s.pt | PyTorch weights for Ultralytics (best epoch, 9.47 M parameters, 20.8 GFLOPs) |
tank_yolo26s.onnx | Same model exported end-to-end (no NMS needed). Input images [1, 3, 640, 640]; output output0 [1, 300, 6] = x1, y1, x2, y2, score, class_id |
Data
- 5,994 web-collected images: about 500 original photos per country, each with a dust-noise and a fog-noise version (1,500 per class; 1,494 for south_korea)
- Group-aware split: an original photo and its two noise versions are always in the same split, so near-duplicates never appear in both training and test data
- Train / val / test = 4,197 / 900 / 897 images (70 / 15 / 15 %, stratified by class)
- The images are not distributed with this model; copyright belongs to the original authors.

Results
Held-out test set (897 images, imgsz 640)
| Metric | YOLO26s (this model, grouped test) | YOLOv4 (paper, random val) |
|---|---|---|
| mAP50 | 0.9923 | 0.9918 |
| mAP50-95 | 0.8992 | – |
| Precision | 0.9988 | 0.96 |
| Recall | 0.9841 | 0.98 |
| Average IoU (conf 0.25) | 0.934 | 0.839 |
| Inference | 4.7 ms/img (Quadro RTX 4000, batch 16) | – |
| Class | AP50 (this model) | AP50 (YOLOv4 paper) |
|---|---|---|
| usa | 0.995 | 0.9972 |
| japan | 0.995 | 0.9975 |
| north_korea | 0.995 | 0.9957 |
| south_korea | 0.984 | 0.9771 |
The paper's numbers come from a random validation split (noise versions of the same photo may appear in training) and Darknet's AP computation, so the comparison is indicative rather than exact. 0.995 is the upper bound of Ultralytics' interpolated AP. south_korea is the hardest class for both models.
Identification-friend-or-foe view (test set)
Friend = usa, south_korea; foe = north_korea.
| Metric (conf 0.25) | Value |
|---|---|
| Tank detected (any class) | 0.991 |
| Nationality accuracy of detected tanks | 0.995 |
| Precision / Recall (box + nationality) | 0.988 / 0.986 |
| Foe → friend (north_korea predicted as south_korea) | 1 / 225 (0.44 %) |
| Friend → foe (usa predicted as north_korea) | 2 / 459 (0.44 %) |
| False positives per image | 0.0067 |
Recommended operating threshold: conf = 0.7. On this test set all friend/foe confusions disappear at conf ≥ 0.7, while recall drops only from ~0.986 to ~0.981 and precision rises from ~0.988 to ~0.997. Above 0.75 recall falls quickly. This is based on only 3 error cases; validate on your own data.
By noise condition (test set)
| Condition | Images | mAP50 | mAP50-95 | Recall (conf 0.25) | Avg IoU |
|---|---|---|---|---|---|
| original | 299 | 0.9945 | 0.9070 | 0.993 | 0.933 |
| dust | 299 | 0.9920 | 0.8977 | 0.980 | 0.933 |
| fog | 299 | 0.9899 | 0.8971 | 0.984 | 0.935 |
Performance drops by less than 1 percentage point under the dust and fog conditions used in training.
Deployment benchmark (300 test images, batch 1)
| Format | Device | mAP50 | mAP50-95 | ms/img | FPS | Size |
|---|---|---|---|---|---|---|
| PyTorch FP32 | Quadro RTX 4000 | 0.995 | 0.906 | 22.6 | 44 | 20 MB |
| TensorRT FP16 | Quadro RTX 4000 | 0.994 | 0.894 | 4.7 | 212 | 100 MB |
| PyTorch FP32 | Xeon Silver 4214 (WSL2) | 0.995 | 0.906 | 129.0 | 8 | 20 MB |
| ONNX FP32 | Xeon Silver 4214 (WSL2) | 0.994 | 0.893 | 76.7 | 13 | 38 MB |
| OpenVINO INT8 | Xeon Silver 4214 (WSL2) | 0.992 | 0.865 | 35.5 | 28 | 10 MB |
The ONNX and TensorRT rows were measured with an earlier NMS-based export; the end-to-end ONNX in this repository may score slightly differently. INT8 keeps detection/nationality accuracy (mAP50) but loses some box precision (mAP50-95). TensorRT engines are GPU-specific and are not included.
Usage
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
model = YOLO(hf_hub_download("greatkoko/tank-nationality-identification-YOLO26s", "tank_yolo26s.pt")
results = model.predict("tank.jpg", conf=0.7)
for b in results[0].boxes:
print(model.names[int(b.cls)], float(b.conf), b.xyxy.tolist())
results[0].show()
The ONNX file runs with the same API (YOLO("tank_yolo26s.onnx")) or with any ONNX runtime;
its output is already final (no NMS step).
Training
| Setting | Value |
|---|---|
| Base model | YOLO26s, COCO-pretrained (end-to-end head, no DFL) |
| Framework | Ultralytics 8.4.164, PyTorch 2.14 |
| Epochs | 100 (best: epoch 89, early-stopping patience 30) |
| Image size / batch | 640 / 16, AMP |
| Augmentation | Ultralytics defaults + ±10° rotation (as in the paper); mosaic off for the last 10 epochs |
| Optimizer | auto (peak LR ≈ 0.0012, linear decay) |
| Hardware / time | NVIDIA Quadro RTX 4000 (8 GB), 1.8 h |
| Seed | 42 (deterministic) |
Limitations
- Close-up imagery only. 96 % of test boxes cover at least 30 % of the image, none cover less than 2 %, and recall on mid-range boxes (2–10 % of the image, n = 9) is only 0.33. Performance at realistic engagement ranges is not validated.
- Trained on web photos of a limited set of main battle tank types per country; other vehicles, variants or viewpoints may be misclassified.
- Daytime RGB images only. Thermal/IR and night conditions are not covered.
- Dust and fog are synthetic image effects, not real battlefield footage.
- For research and education. Not validated for operational targeting decisions; a human must remain in the loop.
License
AGPL-3.0, following the Ultralytics YOLO license of the base model and code.