自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 GPU服务器环境配置

下载早期版本的whl文件:https://download.pytorch.org/whl/torch_stable.html

2021-03-23 16:45:55 1454 1

原创 matlab基础语法

size(matrix):查看矩阵各维度长度permute(matrix, dimorder):按照dimorder重排各个维度,与reshape不同reshape(matrix, newshape):按照newshape改变矩阵的形状

2021-03-11 21:36:30 124

原创 从google drive上下载大文件

前提:有一个翻墙软件直接从网页下载慢且容易断线,从客户端下载就好很多安装google drive for desktop:链接

2021-03-10 11:11:40 3817

原创 make a PR on github

首先进入作者的repository,点击Fork,克隆出一个属于自己的repository,在其中的任何修改不会影响作者的repository复制自己的repository链接,并下载git clone <link>进入目标文件夹后,新建一个分支并命名git checkout -b <branch name>修改文件git add <modified files name>git commit -m "explain what y..

2021-03-09 22:18:27 133

原创 手动实现keras.utils.to_categorical

def to_categorical_1d(train_labels): ret = np.zeros((len(train_labels), train_labels.max()+1)) ret[np.arange(len(ret)), train_labels] = 1 return reta = np.array([5, 0, 4, 1, 9, 2, 1, 3, 1, 4])R = to_categorical_1d(a)print(a)print(R)[5 0

2021-03-07 15:12:01 143

原创 jupyterlab基础配置

修改conda的default working directory命令行输入jupyter lab --generate-config,效果为在C:\Users\<username>\.jupyter下创建配置文件jupyter_notebook_config.py修改该文件中的c.ServerApp.root_dir条目为想要的工作目录即可interactive matplotlib参考conda install -y nodejspip install ipympljup

2021-03-06 20:34:59 256

原创 求解argmin |Ax|

问题:给定矩阵 AAA, 求解x0=arg min⁡x∥Ax∥\boldsymbol{x_0} = \argmin_\boldsymbol{x}\|A\boldsymbol{x}\|x0​=xargmin​∥Ax∥解:∥Ax∥2=∥UDV⊤x∥2=∥DV⊤x∥2=∥y∥=1y=V⊤x∥Dy∥2=(σ1y1+⋯+σryr)2≥σr2\begin{aligned}\|Ax\|^2 & = \|UDV^\top x\|^2 \\ & = \|DV^\top x\|^2 \\&a

2021-03-03 21:57:42 751

原创 ubuntu的conda虚拟环境下安装OpenEXR

安装依赖环境:sudo apt install libopenexr-devpip install openexr如果是在conda虚拟环境下安装,可能会报链接错误:解决方法非常暴力,直接把库拷贝到虚拟环境下:cd ~/miniconda3/envs/<env_name>/libcp /usr/lib/x86_64-linux-gnu/libIex* .cp /usr/lib/x86_64-linux-gnu/libImath* .cp /usr/lib/x86_64-lin.

2021-03-03 16:25:14 394

原创 image downsampling in python

1 适用于灰度图像或者三通道图像的降采样def downsampling(img, k): """ Down-sample an image of shape (h, w) into an image of shape(h/k, w/k), by averaging every k*k elements. img: an image of 2D or 3D k: edge length of the kernel Can apply t

2021-03-02 01:22:07 1049

原创 dcraw使用小结

查看照片信息:dcraw -i -v [image]color options-w: use the white balance specified by camera-o 1: specify output color space as sRGBinterpolation options-q 3: interpolation with highest quality-d/D/E: no interpolationoutput options-4: linear 16 bit-T: w

2021-03-01 11:47:49 491

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除