Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View zhanglaplace's full-sized avatar
🎯
Focusing

zhangfeng13 zhanglaplace

🎯
Focusing
  • Baidu
  • BeiJing
View GitHub Profile
@zhanglaplace
zhanglaplace / gist:8856be8e748ba019aa76702522b5a549
Last active December 11, 2018 07:36
mobileNetV2_deploy.prototxt
input: "data"
input_dim: 1
input_dim: 3
input_dim: 224
input_dim: 224
layer {
name: "conv1"
type: "Convolution"
bottom: "data"
top: "conv1"
@zhanglaplace
zhanglaplace / gist:930555e871ad716e3820a28212184119
Created December 11, 2018 07:32
mobileNetV1_deploy.prototxt
name: "MOBILENET"
# transform_param {
# scale: 0.017
# mirror: false
# crop_size: 224
# mean_value: [103.94,116.78,123.68]
# }
input: "data"
input_dim: 1
input_dim: 3
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'
name: "multi_patch_layers"
layer {
name: "left_eye"
type: "Input"
top: "left_eye"
input_param { shape: { dim: 128 dim: 64 dim: 30 dim: 30 } }
}
layer {
name: "DENSENET_201"
input: "data"
input_dim: 1
input_dim: 3
input_dim: 224
input_dim: 224
layer {
name: "conv1"
type: "Convolution"
bottom: "data"
name: "DENSENET_169"
input: "data"
input_dim: 1
input_dim: 3
input_dim: 224
input_dim: 224
layer {
name: "conv1"
type: "Convolution"
bottom: "data"
name: "DENSENET_161"
input: "data"
input_dim: 1
input_dim: 3
input_dim: 224
input_dim: 224
layer {
name: "conv1"
type: "Convolution"
bottom: "data"
@zhanglaplace
zhanglaplace / plot_ROC.cpp
Last active September 29, 2017 04:04
ROC
#ifndef _UTILS_H__
#define _UTILS_H__
#include <iostream>
#include <map>
#include <algorithm>
#include <opencv2/opencv.hpp>
#include <fstream>
typedef std::map<float, int> MAP;
/*******************************************************************
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.
You may assume the two numbers do not contain any leading zero, except the number 0 itself.
Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)
Output: 7 -> 0 -> 8
*******************************************************************/
/**
* Definition for singly-linked list.
@zhanglaplace
zhanglaplace / baidu2017.cpp
Last active September 5, 2017 05:56
4offer
/*********************************
度度熊想去商场买一顶帽子,商场里有N顶帽子,有些帽子的价格可能相同。度度熊想买一顶价格第三便宜的帽子,问第三便宜的帽子价格是多少?
输入描述:
首先输入一个正整数N(N <= 50),接下来输入N个数表示每顶帽子的价格(价格均是正整数,且小于等于1000)
输出描述:
如果存在第三便宜的帽子,请输出这个价格是多少,否则输出-1
输入例子1:
10
10 10 10 10 20 20 30 30 40 40
输出例子1: