From 111569b021b70ce0fcd6de9026d41a0a27d9da83 Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 10 May 2020 00:21:38 +0800 Subject: [PATCH] Update load_model.md --- docs/apis/load_model.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/apis/load_model.md b/docs/apis/load_model.md index 9a32ca6..0e460ee 100644 --- a/docs/apis/load_model.md +++ b/docs/apis/load_model.md @@ -34,7 +34,7 @@ pred_result = model.predict('./xiaoduxiong_ins_det/JPEGImages/WechatIMG114.jpeg' # 在验证集上进行评估 eval_reader = pdx.cv.datasets.CocoDetection(data_dir=data_dir, - ann_file=ann_file + ann_file=ann_file, transforms=model.eval_transforms) eval_result = model.evaluate(eval_reader, batch_size=1) ``` -- GitLab