Skip to content

Commit

Permalink
Relax requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
ashnair1 committed Apr 7, 2020
1 parent f579cd6 commit 6d47135
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 16 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
__pycache__/
*.py[cod]
*$py.class
*.pyc

# C extensions
*.so
Expand Down Expand Up @@ -131,4 +132,4 @@ annotations/
images/
*tar.gz
.vscode/
data/
data/
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![CircleCI](https://circleci.com/gh/ashnair1/COCO-Assistant/tree/master.svg?style=shield&circle-token=553c83e37198fe02a71743d42ee427c292336743) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/5299d18c95da4991b4f3a6ae6e8a0b7a)](https://www.codacy.com/manual/ashnair1/COCO-Assistant?utm_source=github.com&utm_medium=referral&utm_content=ashnair1/COCO-Assistant&utm_campaign=Badge_Grade) [![PyPI version](https://badge.fury.io/py/coco-assistant.svg)](https://badge.fury.io/py/coco-assistant) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Helper for dealing with MS-COCO annotations. <img src="rep_stuff/coco.png" height="40">
Helper for dealing with MS-COCO annotations. <img src=".github/coco.png" height="40">

## Overview
The MS COCO annotation format along with the pycocotools library is quite popular among the computer vision community. Yet I for one found it difficult to play around with the annotations. Deleting a specific category, combining multiple mini datasets to generate a larger dataset, viewing distribution of classes in the annotation file are things I would like to do without writing a separate script for each. The COCO Assistant is designed (or being designed) to assist with this problem. **Please note that currently, the Assistant can only help out with object detection datasets**. Any contributions and/or suggestions are welcome.
Expand Down Expand Up @@ -70,7 +70,7 @@ Done (t=0.06s)
creating index...
index created!

In[2]: cas.merge()
In[2]: cas.merge(merge_images=True)
Merging image dirs
100%|█████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 18.33it/s]
Merging annotations
Expand Down Expand Up @@ -132,15 +132,15 @@ Choose directory:
tiny
```

![](./rep_stuff/visualiser.gif)
![](./.github/visualiser.gif)

### 5. Generate segmentation masks
The `cas.get_segmasks()` function allows you to create segmentation masks from your MS COCO object detection datasets. Similar to the Pascal VOC dataset, the mask values are their classes and a colour palette is applied to enable visualisation. The generated masks are stroed in the `./results` folder. Samples are shown below.
The `cas.get_segmasks()` function allows you to create segmentation masks from your MS COCO object detection datasets. Similar to the Pascal VOC dataset, the mask values are their classes and a colour palette is applied to enable visualisation. The generated masks are stored in the `./results` folder. Samples are shown below.

| | Detection | Segmentation |
|----------------|----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|
| **SpaceNet** | <img src="./rep_stuff/SpaceNet.png" alt="SpaceNet" alt="SpaceNet" width=310 /> | <img src="./rep_stuff/SpaceNet_mask.png" alt="SpaceNet_mask" title="SpaceNet_mask" width=310 /> |
| **iSAID** | <img src="./rep_stuff/iSAID.png" alt="iSAID" title="iSAID" width=310 /> | <img src="./rep_stuff/iSAID_mask.png" alt="iSAID_mask" title="iSAID_mask" width=310 /> |
| **SpaceNet** | <img src="./.github/SpaceNet.png" alt="SpaceNet" title="SpaceNet" width=310 /> | <img src="./.github/SpaceNet_mask.png" alt="SpaceNet_mask" title="SpaceNet_mask" width=310 /> |
| **iSAID** | <img src="./.github/iSAID.png" alt="iSAID" title="iSAID" width=310 /> | <img src="./.github/iSAID_mask.png" alt="iSAID_mask" title="iSAID_mask" width=310 /> |

### Todo
1. Converter for converting COCO annotations to YOLO format.
Expand Down
2 changes: 1 addition & 1 deletion coco_assistant/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.0
0.2.1
16 changes: 8 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# project requirements
Cython==0.29.13
matplotlib==3.0.2
numpy==1.16.0
pandas==0.23.4
Cython
matplotlib
numpy
pandas
Pillow>=6.2.2
git+https://github.com/ashnair1/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI
seaborn==0.9.0
scikit-image==0.14.2
tensorflow==1.15.0
tqdm==4.28.1
seaborn
scikit-image
tensorflow==1.12.0
tqdm

# packaging
setuptools==40.6.3
Expand Down

0 comments on commit 6d47135

Please sign in to comment.