MCPcopy Create free account
hub / github.com/llSourcell/YOLO_Object_Detection / find

Method find

darkflow/utils/loader.py:27–33  ·  view source on GitHub ↗
(self, key, idx)

Source from the content-addressed store, hash-verified

25 return None
26
27 def find(self, key, idx):
28 up_to = min(len(self.src_key), 4)
29 for i in range(up_to):
30 key_b = self.src_key[i]
31 if key_b[idx:] == key[idx:]:
32 return self.yields(i)
33 return None
34
35 def yields(self, idx):
36 del self.src_key[idx]

Callers 2

__call__Method · 0.95
pascal_voc_clean_xmlFunction · 0.80

Calls 1

yieldsMethod · 0.95

Tested by

no test coverage detected