Local Training
在 Securex NVR 中完成采集、标注、训练、实时测试与部署自定义目标检测模型。
完整工作流
- 创建数据集。
- 导入 ZIP / 图片或自动采集。
- 完成标注。
- 开始训练并查看实时日志 / 进度。
- 在模型测试中做图片测试。
- 在实时模型测试中使用摄像头流验证。
- 导出 ONNX 和标签文件。
- 部署到
/config/model_cache。 - 自动生成或更新检测配置,并进行语法验证。
部署文件
/config/model_cache/securex_custom_yolo.onnx
/config/model_cache/securex_custom_yolo_labels.txt
部署后的检测配置
detectors:
onnx:
type: onnx
model:
model_type: yolo-generic
width: 640
height: 640
input_tensor: nchw
input_pixel_format: rgb
input_dtype: float
path: /config/model_cache/securex_custom_yolo.onnx
labelmap_path: /config/model_cache/securex_custom_yolo_labels.txtLocal Training
Local Training is part of the Securex Plugin Store ecosystem. This page covers installation, configuration, status checks, updates, and recovery for the plugin.
Installation and configuration
- Install a release compatible with your Securex NVR version.
- Open Plugin Settings and configure only the required options.
- Verify the plugin backend, API, and sidebar entry after installation.
Updates and rollback
Review the plugin change history before updating. Back up configuration first and keep historical release entries instead of replacing them.
Troubleshooting
Check plugin logs, host-service logs, permissions, mounted paths, container dependencies, and version compatibility. Reinstall only after exporting the existing settings.
Configuration examples
/config/model_cache/securex_custom_yolo.onnx
/config/model_cache/securex_custom_yolo_labels.txtdetectors:
onnx:
type: onnx
model:
model_type: yolo-generic
width: 640
height: 640
input_tensor: nchw
input_pixel_format: rgb
input_dtype: float
path: /config/model_cache/securex_custom_yolo.onnx
labelmap_path: /config/model_cache/securex_custom_yolo_labels.txtLocal Training
Local Training forma parte del ecosistema Securex Plugin Store. Esta página cubre instalación, configuración, estado, actualizaciones y recuperación.
Instalación y configuración
- Instale una versión compatible con Securex NVR.
- Abra Ajustes del plugin y configure solo lo necesario.
- Verifique backend, API y entrada de la barra lateral.
Actualización y reversión
Revise el historial antes de actualizar. Haga copia de seguridad y conserve las versiones históricas.
Solución de problemas
Revise registros del plugin y del host, permisos, rutas montadas, dependencias del contenedor y compatibilidad. Exporte los ajustes antes de reinstalar.
Ejemplos de configuración
/config/model_cache/securex_custom_yolo.onnx
/config/model_cache/securex_custom_yolo_labels.txtdetectors:
onnx:
type: onnx
model:
model_type: yolo-generic
width: 640
height: 640
input_tensor: nchw
input_pixel_format: rgb
input_dtype: float
path: /config/model_cache/securex_custom_yolo.onnx
labelmap_path: /config/model_cache/securex_custom_yolo_labels.txt