---
title: minecraft-player-detection-yolov26-v2
canonical_url: "https://www.modelscope.cn/models/Aeeie1/minecraft-player-detection-yolov26-v2"
md_url: "https://www.modelscope.cn/models/Aeeie1/minecraft-player-detection-yolov26-v2.md"
repository: Aeeie1/minecraft-player-detection-yolov26-v2
chinese_name: "我的世界玩家识别-v2"
last_updated: 2026-08-28
pipeline_tag: image-object-detection
tasks:
  - image-object-detection
downloads: 1
stars: 1
---

# minecraft-player-detection-yolov26-v2

> minecraft-player-detection-yolov26-v2 - Aeeie1 在 ModelScope 开源的模型。minecraft-player-detection-yolov8n的新版本

- **Repository**: Aeeie1/minecraft-player-detection-yolov26-v2
- **Tasks**: image-object-detection
- **Downloads**: 1
- **Stars**: 1
- **Last updated**: 2026-08-28

Source: https://www.modelscope.cn/models/Aeeie1/minecraft-player-detection-yolov26-v2

---

# Minecraft 玩家检测模型权重
**和其他模型的对比请查看模型文件中的‘对比.md’**
基于 **Ultralytics YOLO26** 微调的《我的世界》玩家实时目标检测模型权重。
**过时了！请使用新版本**
## 模型信息

| 项目 | 内容 |
|------|------|
| 任务 | 目标检测（单类别 `Player`） |
| 架构 | YOLO26 系列（约 237 万参数） |
| 输入尺寸 | 640×640 |
| 设备 | XPU 训练，支持 CPU / CUDA / XPU 推理 |
| 格式 | PyTorch / Ultralytics 格式 |

## 权重文件

| 文件 | 说明 |
|------|------|
| **`last.pt`（推荐）** | 训练收官权重，验证集 mAP@0.5 更高、召回更稳，**效果最佳** |
| `best.pt` | 训练期间 mAP@0.5:0.95 最高的权重 |

> 推荐使用 `last.pt`。两者均为 40 轮收敛末段权重，无过拟合。

## 性能指标

独立验证集测试，`conf=0.001`，`imgsz=640`（last.pt）：

| 精度 | mAP@0.5 | mAP@0.5:0.95 | Precision | Recall |
|------|---------|--------------|-----------|--------|
| FP32 | 0.7711 | 0.3219 | 0.8841 | 0.7151 |
| FP16 | 0.7737 | 0.3207 | 0.8838 | 0.7133 |
| INT8（真实量化） | 0.7343 | 0.3160 | 0.7673 | 0.7188 |

由于采用端到端无 NMS 的 YOLO26 架构，INT8 量化后精度损失极小（mAP@0.5:0.95 仅下降约 0.006），量化鲁棒性好。

## 使用

需要 Python 3.9+，安装 `ultralytics`：

```bash
pip install ultralytics
```

### 检测

```python
from ultralytics import YOLO

model = YOLO("last.pt")
results = model.predict(source="截图.png", conf=0.25, imgsz=640)
for r in results:
    for box in r.boxes:
        x1, y1, x2, y2 = box.xyxy[0].tolist()
        conf = float(box.conf[0])
        print(f"Player {conf:.2f} {x1:.0f},{y1:.0f},{x2:.0f},{y2:.0f}")
```

命令行推理：

```bash
yolo predict model=last.pt source=想检测的图片或视频.jpg conf=0.25 imgsz=640
```

### 播放视频（网页/本地流）快捷示例

```bash
yolo predict model=last.pt source=video.mp4 conf=0.25 imgsz=640 save=True
```

### INT8 量化导出

```python
from ultralytics import YOLO

model = YOLO("last.pt")
model.export(
    format="onnx",
    quantize=8,
    data="标准格式数据集/datasets/dataset.yaml",
    imgsz=640,
)
```

## 许可证

本目录下的权重文件以 **GNU Affero General Public License v3.0**（AGPL-3.0）发布，全文见本目录 [LICENSE](LICENSE)（或 [在线全文](https://www.gnu.org/licenses/agpl-3.0.html)）。

依据 AGPL-3.0 条款，使用、复制、修改或分发本权重者必须：

1. **附带完整许可证**：分发时须随附 AGPL-3.0 全文
2. **保留版权声明**：不得移除上方版权与许可证声明
3. **开源衍生作品**：若修改权重并提供给他人使用（含通过网络提供服务），须以 AGPL-3.0 同等方式公开修改后的权重/模型及足够的构建依据（Corresponding Source）
4. **不附加限制**：不得对本权重施加超出 AGPL-3.0 的额外限制

## 版权与衍生声明

Copyright (C) 2026 Aeeie1

本模型是 **Ultralytics YOLO** 的衍生作品，基于其预训练权重（`yolo26n.pt`）微调而来。

- 原始上游项目：[Ultralytics YOLO](https://github.com/ultralytics/ultralytics)（AGPL-3.0）
- 衍生基线权重：`yolo26n.pt`（AGPL-3.0）
- 本模型在基线权重基础上仅做了自定义数据训练，未修改上游源码

如需将本模型或衍生作品用于闭源商业用途（脱离 AGPL-3.0），请联系 [Ultralytics](https://www.ultralytics.com/license) 获取 Enterprise License 后再进行微调/分发。

## 参考

- [Ultralytics YOLO](https://github.com/ultralytics/ultralytics)（AGPL-3.0）
