23a45d5eb839c763c94c0e413ad599d9f9b5e184,codes/scripts/create_lmdb.py,,,#,8
Before Change
dataset.append(img)
data_size += img.nbytes
map_size = data_size * 10
env = lmdb.open(lmdb_save_path, map_size=map_size)
print("Finish reading image - {}.\nWrite to lmdb...".format(len(file_list)))
with env.begin(write=True) as txn: // txn is a Transaction object
for i, v in enumerate(file_list):
After Change
import lmdb
import cv2
sys.path.append(os .path.dirname(os.path.dirname(os.path.abspath(__file__)) ))
from utils.progress_bar import ProgressBar
// configurations
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: xinntao/BasicSR
Commit Name: 23a45d5eb839c763c94c0e413ad599d9f9b5e184
Time: 2018-09-06
Author: wxt1994@126.com
File Name: codes/scripts/create_lmdb.py
Class Name:
Method Name:
Project Name: xinntao/BasicSR
Commit Name: 23a45d5eb839c763c94c0e413ad599d9f9b5e184
Time: 2018-09-06
Author: wxt1994@126.com
File Name: codes/scripts/create_lmdb.py
Class Name:
Method Name:
Project Name: oddt/oddt
Commit Name: d0b3ef6c6fe31b517260a3eb6f07753ef5112a98
Time: 2018-05-17
Author: maciek@wojcikowski.pl
File Name: rdkit_fixer.py
Class Name:
Method Name: PreparePDBMol
Project Name: riga/tfdeploy
Commit Name: 2984beef3784e514a7b8512ab0e658ad01e86564
Time: 2016-03-11
Author: marcelrieger@me.com
File Name: setup.py
Class Name:
Method Name: