You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/tutorials/frequently_asked_questions.md
+56Lines changed: 56 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
-[`RunTimeError:The device address tpe is wrong`](#q6-runtimeerror-the-device-address-type-is-wrong-type-name-in-addresscpu-type-name-in-contextascend)
8
8
-[Problems related to model converting](#q7-problems-related-to-model-converting)
9
9
-[Problems related to inference](#q8-problems-related-to-inference)
10
+
-[Training speed of DBNet not as fast as expexted](#q9-training-speed-of-dbnet-not-as-fast-as-expexted)
10
11
11
12
### Q1 Undefined symbol
12
13
@@ -607,3 +608,58 @@ Reason:
607
608
608
609
- Use suitable model. For example, it may fail and pass detection model to `--rec_model_path` parameter.
609
610
- Use inference model(not training model) to do converting.
611
+
612
+
613
+
### Q9 Training speed of DBNet not as fast as expexted
614
+
615
+
When traning DBNet series networks (including DBNet MobileNetV3, DBNet ResNet-18, DBNet ResNet-50, and DBNet++ ResNet-50) using following command, the training speed is not as fast as expexted. For instance, the training speed of DBNet MobileNetV3 can reach only 80fps which is slower than the expecting 100fps.
This problem is due to the complex data pre-processing procedures of DBNet. The data pre-processing procedures will become the performance bottleneck if the computation ability of a CPU core of the training server is relatively weak.
622
+
623
+
**Solutions**
624
+
625
+
1. Try to set the `train.dataset.use_minddata` and `eval.dataset.use_minddata`in the configuration file to `True`. MindOCR will execute parts of data pre-processing procedures using MindSpore[MindData](https://www.mindspore.cn/docs/zh-CN/master/api_python/dataset/dataset_method/operation/mindspore.dataset.Dataset.map.html?highlight=map#mindspore.dataset.Dataset.map):
626
+
627
+
``` yaml
628
+
...
629
+
train:
630
+
ckpt_save_dir: './tmp_det'
631
+
dataset_sink_mode: True
632
+
dataset:
633
+
type: DetDataset
634
+
dataset_root: /data/ocr_datasets
635
+
data_dir: ic15/det/train/ch4_training_images
636
+
label_file: ic15/det/train/det_gt.txt
637
+
sample_ratio: 1.0
638
+
use_minddata: True <-- Set this configuration
639
+
...
640
+
eval:
641
+
ckpt_load_path: tmp_det/best.ckpt
642
+
dataset_sink_mode: False
643
+
dataset:
644
+
type: DetDataset
645
+
dataset_root: /data/ocr_datasets
646
+
data_dir: ic15/det/test/ch4_test_images
647
+
label_file: ic15/det/test/det_gt.txt
648
+
sample_ratio: 1.0
649
+
use_minddata: True <-- Set this configuration
650
+
...
651
+
```
652
+
653
+
2. Try to set the `train.loader.num_workers`in the configuration file to a larger value to enhance the number of threads fetching dataset if the training server has enough CPU cores:
0 commit comments