会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
山…隹
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
···
29
下一页
2022年6月1日
glob通配文件名
摘要: import glob mg_path = glob.glob(r'../faces/*.jpg') 搜索 复制
阅读全文
posted @ 2022-06-01 00:12 山…隹
阅读(24)
评论(0)
推荐(0)
2022年5月27日
cv2 提取图片中的对应颜色
摘要: # lower_yellow = np.array([12, 230, 230]) # 黄色阈值下界lower_yellow = np.array([12, 43, 43]) # 黄色阈值下界higher_yellow = np.array([35, 255, 255]) # 黄色阈值上界lower
阅读全文
posted @ 2022-05-27 20:00 山…隹
阅读(494)
评论(0)
推荐(0)
cv2读取中文路径图片
摘要: ## 读取图像,解决imread不能读取中文路径的问题 def cv_imread(filePath): # 核心就是下面这句,一般直接用这句就行,直接把图片转为mat数据 cv_img=cv2.imdecode(np.fromfile(filePath,dtype=np.uint8),-1) #
阅读全文
posted @ 2022-05-27 16:22 山…隹
阅读(212)
评论(0)
推荐(0)
2022年5月25日
tensorflow2.0 使用fit实现复杂自定义loss函数
摘要: import tensorflow as tf from tensorflow.python.keras import backend as K from tensorflow.python.keras import layers as KL from tensorflow.python.keras
阅读全文
posted @ 2022-05-25 22:57 山…隹
阅读(489)
评论(0)
推荐(0)
2022年5月11日
学习网站
摘要: https://www.youtube.com/watch?v=hTpq9lzAb8M unet预训练可视化以及迁移学习应用 搜索 复制
阅读全文
posted @ 2022-05-11 22:20 山…隹
阅读(10)
评论(0)
推荐(0)
学习率动态修改
摘要: # step lr_scheduler = tf.keras.optimizers.schedules.ExponentialDecay( initial_learning_rate=lr_rate, decay_steps=10, decay_rate=0.96) opt = tf.keras.o
阅读全文
posted @ 2022-05-11 18:55 山…隹
阅读(78)
评论(0)
推荐(1)
KFold分割5折检验数据集
摘要: import os import numpy as np from sklearn.model_selection import KFold import json ############################ 读取img数据名列表 ###########################
阅读全文
posted @ 2022-05-11 14:20 山…隹
阅读(106)
评论(0)
推荐(0)
2022年5月9日
tensorflow2--generate训练多输入,多输出
摘要: np.random.seed(1) def combineGenerator(x_l,x_a,x_v,batch_size): index = 0 while True: start = index % x_l.shape[0] end = start + batch_size ##########
阅读全文
posted @ 2022-05-09 16:10 山…隹
阅读(82)
评论(0)
推荐(0)
2022年4月26日
tensorflow2——自定义回调函数
摘要: class LossHistory(keras.callbacks.Callback): def on_train_begin(self, logs={}): self.losses = [] self.min_val_loss = 999 def on_batch_end(self, batch,
阅读全文
posted @ 2022-04-26 18:05 山…隹
阅读(50)
评论(0)
推荐(0)
2022年4月24日
嗨格式数据恢复
摘要: 111
阅读全文
posted @ 2022-04-24 15:54 山…隹
阅读(11)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
29
下一页
公告