Skip to content

Instantly share code, notes, and snippets.

/**
* 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;
set fileencodings=utf-8
set termencoding=utf-8
set encoding=utf-8
" 开启语法高亮
syntax enable
" 开启语法高亮
syntax on
from multiprocessing import Queue
from threading import Thread
import time
def data_generator():
for ex in range(380):
yield ex
@lan2720
lan2720 / train.config
Created September 17, 2018 13:17
config for object detection
# 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 {
Sub 粘贴时跳过隐藏行()
startRow = 2
endRow = 1603
startCol = 4
endCol = 5
srcStartCol = 1
Dim Rng As Range
## 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
@lan2720
lan2720 / cvInterview.md
Last active July 5, 2019 03:29
cvInterview

TODO

  • [] VGG11
  • [] FCN
  • [] UNet
  • [] STN

基础概念

1*1卷积

  1. 可以增加/减少channel
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lan2720
lan2720 / allennlp_srl.py
Last active June 5, 2021 14:02
Demo for using AllenNLP Semantic Role Labeling (http://allennlp.org/)
"""
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?
@lan2720
lan2720 / Whitening.ipynb
Created July 15, 2021 12:14
Whitening.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.