测试代码

This commit is contained in:
2025-06-24 16:57:16 +08:00
parent fdc5b9722c
commit 3d364aa0bd
5 changed files with 142 additions and 5 deletions

View File

@ -148,9 +148,9 @@ class DetectionValidator(BaseValidator):
pred[:, 5] = 0
# =======Targets 2 分类======
column = pred[:,5]
condition2 = (column != 10)
pred[:,5][condition2] = 0
# column = pred[:,5]
# condition2 = (column != 10)
# pred[:,5][condition2] = 0
# ===========================
predn = self._prepare_pred(pred, pbatch)