-
-
Save tengpeng/1047caa1855b4292284e39c7740224ed to your computer and use it in GitHub Desktop.
mark location
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
t = time.time() | |
idx = [] | |
for key, value in bid_img.iteritems(): | |
for v in value: | |
loc = -1 | |
for pid in pid_lst: | |
loc += 1 | |
if v == pid: | |
idx.append(loc) | |
print "{0:.1f}".format(time.time()-t) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment