OCR 500: GPU 回退 CPU、返回详细错误、增加 test-ocr 诊断。
This commit is contained in:
@@ -210,6 +210,9 @@ setup_ocr_gpu() {
|
||||
else
|
||||
log_warn "未检测到 NVIDIA GPU,OCR 将使用 CPU(较慢)"
|
||||
fi
|
||||
if [[ -x "${INSTALL_DIR}/deploy/install-ocr-deps.sh" ]]; then
|
||||
bash "${INSTALL_DIR}/deploy/install-ocr-deps.sh" || log_warn "OCR 系统库安装跳过"
|
||||
fi
|
||||
install_ocr_worker
|
||||
start_ocr_screen
|
||||
wait_ocr_healthy 30 || log_warn "OCR 后台加载中,继续安装主程序…"
|
||||
|
||||
Reference in New Issue
Block a user