-
Notifications
You must be signed in to change notification settings - Fork 230
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
compute_stats.py [for type mode] #133
Comments
Please guide what am I doing wrong?
|
You are not doing anything wrong. The current saving format for .mat is infact quite different compared to the format expected by the old stat code. Rerun inference should now have format as expected by metric code. Still, for consep you need to uncomment Lines 62 to 64 in a0f80c7
|
Still same error, compute_stats.py is not working for type mode. |
Same issue as earlier, maybe the order of dictionary keys in prediction .mat files causing error. Shouldn't the order of inst_uid and inst_type be the same as GT ? |
@vqdang Thank you so much, now it's working. I just had to add "/" at the end of the path to make it run. |
I failed to get compute_stats output using this command:
python compute_stats.py --mode=type --pred_dir=/home/hovernet/mydrive/HoverNet/hover_net/logs/infer_output/mat --true_dir=/home/hovernet/mydrive/HoverNet/hover_net/dataset/CoNSeP/Test/Labels
Apparently, the code failed to get the correct .mat files in the predictions folder. After opening the prediction .mat file, I only got "inst_map" and inst_type. I wonder there is no "inst_centroid" in the prediction folder got through inference.
The text was updated successfully, but these errors were encountered: