Skip to content

Instantly share code, notes, and snippets.

王嘉楠 lan2720

Block or report user

Report or block lan2720

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View caffe_makefile_config
## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!
# cuDNN acceleration switch (uncomment to build with cuDNN).
USE_CUDNN := 1
# CPU-only switch (uncomment to build without GPU support).
# CPU_ONLY := 1
# uncomment to disable IO dependencies and corresponding data layers
View excel操作之粘贴时跳过隐藏行
Sub 粘贴时跳过隐藏行()
startRow = 2
endRow = 1603
startCol = 4
endCol = 5
srcStartCol = 1
Dim Rng As Range
@lan2720
lan2720 / train.config
Created Sep 17, 2018
config for object detection
View train.config
# SSD with Mobilenet v1 configuration for MSCOCO Dataset.
# Users should configure the fine_tune_checkpoint field in the train config as
# well as the label_map_path and input_path fields in the train_input_reader and
# eval_input_reader. Search for "PATH_TO_BE_CONFIGURED" to find the fields that
# should be configured.
model {
ssd {
num_classes: 1
box_coder {
View thread_queue_read_batch_data.py
from multiprocessing import Queue
from threading import Thread
import time
def data_generator():
for ex in range(380):
yield ex
View vimrc
set fileencodings=utf-8
set termencoding=utf-8
set encoding=utf-8
" 开启语法高亮
syntax enable
" 开启语法高亮
syntax on
@lan2720
lan2720 / allennlp_srl.py
Last active Mar 6, 2019
Demo for using AllenNLP Semantic Role Labeling (http://allennlp.org/)
View allennlp_srl.py
"""
Usage:
python allennlp_srl.py \
https://s3-us-west-2.amazonaws.com/allennlp/models/srl-model-2017.09.05.tar.gz \
examples.json
Note:
each line in examples.json is one sentence, such as:
Which NFL team represented the AFC at Super Bowl 50?
Where did Super Bowl 50 take place?
View MergeSort.java
/**
* Created by lan2720 on 15/11/10.
*/
public class MergeSort {
public static void merge_1(int[] A, int p, int q, int r){
/**
* 这种merge使用了哨兵
*/
// get the number of integer of each subArray
int n1 = q - p + 1;
You can’t perform that action at this time.