![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
深度学习
文章平均质量分 55
Luchang-Li
这个作者很懒,什么都没留下…
展开
-
MNIST数据读取-numpy版本
MNIST数据集地址:http://yann.lecun.com/exdb/mnist/格式解释范例超简单的numpy读取代码:import numpy as nptrain_images_path = 'train-images.idx3-ubyte'train_labels_path = 'train-labels.idx1-ubyte'test_image...原创 2020-02-08 20:42:55 · 510 阅读 · 0 评论 -
使用国内镜像源安装pytorch
先设置镜像源,如清华的conda镜像(可参考其他博客)conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda...原创 2020-01-31 21:58:58 · 16315 阅读 · 3 评论 -
TensorFlow通过raw_ops调用底层op计算
example 1 简单加法import tensorflow as tfimport numpyx = 10y = 20a = tf.raw_ops.Add(x=x, y=y)# Start trainingwith tf.Session() as sess: # Run the initializer print(sess.run(a))...原创 2019-12-02 22:05:57 · 1944 阅读 · 6 评论 -
python 读写Matlab mat v7.3文件
主要使用了hdf5storage这个模块比h5py更好用,而且h5py还存在读入数据维度跟matlab不一致的问题import hdf5storage # get code on https://pypi.python.org/pypi/hdf5storage/0.1.3import numpy as np# 写入matdef WriteMatlab(data_np, VarN...原创 2019-01-09 23:49:42 · 7205 阅读 · 0 评论 -
python 读写tiff文件
最简单的方式莫过于import tifffile as tiffa = tiff.imread(r'G:\MMStack120x120x4000.tif')tiff.imsave('new.tiff', a)之前的libtiff 已经停止更新,而且远没有这个模块好用参考https://stackoverflow.com/questions/18446804/python...原创 2019-01-10 21:51:15 · 2645 阅读 · 2 评论 -
学霸与学渣
学霸: 数学建模,推导公式精确表达!学渣: 数学仿真,曲线拟合数值近似!现在深度学习横行的时代,什么问题都可以拿来用用,其本质就是数值近似,学渣完败学霸。虽然我们是渣渣,做不到100分,但是经过折中还是能把事情搞定! 一群专家潜心研究先进的机器学习方法,目的就是让其他人不需要深厚的专家知识和理论基础就能解决问题,这到底是好还是不好?...原创 2018-05-20 16:11:04 · 382 阅读 · 0 评论 -
python读写图像的几种方式,PIL,imageio,pylibtiff
scikit-image提供了丰富的图像读写,处理操作参考【Tensorflow】辅助工具篇——scikit-image介绍直接支持读写浮点TIFF图像from skimage import ioimg = io.imread('testimg.tif')import numpy as npdata=np.random.random([100,100])io.i...原创 2018-06-04 11:20:17 · 44575 阅读 · 2 评论 -
OpenBLAS windows 10 编译
参考了以下几个网页并编译成功https://www.openblas.net/https://github.com/xianyi/OpenBLASWindows下MSYS2中编译OpenBLAS过程记录https://www.aliyun.com/jiaocheng/872229.html?spm=5176.100033.2.9.NAgG25Win7 64Bit + VS201...原创 2018-08-09 19:09:06 · 5708 阅读 · 1 评论 -
CMake The CUDA compiler identification is unknown
编译MXNet代码一直被CMake卡在了找不到Cuda编译器,原来是安装的CDUA版本要和Visual studio匹配才行,也就是选择Visual studio能够编译相应的CUDA,因为CUDA往往不能匹配新版本的编译器。 ...原创 2018-08-09 20:37:18 · 5568 阅读 · 6 评论 -
windows 10 MXNet 1.2.1 C++编译
MXNet是C++开发非常友好的深度学习框架!虽然比不上Python,但是相比其他深度学习框架,MXNet C++开发非常容易入手。 官网http://mxnet.incubator.apache.org/https://github.com/apache/incubator-mxnet官方的windows下C++安装流程http://mxnet.incubator.apa...原创 2018-08-11 00:46:04 · 2583 阅读 · 2 评论 -
Protocol Buffers protoc missing input file
还是要看官方原版的说明才管用https://developers.google.com/protocol-buffers/https://developers.google.com/protocol-buffers/docs/cpptutorialCompiling Your Protocol BuffersNow that you have a .proto, the next ...原创 2018-08-06 21:48:19 · 6050 阅读 · 1 评论 -
windows10 intel mkl-dnn编译
官方网址https://github.com/intel/mkl-dnnhttps://github.com/intel/mkl-dnn/releaseshttps://software.intel.com/en-us/articles/intel-mkl-dnn-part-1-library-overview-and-installationhttps://software.in...原创 2018-08-11 15:27:12 · 3740 阅读 · 4 评论 -
MXNet C++ 保存和加载模型参数
// infer args automatically std::map<std::string, NDArray> args_map; args_map["data"] = NDArray(Shape(batch_size, 1, image_high, image_wdith), ctx_dev); net.InferArgsMap(ctx_de...原创 2018-08-19 15:37:19 · 1365 阅读 · 0 评论 -
在 Windows 上安装 TensorFlow 官方流程
请参考:https://tensorflow.google.cn/install/在 Windows 上安装 TensorFlowhttps://www.tensorflow.org/install/install_windowshttps://tensorflow.google.cn/install/install_windows另外可以使用Colabora...原创 2018-05-03 10:42:59 · 20832 阅读 · 0 评论