292cf321cb5f9ec96ac97d6ec9f94c271e9e8567,src/megaface/gen_megaface.py,,main,#Any#,111

Before Change


    net = edict()
    net.ctx = ctx
    net.sym, net.arg_params, net.aux_params = mx.model.load_checkpoint(prefix, epoch)
    net.arg_params, net.aux_params = ch_dev(net.arg_params, net.aux_params, net.ctx)
    all_layers = net.sym.get_internals()
    net.sym = all_layers["fc1_output"]
    //_pp = prefix.rfind("p")+1

After Change


    //net.arg_params, net.aux_params = ch_dev(net.arg_params, net.aux_params, net.ctx)
    all_layers = net.sym.get_internals()
    net.sym = all_layers["fc1_output"]
    net.model = mx.mod.Module(symbol=net.sym, context=net.ctx, label_names = None)
    net.model.bind(data_shapes=[("data", (1, 3, image_shape[1], image_shape[2]))])
    net.model.set_params(net.arg_params, net.aux_params)
    //_pp = prefix.rfind("p")+1
    //_pp = prefix[_pp:]
    //net.patch = [int(x) for x in _pp.split("_")]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

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: main


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: main


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: main


Project Name: akutuzov/webvectors
Commit Name: ea793f1ddd05863e7c2a64d3ad884f5e795cca61
Time: 2018-06-18
Author: akutuzov72@gmail.com
File Name: word2vec_server.py
Class Name:
Method Name: