通过利用print输出知道了lightweight openpose验证时是一个图片一个图片读取的。
我直接在val.py的程序上加入了print(img.shape)由此可得出图片是一个一个读取的。