Skip to content
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

generate_overall cause error when computing summary #152

Open
alexgoft opened this issue Nov 25, 2021 · 0 comments
Open

generate_overall cause error when computing summary #152

alexgoft opened this issue Nov 25, 2021 · 0 comments

Comments

@alexgoft
Copy link

alexgoft commented Nov 25, 2021

I am trying to compute summary of several accumulators the following way:

mh = mm.metrics.create()

summary = mh.compute_many([all_0, all_1],
                          names=['acc_0', 'acc_1'],
                          metrics=METRICS_MOT,
                          generate_overall=True)

compute_many works without generate_overall, however when i pass it True, it fails:

  File "/hdd/venv/lib/python3.6/site-packages/motmetrics/metrics.py", line 328, in _compute_overall
    v = cache[depname] = self._compute_overall(partials, depname, cache, parent=name)
  File "/hdd/venv/lib/python3.6/site-packages/motmetrics/metrics.py", line 325, in _compute_overall
    for depname in minfo['deps_m']:
TypeError: 'NoneType' object is not iterable

EDIT:
example script fails as well:: when passing generate_overall=True in the last call to compute_many

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant