
tensorflow
文章平均质量分 57
platform
这个作者很懒,什么都没留下…
展开
-
无语,总有一些人脑壳有包!
def load_image_into_numpy_array(path): img_data=tf.io.gfile.GFile(path,'rb').read() image=Image.open(BytesIO(img_data)) # print(image.shape) (im_width,im_height)=image.size return np.array(image.getdata()).reshape((im_height,im_wi.原创 2021-06-21 19:38:33 · 175 阅读 · 0 评论 -
TensorFlow 新手踩坑杂谈
tensorflow 现在已经更新到2.5版本了,网上很多资料还都在1.x 的版本,1.x 的版本和2.x 的版本相差挺大,tensorflow 两个版本之间原创 2021-06-21 13:46:37 · 1138 阅读 · 8 评论