Skip to content

Instantly share code, notes, and snippets.

@bigdataplot
Last active June 22, 2018 07:00
Show Gist options
  • Save bigdataplot/7463310a88e9d2352e17a7d166119684 to your computer and use it in GitHub Desktop.
Save bigdataplot/7463310a88e9d2352e17a7d166119684 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 20 14:19:23 2018
@author: Ken Ouyang
"""
box_to_display_str_map = collections.defaultdict(list)
box_to_color_map = collections.defaultdict(str)
box_to_instance_masks_map = {}
box_to_instance_boundaries_map = {}
box_to_keypoints_map = collections.defaultdict(list)
## ======================================== ##
## check package location:
import inspect
#flines = inspect.getsource( vis_util.visualize_boxes_and_labels_on_image_array )
flines = inspect.getsource( vis_util )
for fline in flines.split('\n'):
ftest = fline.find('font')
if fline.find('font') != -1:
print(fline)
#print(fline)
inspect.getmodule( tf )
import os
try:
user_paths = os.environ['PYTHONPATH'].split(os.pathsep)
except KeyError:
user_paths = []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment