|
@@ -455,9 +455,10 @@ The following steps are required:
|
|
|
* Specify the `.yaml` configuration file path for the model (here it is `PP-FormulaNet-S.yaml`,When training other models, you need to specify the corresponding configuration files. The relationship between the model and configuration files can be found in the [PaddleX Model List (CPU/GPU)](../../../support_list/models_list.en.md))
|
|
* Specify the `.yaml` configuration file path for the model (here it is `PP-FormulaNet-S.yaml`,When training other models, you need to specify the corresponding configuration files. The relationship between the model and configuration files can be found in the [PaddleX Model List (CPU/GPU)](../../../support_list/models_list.en.md))
|
|
|
* Set the mode to model training: `-o Global.mode=train`
|
|
* Set the mode to model training: `-o Global.mode=train`
|
|
|
* Specify the path to the training dataset: `-o Global.dataset_dir`.
|
|
* Specify the path to the training dataset: `-o Global.dataset_dir`.
|
|
|
-Other related parameters can be set by modifying the `Global` and `Train` fields in the `.yaml` configuration file, or adjusted by appending parameters in the command line. For example, to specify training on the first two GPUs: `-o Global.device=gpu:0,1`; to set the number of training epochs to 10: `-o Train.epochs_iters=10`. For more modifiable parameters and their detailed explanations, refer to the configuration file instructions for the corresponding task module of the model [PaddleX Common Configuration File Parameters](../../instructions/config_parameters_common.en.md).
|
|
|
|
|
|
|
+* Other related parameters can be set by modifying the `Global` and `Train` fields in the `.yaml` configuration file, or adjusted by appending parameters in the command line. For example, to specify training on the first two GPUs: `-o Global.device=gpu:0,1`; to set the number of training epochs to 10: `-o Train.epochs_iters=10`. For more modifiable parameters and their detailed explanations, refer to the configuration file instructions for the corresponding task module of the model [PaddleX Common Configuration File Parameters](../../instructions/config_parameters_common.en.md).
|
|
|
* Except for LaTeX_OCR_rec, the formula recognition models only support exporting models in JSON format. Therefore, during training, you need to set the parameter `FLAGS_json_format_model=1`.
|
|
* Except for LaTeX_OCR_rec, the formula recognition models only support exporting models in JSON format. Therefore, during training, you need to set the parameter `FLAGS_json_format_model=1`.
|
|
|
* For the PP-FormulaNet-S, PP-FormulaNet-L, and UniMERNet models, additional Linux packages need to be installed during training. The specific command is as follows:
|
|
* For the PP-FormulaNet-S, PP-FormulaNet-L, and UniMERNet models, additional Linux packages need to be installed during training. The specific command is as follows:
|
|
|
|
|
+* New Feature: Paddle 3.0 support CINN (Compiler Infrastructure for Neural Networks) to accelerate training speed when using GPU device. Please specify `-o Train.dy2st=True` to enable it.
|
|
|
|
|
|
|
|
```bash
|
|
```bash
|
|
|
sudo apt-get update
|
|
sudo apt-get update
|