Skip to content

Instantly share code, notes, and snippets.

View wllhf's full-sized avatar

Manuel Wöllhaf wllhf

  • Berlin
View GitHub Profile
@wllhf
wllhf / VOClabelcolormap.py
Last active March 28, 2024 09:11
Python implementation of the color map function for the PASCAL VOC data set.
"""
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):
@wllhf
wllhf / progress.py
Last active May 20, 2016 17:58
Python progress bar.
import sys
import time
import threading
import multiprocessing
global_status = {"text": "NA",
"fraction": 0.0,
"ref_time": 0}
BAR_SIZE = 40
@wllhf
wllhf / init.el
Last active May 20, 2016 12:18
Emacs as Python IDE for Emacs >= 24.3
;; 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