1
This commit is contained in:
@@ -11,7 +11,7 @@ from tqdm import tqdm
|
||||
|
||||
|
||||
def dataset_to_lmdb(dataset, lmdb_path):
|
||||
env = lmdb.open(lmdb_path, map_size=1099511627776, subdir=os.path.isdir(lmdb_path))
|
||||
env = lmdb.open(lmdb_path, map_size=1099511627776*2, subdir=os.path.isdir(lmdb_path))
|
||||
with env.begin(write=True) as txn:
|
||||
for i in tqdm(range(len(dataset)), ncols=50):
|
||||
buffer = BytesIO()
|
||||
|
||||
Reference in New Issue
Block a user