f0f56c2e15da58d1d191d936ee85a61021ab2c9d,pytorch/ade20k_dataset.py,ADE20KSegmentation,__getitem__,#ADE20KSegmentation#Any#,53

Before Change


            img, lbl = self.augmentations(img, lbl)

        if self.is_transform:
            img, lbl = self.transform(img, lbl)

        return img, lbl

After Change


        assert (len(self.images) == len(self.masks))

    def __getitem__(self, index):
        img = Image.open(self.images[index]).convert("RGB")
        mask = Image.open(self.masks[index])

        if self.mode == "train":
            img, mask = self._sync_transform(img, mask)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: osmr/imgclsmob
Commit Name: f0f56c2e15da58d1d191d936ee85a61021ab2c9d
Time: 2019-03-21
Author: osemery@gmail.com
File Name: pytorch/ade20k_dataset.py
Class Name: ADE20KSegmentation
Method Name: __getitem__


Project Name: baldassarreFe/deep-koalarization
Commit Name: 4af0d6b993453f2c8aec62c4ff7a8c0b1c877f22
Time: 2017-10-15
Author: baldassarre.fe@gmail.com
File Name: dataset/resize.py
Class Name: ImagenetResizer
Method Name: resize_img


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 02716e101ec2a8eb7284f95b17a7e589ffbc075d
Time: 2017-10-18
Author: max.lapan@gmail.com
File Name: ch06/01_dqn_pong.py
Class Name: ImageWrapper
Method Name: _observation