Skip to main content

Autolabel

Autolabel is an image labeling tool. Currently images are labeled using ResNet18-152 implemented by pytorch. Autolabel can be used as a cli tool or as a library.

Installation

python setup.py install

Command line usage

See --help for a command overview

Usage: autolabel [OPTIONS] [IMAGES]...

Options:
  --batch-size INTEGER
  --sep TEXT                      Separator
  --top INTEGER
  -o, --output FILENAME           Output file
  -m, --model [resnet18|resnet34|resnet50|resnet101|resnet152]
  --help                          Show this message and exit.

In the simplest form this mean:

autolabel image.jpg

Autolabel supports reading file names from STDIN:

find /myimages -type f -iname '*.jpg' | autolabel

Library usage

from autolabel.image import ImageListDataset
from autolabel.classifier.resnet import Resnet18Classifier
from pathlib import Path

classifier = Resnet18Classifier()
images = [Path('/path/to/image.jpg'), Path('/path/to/another/image.png')]
dataset = ImageListDataset(images)
res = classifier.predict(dataset, top=top)
for p, decoded in res.items():
    print(p, decoded)

Metadata

Release files for autolabel 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autolabel 0.0.1
File Size Uploaded Provenance Actions
autolabel-0.0.1.tar.gz 21.8 kB Without provenance Details for autolabel-0.0.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for autolabel 0.0.1
File Interpreter ABI Platform Actions
autolabel-0.0.1-py3.8.egg Legacy Egg format - - Details for autolabel-0.0.1-py3.8.egg
autolabel-0.0.1-py3-none-any.whl Python 3 none any Details for autolabel-0.0.1-py3-none-any.whl

Total release size: 142.4 kB

Release files / autolabel-0.0.1.tar.gz

Download URL autolabel-0.0.1.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
11d4cd7a5971cb67edb313d028a0f64400c1d3c4910fd97cfa220a79feb8814a
BLAKE2b-256 checksum
How to use checksums
1e4c5113573bd9534857700f80cd45af266eed98240cee739d121e0bb897e1a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Release files / autolabel-0.0.1-py3.8.egg

Download URL autolabel-0.0.1-py3.8.egg
Size 83.7 kB
Tags Egg
SHA-256 checksum
How to use checksums
ace3e3ede6a784034abb095ea09d5e260da26d635948aa3a52d1566c68e2d4c2
BLAKE2b-256 checksum
How to use checksums
327ff95ca71981a3e04bf2b89de49b76499223086c6f8a1f1ca1cdff7e8607b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Release files / autolabel-0.0.1-py3-none-any.whl

Download URL autolabel-0.0.1-py3-none-any.whl
Size 36.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd7306779ba0fd24aba560f5a0425efb0b11c959e271a366a15ee128c34f4c17
BLAKE2b-256 checksum
How to use checksums
0d6da0fa34ad9ae24307ddfc54b99ff34ddae47dac365ce5cb6f04ef5fa09642
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Security for autolabel 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

3 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page