d2b634744401fff8166fed16f47e3be9be94cd6d,main.py,,denormalize,#Any#Any#,15
Before Change
def denormalize(T, coords):
x_original = torch.mul(coords[:, 0], int(T/2)) + int((T/2))
y_original = torch.mul(coords[:, 1], int(T/2)) + int((T/2))
return torch.stack([x_original, y_original])
After Change
x = 0.5 * ((coords[:, 0] + 1.0) * T)
y = 0.5 * ((coords[:, 1] + 1.0) * T)
return torch.stack([x, y], dim=1).long()
def bounding_box(x, y, size, color="w"):
x = int(x - (size / 2))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: kevinzakka/recurrent-visual-attention
Commit Name: d2b634744401fff8166fed16f47e3be9be94cd6d
Time: 2018-01-20
Author: kevinarmandzakka@gmail.com
File Name: main.py
Class Name:
Method Name: denormalize
Project Name: kevinzakka/recurrent-visual-attention
Commit Name: d2b634744401fff8166fed16f47e3be9be94cd6d
Time: 2018-01-20
Author: kevinarmandzakka@gmail.com
File Name: modules.py
Class Name: glimpse_sensor
Method Name: denormalize
Project Name: pytorch/examples
Commit Name: d5a75ba09ae0595ca284fd806475eb8d3f771387
Time: 2017-01-17
Author: adam.paszke@gmail.com
File Name: word_language_model/generate.py
Class Name:
Method Name: