上一页 1 2 3 4 5 6 7 ··· 29 下一页
摘要: ## 读取图像,解决imread不能读取中文路径的问题 def cv_imread(filePath): # 核心就是下面这句,一般直接用这句就行,直接把图片转为mat数据 cv_img=cv2.imdecode(np.fromfile(filePath,dtype=np.uint8),-1) # 阅读全文
posted @ 2022-05-27 16:22 山…隹 阅读(181) 评论(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 山…隹 阅读(416) 评论(0) 推荐(0) 编辑
摘要: https://www.youtube.com/watch?v=hTpq9lzAb8M unet预训练可视化以及迁移学习应用 搜索 复制 阅读全文
posted @ 2022-05-11 22:20 山…隹 阅读(5) 评论(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 山…隹 阅读(64) 评论(0) 推荐(1) 编辑
摘要: import os import numpy as np from sklearn.model_selection import KFold import json ############################ 读取img数据名列表 ########################### 阅读全文
posted @ 2022-05-11 14:20 山…隹 阅读(90) 评论(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 山…隹 阅读(73) 评论(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 山…隹 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 111 阅读全文
posted @ 2022-04-24 15:54 山…隹 阅读(8) 评论(0) 推荐(0) 编辑
摘要: import pickle import numpy as np data = np.array([ [3,5,6], [1,2,5] ]) # 存储 file = open('data.pkl','wb+') pickle.dump(data,file) file.close() # 加载 fil 阅读全文
posted @ 2022-04-19 17:39 山…隹 阅读(25) 评论(0) 推荐(0) 编辑
摘要: # def drop_path(inputs, keep_prob, is_training=True, scope=None):def drop_path(inputs, keep_prob, is_training=True): """Drops out a whole example hidd 阅读全文
posted @ 2022-04-16 22:48 山…隹 阅读(125) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 29 下一页