basicsr.data.single_image_dataset¶
- class basicsr.data.single_image_dataset.SingleImageDataset(opt)[source]¶
Bases:
Dataset
Read only lq images in the test phase.
Read LQ (Low Quality, e.g. LR (Low Resolution), blurry, noisy, etc).
There are two modes: 1. ‘meta_info_file’: Use meta information file to generate paths. 2. ‘folder’: Scan folders to generate paths.
- Parameters:
opt (dict) – Config for train datasets. It contains the following keys: dataroot_lq (str): Data root path for lq. meta_info_file (str): Path for meta information file. io_backend (dict): IO backend type and other kwarg.