上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: keras实现简单性别识别(二分类问题) 第一步:准备好需要的库 tensorflow 1.4.0 h5py 2.7.0 hdf5 1.8.15.1 Keras 2.0.8 opencv-python 3.3.0 numpy 1.13.3+mkl 所需要的人脸检测模块 mtcnn和opencv ht 阅读全文
posted @ 2018-03-16 16:49 ayew 阅读(20405) 评论(22) 推荐(5) 编辑
摘要: 1 # -*- coding: utf-8 -*- 2 3 import os 4 import sys 5 import numpy as np 6 import cv2 7 8 IMAGE_SIZE = 224 9 10 11 # 按照指定图像大小调整尺寸 12 def resize_image(image, height=IMAGE_SIZE, width=IMA... 阅读全文
posted @ 2018-03-02 10:09 ayew 阅读(3284) 评论(1) 推荐(0) 编辑
摘要: #利用openCV裁脸import cv2 def draw_rects(img, rects): for x, y, w, h in rects: cv2.rectangle(img, (x, y), (x+w, y+h), (255, 255, 00), 2) cv2.circle(img, (x, y), 1, (0, 0, 255), 10) ... 阅读全文
posted @ 2018-02-16 13:59 ayew 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1 string = "word 2 3 4 5 6 7" 2 string = ",".join(string.split()) 3 4 5 6 import numpy as np 7 import pandas as pd 8 a = pd.read_csv('list_landmarks_a 阅读全文
posted @ 2018-02-09 11:28 ayew 阅读(2416) 评论(0) 推荐(0) 编辑
摘要: 查看文件夹内各文件数目 阅读全文
posted @ 2018-02-08 19:58 ayew 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 摘要 越深层次的神经网络越难以训练。我们提供了一个残差学习框架,以减轻对网络的训练,这些网络的深度比以前的要大得多。我们明确地将这些层重新规划为通过参考输入层x,学习残差函数,来代替没有参考的学习函数。 我们提供了综合的经验证据,表明残差网络更容易优化,并且可以从显著增加的深度中获得准确性。在Ima 阅读全文
posted @ 2018-02-04 11:21 ayew 阅读(1930) 评论(0) 推荐(0) 编辑
摘要: 1 from tensorflow.contrib.keras.api.keras.preprocessing.image import ImageDataGenerator,img_to_array 2 from tensorflow.contrib.keras.api.keras.models 阅读全文
posted @ 2018-01-31 11:32 ayew 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 写了一个工具函数很开心 阅读全文
posted @ 2018-01-30 17:18 ayew 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 附上自己从wiki.mat中提取出来的标签 https://pan.baidu.com/s/1dGT6ghV 再附上wiki的数据集地址 https://data.vision.ee.ethz.ch/cvl/rrothe/imdb-wiki/ 阅读全文
posted @ 2018-01-24 10:30 ayew 阅读(461) 评论(0) 推荐(0) 编辑
摘要: 附上自己从wiki.mat中提取出来的标签 https://pan.baidu.com/s/1dGT6ghV 再附上wiki的数据集地址 https://data.vision.ee.ethz.ch/cvl/rrothe/imdb-wiki/ 阅读全文
posted @ 2018-01-24 09:59 ayew 阅读(1526) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页