示例#1
0
 def model_callback(data):
     # return avg_model_results(
     #     forward_net_single(data, "nets/an-finetune/deploy.prototxt", "nets/ANF_iter_50000.caffemodel"),
     #     forward_net_multi(data, "face-vid-nets/one-vs-all/deploy.prototxt", "face-vid-nets/snapshots/ONE-*_iter_10000.caffemodel")
     # )
     return forward_net_single(data, "face-vid-nets/flow/deploy.prototxt", "face-vid-nets/snapshots/FLOW-_iter_20000.caffemodel")
     # return forward_net_single(data, "face-vid-nets/an-finetune/deploy.prototxt", "face-vid-nets/snapshots/ANF-S_iter_35000.caffemodel")
     return forward_net_multi(data, "face-vid-nets/one-vs-all/deploy.prototxt", "face-vid-nets/snapshots/ONE-*_iter_2500.caffemodel")
示例#2
0
 def model_callback(i, data):
     if i == 0:
         return forward_net_single(
             data, "face-vid-nets/flow/deploy.prototxt",
             "face-vid-nets/snapshots/FLOW-_iter_20000.caffemodel")
     else:
         return forward_net_multi(
             data, "face-vid-nets/one-vs-all/deploy.prototxt",
             "face-vid-nets/snapshots/ONE-*_iter_2500.caffemodel")
示例#3
0
 def model_callback(data):
     # return avg_model_results(
     #     forward_net_single(data, "nets/an-finetune/deploy.prototxt", "nets/ANF_iter_50000.caffemodel"),
     #     forward_net_multi(data, "face-vid-nets/one-vs-all/deploy.prototxt", "face-vid-nets/snapshots/ONE-*_iter_10000.caffemodel")
     # )
     return forward_net_single(
         data, "face-vid-nets/flow/deploy.prototxt",
         "face-vid-nets/snapshots/FLOW-_iter_20000.caffemodel")
     # return forward_net_single(data, "face-vid-nets/an-finetune/deploy.prototxt", "face-vid-nets/snapshots/ANF-S_iter_35000.caffemodel")
     return forward_net_multi(
         data, "face-vid-nets/one-vs-all/deploy.prototxt",
         "face-vid-nets/snapshots/ONE-*_iter_2500.caffemodel")
示例#4
0
 def model_callback(i, data):
     if i == 0:
         return forward_net_single(data, "face-vid-nets/flow/deploy.prototxt", "face-vid-nets/snapshots/FLOW-_iter_20000.caffemodel")
     else:
         return forward_net_multi(data, "face-vid-nets/one-vs-all/deploy.prototxt", "face-vid-nets/snapshots/ONE-*_iter_2500.caffemodel")