#!/bin/bash
set -e

: "${DET_CONFIG:=configs/det/PP-OCRv5/PP-OCRv5_server_det.yml}"
: "${CHECKPOINT:=../../output/train/det_product/best_accuracy}"
: "${OUT_DIR:=../../models/paddle/product_det}"

python tools/export_model.py \
  -c "${DET_CONFIG}" \
  -o Global.checkpoints="${CHECKPOINT}" \
     Global.save_inference_dir="${OUT_DIR}"
