Commit 086a9666 by Yuhaibo

docs: 添加Git指令手册文档

parent 9650daf5
......@@ -70,6 +70,6 @@ build/
config/secrets.yaml
config/private.yaml
# 忽略特定的处理器文件(不上传)
handlers/modelpage/model_training_handler.py
handlers/videopage/detection.py
\ No newline at end of file
# # 忽略特定的处理器文件(不上传)
# # handlers/modelpage/model_training_handler.py # 临时注释以修复语法错误并实现合并数据集功能
# handlers/videopage/detection.py
\ No newline at end of file
这是最新版综合液位推理模型,满足了绝大多数任务的检测要求。
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -579,8 +579,8 @@ class ModelSetPage(QtWidgets.QWidget):
# 4. 确定模型类型
model_type = model_info.get('type', '未知')
if model_file.endswith('.pt'):
if '预训练模型' not in model_type and 'YOLO' not in model_type:
model_type = "PyTorch (YOLOv8)"
if '预训练模型' not in model_type and model_type == '未知':
model_type = "PyTorch"
elif model_file.endswith('.dat'):
model_type = ".dat"
elif model_file.endswith('.onnx'):
......@@ -1835,7 +1835,7 @@ class ModelSetPage(QtWidgets.QWidget):
# 确定模型类型
if model_path.endswith('.pt'):
model_type = "PyTorch (YOLOv5/v8)"
model_type = "PyTorch"
elif model_path.endswith('.dat'):
model_type = ".dat"
else:
......@@ -1882,7 +1882,7 @@ class ModelSetPage(QtWidgets.QWidget):
# 配置信息
descriptions.append(f"")
descriptions.append(f"配置信息:")
descriptions.append(f"- 模型类型: {model_config.get('model_type', 'YOLOv5')}")
descriptions.append(f"- 模型类型: {model_config.get('model_type', '深度学习模型')}")
descriptions.append(f"- 输入尺寸: {model_config.get('input_size', [640, 640])}")
descriptions.append(f"- 置信度阈值: {model_config.get('confidence_threshold', 0.5)}")
descriptions.append(f"- IOU阈值: {model_config.get('iou_threshold', 0.45)}")
......@@ -2136,7 +2136,7 @@ class ModelSetPage(QtWidgets.QWidget):
training_params = {}
try:
# 查找 args.yaml 文件(YOLO训练参数)
# 查找 args.yaml 文件(训练参数)
args_file = model_dir / "args.yaml"
if args_file.exists():
with open(args_file, 'r', encoding='utf-8') as f:
......@@ -2177,7 +2177,7 @@ class ModelSetPage(QtWidgets.QWidget):
results = {}
try:
# 查找 results.csv 文件(YOLO训练结果)
# 查找 results.csv 文件(训练结果)
results_file = model_dir / "results.csv"
if results_file.exists():
import pandas as pd
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment