会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
山…隹
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
···
29
下一页
2022年7月20日
tensorflow2——warmup+Cos衰减
摘要: class WarmUpCos(keras.callbacks.Callback): def __init__(self, lr_max,lr_min, warm_step,sum_step,bat): super(WarmUpCos, self).__init__() self.lr_max =
阅读全文
posted @ 2022-07-20 00:55 山…隹
阅读(190)
评论(0)
推荐(0)
2022年7月14日
tensorflow2.0--学习率调整(线性warmup,指数衰减)
摘要: class WarmUpLineDecayScheduler(keras.callbacks.Callback): def __init__(self, lr_max,lr_min, warm_step,sum_step,bat): super(WarmUpLineDecayScheduler, s
阅读全文
posted @ 2022-07-14 19:34 山…隹
阅读(536)
评论(0)
推荐(0)
2022年7月10日
tensorflow2.0--计算模型的时间复杂度(计算量)
摘要: from keras_flops import get_flops model = ... # Calculae FLOPS flops = get_flops(model, batch_size=1) print(f"FLOPS: {flops / 10 ** 9:.03} G") 原文档:htt
阅读全文
posted @ 2022-07-10 20:57 山…隹
阅读(514)
评论(0)
推荐(0)
2022年7月4日
linux使用绝对路径import
摘要: import os, sys lib_path = os.path.abspath(os.path.join('../../')) sys.path.append(lib_path) print('sys.path:',sys.path) 搜索 复制
阅读全文
posted @ 2022-07-04 17:20 山…隹
阅读(40)
评论(0)
推荐(0)
linux无root权限安装screen
摘要: 1.先安装nurse 防止screen安装报错 https://blog.csdn.net/qq_39245082/article/details/122129145?spm=1001.2101.3001.6661.1&utm_medium=distribute.pc_relevant_t0.non
阅读全文
posted @ 2022-07-04 10:55 山…隹
阅读(712)
评论(0)
推荐(0)
python环境一键导出导入
摘要: https://www.bilibili.com/read/cv15170107/ 环境导出conda env export > requirements.yaml环境导入conda env create -f requirements.yaml 搜索 复制
阅读全文
posted @ 2022-07-04 10:15 山…隹
阅读(66)
评论(0)
推荐(0)
2022年6月28日
cv2 canny 边缘检测
摘要: import numpy as np import cv2 import matplotlib.pyplot as plt img_path = r'C:\Kaggle\Ultrasound_nerve_seg\train/1_1_mask.tif' val_path = './data/train
阅读全文
posted @ 2022-06-28 21:00 山…隹
阅读(119)
评论(0)
推荐(0)
2022年6月6日
Tensor has no ... numpy()报错
摘要: #添加 tf.executing_eagerly() tf.config.run_functions_eagerly(True) 搜索 复制
阅读全文
posted @ 2022-06-06 18:39 山…隹
阅读(32)
评论(0)
推荐(0)
2022年6月4日
conda创造环境
摘要: (sudo) conda create --quiet --yes --name myenv1 conda activate myenv1 进入conda list 列出下载的包conda deactivate 退出conda env remove -n testenv 删除环境 搜索 复制
阅读全文
posted @ 2022-06-04 21:13 山…隹
阅读(41)
评论(0)
推荐(0)
2022年6月1日
glob通配文件名
摘要: import glob mg_path = glob.glob(r'../faces/*.jpg') 搜索 复制
阅读全文
posted @ 2022-06-01 00:12 山…隹
阅读(26)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
29
下一页
公告