05 2022 档案

摘要:# 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 山…隹 阅读(474) 评论(0) 推荐(0) 编辑
摘要:## 读取图像,解决imread不能读取中文路径的问题 def cv_imread(filePath): # 核心就是下面这句,一般直接用这句就行,直接把图片转为mat数据 cv_img=cv2.imdecode(np.fromfile(filePath,dtype=np.uint8),-1) # 阅读全文
posted @ 2022-05-27 16:22 山…隹 阅读(193) 评论(0) 推荐(0) 编辑
摘要: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 山…隹 阅读(463) 评论(0) 推荐(0) 编辑
摘要:https://www.youtube.com/watch?v=hTpq9lzAb8M unet预训练可视化以及迁移学习应用 搜索 复制 阅读全文
posted @ 2022-05-11 22:20 山…隹 阅读(6) 评论(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 山…隹 阅读(71) 评论(0) 推荐(1) 编辑
摘要:import os import numpy as np from sklearn.model_selection import KFold import json ############################ 读取img数据名列表 ########################### 阅读全文
posted @ 2022-05-11 14:20 山…隹 阅读(97) 评论(0) 推荐(0) 编辑
摘要: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 山…隹 阅读(78) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示