dcd394f4a5bddb1fc97ae4a7224e00147fc110a3,examples/data_augmentation.py,DummyDataset,__getitem__,#DummyDataset#Any#,30
Before 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)
After Change
ow, oh = img.size
// Reescale boxes
target[:2].mul_(512 / ow)
target[-2:].mul_(512 / oh)
// Reorder boxes as xyxy
perm = torch.LongTensor([0, 2, 1, 3])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
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: cornellius-gp/gpytorch
Commit Name: 308a18094d31d5cd2fbb7d942212669141dd8cec
Time: 2019-04-01
Author: jake.gardner@uber.com
File Name: gpytorch/utils/cholesky.py
Class Name:
Method Name: psd_safe_cholesky
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__