mmdetection读取图片出现为None的情况解决办法时将mmcv改为opencv
作者:互联网
解决办法:
将读取图片的方式改为mmcv.imread方式
修改代码处:mmdet/datasets/pipelines/loading.py
类:LoadImageFromFile
方法:__call__()
将:
img_bytes = self.file_client.get(filename)
img = mmcv.imfrombytes(img_bytes, flag=self.color_type)
改为:
img = mmcv.imread(filename)
标签:__,None,mmcv,img,self,filename,opencv,imread 来源: https://www.cnblogs.com/chentiao/p/16336674.html