vanvalenlab / deepcell-tracking

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

benchmark_division_performance can't be found in isbi_utils.py #117

Closed SBassler closed 1 year ago

SBassler commented 1 year ago

Dear VanValen lab team, Thanks for the great work you do! I followed your "Training and Tracking with GNNs" notebook but at the last step:

import json from deepcell_tracking.isbi_utils import benchmark_division_performance results = benchmark_division_performance(gt_trk_path, res_file_path)

I get the following error: ImportError: cannot import name 'benchmark_division_performance' from 'deepcell_tracking.isbi_utils'

I checked and indeed, the isbi_utils.py file does not contain 'benchmark_division_performance'. Best wishes, Stefan

msschwartz21 commented 1 year ago

Hi Stefan,

The notebook has fallen a bit out of date, but you should be able to replace from deepcell_tracking.isbi_utils import benchmark_division performance with from deepcell_tracking.metrics import benchmark_tracking_performance. I will also look into updating the notebook and I'll let you know when the new version is available.

SBassler commented 1 year ago

Thank you very much for the quick response and keep up the cool work!

SBassler commented 1 year ago

Unfortunately, benchmark_division_performance is still not defined. Best wishes, Stefan

NameError: name 'benchmark_division_performance' is not defined 

On 24. Feb 2023, at 11:33, Morgan Schwartz @.***> wrote:

Hi Stefan,

The notebook has fallen a bit out of date, but you should be able to replace from deepcell_tracking.isbi_utils import benchmark_division performance with from deepcell_tracking.metrics import benchmark_tracking_performance. I will also look into updating the notebook and I'll let you know when the new version is available.

— Reply to this email directly, view it on GitHub https://github.com/vanvalenlab/deepcell-tracking/issues/117#issuecomment-1444327326, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJG62CGVTUAGXQ4B3324J2LWZEEJNANCNFSM6AAAAAAVGSJ5H4. You are receiving this because you authored the thread.

SBassler commented 1 year ago

Nevermind, I managed by importing deepcell_tracking once more, thanks!

On 24. Feb 2023, at 11:44, Stefan Oliver Bassler @.***> wrote:

Unfortunately, benchmark_division_performance is still not defined. Best wishes, Stefan

NameError: name 'benchmark_division_performance' is not defined

> On 24. Feb 2023, at 11:33, Morgan Schwartz ***@***.***> wrote: > > > Hi Stefan, > > The notebook has fallen a bit out of date, but you should be able to replace from deepcell_tracking.isbi_utils import benchmark_division performance with from deepcell_tracking.metrics import benchmark_tracking_performance. I will also look into updating the notebook and I'll let you know when the new version is available. > > — > Reply to this email directly, view it on GitHub , or unsubscribe . > You are receiving this because you authored the thread. >