Skip to content

Instantly share code, notes, and snippets.

View XericZephyr's full-sized avatar

Zheng Xu XericZephyr

View GitHub Profile
@XericZephyr
XericZephyr / voc20baseline
Created July 5, 2017 23:20 — forked from szrxiao/voc20baseline
voc20 baselines
## ZF
| IOU | MAP | Th@0.8 | Prec@0.8 | Rec@0.8 | Th@0.9 | Prec@0.9 | Rec@0.9 | Th@0.95 | Prec@0.95 | Rec@0.95 |
| :-- | :----: | :----: | :------: | :-----: | :----: | :------: | :-----: | :-----: | :-------: | :------: |
| 0.3 | 0.7018 | 0.7302 | 0.8001 | 0.6708 | 0.9111 | 0.9001 | 0.5757 | 0.9704 | 0.9501 | 0.4715 |
| 0.4 | 0.6693 | 0.7833 | 0.8001 | 0.6362 | 0.9359 | 0.9001 | 0.5345 | 0.981 | 0.9501 | 0.4205 |
| 0.5 | 0.6114 | 0.8611 | 0.8001 | 0.5695 | 0.9721 | 0.9 | 0.44 | 0.9934 | 0.9502 | 0.3044 |
## VGG16
| IOU | MAP | Th@0.8 | Prec@0.8 | Rec@0.8 | Th@0.9 | Prec@0.9 | Rec@0.9 | Th@0.95 | Prec@0.95 | Rec@0.95 |
@XericZephyr
XericZephyr / simple_http_request_print.py
Created November 14, 2015 08:06
Simple TCP Server For print http request
import SocketServer
import argparse
class MyTCPHandler(SocketServer.BaseRequestHandler):
"""
The RequestHandler class for our server.
It is instantiated once per connection to the server, and must
override the handle() method to implement communication to the
client.
@XericZephyr
XericZephyr / config.mk
Last active October 27, 2015 20:54
mxnet tacc config
#-------------------------------------------------------------------------------
# Template configuration for compiling mxnet
#
# If you want to change the configuration, please use the following
# steps. Assume you are on the root directory of mxnet. First copy the this
# file so that any local changes will be ignored by git
#
# $ cp make/config.mk .
#
# Next modify the according entries, and then compile by
@XericZephyr
XericZephyr / mxnet-prepare-imagenet.py
Created October 27, 2015 01:35
Prepare list file on TACC for imagenet
__author__ = 'zhengxu'
import os
import glob
import pickle
def make_record_io_list(image_net_folder, label_list_file, list_file):
label_list = os.listdir(image_net_folder)
with open(label_list_file, 'w') as f:
@XericZephyr
XericZephyr / test-lenet-train-test.py
Created October 23, 2015 02:10
Lenet Train Test
__author__ = 'caffedemo'
import caffe
import os
from PIL import Image
CAFFE_ROOT = "/home/caffedemo/caffe/caffe/"
TRAIN_TEST_NET = os.path.join(CAFFE_ROOT, 'examples/mnist/lenet_train_test.prototxt')
@XericZephyr
XericZephyr / test-nltk-wordnet.py
Created October 8, 2015 19:20
WordNet Python
from nltk.corpus import wordnet as wn
# get synset from offset string, e.g. 'n09208496' for asterism
a = wn._synset_from_pos_and_offset('n', 9208496) # got Synset('asterism.n.02')
# then got hypernym_paths
print a.hypernym_paths()
# got