vanvalenlab / deepcell-tracking

Track cells and build cell lineages
Other
29 stars 6 forks source link

Comparison in Memory #78

Open MekWarrior opened 3 years ago

MekWarrior commented 3 years ago

https://github.com/vanvalenlab/deepcell-tracking/blob/13ccc14b70d068a4d0f20741b1692712a61b9ce5/deepcell_tracking/isbi_utils.py#L362

We should adapt benchmark_division _performance to work on a dict in memory rather than require the information for the comparison to come from existing .trk files written to disk.

willgraf commented 3 years ago

I think we can update this to check if the trk_gt is a path or dict, then load it appropriately.

That way we can be fully backward compatible but also allow in-memory comparisons.


UPDATE: this does not seem feasible, as both the y and lineage information are required for benchmarking.