Fakeapp

参考文章 https://jingyan.baidu.com/article/414eccf68706766b431f0af4.html 首先确认自己的机器能不能带的动fakeapp,显卡的显存要达到4GB,因为al换脸软件对GPU要求很高,显存低于4GB的话可能会带不起来软件的。内存要求至少要8GB,如果你的机器内存少于8GB,建议再加个内存条。 然后我们开始下载软件和相关的插件,首先下载fakeapp,在网上搜索就能下载,但是不是这一个软件就可以al换脸的,不然直接打开软件会提示你需要安装插件不能使用。然后我们搜索下载安装cuda9.0。 下载地址:https://developer.nvidia.com/cuda-90-download-archive 然后在网上下载core文件然后解压缩在fakeapp的目录里面,还需要下载vc++算法程序,一般来说系统自己会带有的。然后打开命令指示符,输入pip... Read More | Share it now!

k6

Installation Linux Debian/Ubuntu ⚠️ If you are behind a firewall or proxy There have been reports of users being unable to download the key from Ubuntu’s keyserver using apt-key command due to firewalls or proxies blocking... Read More | Share it now!

Helm install

This guide shows how to install the Helm CLI. Helm can be installed either from source, or from pre-built binary releases. From The Helm Project The Helm project provides two ways to fetch and install Helm. These are the official methods to get Helm... Read More | Share it now!

Secrets

Kubernetes secrets by example You don’t want sensitive information such as a database password or an API key kept around in clear text. Secrets provide you with a mechanism to use such information in a safe and reliable way with the following... Read More | Share it now!

Cross-Compiling Golang …

Compiling your go code into a binary is pretty simple: This will build the binary for your current OS and architecture. But compiling binaries for other operating systems and even architectures is also possible. You just need to modify a few... Read More | Share it now!

golang解析json格式 — 全

项目中客户端和服务端的交互数据部分为json,因此在服务端就得解析,复杂的json解析起来其实还是挺费劲的。 交互的数据类似如下格式: 需要将json格式中的w字段取出来,并且拼成结果串进行展示 从json数组中获取ws ws是数组,数组元素为object cw是数组,数组元素为object w是string 从cw遍历获取w字段 初步实现如下: 这样实现,一层一层去转换类型,再去获取元素有点麻烦。既然是已知的json数据结构,那么可以定义好结构体,再去进行解析。 注意定义的时候变量名第一个字母要大写,也可以使用工具来自动生成定义https://mholt.github.io/json-to-go/;用工具生成的挺漂亮: 上面的元素有json:"sn"强制说明,因此如果只需获取对应的元素,其他元素不定义也是可以的。另外还有一种数据就是数组当中的元素还是数组,并且最后数组包含的是number或者string类型,需要再重写一个函数才行,数据如下,获取当中的元素 搜索到一段代码如下,重新实现了UnmarshalJSON ... Read More | Share it now!

Nginx限制访问速率和最大并发连接数模块–limit (防止DDOS攻击)

Tengine版本采用http_limit_req_module进行限制 具体连接请参考 http://tengine.taobao.org/document_cn/http_limit_req_cn.html 和官方nginx类似,不过支持多个变量,并且支持多个limit_req_zone的设置。比如: limit_req_zone... Read More | Share it now!

Start/Stop Compute Engine Instance from Cloud function

https://medium.com/google-cloud/start-stop-compute-engine-instance-from-cloud-function-bf9ae5199609 I design a web service that will running on Google Compute Engine to do some long-time data processing task. The data will be stored at Cloud Storage... Read More | Share it now!