问题
运行torchvision
官方目标检测教程: Penn-Fudan Database for Pedestrian Detection and Segmentation报错:
ValueError: Does not understand character buffer dtype format string ('?')
解决方法
将coco_eval.py
文件的112行
mask_util.encode(np.array(mask[0, :, :, np.newaxis], order="F"))[0]
更改为
mask_util.encode(np.array(mask[0, :, :, np.newaxis], dtype=np.uint8, order="F"))[0]