python多进程加速处理lmdb数据集
def writeCache(env, cache): with env.begin(write=True) as txn: for k, v in cache.items(): txn.put(k, v)def image_worker(args): data, labelpath, queue = args if os.path.exists(data) and os.path.exists(labelpath): wi
原创
2021-05-06 14:29:40 ·
1281 阅读 ·
0 评论