b77efb1269d87560bc9f9e6016bcf77c53557448,examples/data_augmentation.py,DummyDataset,__getitem__,#DummyDataset#Any#,33

Before Change



    def __getitem__(self, index):

        img = Image.open(self.images[index]).convert("RGB")
        target = torch.load(self.targets[index])

        ow, oh = img.size

        // Reescale boxes
        target[:2].mul_(512 / ow)
        target[-2:].mul_(512 / oh)

After Change



    def __getitem__(self, idx):
        // get data sample
        sample = self.data_index[idx]

        // load data, NOTE: modify by cv2.imread(...)
        image = torch.rand(3, 240, 320)
        label = torch.rand(1, 240, 320)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: arraiy/torchgeometry
Commit Name: b77efb1269d87560bc9f9e6016bcf77c53557448
Time: 2020-01-07
Author: diegovd0296@gmail.com
File Name: examples/data_augmentation.py
Class Name: DummyDataset
Method Name: __getitem__


Project Name: mittagessen/kraken
Commit Name: d91a666123809f191084b1c7199cd38c8e8f1be2
Time: 2020-03-04
Author: mittagessen@l.unchti.me
File Name: kraken/contrib/repolygonize.py
Class Name:
Method Name:


Project Name: arraiy/torchgeometry
Commit Name: 32b9dcd002284d6bb16da626a4a5294c28098869
Time: 2020-01-15
Author: diegovd0296@gmail.com
File Name: examples/data_augmentation.py
Class Name: DummyDataset
Method Name: __getitem__


Project Name: mittagessen/kraken
Commit Name: 4b5a73270f473a3ac35318484c0033886da92ff6
Time: 2020-03-04
Author: mittagessen@l.unchti.me
File Name: kraken/contrib/repolygonize.py
Class Name:
Method Name: