Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/matthewearl/deep-anpr
/ gen_vecs
Function
gen_vecs
train.py:117–119 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
115
def
read_batches(batch_size):
116
g = gen.generate_ims()
117
def
gen_vecs():
118
for
im, c, p in itertools.islice(g, batch_size):
119
yield
im, code_to_vec(p, c)
120
121
while
True:
122
yield
unzip(gen_vecs())
Callers
1
read_batches
Function · 0.85
Calls
1
code_to_vec
Function · 0.85
Tested by
no test coverage detected