空洞骑士
Posted on
Edited on
太喜欢这个游戏了,在Youtube上找教程学了两天的Blender,做了一个主角。
Ubuntu-16.04 安装Tensorflow-GPU
Posted on
Edited on
安装nVidia显卡驱动
在官网下载驱动,直接安装就可以。需要注意的是,在安装的时候,如果提示gcc版本不一致,那么最好安装一致版本号的。并且在后面需要添加参数–no-opengl-files
Installing CUDA 7.5 with Ubuntu 16.04 or Ubuntu 14.04
安装CUDA
在官网下载工具包,1个主包,4个补丁包,依次安装。注意版本号为9.0。
安装cuDNN
在官网下载以后,解压缩,再把里面的cuda目录拷贝到上面CUDA的安装位置,默认为:/usr/local/cuda/。注意,下载的版本号需要和上面CUDA版本号保持对应。
配置路径
1 | export PATH=$PATH:/usr/local/cuda/bin |
安装Tensorflow-GPU
1 | pip install tensorflow-gpu==1.12 |
注意:1.12版本的Tensorflow-GPU才是和上面9.0版本的CUDA对应的。如果安装1.13版本的Tensorflow-GPU,那么会调用10.0版本的CUDA。
把Windows Sub Linux移动到其他地方
Posted on
Edited on
图片处理公式
Posted on
Edited on
调整亮度和对比度
$g(x)=\alpha \times f(x) + \beta$
- $g(x)$ 输出像素
- $f(x)$ 输入像素
- $\alpha$ 对比度
- $\beta$ 亮度
- x 像素位置
RGB转灰度
- $Gray = (R + G + B) \div 3$
- $Gray = R \times 0.3 + G \times 0.59 + B \times 0.11$
- $Gray = R \times 0.2126 + G \times 0.7152 + B \times 0.0722$
- $Gray = R \times 0.299 + G \times 0.587 + B \times 0.114$
- $Gray = ( \max (R, G, B) + \min (R, G, B) ) \div 2$
- $Gray = \max (Red, Green, Blue)$
- $Gray = \min (Red, Green, Blue)$
位图字体制作工具bmfont-js发布
Posted on
Edited on