Parameter: mean_value
This parameter means the average value subtracted from the image of specified preprocessing method.
Parameter descriptions:
When there is only one input node, only one value needs to be configured, which indicates that all channels need to subtract this mean value.
When there are multiple nodes, provide values consistent with the number of channels (these values are separated by spaces), indicating that each channel is subtracted by a different mean value.
If there exists a node that does not require mean processing, configure 'None' for that node.
Parameter: scale_value
This parameter indicates the numerical scale coefficient for the specified preprocessing method.
Parameter descriptions:
When there is only one input node, only one value needs to be configured, indicating that all channels are multiplied by this coefficient.
When there are multiple nodes, provide values consistent with the number of channels (these values are separated by spaces), indicating that each channel is multiplied by a different coefficient.
If there exists a node that does not require scale processing, configure 'None' for that node.
Parameter: std_value
This parameter indicates the numerical std coefficient for the specified preprocessing method.
Parameter descriptions:
When there is only one input node, only one value needs to be configured, indicating that all channels are divided by this coefficient.
When there are multiple nodes, provide values consistent with the number of channels (these values are separated by spaces), indicating that each channel is divided by a different coefficient.
If there exists a node that does not require std processing, configure 'None' for that node.
The following combines the data normalization formulas for model training to provide you with an understanding of the process:
The mean and scale parameters in the YAML file need to be converted with the mean and std during training.
The calculation of the data normalization operation in the preprocess node is: .
Taking YOLOv3 as an example, its preprocessing code during the training is as follows:
Then the calculation formula is .
Rewrite it to the computation for preprocessing nodes is: .
Then .