会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wioponsen
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
下一页
2020年9月27日
pytorch将部分参数进行加载
摘要: 参考: https://blog.csdn.net/LXX516/article/details/80124768 示例代码: 加载相同名称的模块 pretrained_dict=torch.load(model_weight) model_dict=myNet.state_dict() # 1.
阅读全文
posted @ 2020-09-27 09:58 wioponsen
阅读(2168)
评论(0)
推荐(0)
2020年9月24日
模型训练技巧
摘要: 参考知乎: https://juejin.im/post/6844903711123193870
阅读全文
posted @ 2020-09-24 14:32 wioponsen
阅读(126)
评论(0)
推荐(0)
模型参数初始化
摘要: 参考: https://cloud.tencent.com/developer/article/1437995 https://www.cnblogs.com/wanghui-garcia/p/11385160.html 1.4、参数初始化的几点要求 (1)参数不能全部初始化为0,也不能全部初始化同
阅读全文
posted @ 2020-09-24 13:45 wioponsen
阅读(2173)
评论(0)
推荐(0)
2020年9月18日
pytorch debug 出现 'Broken pipe' 错误
摘要: 出现错误的原因是因为Dataloader的多线程问题 Google结果显示是Pytorch在win10中的debug,暂不支持多线程,把num_worker改为0问题解决; 查看官方文档结果如下: 也是建议我们把num_worker设为0,再逐步Debug检测Code。 另外,针对程序在运行模式下,
阅读全文
posted @ 2020-09-18 10:11 wioponsen
阅读(581)
评论(0)
推荐(0)
2020年9月17日
图像压缩中常见的一些压缩伪影(compresaion artifact)
摘要: 参考网页; https://www.jianshu.com/p/dbeec7b682f3 常见的伪影: Ringing(振铃效应) 振铃效应的产生主要是由于高频分量的损失和高频分量精度的损失引起。 Posterized(色调分离) 当图像颜色的位深度减少太多以至于产生视觉冲击时就会出现色调分离。 造
阅读全文
posted @ 2020-09-17 13:35 wioponsen
阅读(2699)
评论(0)
推荐(0)
2020年9月15日
pytorch 使用的时候的 model.train() 和 model.eval()
摘要: Do need to use model.eval() when I test? Sure, Dropout works as a regularization for preventing overfitting during training. It randomly zeros the ele
阅读全文
posted @ 2020-09-15 11:30 wioponsen
阅读(907)
评论(0)
推荐(0)
importlib.import_module() 的使用
摘要: 参考: https://www.cnblogs.com/romangao/p/13052809.html https://blog.csdn.net/xie_0723/article/details/78004649 对于这样的文件结构: classfication #文件夹 │run.py ├─m
阅读全文
posted @ 2020-09-15 11:07 wioponsen
阅读(3115)
评论(0)
推荐(0)
2020年8月31日
tf.extract_image_patches函数的理解
摘要: ####示例: input_patch = tf.extract_image_patches(input, ksizes=[1, patch_sz, patch_sz, 1], strides=[1, 1, 1, 1], rates=[1, rates, rates, 1], padding="SA
阅读全文
posted @ 2020-08-31 14:46 wioponsen
阅读(1264)
评论(0)
推荐(0)
tensorflow获取随机数的常用方法和示例
摘要: tf.random_normal: 产生正态分布的随机数。 参数(shape,stddev,mean,dtype) tf.random_uniform: 产生[0,1)之间的随机数,也可制定产生[minval,maxval)的随机数 例子: x = tf.constant(1.0,dtype=tf.
阅读全文
posted @ 2020-08-31 14:17 wioponsen
阅读(1059)
评论(0)
推荐(0)
数据集shuffle方法中buffer_size的理解
摘要: 问题描述: TensorFlow中dataset方法中 dataset = dataset.shuffle(buffer_size=20).repeat().batch(batch_size) 其中shuffle的buffer_size是有什么用? 答: 是做随机采样使用的缓冲大小,buffer_s
阅读全文
posted @ 2020-08-31 10:28 wioponsen
阅读(1583)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
下一页
公告