会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
U_C
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
11
下一页
2020年2月24日
安装完cuda之后 安装cudnn
摘要: nvcc --version(自己安装的cuda版本) 版本需要和nvidia-smi查看到的cuda版本(nvidia驱动对应的cuda版本)一致 1、解压:tar zxvf cudnn-10.1-linux-x64-v7.5.0.56.tgz include lib64两个文件夹 2、cuda安
阅读全文
posted @ 2020-02-24 10:01 U_C
阅读(799)
评论(1)
推荐(1)
2019年12月24日
C++ base64 opencv Mat 转换
摘要: static std::string base64Decode(const char* Data, int DataByte) { //解码表 const char DecodeTable[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
阅读全文
posted @ 2019-12-24 16:01 U_C
阅读(1893)
评论(0)
推荐(0)
2019年12月13日
numpy库数组属性查看:类型、尺寸、形状、维度
摘要: import numpy as np q = np.array([1,2,3,4],dtype=np.complex128) print("数据类型",type(q)) #打印数组数据类型 print("数组元素数据类型:",q.dtype) #打印数组元素数据类型 print("数组元素总数:",
阅读全文
posted @ 2019-12-13 14:55 U_C
阅读(9995)
评论(0)
推荐(0)
2019年11月22日
pytorch dataloader 取batch_size时候 出现bug
摘要: 1、RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 342 and 281 in dimension 3 at /pytorch/aten/src/TH/generic/
阅读全文
posted @ 2019-11-22 17:28 U_C
阅读(1976)
评论(0)
推荐(0)
2019年11月20日
pytorch 加载训练好的模型做inference
摘要: 前提: 模型参数和结构是分别保存的 1、 构建模型(# load model graph) model = MODEL() 2、加载模型参数(# load model state_dict) model.load_state_dict ( { k.replace('module.',''):v fo
阅读全文
posted @ 2019-11-20 10:52 U_C
阅读(3185)
评论(0)
推荐(0)
2019年11月11日
关于Python3 打印中文乱码问题
摘要: 解决方案有两种: 在命令行前指定编码 $ PYTHONIOENCODING=utf-8 python test.py hello world 你好,世界 在代码中指定编码 import io import sys sys.stdout = io.TextIOWrapper(sys.stdout.bu
阅读全文
posted @ 2019-11-11 10:35 U_C
阅读(4812)
评论(0)
推荐(1)
2019年11月6日
卷积核输出维度计算
摘要: 卷积层: 参数:W:宽; H:高; D:深度; K:卷积核的个数; F:卷积核的大小; S:步长; P:用0填充 卷积后输出:W或H=[(输入大小-卷积核大小+2*P)/步长] +1. 不能整除时,一般去掉小数部分取整,如4.5,则取4 上图中的 output =[(7-3)+2*1]/1 +1 =
阅读全文
posted @ 2019-11-06 14:23 U_C
阅读(1612)
评论(0)
推荐(0)
卷积神经网络中的通道 channel
摘要: 卷积神经网络中 channels 分为三种: (1):最初输入的图片样本的 channels ,取决于图片类型,比如RGB, channels=3 (2):卷积操作完成后输出的 out_channels ,取决于卷积核的数量。此时的 out_channels 也会作为下一次卷积时的卷积核的 in_c
阅读全文
posted @ 2019-11-06 14:09 U_C
阅读(5494)
评论(0)
推荐(2)
ubuntu 16.04 换源
摘要: 1、第一步:备份原来的源文件 cd /etc/apt/ 命令 cp sources.list sources.list.bak 将sources.list备份到sources.list.bak 第二步:替换源 sudo gedit sources.list打开文件,替换成阿里云文件即可 第三步:更新
阅读全文
posted @ 2019-11-06 11:28 U_C
阅读(2493)
评论(0)
推荐(0)
2019年10月29日
pytorch 多GPU训练过程中出现ap=0情况
摘要: 原因可能是pytorch 自带的BN bug:安装nvidia apex 可以解决: $ git clone https://github.com/NVIDIA/apex $ cd apex $ pip install -v --no-cache-dir --global-option="--cpp
阅读全文
posted @ 2019-10-29 09:23 U_C
阅读(547)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
11
下一页
公告