This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://raw.githubusercontent.com/CMU-Perceptual-Computing-Lab/convolutional-pose-machines-release/master/model/_trained_FLIC/pose_deploy.prototxt | |
input: "data" | |
input_dim: 1 | |
input_dim: 4 | |
input_dim: 368 | |
input_dim: 368 | |
layer { | |
name: "image" | |
type: "Slice" | |
bottom: "data" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "FCN" | |
input: "data" | |
input_dim: 1 | |
input_dim: 3 | |
input_dim: 500 | |
input_dim: 500 | |
layer { bottom: 'data' top: 'conv1_1' name: 'conv1_1' type: "Convolution" | |
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "pspnet101_cityscapes_713" | |
input: "data" | |
input_dim: 1 | |
input_dim: 3 | |
input_dim: 713 | |
input_dim: 713 | |
layer { | |
name: "conv1_1_3x3_s2" | |
type: "Convolution" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "ResNet-101" | |
input: "data" | |
input_dim: 1 | |
input_dim: 3 | |
input_dim: 224 | |
input_dim: 224 | |
layer { | |
bottom: "data" | |
top: "conv1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "ResNet-101" | |
layer { | |
name: "resnet_101" | |
type: "Data" | |
top: "data" | |
top: "label" | |
include { | |
phase: TRAIN | |
} | |
transform_param { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[snippets]] | |
description = "zip xxx folder" | |
command = "zip -zcvf xxx.zip xxx" | |
output = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
boost::chrono::nanoseconds start; | |
boost::chrono::nanoseconds end; | |
typedef boost::chrono::milliseconds ms; | |
ms d = boost::chrono::duration_cast<ms>(end - start); | |
// d now holds the number of milliseconds from start to end. | |
std::cout << ms.count() << "ms\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <dlib/svm_threaded.h> | |
#include <dlib/gui_widgets.h> | |
#include <dlib/image_processing.h> | |
#include <dlib/data_io.h> | |
#include <dlib/opencv.h> | |
#include <dlib/image_processing/frontal_face_detector.h> | |
#include <dlib/image_processing/render_face_detections.h> | |
typedef dlib::scan_fhog_pyramid<dlib::pyramid_down<6> > image_scanner_type; | |
dlib::object_detector<image_scanner_type> detector; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <set> | |
#include <iostream> | |
int main() | |
{ | |
std::set<int> c = {1, 2, 3, 4, 5, 6, 7, 8, 9}; | |
// erase all odd numbers from c | |
for(auto it = c.begin(); it != c.end(); ) | |
if(*it % 2 == 1) | |
it = c.erase(it); | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <map> | |
#include <vector> | |
#include <math.h> | |
using namespace std; | |
const int daySec=24*3600; | |
const int yearDay=365; | |
const int year400Day=400*yearDay+100-3; | |
const int year400Sec=year400Day*daySec; |
NewerOlder