After customizing a classification task dataset of RGB images and training a mobilenetv3-small image classification model using mmpretrain, testing using the following instructions revealed that all outputs had the correct category labeling information, but the output resultant image was the bgr channel.
Subsequent tests using images of the bgr channel showed that the output resultant images were the rgb channel order.
So I think maybe there is some problem with the test code of the model
mim test mmpretrain Badminton-mobilenet-v3-small_bs32.py --checkpoint best_accuracy_top1_epoch_13.pth --out result.pkl
My model training and testing config is as follows
Branch
main branch (mmpretrain version)
Describe the bug
After customizing a classification task dataset of RGB images and training a mobilenetv3-small image classification model using mmpretrain, testing using the following instructions revealed that all outputs had the correct category labeling information, but the output resultant image was the bgr channel. Subsequent tests using images of the bgr channel showed that the output resultant images were the rgb channel order. So I think maybe there is some problem with the test code of the model
My model training and testing config is as follows
The system information is as follows:
An example of an output error image is as follows
Environment
Other information