99de5914c07dde8fe67ed9ab81b1bc65daffdefd,dvalib/indexer.py,Resnet50Indexer,nearest,#Resnet50Indexer#Any#Any#,68
Before Change
dist = np.hstack(dist)
ranked = np.squeeze(dist.argsort())
logging.info("query finished")
return [self.files[k] for i,k in enumerate(ranked[:n])]
def index_frames(self,frames,video):
files = []
features = []
After Change
logging.info("query finished")
results = []
for i, k in enumerate(ranked[:n]):
temp = {"i":i,"algo":self.name,"dist":dist[0,k]}
temp.update(self.files[k])
results.append(temp)
return results
def index_frames(self,frames,video):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 99de5914c07dde8fe67ed9ab81b1bc65daffdefd
Time: 2017-01-28
Author: akshayubhat@gmail.com
File Name: dvalib/indexer.py
Class Name: Resnet50Indexer
Method Name: nearest
Project Name: streamlit/streamlit
Commit Name: 39ce94e3467ba9f2dfd80d311991440e70a7427d
Time: 2019-08-21
Author: domoritz@gmail.com
File Name: lib/streamlit/hashing.py
Class Name:
Method Name: _get_context
Project Name: microsoft/nni
Commit Name: 8af731463df46f6c73c933bdc45ed9a4ecd4e422
Time: 2020-11-17
Author: Quanlu.Zhang@microsoft.com
File Name: nni/retiarii/codegen/pytorch.py
Class Name:
Method Name: model_to_pytorch_script