资源简介
tensorflow实现服装类别分类,包括模型训练、验证及保存,例子本身从tensorflow官网学习而来,亲自进行了实现,代码可用。环境搭建可参考个人博文。
代码片段和文件信息
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# TensorFlow and tf.keras
import tensorflow as tf
from tensorflow import keras
# Helper libraries
import numpy as np
import matplotlib.pyplot as plt
fashion_mnist = keras.datasets.fashion_mnist
(train_images train_labels) (test_images test_labels) = fashion_mnist.load_data()
class_names = [‘T-shirt/top‘ ‘Trouser‘ ‘Pullover‘ ‘Dress‘ ‘Coat‘
‘Sandal‘ ‘Shirt‘ ‘Sneaker‘ ‘Bag‘ ‘Ankle boot‘]
train_images.shape;
train_labels_len = len(train_labels);
print(train_labels_len)
print(train_labels)
test_images.shape
test_labels_len = len(test_labels);
print(test_labels_len)
print(test_labels)
# plt.figure()
# plt.imshow(train_images[0])
# plt.colorbar()
# plt.grid(False)
# plt.show()
train_images = train_images / 255.0
test_images = test_images / 255.0
# plt.figure(figsize=(1010))
# for i in range(25):
# plt.subplot(55i+1)
# plt.xticks([])
# plt.yticks([])
# plt.grid(F
相关资源
- DeepLabV3-Tensorflow-master
- 基于TensorFlow实现CNN文本分类实验指导
- tensorflow2.0 yolo3目标检测算法
- tensorflow制作自己的灰度图像数据集并
- anaconda下安装tensorflow(注:不同版本
- 北京大学曹健老师-人工智能实践:
- Deep Learning With Python - Jason Brownlee
- Python-自然场景文本检测PSENet的一个
- Python-高效准确的EAST文本检测器的一个
- Python-TensorFlow弱监督图像分割
- Python-基于tensorflow实现的用textcnn方法
- Python-subpixel利用Tensorflow的一个子像素
- 【官方文档】TensorFlow Python API docume
-
tensorflow画风迁移代码 st
yle transfer - 简单粗暴 TensorFlow
- [PDF] Reinforcement Learning With Open AI Tens
- tensorflow目标检测代码
- 基于Python的手写字体识别系统
- 基于Tensorflow的人脸识别源码
- python TensorFlow 官方文档中文版
- Python-在TensorFlow中实现实现图像卷积网
- tensorflow-1.9.0-cp37-cp37m-win_amd64.whl
- Faster-RCNN-TensorFlow-Python3.5-master
- 聊天机器人tensorflow
- caffe模型转化为tensorflow模型
- Python-一个非常简单的BiLSTMCRF模型用于
- Python-Tensorflow仿AlphaGo框架实现的AI围棋
- Mask R-CNN源码(TensorFlow版本)
- 基于python3 tensorflow DBN_and_RNN的实现
- tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl
评论
共有 条评论