diff --git a/doc/doc_ch/recognition.md b/doc/doc_ch/recognition.md index 769374aedb12b6a2cfd2aa5aca8515c7bf7520a1..91b1af78835707fc37494c847a74f7c1f30191bf 100644 --- a/doc/doc_ch/recognition.md +++ b/doc/doc_ch/recognition.md @@ -332,7 +332,7 @@ Eval: *注意* 评估时必须确保配置文件中 infer_img 字段为空 ``` # GPU 评估, Global.checkpoints 为待测权重 -python3 --gpus '0' tools/eval.py -c configs/rec/rec_icdar15_train.yml -o Global.checkpoints={path/to/weights}/best_accuracy +python3 -m paddle.distributed.launch --gpus '0' tools/eval.py -c configs/rec/rec_icdar15_train.yml -o Global.checkpoints={path/to/weights}/best_accuracy ``` diff --git a/doc/doc_en/recognition_en.md b/doc/doc_en/recognition_en.md index da5a7c4731df2d4cb686f2ae0a94f9c834b3a06d..f9849321d3ac792accf02cac260f16daf030e755 100644 --- a/doc/doc_en/recognition_en.md +++ b/doc/doc_en/recognition_en.md @@ -322,7 +322,7 @@ The evaluation data set can be modified via `configs/rec/rec_icdar15_reader.yml` ``` # GPU evaluation, Global.checkpoints is the weight to be tested -python3 --gpus '0' tools/eval.py -c configs/rec/rec_icdar15_reader.yml -o Global.checkpoints={path/to/weights}/best_accuracy +python3 -m paddle.distributed.launch --gpus '0' tools/eval.py -c configs/rec/rec_icdar15_reader.yml -o Global.checkpoints={path/to/weights}/best_accuracy ```