#前言 由于大家都懂的, 国内使用go get的时候, 经常会各种失败, 如果有vpn的话, 打开vpn, 问题就解决了, 但vpn其实挺不灵活的.
相对来说shadowsock则灵活得多.
#解决方案 shadowsock + Privoxy
思路就是, 使用shadowsock建立一个本地sock5代理, 但因为go get 需要http代理, 所以需要使用privoxy把sock5代理转为http代理.
name: "DSSSH" | |
layer { | |
name: 'input-data' | |
type: 'Python' | |
top: 'data' | |
top: 'im_info' | |
top: 'gt_boxes' | |
python_param { | |
module: 'roi_data_layer.layer' |
#前言 由于大家都懂的, 国内使用go get的时候, 经常会各种失败, 如果有vpn的话, 打开vpn, 问题就解决了, 但vpn其实挺不灵活的.
相对来说shadowsock则灵活得多.
#解决方案 shadowsock + Privoxy
思路就是, 使用shadowsock建立一个本地sock5代理, 但因为go get 需要http代理, 所以需要使用privoxy把sock5代理转为http代理.
# If you have Python 3 installed (which is recommended): | |
python3 -m pip install --upgrade pip | |
python3 -m pip install jupyter | |
# If you have Python 2 installed: | |
# python -m pip install --upgrade pip | |
# python -m pip install jupyter | |
# Add python2 kernel | |
python2 -m pip install ipykernel | |
python2 -m ipykernel install --user |
# Build tools: | |
sudo apt-get install -y build-essential cmake | |
# GUI | |
sudo apt-get install -y libgtk-3-dev | |
# Media I/O: | |
sudo apt-get install -y zlib1g-dev libjpeg-dev libwebp-dev libpng-dev libtiff5-dev libjasper-dev libopenexr-dev libgdal-dev | |
# Video I/O: |
name: "VGG_ILSVRC_16_layers" | |
layer { | |
name: "data" | |
type: "Data" | |
include { | |
phase: TRAIN | |
} | |
transform_param { | |
crop_size: 224 | |
mean_value: 104 |
# ***************************************************************** # | |
# SSH: Single Stage Headless Face Detector | |
# Train Prototxt | |
# Written by Mahyar Najibi | |
# ***************************************************************** # | |
name: "SSH" | |
# layer { | |
# name: 'input-data' | |
# type: 'Python' |
name: "VGG_ILSVRC_16_layers" | |
layer { | |
name: 'input-data' | |
type: 'Python' | |
top: 'data' | |
top: 'im_info' | |
top: 'gt_boxes' | |
python_param { | |
module: 'roi_data_layer.layer' | |
layer: 'RoIDataLayer' |
# Reference: | |
# http://blog.csdn.net/weixin_35653315/article/details/71015845 | |
# Copyright 2017 Google LLC | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# https://www.apache.org/licenses/LICENSE-2.0 |
# Capture Video from Camera | |
import numpy as np | |
import cv2 | |
cap = cv2.VideoCapture(0) | |
while(True): | |
# Capture frame-by-frame | |
ret, frame = cap.read() |
--- | |
Language: Cpp | |
# BasedOnStyle: LLVM | |
AccessModifierOffset: -2 | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: true | |
AlignConsecutiveDeclarations: true | |
AlignEscapedNewlines: Right | |
AlignOperands: true | |
AlignTrailingComments: true |