加速错题 OCR:上传压缩、识别缩放、启动预热与 MKL-DNN。
This commit is contained in:
@@ -157,8 +157,7 @@ def _process_wrong_question(question_id: uuid.UUID):
|
||||
except FuturesTimeout:
|
||||
wq.status = WrongQuestionStatus.failed
|
||||
wq.error_message = (
|
||||
f"OCR 识别超时(>{settings.OCR_TIMEOUT_SECONDS}秒)。"
|
||||
" 首次加载模型较慢,请稍后点「重新识别标注」重试"
|
||||
f"OCR 识别超时(>{settings.OCR_TIMEOUT_SECONDS}秒),请点「重新识别标注」重试"
|
||||
)
|
||||
db.commit()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user