4705ffe09b2442f34900b0b3185000478af44e92,src/megaface/gen_megaface.py,,get_feature,#Any#Any#Any#Any#Any#Any#Any#Any#,48
Before Change
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)
_embedding = exe.outputs[0].asnumpy().flatten()
//print(_embedding.shape)
if embedding is None:
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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
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: 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: bokeh/bokeh
Commit Name: 8d4e6b68a803661fa2dcbb1d3de9c83a8c59c21c
Time: 2016-12-08
Author: pitrou@free.fr
File Name: bokeh/server/server.py
Class Name: Server
Method Name: __init__