Shortcuts

NPU (HUAWEI Ascend)

Usage

Please refer to the building documentation of MMCV to install MMCV on NPU devices

Here we use 8 NPUs on your computer to train the model with the following command:

bash tools/dist_train.sh configs/ssd/ssd300_coco.py 8

Also, you can use only one NPU to train the model with the following command:

python tools/train.py configs/ssd/ssd300_coco.py

Models Results

Model box AP mask AP Config Download
ssd300 25.6 --- config log
ssd512 29.4 --- config log
ssdlite-mbv2* 20.2 --- config log
retinanet-r18 31.8 --- config log
retinanet-r50 36.6 --- config log
yolov3-608 34.7 --- config log
yolox-s** 39.9 --- config log
centernet-r18 26.1 --- config log
fcos-r50* 36.1 --- config log
solov2-r50 --- 34.7 config log

Notes:

  • If not specially marked, the results on NPU are the same as those on the GPU with FP32.

  • (*) The results on the NPU of these models are aligned with the results of the mixed-precision training on the GPU, but are lower than the results of the FP32. This situation is mainly related to the phase of the model itself in mixed-precision training, users may need to adjust the hyperparameters to achieve better results.

  • (**) The accuracy of yolox-s on the GPU in mixed precision is 40.1, with persister_woker=True in the data loader config by default. There are currently some bugs on NPUs that prevent the last few epochs from running, but the accuracy is less affected and the difference can be ignored.

High-performance Model Result on Ascend Device

Introduction to optimization:

  1. Modify the loop calculation as a whole batch calculation to reduce the number of instructions issued.

  2. Modify the index calculation to mask calculation, because the SIMD architecture is good at processing continuous data calculation.

Model Config v100 iter time 910A iter time
ascend-ssd300 config 0.165s/iter 0.383s/iter -> 0.13s/iter
ascend-retinanet-r18 config 0.567s/iter 0.780s/iter -> 0.420s/iter

All above models are provided by Huawei Ascend group.

Read the Docs v: dev
Versions
latest
stable
3.x
v3.0.0rc0
v2.28.2
v2.28.1
v2.28.0
v2.27.0
v2.26.0
v2.25.3
v2.25.2
v2.25.1
v2.25.0
v2.24.1
v2.24.0
v2.23.0
v2.22.0
v2.21.0
v2.20.0
v2.19.1
v2.19.0
v2.18.1
v2.18.0
v2.17.0
v2.16.0
v2.15.1
v2.15.0
v2.14.0
v2.13.0
v2.12.0
v2.11.0
v2.10.0
v2.9.0
v2.8.0
v2.7.0
v2.6.0
v2.5.0
v2.4.0
v2.3.0
v2.2.1
v2.2.0
v2.1.0
v2.0.0
v1.2.0
test-3.0.0rc0
dev-3.x
dev
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.