Python TypeError:“str”对象是不可调用的imag

2024-09-27 09:29:16 发布

您现在位置:Python中文网/ 问答频道 /正文

test_image = image.load_img('dataset/kot/cat.4003.jpg', target_size = (64, 64))
test_image = image.img_to_array('cat.4003.jpg'(64, 64))
test_image = np.expand_dims('dataset/kot/cat.4003.jpg', axis = 0)

嗨,伙计们, 你能告诉我这个代码有什么问题吗?我是个新手, 我得到了这个错误,正如你在上面看到的。也许你能看到更多的错误。我会很感激的。你知道吗


Tags: totestimagetargetimgsize错误np

热门问题