将vgg.prepare()应用于以下图像时,会得到以下结果:
我使用以下代码行:
Image.fromarray(np.uint8(vgg.prepare(pep).reshape(224,224,3)))
并获得包含给定图像的9个副本的图像:
答案 0 :(得分:2)
我终于明白了你的所作所为...
唯一的错误是sudo apt install postgresql-11-postgis-2.5
sudo apt install postgresql-11-postgis-2.5-scripts
。
由于图像是转置的,而不是重塑的,因此必须重新转置才能恢复原始图像。
.reshape