Skip to main content

🐦 multi_label_pigeon

This repo is a simple multiclass image extenstion of the pigeon library by @agermanidis located here. Credit goes to them for building the annotate function for images, text, and regression for multi-class type problems. All I am doing is extending it to multi-label and multi-task type problems.

Installation

Can install with standard pip.

pip install multi-label-pigeon

Examples

from multi_label_pigeon import multi_label_annotate
from IPython.display import display, Image

annotations = multi_label_annotate(
    ['assets/altera.jpg', 'assets/chibi_gil.jpg','assets/chibi_saber.jpg'],
    options={'cute':['yes','no'], 'saber':['yes','no'],'colors':['blue','gold','white','red']},
    display_fn=lambda filename: display(Image(filename))
    )

Preview:

alt text

Additional Notes


I added some additional buttons as well to the multi-label script. Since we want to be able to select more than one category I added a few extra buttons.

  • done button to press after all relevant fields have been clicked.

  • back button in case you want to go back to a previous image. WARNING this will erase that item from the dictionary so you will have to click through all the classes you want to mark for that previous image again. back_example

  • clear current WARNING will delete the current image from the dictionary on the back end so you can re enter the classes in case you messed one up. clear_current

Metadata

Release files for multi-label-pigeon 0.2.0

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

Built distribution (wheel)

Table of built distributions (wheels) for multi-label-pigeon 0.2.0
File Interpreter ABI Platform
multi_label_pigeon-0.2.0-py3-none-any.whl Python 3 none any Details

Release files / multi_label_pigeon-0.2.0-py3-none-any.whl

Download URL multi_label_pigeon-0.2.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e11bf100328355bf295b814ba478f6430835fd62fce3e83c52d53c4a2419464
BLAKE2b-256 checksum
How to use checksums
ca10d3442651c6a2bd8563a02881752ec0ad0a91a8e29f7a6dbfd18093a983d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.2

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file

0.1.2

1 release file

0.1.1

1 release file

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