Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeWarning: invalid value encountered in divide feat = feat/np.linalg.norm(feat,ord=2) #39

Open
heluhai opened this issue Jul 19, 2024 · 0 comments

Comments

@heluhai
Copy link

heluhai commented Jul 19, 2024

/tmp/pycharm_project_212/reid/reid-matching/tools/utils/ficfac.py:59: RuntimeWarning: invalid value encountered in divide
feat = feat/np.linalg.norm(feat,ord=2)
feat3:0/39
feat3:0/39
Using totally 0.08s to compute initial_rank
starting re_ranking
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 78/78 [00:00<00:00, 6945.39it/s]
Using totally 0.15S to compute R
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 78/78 [00:00<00:00, 5518.45it/s]
Using totally 0.23S to compute V-1
Using totally 0.29S to compute V-2
Using totally 0.29S to compute invIndex
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 39/39 [00:00<00:00, 6801.57it/s]
[[nan nan nan ... nan nan nan]
[nan nan nan ... nan nan nan]
[nan nan nan ... nan nan nan]
...
[nan nan nan ... nan nan nan]
[nan nan nan ... nan nan nan]
[nan nan nan ... nan nan nan]]
Using totally 0.36S to compute final_distance
[[nan nan nan ... nan nan nan]
[nan nan nan ... nan nan nan]
[nan nan nan ... nan nan nan]
...
[nan nan nan ... nan nan nan]
[nan nan nan ... nan nan nan]
[nan nan nan ... nan nan nan]]
Traceback (most recent call last):
File "/tmp/pycharm_project_212/reid/reid-matching/tools/sub_cluster.py", line 154, in
clu = get_labels(cfg,cid_tid_dict,cid_tids,score_thr=cfg.SCORE_THR)
File "/tmp/pycharm_project_212/reid/reid-matching/tools/sub_cluster.py", line 106, in get_labels
linkage='complete').fit_predict(1 - sim_matrix)

Excuse me, where is the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant