292cf321cb5f9ec96ac97d6ec9f94c271e9e8567,src/megaface/gen_megaface.py,,get_feature,#Any#Any#Any#Any#Any#Any#Any#Any#,48
Before Change
//nimg[:,ppatch[1]:ppatch[3],ppatch[0]:ppatch[2]] = _img[:, ppatch[1]:ppatch[3], ppatch[0]:ppatch[2]]
//_img = nimg
input_blob = np.expand_dims(_img, axis=0)
net.arg_params["data"] = mx.nd.array(input_blob, net.ctx)
net.arg_params["softmax_label"] = mx.nd.empty((1,), net.ctx)
exe = net.sym.bind(net.ctx, net.arg_params ,args_grad=None, grad_req="null", aux_states=net.aux_params)
exe.forward(is_train=False)
After Change
//_img = nimg
input_blob = np.expand_dims(_img, axis=0)
data = mx.nd.array(input_blob)
db = mx.io.DataBatch(data=(data,))
net.model.forward(db, is_train=False)
_embedding = net.model.get_outputs()[0].asnumpy().flatten()
//print(_embedding.shape)
if embedding is None:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: deepinsight/insightface
Commit Name: 292cf321cb5f9ec96ac97d6ec9f94c271e9e8567
Time: 2018-01-25
Author: guojia@gmail.com
File Name: src/megaface/gen_megaface.py
Class Name:
Method Name: get_feature
Project Name: deepinsight/insightface
Commit Name: 4705ffe09b2442f34900b0b3185000478af44e92
Time: 2018-01-25
Author: guojia@gmail.com
File Name: src/megaface/gen_megaface.py
Class Name:
Method Name: get_feature
Project Name: apache/incubator-mxnet
Commit Name: dfa3d07a74e59297394c624a3373a335f94a64eb
Time: 2019-12-26
Author: xinyu1.chen@intel.com
File Name: example/neural_collaborative_filtering/ncf.py
Class Name:
Method Name: