Skip to content

Commit

Permalink
Merge pull request #15 from QuickLearner171998/master
Browse files Browse the repository at this point in the history
Features added
  • Loading branch information
virajmavani authored Apr 11, 2020
2 parents 7ad14ed + f3ae901 commit 3eeab88
Show file tree
Hide file tree
Showing 5 changed files with 295 additions and 48 deletions.
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

0 comments on commit 3eeab88

Please sign in to comment.