Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features added #15

Merged
merged 9 commits into from
Apr 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 23 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![alt text](https://raw.githubusercontent.com/virajmavani/semi-auto-image-annotation-tool/master/demo.gif)

Semi Automatic Image Annotation Toolbox with RetinaNet as the suggesting algorithm. The toolbox suggests 80 class objects from the MS COCO dataset using a pretrained RetinaNet model.
Semi Automatic Image Annotation Toolbox with tensorflow and keras object detection models.

## Installation

Expand All @@ -14,7 +14,13 @@ Semi Automatic Image Annotation Toolbox with RetinaNet as the suggesting algorit
Please make sure `tensorflow` is installed as per your systems requirements.
Also, make sure Keras 2.1.3 or higher and OpenCV 3.x is installed.

3) Download the [pretrained weights](https://github.com/fizyr/keras-retinanet/releases/download/0.3.1/resnet50_coco_best_v2.1.0.h5) and save it in /snapshots.
3) a) For Keras model - Download the [pretrained weights](https://github.com/fizyr/keras-retinanet/releases/download/0.3.1/resnet50_coco_best_v2.1.0.h5) and save it in /snapshots/keras.

b) For tensorflow model get the desired model from [here](https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/detection_model_zoo.md) and extract it in /sanpshots/tensorfow

c) You can even save custom pre trained model in the respective directory.



### Dependencies

Expand All @@ -28,19 +34,30 @@ For, Python >= 3.5

### Instructions

1) Select the COCO object classes for which you need suggestions from the drop-down menu and add them.
1) Select the COCO object classes for which you need suggestions from the drop-down menu and add them. Or simply click on ```Add all classes``` .

2) Select the desired model and click on ```Add model```.

3) Click on ```detect``` button.

2) When annotating manually, select the object class from the List and while keep it selected, select the BBox.
4) When annotating manually, select the object class from the List and while keep it selected, select the BBox.

3) The final annotations can be found in the file `annotations.csv` in ./annotations/
5) The final annotations can be found in the file `annotations.csv` in ./annotations/ . Also a xml file will saved.

### Usage

For MSCOCO dataset
```
python main.py
```
For any other dataset-

Tested on:
First change the labels in config.py (for keras model) or in tf_config.py( for tensorflow model).
Then run:
```python main.py
```

#### Tested on:
1. Windows 10

2. Linux 16.04
Expand Down
Loading