6917d8a3dbf6617f02b1247fd50fbc20d3cb6fd4,codes/data/LR_dataset.py,LRDataset,__getitem__,#LRDataset#Any#,29

Before Change



        // HWC to CHW, BGR to RGB, numpy to tensor
        if img_LR.shape[2] == 3:
            img_LR = cv2.cvtColor(img_LR, cv2.COLOR_BGR2RGB)
        img_LR = torch.from_numpy(np.ascontiguousarray(np.transpose(img_LR, (2, 0, 1)))).float()

        return {"LR": img_LR, "LR_path": LR_path}

After Change



        // HWC to CHW, BGR to RGB, numpy to tensor
        if img_LR.shape[2] == 3:
            img_LR = img_LR[:, :, [2, 1, 0]]
        img_LR = torch.from_numpy(np.ascontiguousarray(np.transpose(img_LR, (2, 0, 1)))).float()

        return {"LR": img_LR, "LR_path": LR_path}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: xinntao/BasicSR
Commit Name: 6917d8a3dbf6617f02b1247fd50fbc20d3cb6fd4
Time: 2018-06-10
Author: wxt1994@126.com
File Name: codes/data/LR_dataset.py
Class Name: LRDataset
Method Name: __getitem__


Project Name: arraiy/torchgeometry
Commit Name: 50839f8ed95147c71f9f045495ed45380a2ce513
Time: 2019-11-19
Author: priba@cvc.uab.cat
File Name: test/color/test_hls.py
Class Name: TestRgbToHls
Method Name: test_nan_rgb_to_hls


Project Name: danforthcenter/plantcv
Commit Name: c7a53c5c8f87dea0a75feb3f8e19dc6fa495e1e7
Time: 2020-03-24
Author: haleyschuhl@gmail.com
File Name: plantcv/plantcv/visualize/auto_threshold_methods.py
Class Name:
Method Name: thresholds


Project Name: thoughtworksarts/EmoPy
Commit Name: 3341fc75b6327c95e6e11201ff4f86dfa9c546ea
Time: 2017-12-19
Author: angelica.perez37@gmail.com
File Name: data/dataProcessor.py
Class Name: DataProcessor
Method Name: get_training_data_from_csv