Metadata-Version: 2.1
Name: multi-label-pigeon
Version: 0.1.2
Summary: A way to label multi label image datasets in jupyter
Home-page: https://https://github.com/sugi-chan/multi_label_pigeon
Author: Michael Sugimura
Author-email: deepak.kumar.iet@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: ipywidgets


🐦 multi_label_pigeon
========================

This repo is a simple multiclass image extenstion of the pigeon library by
@agermanidis located [here](https://github.com/agermanidis/pigeon). 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](/assets/sample_usage5.gif)

## 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](/assets/back.gif)

- `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](/assets/clear_current2.gif)



