2020
10-08
10-08
keras实现VGG16方式(预测一张图片)
我就废话不多说了,大家还是直接看代码吧~fromkeras.applications.vgg16importVGG16#直接导入已经训练好的VGG16网络fromkeras.preprocessing.imageimportload_img#load_image作用是载入图片fromkeras.preprocessing.imageimportimg_to_arrayfromkeras.applications.vgg16importpreprocess_inputfromkeras.applications.vgg16importdecode_predictionsmodel=VGG16()image=load_img('D:\\photo\\dog.jpg',target...
继续阅读 >