This file contains 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
import re | |
import os | |
import skimage.io as io | |
import skimage.color as color | |
import numpy as np | |
rootdir_from = "/home/haoyu/depth_png" | |
rootdir_to = "/home/haoyu/depth_png3" | |
pattern_ith = re.compile(r"\((\d+)\)") |
This file contains 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
import re | |
import os.path | |
rootdir = "/home/haoyu/pictures" | |
fn_ext = ".png" | |
pattern_ith = re.compile(r"\((\d+)\)") | |
for parent, dirnames, filenames in os.walk(rootdir): | |
for filename in filenames: | |
ith = pattern_ith.findall(filename) |
This file contains 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
# -*- coding: utf-8 -*- | |
import pandas as pd | |
import numpy as np | |
import os | |
from sklearn.externals import joblib | |
from skimage import io, draw, img_as_float | |
pkl_pred = "py-faster-rcnn/output/faster_rcnn_alt_opt/voc_2007_test/VGG16_faster_rcnn_final/detections.pkl" | |
pkl_anno = "py-faster-rcnn/data/VOCdevkit2007/annotations_cache/annots.pkl" |
This file contains 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
# -*- coding: utf-8 -*- | |
import os | |
import xml.etree.ElementTree as ET | |
from skimage import io, draw | |
xml_folder = "/home/haoyu/Annotations" | |
image_dir = "/home/haoyu/JPEGImages" | |
for parent, dirnames, filenames in os.walk(xml_folder): | |
for filename in filenames: |
This file contains 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
# -*- coding: utf-8 -*- | |
import pandas as pd | |
import numpy as np | |
import os | |
import cv2 | |
from skimage import io, draw | |
import os | |
import re | |
import random | |
import lxml.etree as ElementTree |
This file contains 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
# -*- coding: utf-8 -*- | |
import os | |
import re | |
import random | |
import lxml.etree as ElementTree | |
import dicttoxml | |
from xml.dom.minidom import parseString | |
from collections import OrderedDict |
This file contains 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
cmake_minimum_required(VERSION 3.6) | |
project(onion) | |
# compile with C++11 support | |
add_definitions("-std=c++0x -Dlinux -D__STANDALONE_ONI_EXTRACTOR") | |
# OpenCV | |
find_package(OpenCV REQUIRED) | |
# OpenNI |
This file contains 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
# -*- coding: utf8 -*- | |
import os | |
import argparse | |
# 工作目录 | |
working_dir = 'cmake-build-debug' | |
# 被保护的文件 | |
file_protect = ['CMakeLists.txt', 'run.sh', 'data.txt', 'run.py', 'main.py'] | |
# 需要被复制的文件 | |
file_copy = ['data.txt'] |
This file contains 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
# 删除 Cache | |
rm -Rf ./cachedir/* | |
# 删除 selective_search_data | |
rm -Rf ./data/selective_search_data/* | |
# 删除网络模型 finetune_voc_2007_trainval_iter_70k | |
rm -Rf data/caffe_nets/finetune_voc_2007_trainval_iter_70k | |
# 删除 备份网络配置和训练快照 |
This file contains 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
$(document).ready(function(a) { | |
t = document.title, | |
d = "(●—●) 你快回来~ | " + t; | |
$(window).blur(function() { | |
document.title = d | |
}).focus(function() { | |
document.title = t | |
}); | |
}); |
OlderNewer