Skip to content

Instantly share code, notes, and snippets.

@ikvision
ikvision / akmtdfgen.py
Last active October 9, 2017 18:37 — forked from timehaven/akmtdfgen.py
kmtdfgen: Keras multithreaded dataframe generator
"""akmtdfgen: A Keras multithreaded dataframe generator.
Works with Python 2.7 and Keras 2.x.
For Python 3.x, need to fiddle with the threadsafe generator code.
Test the generator_from_df() functions by running this file:
python akmtdfgen.py