临时调整识别案子范围,尝试修正模型替换导致的识别率下降
This commit is contained in:
@@ -541,20 +541,23 @@ def photo_review(pk_phhd):
|
|||||||
def main():
|
def main():
|
||||||
while 1:
|
while 1:
|
||||||
session = MysqlSession()
|
session = MysqlSession()
|
||||||
# phhds = (session.query(ZxPhhd.pk_phhd)
|
|
||||||
# .join(ZxPhrec, ZxPhhd.pk_phhd == ZxPhrec.pk_phhd, isouter=True)
|
|
||||||
# .filter(ZxPhhd.exsuccess_flag == "1")
|
|
||||||
# .filter(ZxPhrec.pk_phrec.isnot(None))
|
|
||||||
# .order_by(ZxPhhd.priority_num.desc())
|
|
||||||
# .distinct().limit(PHHD_BATCH_SIZE).all())
|
|
||||||
phhds = (session.query(ZxPhhd.pk_phhd)
|
phhds = (session.query(ZxPhhd.pk_phhd)
|
||||||
.join(ZxPhrec, ZxPhhd.pk_phhd == ZxPhrec.pk_phhd, isouter=True)
|
.join(ZxPhrec, ZxPhhd.pk_phhd == ZxPhrec.pk_phhd, isouter=True)
|
||||||
.filter(ZxPhhd.exsuccess_flag == "9")
|
.filter(ZxPhhd.exsuccess_flag == "1")
|
||||||
.filter(ZxPhhd.paint_flag == "0")
|
|
||||||
.filter(ZxPhhd.checktime > "2025-08-19 8:30")
|
|
||||||
.filter(ZxPhrec.pk_phrec.isnot(None))
|
.filter(ZxPhrec.pk_phrec.isnot(None))
|
||||||
.order_by(ZxPhhd.priority_num.desc())
|
.order_by(ZxPhhd.priority_num.desc())
|
||||||
.distinct().limit(PHHD_BATCH_SIZE).all())
|
.distinct().limit(PHHD_BATCH_SIZE).all())
|
||||||
|
if not phhds:
|
||||||
|
# 临时调整修复,修复完成后可删除
|
||||||
|
phhds = (session.query(ZxPhhd.pk_phhd)
|
||||||
|
.join(ZxPhrec, ZxPhhd.pk_phhd == ZxPhrec.pk_phhd, isouter=True)
|
||||||
|
.filter(ZxPhhd.exsuccess_flag == "9")
|
||||||
|
.filter(ZxPhhd.paint_flag == "0")
|
||||||
|
.filter(ZxPhhd.checktime > "2025-08-19 8:30")
|
||||||
|
.filter(ZxPhhd.checktime < "2025-08-19 18:48")
|
||||||
|
.filter(ZxPhrec.pk_phrec.isnot(None))
|
||||||
|
.order_by(ZxPhhd.priority_num.desc())
|
||||||
|
.distinct().limit(PHHD_BATCH_SIZE).all())
|
||||||
# 将状态改为正在识别中
|
# 将状态改为正在识别中
|
||||||
pk_phhd_values = [phhd.pk_phhd for phhd in phhds]
|
pk_phhd_values = [phhd.pk_phhd for phhd in phhds]
|
||||||
update_flag = (update(ZxPhhd).where(ZxPhhd.pk_phhd.in_(pk_phhd_values)).values(exsuccess_flag="2"))
|
update_flag = (update(ZxPhhd).where(ZxPhhd.pk_phhd.in_(pk_phhd_values)).values(exsuccess_flag="2"))
|
||||||
|
|||||||
Reference in New Issue
Block a user