1

我正在尝试预测图像的标签,但我得到了 ValueError。我的代码是

adv_model.fit(x={'feature': x_train, 'label': y_train}, batch_size=42, epochs=50)
img = Image.open('D:\Desktop Data\Minor Poject\Dataset\HAM10000_images_part_1\ISIC_0025306.jpg')
img1 = img.resize([56,42])
pix_val = list(img1.getdata())
pix_val = np.asarray(pix_val)
res = adv_model.predict({'feature': pix_val})

我应该怎么办?

4

0 回答 0