in community-artifacts/Deep-learning/Utilities/madlib_image_loader.py [0:0]
def __init__(self, db_creds=None, num_workers=None, table_name=None):
self.num_workers = num_workers
self.append = False
self.img_num = 0
self.db_creds = db_creds
self.db_conn = None
self.db_cur = None
self.tmp_dir = None
self.mother = False
self.pr_name = current_process().name
self.table_name = table_name
self.root_dir = None
self.pool = None
self.no_temp_files = False
global iloader # Singleton per process
iloader = self