7ce6ab2b22bdf6e27c88cb0839768e0458f00e51,imgaug/augmentables/normalization.py,,invert_normalize_images,#Any#Any#,356
Before Change
return images[..., 0]
else:
return images
elif ia .is_iterable(images_old):
if isinstance(images_old, tuple):
return tuple(images)
else:
return list(images)
raise ValueError(
("Expected argument "images_old" to be any of the following: "
After Change
return images
elif ia.is_iterable(images_old):
result = []
for image, image_old in zip(images, images_old):
if image_old.ndim == 2:
assert image.shape[2] == 1
result.append(image[:, :, 0])
else:
assert image.ndim == 3
assert image_old.ndim == 3
result.append(image)
return result
raise ValueError(
("Expected argument "images_old" to be any of the following: "
+ "None or array or iterable of array. Got type: %s.") % (
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances Project Name: aleju/imgaug
Commit Name: 7ce6ab2b22bdf6e27c88cb0839768e0458f00e51
Time: 2019-03-30
Author: kontakt@ajung.name
File Name: imgaug/augmentables/normalization.py
Class Name:
Method Name: invert_normalize_images
Project Name: pytorch/fairseq
Commit Name: 4a7cd5825717b0b0c96a6463e0dd2d7b18dd4331
Time: 2019-08-30
Author: alexei.b@gmail.com
File Name: fairseq/data/replace_dataset.py
Class Name: ReplaceDataset
Method Name: __getitem__