ivadomed / MetricsReloaded

A fork of the Project-MONAI/MetricsReloaded repo
Apache License 2.0
3 stars 0 forks source link

make `compute_metrics_reloaded.py` faster #10

Open naga-karthik opened 2 months ago

naga-karthik commented 2 months ago

When computing metrics using ANIMA and MetricsReloaded one can quickly notice that ANIMA is much faster probably because it is written in C++ whereas MetricsReloaded is pure Python. we gain better readability (python vs c++ code) at the cost of speed.

discussing with @valosekj, our wrapper script could be made faster by computing the metrics in parallel instead of a simple for as it is done now.

one idea: use multiprocessing ie spawn multiple workers on multiple subjects (just like the -jobs arg in sct_run_batch ?