Merge pull request #3868 from before31/dygraph

修复 端到端算法调用inference模型时与训练模型结果不一致的问题,由rgb3个通道的顺序不一致引起
This commit is contained in:
Double_V
2021-09-08 10:40:26 +08:00
committed by GitHub
+1
View File
@@ -141,6 +141,7 @@ if __name__ == "__main__":
img, flag = check_and_read_gif(image_file)
if not flag:
img = cv2.imread(image_file)
img = img[:, :, ::-1]
if img is None:
logger.info("error in loading image:{}".format(image_file))
continue