Here's what I did to get things working.
Yep, over at: https://developer.apple.com
| import os | |
| import torch | |
| import argparse | |
| from maskrcnn_benchmark.config import cfg | |
| from maskrcnn_benchmark.utils.c2_model_loading import load_c2_format | |
| def removekey(d, listofkeys): | |
| r = dict(d) | |
| for key in listofkeys: |
| ubuntu 14.04 64bit caffe model -> ncnn model -> ncnn android ->android apk | |
| 0、protobuf 安装 //没这玩意儿opencv都编译不过 | |
| sudo apt-get install autoconf automake libtool curl make g++ unzip | |
| git clone https://github.com/google/protobuf.git | |
| ./autogen.sh | |
| ./configure | |
| make | |
| make check | |
| sudo make install |
| #!/bin/bash | |
| set -o nounset | |
| set -o errexit | |
| # Required! | |
| # downloads/ directory with: | |
| # cuda_8.0.27_linux.run with md5 checksum: bea6165ccd0a6690cac04ed9544bbe57 | |
| # cudnn-8.0-linux-x64-v5.0-ga.tgz with md5 checksum: be1896b0db052a7ca06a062262c4b842 | |
| NVIDIA_FILENAME=NVIDIA-Linux-x86_64-367.27.run |
| #include <cuda_runtime.h> | |
| #include <cstring> | |
| #include <cstdlib> | |
| #include <vector> | |
| #include <string> | |
| #include <iostream> | |
| #include <stdio.h> | |
| #include "caffe/caffe.hpp" |
Here's what I did to get things working.
Yep, over at: https://developer.apple.com
| #!/usr/bin/env ruby | |
| exit unless ARGV.length == 1 | |
| files = Dir.glob(ARGV[0] + '/*.txt') | |
| files.each do |file| | |
| name = nil; | |
| File.new(file).each_line do |line| | |
| next if line[0] == '#' |
| term_.prefs_.set('color-palette-overrides', {"0":"#073642","1":"#dc322f","2":"#E4E465","3":"#b58900","4":"#268bd2","5":"#d33682","6":"#2aa198","7":"#eee8d5","8":"#002b36","9":"#cb4b16","10":"#586e75","11":"#657b83","12":"#839496","13":"#6c71c4","14":"#93a1a1","15":"#fdf6e3"}); | |
| term_.prefs_.set('background-color', '#002b36'); | |
| term_.prefs_.set('cursor-color', '#eee8d5'); | |
| term_.prefs_.set('foreground-color', '#eee8d5'); |
This re-styles your sublime text sidebar to be dark, it fits default Monokai theme.
Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.
Based on:
| #include "FlyCapture2.h" | |
| #include <opencv2/core/core.hpp> | |
| #include <opencv2/highgui/highgui.hpp> | |
| #include <iostream> | |
| using namespace FlyCapture2; | |
| int main() |