Catalog PyPI
Back to packageRELEASE DETAILS

0.1.0

PyPI

actseg

A utility for action segmentation research: evaluation and others

actionsegmentationunderstandingvideo
Published8 Oct 2021
Direct dependencies3
Transitive dependenciesNot calculated

README

Version 0.1.0 documentation

PyPI version

Reference Action Segmentation Evaluation Code

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.

Installation

The actseg library is available on PyPI.

pip install actseg

Development

make init
make test

Example Usage

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

Metrics

Frame-wise Metrics

  1. MoF (Accuracy)
  2. F1Score
  3. IoD
  4. IoU

Segment-wise Metrics

  1. Edit (Edit distance or matching score)

Specifying Ignore Class

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.

Acknowledgement

Please see src/actseg/external for external sources used in this project.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 3

Native requirements
3 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
numpy
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.7, <4",
  "evaluation": "NOT_EVALUATED"
}
numpyruntime
pytest
Environment
{
  "extras": "",
  "marker": "extra == 'dev'",
  "requires_python": ">=3.7, <4",
  "evaluation": "NOT_EVALUATED"
}
pytest ; extra == 'dev'runtime
check-manifest
Environment
{
  "extras": "",
  "marker": "extra == 'dev'",
  "requires_python": ">=3.7, <4",
  "evaluation": "NOT_EVALUATED"
}
check-manifest ; extra == 'dev'runtime

Distribution files

2 collected
actseg-0.1.0-py3-none-any.whl

bdist_wheel · 8.08 KB · Python py3

Source file
actseg-0.1.0.tar.gz

sdist · 8.1 KB · Python source

Source file

Repository

PENDING
actseg/actseg

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:41 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:062cb4b4f9b34fd7e576446a0eefde5631e849c102765eb5566a2cdd70c0ce04

Other collected versions

View all collected versions →