96da2cacf837a9b84ecdeafb50dfb4a93b402f33,deeplabcut/pose_estimation_tensorflow/nnet/net_factory.py,,pose_net,#Any#,12

Before Change


    net_type = cfg.net_type
    if "mobilenet" in net_type:  // multi currently not supported
        print("Initializing MobileNet")
        if cfg.dataset_type == "multi-animal-imgaug":
            raise Exception(
                "MobileNets are currently not yet supported for multianimal DLC!"
            )

        from deeplabcut.pose_estimation_tensorflow.nnet.pose_net_mobilenet import (
            PoseNet,
        )

After Change



            cls = PoseNet
    elif "efficientnet" in net_type:
        if (
            cfg.get("stride", 8) < 8
        ):  // this supports multianimal (with PAFs) or pairwise prediction
            from deeplabcut.pose_estimation_tensorflow.nnet.pose_netmulti import PoseNet

            cls = PoseNet
        else:
            print("Initializing Efficientnet")
            from deeplabcut.pose_estimation_tensorflow.nnet.pose_net_efficientnet import PoseNet
            cls = PoseNet
    else:
        raise Exception("Unsupported class of network: "{}"".format(net_type))

    return cls(cfg)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: AlexEMG/DeepLabCut
Commit Name: 96da2cacf837a9b84ecdeafb50dfb4a93b402f33
Time: 2021-01-06
Author: tr.biasi@gmail.com
File Name: deeplabcut/pose_estimation_tensorflow/nnet/net_factory.py
Class Name:
Method Name: pose_net


Project Name: deepmipt/DeepPavlov
Commit Name: cb0c025ab87216d35b68a2b4b36d61621acd76ba
Time: 2018-01-31
Author: arkhipov@yahoo.com
File Name: deeppavlov/models/ner/slotfill.py
Class Name: DstcSlotFillingNetwork
Method Name: infer


Project Name: AlexEMG/DeepLabCut
Commit Name: 9a129d4946323799cf4328ec567f237ecde8c24d
Time: 2019-11-12
Author: amathis@fas.harvard.edu
File Name: deeplabcut/pose_estimation_tensorflow/nnet/pose_net.py
Class Name: PoseNet
Method Name: prediction_layers