[mmdetection] Modify the training data format to ".png"

[mmdetection] Modify the training data format to .png
The default training and test data format in the mmdetection platform is ".jpg" , so when our training data is a bunch of png pictures, the training will report an error, as shown in the figure below
error
. Therefore, we need to modify it.
Solution: Open the mmdetection/mmdet/datasets/xml_style.py file, locate line 51, and change ".jpg" to *".png"*. As shown in the figure below
png
, training and testing can be carried out normally!
Is it very simple, if it helps you, please give me a thumbs up! a thankful heart!
Please add a picture description
BTW, come on Shanghai! The epidemic is over!

Guess you like

Origin blog.csdn.net/weixin_46600060/article/details/124145203