compute_stats.py [for type mode]
See original GitHub issueI 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
Traceback (most recent call last): File “compute_stats.py”, line 248, in <module> run_nuclei_type_stat(args.pred_dir, args.true_dir) File “compute_stats.py”, line 104, in run_nuclei_type_stat paired_all = np.concatenate(paired_all, axis=0) File “<array_function internals>”, line 6, in concatenate ValueError: need at least one array to concatenate
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.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
@vqdang Thank you so much, now it’s working. I just had to add “/” at the end of the path to make it run.
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 ?