使用下载Ubuntu Desktop ISO镜像(32位64位都可以)。 用光驱启动,选择试用Ubuntu。
访问:http://cdimage.ubuntu.com/ubuntu-core/releases/找到所需要的镜像文件。
使用Ubuntu LiveCD,下载所需镜像到home目录
| <?php | |
| include('connet.php'); | |
| /** | |
| * URL Login Class | |
| * URL登录 | |
| * 使用RSA加密算法 | |
| * | |
| * Copyright Kice | |
| **/ |
| 话说ZeroMQ是一个强大的库,可以跨平台和垮语言进行传输数据。 | |
| 最近在弄Go语言,google一下ZMQ还真有Go绑定:http://zeromq.org/bindings:go | |
| 里面已经有人完成了Go的封装,这里就直接下载代码: | |
| go get github.com/pebbe/zmq4 | |
| 同步完代码提示说没有gcc,不能用。 | |
| 因为向来不是很希望用Cygwin,于是就使用MinGW。不过在官网只有32位版(Go是用64位,家里也是64位Win8.1),还好有mingw64。 | |
| 搭建还是很简单: |
使用下载Ubuntu Desktop ISO镜像(32位64位都可以)。 用光驱启动,选择试用Ubuntu。
访问:http://cdimage.ubuntu.com/ubuntu-core/releases/找到所需要的镜像文件。
使用Ubuntu LiveCD,下载所需镜像到home目录
| import warnings | |
| warnings.filterwarnings("ignore") | |
| import mxnet as mx | |
| import numpy as np | |
| from skimage.measure import compare_ssim, compare_psnr | |
| from PIL import Image | |
| from mxnet.contrib.quantization import * | |
| import sys, os, argparse, time, ntpath, logging, logging.handlers |
| #include <string> | |
| #include <vector> | |
| #include <assert.h> | |
| #include <opencv/cv.hpp> | |
| template<class _Elem, | |
| class _Traits, | |
| class _Alloc> inline | |
| std::vector<std::basic_string<_Elem, _Traits, _Alloc>> split( |
| import os | |
| import argparse | |
| import json | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('-f', '--format', default='', type=str) | |
| parser.add_argument('-a', '--all', default=False, action='store_true') | |
| args = parser.parse_args() | |
| is_bsp_file = lambda fn: any(fn.endswith(ext) for ext in ['.bsp']) |
| import os | |
| import re | |
| import json | |
| import subprocess | |
| import argparse | |
| class Args(object): | |
| def __init__(self, **kwargs): | |
| for k, v in kwargs.items(): | |
| setattr(self, k, v) |
| import mxnet as mx | |
| import onnx | |
| import numpy as np | |
| import mxnet.contrib.onnx as onnx_mxnet | |
| model_name = 'somemodel' | |
| model_file = model_name + '.onnx' | |
| onnx_model = onnx.load(model_file) |
| // SMAGL is 0 or 2 | |
| // PixelType is uint8_t | |
| static void warp_c(const uint8_t *srcp8, const uint8_t *edgep8, uint8_t *dstp8, int src_stride, int edge_stride, int dst_stride, int width, int height, int depth, int bits_per_sample) | |
| { | |
| const uint8_t *srcp = (const uint8_t *)srcp8; | |
| const uint8_t *edgep = (const uint8_t *)edgep8; | |
| uint8_t *dstp = (uint8_t *)dstp8; | |
| src_stride /= sizeof(uint8_t); | |
| edge_stride /= sizeof(uint8_t); |
| using System; | |
| using System.Runtime.InteropServices; | |
| namespace CSProgressBar | |
| { | |
| public class ProgressBar | |
| { | |
| private readonly int maxLength; | |
| private int lastLen; |