Observed since 20 Oct, 18:41 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A utility for action segmentation research: evaluation and others
This repository contains the reference code for action segmentation evaluation.
If you have a bug-fix/improvement or if you want to add a new features please send a pull request or open an issue.
The actseg library is available on PyPI.
pip install actseg
make init
make test
All the metrics have the same api.
from actseg.eval import MoFAccuracy, Edit
pred1 = [0, 0, 0, 1, 0, 1, 1, 1, 0]
pred2 = [1, 2, 3, 0, 0, 1, 2, 3, 0, 0, 0, 1, 2, 3, 0, 0, 0, 0]
target1 = [0, 0, 1, 1, 2, 1, 1, 0, 0]
target2 = [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3]
metrics = [MoFAccuracy(), Edit()]
for p, t in zip([pred1, pred2], [target1, target2]):
for m in metrics:
m(targets=t, predictions=p)
for m in metrics:
print(m)
# MoF: 0.3333333333333333
# Edit: 52.5
For some Metrics it is possible to specify the indices of classes to ignore (e.g. Background) by
passing ignore_ids parameter to the constructor.
Please see src/actseg/external for external sources used in this project.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 8 Oct 2021 | 3 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 18:41 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:c2917195afcf0b7a89ddafafd5e61fb4bea3f17537e0b0c786d72e8727a1102c