From 5bcf187fb66ba8e0fb5f68651a88ccca5fde8d4c Mon Sep 17 00:00:00 2001 From: James Betker Date: Wed, 13 May 2020 15:27:33 -0600 Subject: [PATCH] Disable LMDB support It doesn't play nice with multiple dataroots and I don't really see any need to continue support since I'm not testing it. --- codes/options/options.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codes/options/options.py b/codes/options/options.py index 2f50ad09..935fc8a4 100644 --- a/codes/options/options.py +++ b/codes/options/options.py @@ -26,6 +26,7 @@ def parse(opt_path, is_train=True): if opt['distortion'] == 'sr' or opt['distortion'] == 'downsample': dataset['scale'] = scale is_lmdb = False + ''' LMDB is not supported at this point with the mods I've been making. if dataset.get('dataroot_GT', None) is not None: dataset['dataroot_GT'] = osp.expanduser(dataset['dataroot_GT']) if dataset['dataroot_GT'].endswith('lmdb'): @@ -34,6 +35,7 @@ def parse(opt_path, is_train=True): dataset['dataroot_LQ'] = osp.expanduser(dataset['dataroot_LQ']) if dataset['dataroot_LQ'].endswith('lmdb'): is_lmdb = True + ''' dataset['data_type'] = 'lmdb' if is_lmdb else 'img' if dataset['mode'].endswith('mc'): # for memcached dataset['data_type'] = 'mc'