Skip to content

Instantly share code, notes, and snippets.

View chricke's full-sized avatar

Christian Beckmann chricke

View GitHub Profile
@chricke
chricke / install_nginx_on_debian.sh
Created February 3, 2011 19:35 — forked from scottjbarr/install_nginx_on_debian.sh
Install nginx on Debian.
#!/bin/bash
#
# Install nginx on Debian.
#
# Author : Scott Barr
# Date : 7 Jan 2010
#
VERSION=0.7.64
@chricke
chricke / .gitignore
Created April 9, 2011 14:32
Ignore list for git projects
.project
.pydevproject
.tmp*
*.pyc
*.db
.settings
.gitignore
*$
*.BAK
*.Z
@chricke
chricke / nginx
Created May 11, 2011 10:59
nginx init script
#!/bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: nginx init.d dash script for Ubuntu <=9.10.
# Description: nginx init.d dash script for Ubuntu <=9.10.
### END INIT INFO
@chricke
chricke / preprocess.py
Created July 18, 2018 20:05
Preprocess files for training
import os
import cv2
import pandas as pd
root_dir = os.getcwd()
file_list = ['train.csv', 'val.csv']
image_source_dir = os.path.join(root_dir, 'data/images/')
data_root = os.path.join(root_dir, 'data')
for file in file_list:
@chricke
chricke / create_records.sh
Last active March 28, 2019 19:01
create TFRecords
lumi dataset transform --type csv --data-dir data/ --output-dir tfdata/ --split train --split val --only-classes=table
@chricke
chricke / config.yml
Last active July 18, 2018 20:56
Configuration for training luminoth network for table detection
train:
# Name used to identify the run. Data inside `job_dir` will be stored under
# `run_name`.
run_name: table-area-detection-0.1
# Base directory in which model checkpoints & summaries (for Tensorboard) will
# be saved.
job_dir: jobs/
save_checkpoint_secs: 10
save_summaries_secs: 10
@chricke
chricke / start_training.sh
Created July 18, 2018 20:47
Start training the luminoth network
lumi train -c config.yml
lumi checkpoint create config.yml
lumi predict --checkpoint c2155084dca6 data/val/9541_023.png
@chricke
chricke / start_webbserver.sh
Created July 18, 2018 21:52
Start luminoth web server
lumi server web --checkpoint c2155084dca6