Commit 7646d0ff authored by 赵威's avatar 赵威

save result

parent a449b605
......@@ -148,7 +148,7 @@ def save_diary_similarity(load_file, index_path, face_to_vec_f):
print("{} {}".format(count, id))
tup_res = get_similar_diary_ids_by_face_features(feature, index_path, face_to_vec_f)
if tup_res:
res_dict[id] = tup_res
res_dict[id] = json.dumps(tup_res)
print("done: " + str(len(res_dict)))
key = random.choice(list(res_dict.keys()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment