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
""" | |
Python implementation of the color map function for the PASCAL VOC data set. | |
Official Matlab version can be found in the PASCAL VOC devkit | |
http://host.robots.ox.ac.uk/pascal/VOC/voc2012/index.html#devkit | |
""" | |
import numpy as np | |
from skimage.io import imshow | |
import matplotlib.pyplot as plt | |
def color_map(N=256, normalized=False): |
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 sys | |
import time | |
import threading | |
import multiprocessing | |
global_status = {"text": "NA", | |
"fraction": 0.0, | |
"ref_time": 0} | |
BAR_SIZE = 40 |
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
;; Emacs as Python IDE for Emacs >= 24.3 | |
;; Copy this file in your .emacs.d to setup emacs as a Python IDE. | |
;; If you want to integrate this into your existing configuration, | |
;; of course, you should put the seperate parts of this code in the | |
;; appropriate files. | |
;; Credits, documentation and further reading: | |
;; Jorgen Schaefers elpy - https://github.com/jorgenschaefer/elpy | |
;; elpy doc - http://elpy.readthedocs.org/en/latest/introduction.html | |
;; Yusuke Tsutsumis blog : http://y.tsutsumi.io/emacs-from-scratch-part-2-package-management.html |