update doc

This commit is contained in:
jhqxxx
2026-06-06 18:45:40 +08:00
parent a2d0f64c5b
commit b164779af4
5 changed files with 9 additions and 11 deletions
+1 -3
View File
@@ -298,9 +298,7 @@ pub(crate) fn run_run(args: RunArgs) -> anyhow::Result<()> {
WhichModel::HunyuanOCR => {
hunyuan_ocr::HunyuanORExec::run(&input, output.as_deref(), &weight_path)?;
}
WhichModel::PaddleOCRVL
| WhichModel::PaddleOCRVL1_5
| WhichModel::PaddleOCRVL1_6 => {
WhichModel::PaddleOCRVL | WhichModel::PaddleOCRVL1_5 | WhichModel::PaddleOCRVL1_6 => {
paddleocr_vl::PaddleOVLExec::run(&input, output.as_deref(), &weight_path)?;
}
WhichModel::RMBG2_0 => {
+1 -3
View File
@@ -284,9 +284,7 @@ pub fn load_model<'a>(
let model = HunyuanOCRGenerateModel::init(path, device, dtype)?;
ModelInstance::HunyuanOCR(model)
}
WhichModel::PaddleOCRVL
| WhichModel::PaddleOCRVL1_5
| WhichModel::PaddleOCRVL1_6 => {
WhichModel::PaddleOCRVL | WhichModel::PaddleOCRVL1_5 | WhichModel::PaddleOCRVL1_6 => {
let model = PaddleOCRVLGenerateModel::init(path, device, dtype)?;
ModelInstance::PaddleOCRVL(Box::new(model))
}