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
| ## ZF | |
| | IOU | MAP | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | | |
| | :-- | :----: | :----: | :------: | :-----: | :----: | :------: | :-----: | :-----: | :-------: | :------: | | |
| | 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 | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | |
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
| 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. |
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
| #------------------------------------------------------------------------------- | |
| # 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 |
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
| __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: |
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
| __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') | |
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
| 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 |