Skip to content

Instantly share code, notes, and snippets.

View SoonminHwang's full-sized avatar

Soonmin Hwang SoonminHwang

View GitHub Profile
#define MSG_LINES 7
#define MSG_LINE_LENGTH 67
char message[MSG_LINES][MSG_LINE_LENGTH] = {
"## ## ### ## ## ## ## ### ## ## ###### ",
"## ## ## ## ### ## ## ## ## ## ### ## ## ## ",
"## ## ## ## #### ## #### ## ## #### ## ## ",
"######### ## ## ## ## ## ## ## ## ## ## ## ## #### ",
"## ## ######### ## #### ## ######### ## #### ## ## ",
"## ## ## ## ## ### ## ## ## ## ### ## ## ",
@SoonminHwang
SoonminHwang / flirfileformat.h
Created December 20, 2017 15:59
flirfileformat.h
/***********************************************************************
*
* Description of file:
* Definition of FFF fileformat
*
*
* Copyright: FLIR Systems AB
***********************************************************************/
#ifndef FFF_H
#define FFF_H
@SoonminHwang
SoonminHwang / camera_settings.cpp
Last active December 20, 2017 16:01
camera_settings.cpp
// 1. FlyCapture2 SDK
/* Property */
Property prop;
prop.type = propType;
mDevice->GetProperty( &prop );
prop.autoManualMode = bAutoManualMode;
prop.onOff = bOnOff;
prop.absValue = fAbsValue;
@SoonminHwang
SoonminHwang / Makefile.config
Last active December 5, 2017 11:17
Caffe 1.0 makefile.config for SDS-RCNN
## 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 := 0
# CPU-only switch (uncomment to build without GPU support).
# CPU_ONLY := 1
# uncomment to disable IO dependencies and corresponding data layers
@SoonminHwang
SoonminHwang / gist:e0956c2b369979c1dbbf3b3c10fe334f
Created October 30, 2017 02:40
acfDemoKAIST.m, Config3-Big
% Demo for aggregate channel features object detector on KAIST dataset.
%
% See also acfReadme.m
%
% Piotr's Computer Vision Matlab Toolbox Version 3.40
% Copyright 2014 Piotr Dollar. [pdollar-at-gmail.com]
% Licensed under the Simplified BSD License [see external/bsd.txt]
%
% 2015.06.02. Modified by Soonmin Hwang [smhwang-at-rcv.kaist.ac.kr]
% 2017.10.11. Update
@SoonminHwang
SoonminHwang / gist:e20832f61e1b7c58caf9163da16ffda2
Created October 30, 2017 02:22
ACF-variants evaluation script
% Tested on updated toolbox: https://soonminhwang.github.io/rgbt-ped-detection/
dataDir='data/kaist-rgbt/';
addpath( genpath( 'pdollar-toolbox' ) );
addpath( genpath( 'libs' ) );
pLoad={'lbls',{'person'},'ilbls',{'people','person?','cyclist'},'squarify',{3,.41}, ...
'hRng',[45 inf],'vType',{'none','partial'},'xRng',[5 635],'yRng',[5 475]};
ref = 10.^(-2:.25:0);
thr = .5;
@SoonminHwang
SoonminHwang / pytorch_jetson_install.sh
Created October 30, 2017 01:38 — forked from dusty-nv/pytorch_jetson_install.sh
Install procedure for pyTorch on NVIDIA Jetson TX1/TX2
#!/bin/bash
#
# pyTorch install script for NVIDIA Jetson TX1/TX2,
# from a fresh flashing of JetPack 2.3.1 / JetPack 3.0 / JetPack 3.1
#
# for the full source, see jetson-reinforcement repo:
# https://github.com/dusty-nv/jetson-reinforcement/blob/master/CMakePreBuild.sh
#
# note: pyTorch documentation calls for use of Anaconda,
# however Anaconda isn't available for aarch64.
Execute command: [
`which`
`cmake`
]
[/media/rcvlab/soonmin2017/gpu-acf/git/acf]> "which" "cmake"
/media/rcvlab/soonmin2017/gpu-acf/_ci/cmake/bin/cmake
Execute command: [
`cmake`
`--version`
]
subset = 'train';
year = '2017';
fid = fopen( sprintf('imageSets/%s/%s.txt', year, subset), 'r' );
categories = textscan( fid, '%s' );
categories = categories{1};
fclose( fid );
imgPath = 'JPEGImages/480p/%s';
annPath = 'Annotations/480p/%s';
# install dependencies
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y cmake
sudo apt-get install -y libgtk2.0-dev
sudo apt-get install -y pkg-config
sudo apt-get install -y python-numpy python-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install -y libjpeg-dev libpng-dev libtiff-dev libjasper-dev