![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
我的毕设
jueshifengguang
这个作者很懒,什么都没留下…
展开
-
解决AttributeError: module 'scipy.misc' has no attribute 'imread'报错问题
解决方法:①把原来的import scipy.misc改成import imageio(如果没有imageio包的话,需要安装一下)。②把input_image =scipy.misc.imread(IMG_PATH)改成 input_image = imageio.imread(IMG_PATH),即可解决。...原创 2020-05-04 04:56:39 · 269 阅读 · 0 评论 -
【CelebA】【MTCNN】制作mtcnn训练数据集
任务描述:利用celebA进行mtcnn多任务级联卷积神经网络的训练数据制作,目标输出txt里应该含有图片id*1、人脸框*4,人脸特征点坐标*10,共15列数据代码实现:from tool import utilsimport tracebackimport numpy as npimport osfrom PIL import Image, ImageFilterfrom ...原创 2020-05-03 18:51:55 · 1132 阅读 · 2 评论 -
【python】【CelebA】实现对list_attr_celeba.txt中特定属性的抽取
任务描述:Celeba中有40种属性,如若要进行特定的多属性神经网络训练,其样本数据标签制作:label_attr_path = r"H:\CelebA\Anno\list_attr_celeba.txt" # Celeba的属性标签f_attr = open(label_attr_path).readlines()w = open(r'H:\CelebA\Save\img_celeb...原创 2020-05-03 18:46:07 · 674 阅读 · 0 评论 -
python 实现根据bbox对人脸进行裁剪
任务要求描述:根据CelebA的人脸bbox标签,对其进行裁剪,并保存至目标文件夹代码:import osfrom PIL import Imageimport matplotlib.pyplot as pltlabel_position_path = r"H:\CelebA\Save\img_celeba\Anno\train_list_bbox_celeba.txt"han...原创 2020-05-03 18:38:15 · 1576 阅读 · 0 评论