报错:ValueError: operands could not be broadcast together with shapes (224,224) (384,384)
更改图像尺寸两种方式:(要根据打开方式的不同来更改)
方式1: Image库来打开
image = Image.open(images[i]).convert(“RGB”)
image = image.resize((224, 224))
方式2,使用cv2打开
label = cv2.imread(label_path, flags=-1)
label=cv2.resize(label,(224,224))