diff --git a/docs/en/inference.md b/docs/en/inference.md index cd6eaf0c18e4a1406152d28c244cede9a453e5d8..1fc94ef9e49709727d17dc91b43d2f02b9e28ae6 100644 --- a/docs/en/inference.md +++ b/docs/en/inference.md @@ -16,7 +16,8 @@ You can use the following commands to test a dataset. # single-gpu testing python tools/test.py ${CONFIG_FILE} ${CHECKPOINT_FILE} [--out ${RESULT_FILE}] [--eval ${EVAL_METRICS}] [--show] -# CPU: disable GPUs and run single-gpu testing script +# CPU: If GPU unavailable, directly running single-gpu testing command above +# CPU: If GPU available, disable GPUs and run single-gpu testing script export CUDA_VISIBLE_DEVICES=-1 python tools/test.py ${CONFIG_FILE} ${CHECKPOINT_FILE} [--out ${RESULT_FILE}] [--eval ${EVAL_METRICS}] [--show] diff --git a/docs/en/train.md b/docs/en/train.md index 8c47121c2f3206f4815c1d772506848fa84f9e0f..7c1c41184812642b560ba646723baab43011445a 100644 --- a/docs/en/train.md +++ b/docs/en/train.md @@ -37,7 +37,7 @@ If you want to specify the working directory in the command, you can add an argu #### Train with CPU -The process of training on the CPU is consistent with single GPU training. We just need to disable GPUs before the training process. +The process of training on the CPU is consistent with single GPU training if machine does not have GPU. If it has GPUs but not wanting to use it, we just need to disable GPUs before the training process. ```shell export CUDA_VISIBLE_DEVICES=-1 diff --git a/docs/zh_cn/inference.md b/docs/zh_cn/inference.md index b681dca2cf47e05120b84db5b163caf1f33c9ab6..835872be92b0da55cb75e4190ab334ed24fad5a8 100644 --- a/docs/zh_cn/inference.md +++ b/docs/zh_cn/inference.md @@ -15,8 +15,9 @@ # å•å¡ GPU 测试 python tools/test.py ${é…置文件} ${检查点文件} [--out ${结果文件}] [--eval ${è¯„ä¼°æŒ‡æ ‡}] [--show] -# CPU: ç¦ç”¨ GPU 并è¿è¡Œå• GPU 测试脚本 -export CUDA_VISIBLE_DEVICES=-1 +# CPU: 如果机器没有 GPU, 则跟上述å•å¡ GPU 测试一致 +# CPU: 如果机器有 GPU, 那么先ç¦ç”¨ GPU å†è¿è¡Œå• GPU 测试脚本 +export CUDA_VISIBLE_DEVICES=-1 # ç¦ç”¨ GPU python tools/test.py ${é…置文件} ${检查点文件} [--out ${结果文件}] [--eval ${è¯„ä¼°æŒ‡æ ‡}] [--show] # 多å¡GPU 测试 diff --git a/docs/zh_cn/train.md b/docs/zh_cn/train.md index 8e200b17385d4e08d6f46948b920e52ca5f3f9ef..a54f28f03f97be7185f3d2c2c2bb965de114c4a2 100644 --- a/docs/zh_cn/train.md +++ b/docs/zh_cn/train.md @@ -27,7 +27,7 @@ python tools/train.py ${CONFIG_FILE} [å¯é€‰å‚æ•°] #### 使用 CPU è®ç»ƒ -使用 CPU è®ç»ƒçš„æµç¨‹å’Œä½¿ç”¨å• GPU è®ç»ƒçš„æµç¨‹ä¸€è‡´ï¼Œæˆ‘们仅需è¦åœ¨è®ç»ƒæµç¨‹å¼€å§‹å‰ç¦ç”¨ GPU。 +如果计算机没有 GPU,那么使用 CPU è®ç»ƒçš„æµç¨‹å’Œä½¿ç”¨å• GPU è®ç»ƒçš„æµç¨‹ä¸€è‡´ã€‚如果计算机有 GPU 但是想使用 CPU,我们仅需è¦åœ¨è®ç»ƒæµç¨‹å¼€å§‹å‰ç¦ç”¨ GPU。 ```shell export CUDA_VISIBLE_DEVICES=-1