Skip to content

Instantly share code, notes, and snippets.

name: "DSSSH"
layer {
name: 'input-data'
type: 'Python'
top: 'data'
top: 'im_info'
top: 'gt_boxes'
python_param {
module: 'roi_data_layer.layer'
@walsvid
walsvid / golang, ubuntu go get in china.md
Created April 19, 2018 14:14 — forked from alexniver/golang, ubuntu go get in china.md
ubuntu下, 使用shadowsock和Privoxy帮助你在命令行中, 无障碍进行go get

#前言 由于大家都懂的, 国内使用go get的时候, 经常会各种失败, 如果有vpn的话, 打开vpn, 问题就解决了, 但vpn其实挺不灵活的.

相对来说shadowsock则灵活得多.

#解决方案 shadowsock + Privoxy

思路就是, 使用shadowsock建立一个本地sock5代理, 但因为go get 需要http代理, 所以需要使用privoxy把sock5代理转为http代理.

@walsvid
walsvid / Ubuntu-16.04-Jupyter-Install.sh
Last active April 19, 2018 14:12
[Ubuntu16.04 Jupyter 安装] Install guide of jupyter #python #jupyter
# 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
@walsvid
walsvid / Ubuntu-16.04-OpenCV-install.sh
Last active April 19, 2018 14:13
[Ubuntu16.04 OpenCV 安装] #opencv
# 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:
@walsvid
walsvid / vgg16.prototxt
Created March 20, 2018 02:33
[VGG16 prototxt] #caffe #vgg
name: "VGG_ILSVRC_16_layers"
layer {
name: "data"
type: "Data"
include {
phase: TRAIN
}
transform_param {
crop_size: 224
mean_value: 104
@walsvid
walsvid / SSH.prototxt
Created March 20, 2018 02:32
[SSH prototxt] #caffe #SSH
# ***************************************************************** #
# SSH: Single Stage Headless Face Detector
# Train Prototxt
# Written by Mahyar Najibi
# ***************************************************************** #
name: "SSH"
# layer {
# name: 'input-data'
# type: 'Python'
@walsvid
walsvid / faster-rcnn.prtotxt
Created March 20, 2018 02:31
[faster rcnn prototxt] #caffe #faster-rcnn
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'
@walsvid
walsvid / convert_to_tfrecord.py
Last active March 19, 2018 11:01
[conver pascal voc to tf record] #tensorflow
# 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
@walsvid
walsvid / opencv_camera.py
Created March 19, 2018 05:17
[opencv camera] #opencv
# Capture Video from Camera
import numpy as np
import cv2
cap = cv2.VideoCapture(0)
while(True):
# Capture frame-by-frame
ret, frame = cap.read()
@walsvid
walsvid / .clang-format
Created November 27, 2017 11:17
clang-format settings
---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignEscapedNewlines: Right
AlignOperands: true
AlignTrailingComments: true