fd10b74b45692e53047149cb4d526067845b4a7d,deploy/test.py,,,#,7

Before Change


gender, age = model.get_ga(img)
print(gender)
print(age)
sys.exit(0)
img = cv2.imread(
    "/raid5data/dplearn/megaface/facescrubr/112x112/Tom_Hanks/Tom_Hanks_54733.png"
)
f2 = model.get_feature(img)

After Change



vec = args.model.split(",")
model_prefix = vec[0]
model_epoch = int(vec[1])
model = face_model.FaceModel(args.gpu, model_prefix, model_epoch)
img = cv2.imread("Tom_Hanks_54745.png")
img = model.get_input(img)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deepinsight/insightface
Commit Name: fd10b74b45692e53047149cb4d526067845b4a7d
Time: 2020-11-06
Author: guojia@gmail.com
File Name: deploy/test.py
Class Name:
Method Name:


Project Name: dPys/PyNets
Commit Name: f77c300dd1a59547a1355f4e00b67783d432207f
Time: 2020-02-29
Author: dpisner@utexas.edu
File Name: pynets/cli/pynets_run.py
Class Name:
Method Name: main


Project Name: Rostlab/nalaf
Commit Name: fe41a42ff872debbc18f465f003a314f5ad19d29
Time: 2015-09-20
Author: carsten.uhlig@gmail.com
File Name: nala/utils/tagger.py
Class Name: TmVarTagger
Method Name: generate_abstracts