3/15/2024 0 Comments Tsearch np.array object error![]() ![]() ValueError Traceback (most recent call last) However, I am facing the following error in the filter_empty_embs function. Probe_embs, probe_labels = filter_empty_embs(probe_set, probe_labels) Lastly, here where I call the functions and everything should work: evaluation_embs, evaluation_labels = filter_empty_embs(eval_set, eval_labels) Probe_set_t, probe_labels_t = generate_embs(probe) Probe, eval = create_probe_eval_set(files)Įval_set_t, eval_labels_t = generate_embs(eval) This is the function where I extract embeddings: # sorting filesįor i in tqdm(range(1, len(files), IMAGES_PER_IDENTITY), unit_divisor=True): # ignore the README.txt file at files ![]() # filtering eval set and labels based on good idxĬlean_labels = np.array(img_labels)Ĭlean_set = np.array(img_set, dtype=object)Ĭlean_embs =. # filtering where insightface could not generate an embedding This is my filtering function def filter_empty_embs(img_set: List, img_labels: List): ![]() I want to store my labels and faces into a numpy array using np.array() and applying some filtering on them to ensure that each label has embeddings. I am working on a Facial Recognition system using InsightFace. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |