python人脸识别学习笔记 tensorflow dlib opencv

dlib人脸检测API解析: dlib.get_frontal_face_detector() :https://www.cnblogs.com/AdaminXie/p/7905888.html

PyCharm整体缩进也是Tab键

图像边缘填充API:cv2.copyMakeBorder() : https://blog.csdn.net/weixin_35732969/article/details/83714492

sklearn中train_test_split,训练测试集分割: https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html

参数:test_size : float, int or None, optional (default=0.25)

If float, should be between 0.0 and 1.0 and represent the proportion of the dataset to include in the test split. If int, represents the absolute number of test samples. If None, the value is set to the complement of the train size. By default, the value is set to 0.25. The default will change in version 0.21. It will remain 0.25 only if train_size is unspecified, otherwise it will complement the specified train_size. 0-1之间是训练集的比例,整数为训练集个数

参数:random_state : int, RandomState instance or None, optional (default=None)

If int, random_state is the seed used by the random number generator; If RandomState instance, random_state is the random number generator; If None, the random number generator is the RandomState instance used by np.random. 如果是int类型的就是随机数种子。

随机种子(Random Seed)是计算机专业术语,一种以随机数作为对象的以真随机数(种子)为初始条件的随机数。一般计算机的随机数都是伪随机数,以一个真随机数(种子)作为初始条件,然后用一定的算法不停迭代产生随机数。https://baike.baidu.com/item/%E9%9A%8F%E6%9C%BA%E7%A7%8D%E5%AD%90/9844665?fr=aladdin

shape与reshape: https://blog.csdn.net/qq_28618765/article/details/78083895

astype() : 更改数据类型

saver,restore: https://www.jianshu.com/p/b0c789757df6

tf.argmax() : 返回最大元素索引号 https://blog.csdn.net/uestc_c2_403/article/details/72232807 & https://www.cnblogs.com/logo-88/p/9295858.html

PyCharm整体对代码缩进 Shift+Tab

saver使用 : https://tensorflow.google.cn/guide/saved_model

tensorboard使用: activate tensorflow ->进入目录 ->tensorboard --logdir=log, 浏览器进入localhost:6006(用cmd弹出的网址可能因为某种不明网络状况而进不去,当然断网也能进,但是太麻烦了)

创建文件夹:https://www.cnblogs.com/monsteryang/p/6574550.html

tensorboard训练结果

 

报错:ValueError: Cannot evaluate tensor using `eval()`

https://blog.csdn.net/spadgerz/article/details/79641848

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值