Ejemplo n.º 1
0
def test2(
        model,
        test_proto,
        img_path,
        aux_file,
        outlayer,
        featurelayer,
        feature_path
        ):
    my_net = NetWrapper(
            cpu_only,
            model,
            test_proto
            )
    my_net.preprocess()
    return my_net.getfeature(
            img_path,
            aux_file,
            outlayer,
            featurelayer,
            feature_path
            )
Ejemplo n.º 2
0
def test1(
        model,
        deploy_proto,
        image,
        out_layer,
        feature_layer
        ):
    my_net = NetWrapper(
            cpu_only,
            model,
            deploy_proto
            )
    my_net.preprocess()
    my_net.getfeature(
            image,
            " ",
            out_layer,
            feature_layer
            )