e1cbb7da6c8bec72f1e5225521630153fd0957c4,berrynet/service/darknet_service.py,,main,#,94

Before Change



    engine = DarknetEngine(
        config=b"/usr/share/dlmodels/tinyyolovoc-20170816/tiny-yolo-voc.cfg",
        model=b"/usr/share/dlmodels/tinyyolovoc-20170816/tiny-yolo-voc.weights",
        meta=b"/usr/share/dlmodels/tinyyolovoc-20170816/voc.data"
    )
    comm_config = {

After Change


        dlmm = DLModelManager()
        meta = dlmm.get_model_meta(args["model_package"])
        args["model"] = meta["model"]
        args["label"] = meta["label"]
    logger.debug("model filepath: " + args["model"])
    logger.debug("label filepath: " + args["label"])

    engine = DarknetEngine(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: DT42/BerryNet
Commit Name: e1cbb7da6c8bec72f1e5225521630153fd0957c4
Time: 2019-07-13
Author: bofu@dt42.io
File Name: berrynet/service/darknet_service.py
Class Name:
Method Name: main


Project Name: NervanaSystems/nlp-architect
Commit Name: 24d3656c6c4b3c6806954487720d53af775a1150
Time: 2018-06-07
Author: shira.guskin@intel.com
File Name: set_expansion_demo/ui/main.py
Class Name:
Method Name: get_phrases


Project Name: hanxiao/bert-as-service
Commit Name: 367ee86aeea0dc510f01ce0ef58dc551d1d4d86b
Time: 2018-11-21
Author: hanhxiao@tencent.com
File Name: service/server.py
Class Name: BertServer
Method Name: run