29ab5e1965503be3ffe87462e973edf1d457af6e,codes/scripts/extract_subimgs_single.py,,main,#,9

Before Change


    p.close()
    p.join()
    end = time.time()
    print("All subprocesses done. Using time {} sec.".format(end - start))


def worker(GT_paths, save_GT_dir):
    crop_sz = 480

After Change


    def update(arg):
        pbar.update(arg)

    pbar = ProgressBar(len(img_list))

    pool = Pool(n_thread)
    for path in img_list:
        pool.apply_async(worker,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: xinntao/BasicSR
Commit Name: 29ab5e1965503be3ffe87462e973edf1d457af6e
Time: 2018-09-06
Author: wxt1994@126.com
File Name: codes/scripts/extract_subimgs_single.py
Class Name:
Method Name: main


Project Name: IDSIA/sacred
Commit Name: 3f40d5d2df611a3a76c325730f87a06bd0db0a00
Time: 2014-05-19
Author: klaus@idsia.ch
File Name: sacred/commands.py
Class Name:
Method Name: cfgprint


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: