Error in Hungarian: matrix contains invalid numeric entries
See original GitHub issueI am training a dental pointcloud dataset that has already been tested on ASIS with quite good results, but now testing on 3D-BoNet and having used the recommended h5 files generation script the algorithm crashes after few iterations:
File "/home/ubuntu/3D-BoNet/helper_net.py", line 120, in assign_mappings_valid_only
row_ind, col_ind=linear_sum_assignment(valid_cost)
File "/home/ubuntu/miniconda3/envs/tf_gpu114_p36_source/lib/python3.6/site-packages/scipy/optimize/_hungarian.py", line 93, in linear_sum_assignment
raise ValueError("matrix contains invalid numeric entries")
ValueError: matrix contains invalid numeric entries
Have you any idea for why could this be happening? A feature of the dataset is that each block has very few instances, and that every mandible (room) has an instance present in all blocks (mouth gum).
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
raise ValueError("matrix contains invalid numeric entries")
I have been trying to train Mask2Former on my own dataset but after 11859 iters, i get the following error. Could it be...
Read more >Why does linear_sum_assignment in scipy.optimize never ...
This is currently a bug in scipy.optimize.linear_sum_assignment . ... values of infinity, and instead use an extremely large number instead.
Read more >DETR中匈牙利Hungarian算法介绍
raise ValueError("matrix contains invalid numeric entries"). cost_matrix = cost_matrix.astype(np.double).
Read more >Coverage for /usr/lib/python3/dist-packages/scipy/optimize ...
Hungarian algorithm (Kuhn-Munkres) for solving the linear sum assignment ... raise ValueError("matrix contains invalid numeric entries").
Read more >Hungarian Algorithm - z-Scale
In 1957 James Munkres has shown that Hungarian algorithm is ... If there are negative numbers in the matrix, you can always add...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi, I ran into the same problem and the reason is that I normalized blocks into [-1, 1], which may cause the sum of gt-bbox to be less than 0. So, when all gt-bbox in the same batch of samples are less than 0, bbox_loss_l2_pos will be illegally divided by 0, i.e., tf.reduce_sum(Y_bbox_helper) is equal to 0. The solution can be found in #25 .
请问您解决这个问题了吗