原问题github地址:what is the new quad dataloader? · Issue #1898 · ultralytics/yolov5 · GitHub
使用方式:python train.py --quad
作用:This quad-collate function will reshapes a batch from 16x3x640x640 to 4x3x1280x1280, which does not have much effect by itself as it is only rearranging the mosaics in the batch, but which interestingly allows for 2x upscaling of some images within the batch (one of the 4 mosaics in each quad is upscaled by 2x, the other 3 mosaics are deleted).
就是将通道上的信息转移到图像尺度信息
可以看做该方法是 --img 640 和 --img 1280 的折中方案,在特殊项目场景下兼顾速度和精度。