94e56839e1db5b90e303335ef26bce9daec71c3e,code/HardNetMultipleDatasets.py,,test,#,550
Before Change
data_a, data_p, label = Variable(data_a, volatile=True), \
Variable(data_p, volatile=True), Variable(label)
out_a, out_p = model(data_a), model(data_p)
dists = torch.sqrt(torch.sum((out_a - out_p) ** 2, 1)) // euclidean distance
distances.append(dists.data.cpu().numpy().reshape(-1, 1))
ll = label.data.cpu().numpy().reshape(-1, 1)
labels.append(ll)
After Change
Variable(data_p, volatile=True), Variable(label)
out_a = model(data_a)
out_p = model(data_p)
dists = torch.sqrt(torch.sum((out_a - out_p) ** 2, 1)) // euclidean distance
distances.append(dists.data.cpu().numpy().reshape(-1, 1))
ll = label.data.cpu().numpy().reshape(-1, 1)
labels.append(ll)
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 4
Instances
Project Name: DagnyT/hardnet
Commit Name: 94e56839e1db5b90e303335ef26bce9daec71c3e
Time: 2018-05-09
Author: ducha.aiki@gmail.com
File Name: code/HardNetMultipleDatasets.py
Class Name:
Method Name: test
Project Name: DagnyT/hardnet
Commit Name: 94e56839e1db5b90e303335ef26bce9daec71c3e
Time: 2018-05-09
Author: ducha.aiki@gmail.com
File Name: code/HardNetMultipleDatasets.py
Class Name:
Method Name: train
Project Name: DagnyT/hardnet
Commit Name: 94e56839e1db5b90e303335ef26bce9daec71c3e
Time: 2018-05-09
Author: ducha.aiki@gmail.com
File Name: code/HardNet.py
Class Name:
Method Name: train
Project Name: DagnyT/hardnet
Commit Name: 94e56839e1db5b90e303335ef26bce9daec71c3e
Time: 2018-05-09
Author: ducha.aiki@gmail.com
File Name: code/HardNet.py
Class Name:
Method Name: test
Project Name: DagnyT/hardnet
Commit Name: 94e56839e1db5b90e303335ef26bce9daec71c3e
Time: 2018-05-09
Author: ducha.aiki@gmail.com
File Name: code/HardNetHPatchesSplits.py
Class Name:
Method Name: test
Project Name: DagnyT/hardnet
Commit Name: 94e56839e1db5b90e303335ef26bce9daec71c3e
Time: 2018-05-09
Author: ducha.aiki@gmail.com
File Name: code/HardNetHPatchesSplits.py
Class Name:
Method Name: train