09b8ead9c0aa8d1fb635c2812dddacd8645ccf08,codes/scripts/create_lmdb.py,,,#,9

Before Change


dataset = []
data_size = 0
print("Read image...")
for i in range(len(file_list)):
    if i % 100 == 0:
        print(i)
    img = cv2.imread(file_list[i], cv2.IMREAD_UNCHANGED)
    dataset.append(img)
    data_size += img.nbytes
map_size = data_size * 10

After Change



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):
        if i % 100 == 0:
            print(i)
        img_name = os.path.splitext(os.path.basename(v))[0]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 4

Instances


Project Name: xinntao/BasicSR
Commit Name: 09b8ead9c0aa8d1fb635c2812dddacd8645ccf08
Time: 2018-06-11
Author: wxt1994@126.com
File Name: codes/scripts/create_lmdb.py
Class Name:
Method Name:


Project Name: pymanopt/pymanopt
Commit Name: dbea71493a09051f727555b21b7021e5bcac54a2
Time: 2018-04-30
Author: niklas.koep@gmail.com
File Name: pymanopt/manifolds/product.py
Class Name: _TangentVector
Method Name: __sub__


Project Name: xinntao/BasicSR
Commit Name: 09b8ead9c0aa8d1fb635c2812dddacd8645ccf08
Time: 2018-06-11
Author: wxt1994@126.com
File Name: codes/scripts/create_lmdb.py
Class Name:
Method Name:


Project Name: tensorflow/hub
Commit Name: 20f388cfe01635a2073723c5c4ffd6dd7a87fbb2
Time: 2019-11-15
Author: cedric.renggli@gmail.com
File Name: tensorflow_hub/tools/module_search/utils.py
Class Name:
Method Name: knn_errorrate_loo


Project Name: tensorflow/hub
Commit Name: 20f388cfe01635a2073723c5c4ffd6dd7a87fbb2
Time: 2019-11-15
Author: cedric.renggli@gmail.com
File Name: tensorflow_hub/tools/module_search/utils.py
Class Name:
Method Name: knn_errorrate


Project Name: geometalab/OSMDeepOD
Commit Name: 4eeabec420de5c8d6f3233be3d6c4f4ae9a47f0e
Time: 2016-04-29
Author: marcelhuberfoo@gmail.com
File Name: src/detection/StreetWalker.py
Class Name: StreetWalker
Method Name: walk


Project Name: pymanopt/pymanopt
Commit Name: dbea71493a09051f727555b21b7021e5bcac54a2
Time: 2018-04-30
Author: niklas.koep@gmail.com
File Name: pymanopt/manifolds/product.py
Class Name: _TangentVector
Method Name: __add__