-
Notifications
You must be signed in to change notification settings - Fork 21
Description
I carry out train_eval_CUB.sh use linux,inception_v1.caffemodel. When carry out to
Evaluate SCoRe model
python score_eval.py ${MODEL_DIR} CUB Attributes GoogLeNet
I meet this problem and i can't slove it.
Layer SCoRe/obj/fc_target (weights) initialized
Traceback (most recent call last):
File "score_eval.py", line 139, in
main(parse_cmd())
File "score_eval.py", line 134, in main
mca, acc, semAcc, semAUC = evaluate_model(classes, constrains, LMDBs, args)
File "score_eval.py", line 111, in evaluate_model
semAcc[mode], semAUC[mode] = eval_semantics(scores, semantics, args)
File "score_eval.py", line 50, in eval_semantics
acc[s] = (pred*(lbl-0.5) > 0).astype(float).mean()
ValueError: operands could not be broadcast together with shapes (10,) (2933,)
Can you give me some suggestion?