文章目录 01_check_image 02_check_annotation 目标检测数据清洗很重要,磨到不误砍材工,使用工具包把数据清洗好了,其实也就解决目标检测训练里90%的数据加载报错问题了 01_check_image 对齐image_annotation label 踢错去重工具包 02_check_annotation 对齐image和label之后,对box的边界等处理 import cv2 import os import shutil def check_img(img_path): imgs = os.listdir