73317ca61e33b42353fc4b3010f586124954ca18,examples/data_augmentation.py,DummyDataset,__getitem__,#DummyDataset#Any#,30
Before Change
// load data, NOTE: modify by cv2.imread(...)
image = torch.rand(3, 240, 320)
label = torch.rand(1, 240, 320)
return dict(images=image, labels=label)
////////////////////////////////////////////////////////////////
// 2. Define the data augmentation operations
// Thanks to the `kornia` design all the operators can be placed inside inside a `nn.Sequential`.
After 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
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: arraiy/torchgeometry
Commit Name: 73317ca61e33b42353fc4b3010f586124954ca18
Time: 2019-12-19
Author: diegovd0296@gmail.com
File Name: examples/data_augmentation.py
Class Name: DummyDataset
Method Name: __getitem__
Project Name: arraiy/torchgeometry
Commit Name: dcd394f4a5bddb1fc97ae4a7224e00147fc110a3
Time: 2020-01-15
Author: diegovd0296@gmail.com
File Name: examples/data_augmentation.py
Class Name: DummyDataset
Method Name: __getitem__
Project Name: bokeh/bokeh
Commit Name: ff7d1bec6d558c4467f29c2b4f5ef9a446f4665b
Time: 2017-03-22
Author: jsignell@gmail.com
File Name: examples/howto/server_embed/standalone_embed.py
Class Name:
Method Name: modify_doc
Project Name: bokeh/bokeh
Commit Name: ff7d1bec6d558c4467f29c2b4f5ef9a446f4665b
Time: 2017-03-22
Author: jsignell@gmail.com
File Name: examples/howto/server_embed/tornado_embed.py
Class Name:
Method Name: modify_doc