上一页 1 2 3 4 5 6 7 ··· 29 下一页
摘要: import glob mg_path = glob.glob(r'../faces/*.jpg') 搜索 复制 阅读全文
posted @ 2022-06-01 00:12 山…隹 阅读(24) 评论(0) 推荐(0)
摘要: # 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)
摘要: ## 读取图像,解决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)
摘要: 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)
摘要: 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)
摘要: import os import numpy as np from sklearn.model_selection import KFold import json ############################ 读取img数据名列表 ########################### 阅读全文
posted @ 2022-05-11 14:20 山…隹 阅读(106) 评论(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 山…隹 阅读(82) 评论(0) 推荐(0)
摘要: 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)
摘要: 111 阅读全文
posted @ 2022-04-24 15:54 山…隹 阅读(11) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 29 下一页