Last active
June 22, 2018 07:00
-
-
Save bigdataplot/7463310a88e9d2352e17a7d166119684 to your computer and use it in GitHub Desktop.
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
#!/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